diff --git a/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Commands/GeneratePackageManifest.swift b/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Commands/GeneratePackageManifest.swift index 5a22ef9a5f6..af009ba3f39 100644 --- a/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Commands/GeneratePackageManifest.swift +++ b/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Commands/GeneratePackageManifest.swift @@ -31,6 +31,9 @@ struct GeneratePackageManifestCommand: ParsableCommand { @Option(help: "The names of the services to include in the package manifest. This defaults to all services located in aws-sdk-swift/Sources/Services") var services: [String] = [] + + @Flag(help: "If the package manifest should include the integration tests.") + var includesIntegrationTests: Bool = false func run() throws { let generatePackageManifest = GeneratePackageManifest.standard( @@ -38,7 +41,8 @@ struct GeneratePackageManifestCommand: ParsableCommand { packageFileName: packageFileName, clientRuntimeVersion: clientRuntimeVersion, crtVersion: crtVersion, - services: services.isEmpty ? nil : services + services: services.isEmpty ? nil : services, + includesIntegrationTests: includesIntegrationTests ) try generatePackageManifest.run() } @@ -61,11 +65,13 @@ struct GeneratePackageManifest { /// The list of services to include as products /// If `nil` then the list is populated with the names of all items within the `Sources/Services` directory let services: [String]? + /// If the package manifest should include the integration tests. + let includesIntegrationTests: Bool typealias BuildPackageManifest = ( _ clientRuntimeVersion: Version, _ crtVersion: Version, - _ services: [String] + _ services: [PackageManifestBuilder.Service] ) throws -> String /// Returns the contents of the package manifest file given the versions of dependencies and the list of services. let buildPackageManifest: BuildPackageManifest @@ -85,7 +91,13 @@ struct GeneratePackageManifest { /// - Returns: The contents of the generated package manifest. func generatePackageManifestContents() throws -> String { let versions = try resolveVersions() - let services = try resolveServices() + let servicesWithIntegrationTests = try includesIntegrationTests ? resolveServicesWithIntegrationTests() : [] + let services = try resolveServices().map { + PackageManifestBuilder.Service( + name: $0, + includeIntegrationTests: servicesWithIntegrationTests.contains($0) + ) + } log("Creating package manifest contents...") let contents = try buildPackageManifest(versions.clientRuntime, versions.crt, services) log("Successfully created package manifest contents") @@ -170,6 +182,21 @@ struct GeneratePackageManifest { log("Resolved list of services: \(resolvedServices.count)") return resolvedServices } + + /// Returns the list of services to include in the package manifest. + /// If an explicit list of services was provided by the command, then this returns the specified services. + /// Otherwise, this returns the list of services that exist within `Sources/Services` + /// + /// - Returns: The list of services to include in the package manifest + func resolveServicesWithIntegrationTests() throws -> [String] { + log("Resolving services with integration tests...") + let resolvedServices = try FileManager + .default + .integrationTests() + .map { $0.replacingOccurrences(of: "IntegrationTests", with: "") } + log("List of services with integration tests: \(resolvedServices.count)") + return resolvedServices + } } // MARK: - Factory @@ -191,14 +218,16 @@ extension GeneratePackageManifest { packageFileName: String, clientRuntimeVersion: Version? = nil, crtVersion: Version? = nil, - services: [String]? = nil + services: [String]? = nil, + includesIntegrationTests: Bool = false ) -> Self { GeneratePackageManifest( repoPath: repoPath, packageFileName: packageFileName, clientRuntimeVersion: clientRuntimeVersion, crtVersion: crtVersion, - services: services + services: services, + includesIntegrationTests: includesIntegrationTests ) { _clientRuntimeVersion, _crtVersion, _services in let builder = PackageManifestBuilder( clientRuntimeVersion: _clientRuntimeVersion, diff --git a/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Models/PackageManifestBuilder.swift b/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Models/PackageManifestBuilder.swift index 1e2f6543a48..437227c6e89 100644 --- a/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Models/PackageManifestBuilder.swift +++ b/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Models/PackageManifestBuilder.swift @@ -10,15 +10,20 @@ import PackageDescription /// Builds the contents of the package manifest file. struct PackageManifestBuilder { + struct Service { + let name: String + let includeIntegrationTests: Bool + } + let clientRuntimeVersion: Version let crtVersion: Version - let services: [String] + let services: [Service] let basePackageContents: () throws -> String init( clientRuntimeVersion: Version, crtVersion: Version, - services: [String], + services: [Service], basePackageContents: @escaping () throws -> String ) { self.clientRuntimeVersion = clientRuntimeVersion @@ -30,7 +35,7 @@ struct PackageManifestBuilder { init( clientRuntimeVersion: Version, crtVersion: Version, - services: [String] + services: [Service] ) { self.init(clientRuntimeVersion: clientRuntimeVersion, crtVersion: crtVersion, services: services) { // Returns the contents of the base package manifest stored in the bundle at `Resources/Package.Base.swift` @@ -75,7 +80,10 @@ struct PackageManifestBuilder { buildDependencies(), "", // Add the generated content that defines the list of services to include - buildServiceTargets() + buildServiceTargets(), + "", + // Add the generated content that defines the list of services with integration tests to include + buildIntegrationTestsTargets() ] return contents.joined(separator: .newline) } @@ -125,11 +133,38 @@ struct PackageManifestBuilder { var lines: [String] = [] lines += ["let \(propertyName): [String] = ["] - lines += services.map { " \($0.wrappedInQuotes())," } + lines += services.map { " \($0.name.wrappedInQuotes())," } lines += ["]"] lines += [""] lines += ["\(propertyName).forEach(addServiceTarget)"] return lines.joined(separator: .newline) } + + /// Builds the list of services to add integration test targets for.. + /// This generates an array of strings, where the each item is a name of a service + /// and calls the `addIntegrationTestTarget` for each item. + /// + ///``` + ///let servicesWithIntegrationTests: [String] = [ + /// "Service Name 1", + /// "Service Name 2", + /// "Service Name 3" + /// // etc... + ///] + ///serviceTagets.forEach(addIntegrationTestTarget) + ///``` + /// + private func buildIntegrationTestsTargets() -> String { + let propertyName = "servicesWithIntegrationTests" + + var lines: [String] = [] + lines += ["let \(propertyName): [String] = ["] + lines += services.filter(\.includeIntegrationTests).map { " \($0.name.wrappedInQuotes())," } + lines += ["]"] + lines += [""] + lines += ["\(propertyName).forEach(addIntegrationTestTarget)"] + + return lines.joined(separator: .newline) + } } diff --git a/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Resources/Package.Base.swift b/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Resources/Package.Base.swift index 6d74f703466..e3960063ce7 100644 --- a/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Resources/Package.Base.swift +++ b/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Resources/Package.Base.swift @@ -103,3 +103,15 @@ func addServiceTarget(_ name: String) { ) ] } + +func addIntegrationTestTarget(_ name: String) { + let integrationTestName = "\(name)IntegrationTests" + package.targets += [ + .testTarget( + name: integrationTestName, + dependencies: [.crt, .clientRuntime, .awsClientRuntime, .byName(name: name), .smithyTestUtils], + path: "./IntegrationTests/Services/\(integrationTestName)", + resources: [.process("Resources")] + ) + ] +} diff --git a/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Utils/FileManager+Utils.swift b/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Utils/FileManager+Utils.swift index a73eba0ef7d..c5599bf51a0 100644 --- a/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Utils/FileManager+Utils.swift +++ b/AWSSDKSwiftCLI/Sources/AWSSDKSwiftCLI/Utils/FileManager+Utils.swift @@ -35,4 +35,14 @@ extension FileManager { .sorted() .filter { !$0.hasPrefix(".") } } + + /// Returns the list of integration tests. + /// + /// - Returns: The list of integration tests. + func integrationTests() throws -> [String] { + try FileManager.default + .contentsOfDirectory(atPath: "IntegrationTests/Services") + .sorted() + .filter { !$0.hasPrefix(".") } + } } diff --git a/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Commands/GeneratePackageManifestTests.swift b/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Commands/GeneratePackageManifestTests.swift index cebed7532b4..825ce02bdb5 100644 --- a/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Commands/GeneratePackageManifestTests.swift +++ b/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Commands/GeneratePackageManifestTests.swift @@ -48,7 +48,7 @@ class GeneratePackageManifestTests: CLITestCase { createServiceFolders(services) let subject = GeneratePackageManifest.mock(buildPackageManifest: { _clientRuntimeVersion, _crtVersion, services in - "\(_clientRuntimeVersion)-\(_crtVersion)-\(services.joined(separator: "-"))" + "\(_clientRuntimeVersion)-\(_crtVersion)-\(services.map(\.name).joined(separator: "-"))" }) try! subject.run() let result = try! String(contentsOfFile: "Package.swift", encoding: .utf8) @@ -110,6 +110,7 @@ extension GeneratePackageManifest { clientRuntimeVersion: Version? = nil, crtVersion: Version? = nil, services: [String]? = nil, + includesIntegrationTests: Bool = false, buildPackageManifest: @escaping BuildPackageManifest = { (_,_,_) throws -> String in "" } ) -> GeneratePackageManifest { GeneratePackageManifest( @@ -118,6 +119,7 @@ extension GeneratePackageManifest { clientRuntimeVersion: clientRuntimeVersion, crtVersion: crtVersion, services: services, + includesIntegrationTests: includesIntegrationTests, buildPackageManifest: buildPackageManifest ) } diff --git a/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Commands/PrepareReleaseTests.swift b/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Commands/PrepareReleaseTests.swift index 25be6234775..86422f86593 100644 --- a/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Commands/PrepareReleaseTests.swift +++ b/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Commands/PrepareReleaseTests.swift @@ -104,7 +104,7 @@ class PrepareReleaseTests: CLITestCase { ProcessRunner.testRunner = runner let subject = PrepareRelease.mock(repoType: .awsSdkSwift) try! subject.stageFiles() - XCTAssertTrue(command.hasSuffix("git add Package.swift Package.version Sources/Services Tests/Services")) + XCTAssertTrue(command.hasSuffix("git add Package.swift Package.version packageDependencies.plist Sources/Services Tests/Services")) } func testStageFilesForSmithySwift() { diff --git a/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Models/PackageManifestBuilderTests.swift b/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Models/PackageManifestBuilderTests.swift index 54b89a65350..7e08dfc09f3 100644 --- a/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Models/PackageManifestBuilderTests.swift +++ b/AWSSDKSwiftCLI/Tests/AWSSDKSwiftCLITests/Models/PackageManifestBuilderTests.swift @@ -29,13 +29,23 @@ class PackageManifestBuilderTests: XCTestCase { ] serviceTargets.forEach(addServiceTarget) + + let servicesWithIntegrationTests: [String] = [ + "A", + "B", + "C", + "D", + "E", + ] + + servicesWithIntegrationTests.forEach(addIntegrationTestTarget) """ func testBuild() { let subjeect = PackageManifestBuilder( clientRuntimeVersion: .init("1.2.3"), crtVersion: .init("4.5.6"), - services: ["A","B","C","D","E"], + services: ["A","B","C","D","E"].map { PackageManifestBuilder.Service(name: $0, includeIntegrationTests: true) }, basePackageContents: { "" } ) let result = try! subjeect.build() diff --git a/IntegrationTests/Services/AWSS3IntegrationTests/Resources/hello-world b/IntegrationTests/Services/AWSS3IntegrationTests/Resources/hello-world new file mode 100644 index 00000000000..5dd01c177f5 --- /dev/null +++ b/IntegrationTests/Services/AWSS3IntegrationTests/Resources/hello-world @@ -0,0 +1 @@ +Hello, world! \ No newline at end of file diff --git a/IntegrationTests/Services/AWSS3IntegrationTests/S3Tests.swift b/IntegrationTests/Services/AWSS3IntegrationTests/S3Tests.swift new file mode 100644 index 00000000000..de2c17a0e78 --- /dev/null +++ b/IntegrationTests/Services/AWSS3IntegrationTests/S3Tests.swift @@ -0,0 +1,112 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import XCTest +import AWSS3 + +final class S3Tests: XCTestCase { + var sut: S3Client! + let bucketName = "aws-sdk-swift-test-\(UUID().uuidString.split(separator: "-").first!.lowercased())" + let objectName = "hello-world" + let expected = "Hello, world!" + + override func setUp() async throws { + sut = try S3Client(region: "us-west-2") + try await createBucket() + } + + override func tearDown() async throws { + try await emptyBucket() + try await deleteBucket() + } + + func testGetObject() async throws { + try await putObject() + let input = GetObjectInput(bucket: bucketName, key: objectName) + let output = try await sut.getObject(input: input) + XCTAssertNotNil(output) + XCTAssertNotNil(output.body) + + switch output.body! { + case .data(let data): + let actual = String(data: data!, encoding: .utf8) + XCTAssertEqual(actual, expected) + case .stream(let stream): + let actual = String(data: try stream.readToEnd()!, encoding: .utf8) + print(actual) + XCTAssertEqual(actual, expected) + } + } + + func testPutObject_givenDataBody() async throws { + let input = PutObjectInput(body: .data(expected.data(using: .utf8)), bucket: bucketName, key: objectName) + let output = try await sut.putObject(input: input) + XCTAssertNotNil(output) + + let actual = try await getObject() + XCTAssertEqual(expected, actual) + } + + func testPutObject_givenStreamBody() async throws { + let audioURL = Bundle.module.url(forResource: "hello-world", withExtension: nil)! + let fileHandle = FileHandle(forReadingAtPath: audioURL.relativePath)! + let input = PutObjectInput(body: .from(fileHandle: fileHandle), bucket: bucketName, key: objectName) + let output = try await sut.putObject(input: input) + XCTAssertNotNil(output) + + let actual = try await getObject() + XCTAssertEqual(expected, actual) + } + + // MARK: Helpers + + private func createBucket() async throws { + let input = CreateBucketInput(bucket: bucketName, createBucketConfiguration: S3ClientTypes.CreateBucketConfiguration(locationConstraint: S3ClientTypes.BucketLocationConstraint.usWest2)) + let output = try await sut.createBucket(input: input) + print(output) + } + + private func getObject() async throws -> String? { + let input = GetObjectInput(bucket: bucketName, key: objectName) + let output = try await sut.getObject(input: input) + XCTAssertNotNil(output) + XCTAssertNotNil(output.body) + + switch output.body! { + case .data(let data): + return String(data: data!, encoding: .utf8) + case .stream(let stream): + return String(data: try stream.readToEnd()!, encoding: .utf8) + } + } + + private func deleteBucket() async throws { + let input = DeleteBucketInput(bucket: bucketName) + let output = try await sut.deleteBucket(input: input) + print(output) + } + + private func emptyBucket() async throws { + let input = ListObjectsV2Input(bucket: bucketName) + let output = try await sut.listObjectsV2(input: input) + let objects = output.contents ?? [] + print("Deleting \(objects.count) objects in \(bucketName)") + for object in objects { + print("Deleting \(String(describing: object.key)) in \(bucketName)") + let deleteInput = DeleteObjectInput(bucket: bucketName, key: object.key) + let deleteOutput = try await sut.deleteObject(input: deleteInput) + print(deleteOutput) + } + } + + private func putObject() async throws { + let input = PutObjectInput(body: .data(expected.data(using: .utf8)), bucket: bucketName, key: objectName) + let output = try await sut.putObject(input: input) + print(output) + } + +} diff --git a/IntegrationTests/Services/AWSTranscribeStreamingIntegrationTests/Resources/hello-swift.wav b/IntegrationTests/Services/AWSTranscribeStreamingIntegrationTests/Resources/hello-swift.wav new file mode 100644 index 00000000000..f5dd4abc495 Binary files /dev/null and b/IntegrationTests/Services/AWSTranscribeStreamingIntegrationTests/Resources/hello-swift.wav differ diff --git a/IntegrationTests/Services/AWSTranscribeStreamingIntegrationTests/TranscribeStreamingTests.swift b/IntegrationTests/Services/AWSTranscribeStreamingIntegrationTests/TranscribeStreamingTests.swift new file mode 100644 index 00000000000..a5805e9b160 --- /dev/null +++ b/IntegrationTests/Services/AWSTranscribeStreamingIntegrationTests/TranscribeStreamingTests.swift @@ -0,0 +1,64 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import XCTest +import Foundation +import AWSTranscribeStreaming + +final class TranscribeStreamingTests: XCTestCase { + func testStartStreamTranscription() async throws { + let audioURL = Bundle.module.url(forResource: "hello-swift", withExtension: "wav")! + let audioData = try Data(contentsOf: audioURL) + + let chunkSize = 4096 + let audioDataSize = audioData.count + + let client = try await TranscribeStreamingClient(region: "us-west-2") + + let audioStream = AsyncThrowingStream { continuation in + Task { + var currentStart = 0 + var currentEnd = min(chunkSize, audioDataSize - currentStart) + + while currentStart < audioDataSize { + let dataChunk = audioData[currentStart ..< currentEnd] + + let audioEvent = TranscribeStreamingClientTypes.AudioStream.audioevent(.init(audioChunk: dataChunk)) + continuation.yield(audioEvent) + + currentStart = currentEnd + currentEnd = min(currentStart + chunkSize, audioDataSize) + } + + continuation.finish() + } + } + let input = StartStreamTranscriptionInput(audioStream: audioStream, + languageCode: .enUs, + mediaEncoding: .pcm, + mediaSampleRateHertz: 8000) + let output = try await client.startStreamTranscription(input: input) + var fullMessage = "" + for try await event in output.transcriptResultStream! { + switch event { + case .transcriptevent(let event): + for result in event.transcript?.results ?? [] { + guard let transcript = result.alternatives?.first?.transcript else { + continue + } + if !result.isPartial { + fullMessage.append(transcript) + } + } + case .sdkUnknown(let data): + XCTFail(data) + } + } + + XCTAssertEqual("Hello transcribed streaming from Swift S. D. K.", fullMessage) + } +} diff --git a/Package.swift b/Package.swift index 151732273ea..8c9036bf34a 100644 --- a/Package.swift +++ b/Package.swift @@ -104,6 +104,18 @@ func addServiceTarget(_ name: String) { ] } +func addIntegrationTestTarget(_ name: String) { + let integrationTestName = "\(name)IntegrationTests" + package.targets += [ + .testTarget( + name: integrationTestName, + dependencies: [.crt, .clientRuntime, .awsClientRuntime, .byName(name: name), .smithyTestUtils], + path: "./IntegrationTests/Services/\(integrationTestName)", + resources: [.process("Resources")] + ) + ] +} + // MARK: - Generated @@ -457,4 +469,9 @@ let serviceTargets: [String] = [ "AWSXRay", ] -serviceTargets.forEach(addServiceTarget) \ No newline at end of file +serviceTargets.forEach(addServiceTarget) + +let servicesWithIntegrationTests: [String] = [ +] + +servicesWithIntegrationTests.forEach(addIntegrationTestTarget) \ No newline at end of file diff --git a/Sources/Core/AWSClientRuntime/EventStream/AWSEventStream.swift b/Sources/Core/AWSClientRuntime/EventStream/AWSEventStream.swift new file mode 100644 index 00000000000..eedcddee169 --- /dev/null +++ b/Sources/Core/AWSClientRuntime/EventStream/AWSEventStream.swift @@ -0,0 +1,29 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +/// Namespace for event stream related types +public enum AWSEventStream { + +} + +/// AWS Event Stream Errors +enum AWSEventStreamError: Error { + + /// Error thrown when decoding of event stream message fails + case decoding(String) + + /// Error thrown when message is invalid + /// This may be due to missing required headers + case invalidMessage(String) +} + +extension AsyncThrowingStream: Equatable where Element: Equatable { + public static func == (lhs: AsyncThrowingStream, rhs: AsyncThrowingStream) -> Bool { + // TODO: Remove as part of https://github.com/awslabs/aws-sdk-swift/issues/898 + return false + } +} diff --git a/Sources/Core/AWSClientRuntime/EventStream/AWSMessageDecoder.swift b/Sources/Core/AWSClientRuntime/EventStream/AWSMessageDecoder.swift new file mode 100644 index 00000000000..e484e571007 --- /dev/null +++ b/Sources/Core/AWSClientRuntime/EventStream/AWSMessageDecoder.swift @@ -0,0 +1,100 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import AwsCommonRuntimeKit +import ClientRuntime + +extension AWSEventStream { + + /// AWS implementation of `MessageDecoder` for decoding event stream messages + /// Note: This is class because struct does not allow using `self` in closure + /// and we need to use `self` to access `messageBuffer` per CRT API. + public class AWSMessageDecoder: MessageDecoder { + private var decoder: EventStreamMessageDecoder? + private var messageBuffer: [EventStream.Message] = [] + private var error: Error? + + private var decodedPayload = Data() + private var decodededHeaders: [EventStreamHeader] = [] + + private let logger = SwiftLogger(label: "AWSMessageDecoder") + + public init() { + self.decoder = EventStreamMessageDecoder( + onPayloadSegment: { payload, finalSegment in + self.logger.debug("onPayloadSegment: \(payload.count) bytes, finalSegment: \(finalSegment)") + self.decodedPayload.append(payload) + }, + onPreludeReceived: { totalLength, headersLength in + self.logger.debug("onPreludeReceived: totalLength: \(totalLength), headersLength: \(headersLength)") + + // This is beginning of a new message, so reset the state + self.decodedPayload = Data() + self.decodededHeaders = [] + }, + onHeaderReceived: { header in + self.logger.debug("onHeaderReceived: \(header.name): \(header.value)") + self.decodededHeaders.append(header) + }, + onComplete: { + self.logger.debug("onComplete") + let message = EventStream.Message(headers: self.decodededHeaders.toHeaders(), + payload: self.decodedPayload) + self.messageBuffer.append(message) + + // This could be end of the stream, hence reset the state + self.decodedPayload = Data() + self.decodededHeaders = [] + }, + onError: { code, message in + self.logger.debug("onError: \(code): \(message)") + self.error = AWSEventStreamError.decoding("\(code): \(message)") + } + ) + } + + /// Feeds data into the decoder, which may or may not result in a message. + /// - Parameter data: The data to feed into the decoder. + public func feed(data: Data) throws { + try throwIfErrorOccurred() + try decoder?.decode(data: data) + } + + /// Notifies the decoder that the stream has ended. + /// If the stream ends before a message is complete, an error will be thrown. + public func endOfStream() throws { + try throwIfErrorOccurred() + + guard decodedPayload.isEmpty && decodededHeaders.isEmpty else { + throw AWSEventStreamError.decoding("Stream ended before message was complete") + } + } + + /// Returns the next message in the decoder's buffer + /// and removes it from the buffer. + /// If the buffer is empty then this returns `nil`. + public func message() throws -> EventStream.Message? { + try throwIfErrorOccurred() + + guard !messageBuffer.isEmpty else { + return nil + } + + let message = messageBuffer.removeFirst() + return message + } + + /// Throws an error if one has occurred. + /// This should be called before any other methods to make sure + /// that the decoder is in a valid state. + private func throwIfErrorOccurred() throws { + if let error = error { + throw error + } + } + } +} diff --git a/Sources/Core/AWSClientRuntime/EventStream/AWSMessageEncoder.swift b/Sources/Core/AWSClientRuntime/EventStream/AWSMessageEncoder.swift new file mode 100644 index 00000000000..be9763fb17f --- /dev/null +++ b/Sources/Core/AWSClientRuntime/EventStream/AWSMessageEncoder.swift @@ -0,0 +1,23 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import ClientRuntime + +extension AWSEventStream { + + /// Encodes a `Message` into a `Data` object + /// to be sent over the wire. + public struct AWSMessageEncoder: MessageEncoder { + public init() {} + + /// Encodes a `Message` into a `Data` object + public func encode(message: EventStream.Message) throws -> Data { + let crtMessage = message.toCRTMessage() + return try crtMessage.getEncoded() + } + } +} diff --git a/Sources/Core/AWSClientRuntime/EventStream/AWSMessageSigner.swift b/Sources/Core/AWSClientRuntime/EventStream/AWSMessageSigner.swift new file mode 100644 index 00000000000..a0b3f52db5c --- /dev/null +++ b/Sources/Core/AWSClientRuntime/EventStream/AWSMessageSigner.swift @@ -0,0 +1,71 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import ClientRuntime + +extension AWSEventStream { + /// Signs a `Message` using the AWS SigV4 signing algorithm + public class AWSMessageSigner: MessageSigner { + let encoder: MessageEncoder + let signingConfig: () async throws -> AWSSigningConfig + let requestSignature: () -> String + + private var _previousSignature: String? + + /// Returns the previous signature used to sign a message + /// If no previous signature is available, then the request signature returned + /// which acts as previous signature for the first message + var previousSignature: String { + get { + if let signature = _previousSignature { + return signature + } + + let requestSignature = requestSignature() + _previousSignature = requestSignature + return requestSignature + } + set { + _previousSignature = newValue + } + } + + public init(encoder: MessageEncoder, + signingConfig: @escaping () async throws -> AWSSigningConfig, + requestSignature: @escaping () -> String) { + self.encoder = encoder + self.signingConfig = signingConfig + self.requestSignature = requestSignature + } + + /// Signs a `Message` using the AWS SigV4 signing algorithm + /// - Parameter message: `Message` to sign + /// - Returns: Signed `Message` with `:chunk-signature` & `:date` headers + public func sign(message: ClientRuntime.EventStream.Message) async throws -> ClientRuntime.EventStream.Message { + // encode to bytes + let encodedMessage = try encoder.encode(message: message) + let signingConfig = try await self.signingConfig() + + // sign encoded bytes + let signingResult = try await AWSSigV4Signer.signEvent(payload: encodedMessage, + previousSignature: previousSignature, + signingConfig: signingConfig) + previousSignature = signingResult.signature + return signingResult.output + } + + /// Signs an empty `Message` using the AWS SigV4 signing algorithm + /// - Returns: Signed `Message` with `:chunk-signature` & `:date` headers + public func signEmpty() async throws -> ClientRuntime.EventStream.Message { + let signingConfig = try await self.signingConfig() + let signingResult = try await AWSSigV4Signer.signEvent(payload: .init(), + previousSignature: previousSignature, + signingConfig: signingConfig) + return signingResult.output + } + } +} diff --git a/Sources/Core/AWSClientRuntime/EventStream/Header+AWS.swift b/Sources/Core/AWSClientRuntime/EventStream/Header+AWS.swift new file mode 100644 index 00000000000..20153bd5822 --- /dev/null +++ b/Sources/Core/AWSClientRuntime/EventStream/Header+AWS.swift @@ -0,0 +1,82 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import AwsCommonRuntimeKit +import Foundation +import ClientRuntime + +extension EventStream.Header { + + /// Converts ClientRuntime EventStream.Header to CRT EventStreamHeader + func toCRTHeader() -> EventStreamHeader { + EventStreamHeader(name: name, value: value.toCRTHeaderValue()) + } +} + +extension EventStream.HeaderValue { + + /// Converts ClientRuntime EventStream.HeaderValue to CRT EventStreamHeaderValue + func toCRTHeaderValue() -> EventStreamHeaderValue { + switch self { + case .bool(let value): + return .bool(value: value) + case .byte(let value): + return .byte(value: value) + case .int16(let value): + return .int16(value: value) + case .int32(let value): + return .int32(value: Int32(value)) + case .int64(let value): + return .int64(value: Int64(value)) + case .byteArray(let value): + return .byteBuf(value: value) + case .string(let value): + return .string(value: value) + case .timestamp(let value): + return .timestamp(value: value) + case .uuid(let value): + return .uuid(value: value) + } + } +} + +extension EventStreamHeader { + + /// Converts CRT EventStreamHeader to ClientRuntime EventStream.Header + func toHeader() -> EventStream.Header { + switch self.value { + case .bool(value: let value): + return .init(name: name, value: .bool(value)) + case .byte(value: let value): + return .init(name: name, value: .byte(value)) + case .int16(value: let value): + return .init(name: name, value: .int16(value)) + case .int32(value: let value): + return .init(name: name, value: .int32(value)) + case .int64(value: let value): + return .init(name: name, value: .int64(value)) + case .byteBuf(value: let value): + return .init(name: name, value: .byteArray(value)) + case .string(value: let value): + return .init(name: name, value: .string(value)) + case .timestamp(value: let value): + return .init(name: name, value: .timestamp(value)) + case .uuid(value: let value): + return .init(name: name, value: .uuid(value)) + } + } +} + +extension Array where Element == EventStreamHeader { + + /// Converts CRT EventStreamHeader array to ClientRuntime EventStream.Header array + func toHeaders() -> [EventStream.Header] { + self.map { + $0.toHeader() + } + } +} diff --git a/Sources/Core/AWSClientRuntime/EventStream/Message+AWS.swift b/Sources/Core/AWSClientRuntime/EventStream/Message+AWS.swift new file mode 100644 index 00000000000..7d6701fe0e7 --- /dev/null +++ b/Sources/Core/AWSClientRuntime/EventStream/Message+AWS.swift @@ -0,0 +1,168 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import AwsCommonRuntimeKit +import ClientRuntime + +extension EventStream { + /// The type of the `EventStream.Message` + /// It allows for the message to be decoded into the correct type. + public enum MessageType { + /// Represents an `event` message type. + /// All events include the headers + /// `:message-type`: Always `event` + /// `:event-type`: (Required) Identifies the event shape from the event stream union. + /// This is the member name from the union. + /// `:content-type`: (Optional) Identifies the content type of the event payload. + /// Example: + /// ``` + /// :message-type: event + /// :event-type: MyStruct + /// :content-type: application/json + /// ``` + case event(EventParams) + + /// Represents an `exception` message type. + /// All exceptions include the headers + /// `:message-type`: Always `exception` + /// `:exception-type`: (Required) Identifies the exception shape from the event stream union. + /// This is the member name from the union. + /// `:content-type`: (Optional) Identifies the content type of the exception payload. + /// Example: + /// ``` + /// :message-type: exception + /// :exception-type: FooException + /// :content-type: application/json + /// ``` + case exception(ExceptionParams) + + /// Represents an `error` message type. + /// Errors are like exceptions, but they are not modeled and have fixed + /// set of fields. + /// All errors include the headers + /// `:message-type`: Always `error` + /// `:error-code`: (Required) Identifies the error code. + /// `:error-message`: (Optional) Identifies the error message. + /// Example: + /// ``` + /// :message-type: error + /// :error-code: InternalServerError + /// :error-message: An internal server error occurred + /// ``` + case error(ErrorParams) + + /// Represents an unknown message type. + /// This is used when the message type is not recognized. + case unknown(messageType: String) + + /// Represents associated type parameter for `event` message type. + public struct EventParams { + /// Event type name defined in the event stream union. + /// eg. `MyStruct` + public let eventType: String + + /// Content type of the event payload. + /// This can be used to deserialize the payload. + /// eg. `application/json` + public let contentType: String? + } + + /// Represents associated type parameter for `exception` message type. + public struct ExceptionParams { + /// Exception type name defined in the event stream union. + /// eg. `FooException` + public let exceptionType: String + + /// Content type of the exception payload. + /// This can be used to deserialize the payload. + /// eg. `application/json` + public let contentType: String? + } + + /// Represents associated type parameter for `error` message type. + public struct ErrorParams { + /// Error code which identifies the error. + /// This may not be defined in the service model. + /// eg. `InternalServerError` + public let errorCode: String + + /// Human readable error message. + /// eg. `An internal server error occurred` + public let message: String? + } + } +} + +extension EventStream.Message { + /// Parses the protocol level headers into a `MessageType` + public func type() throws -> EventStream.MessageType { + let headersByName = Dictionary(grouping: headers, by: \.name) + // look for messageType header + guard let messageTypeHeader = headersByName[":message-type"]?.first, + case let .string(messageType) = messageTypeHeader.value else { + throw AWSEventStreamError.invalidMessage("Invalid `event` message: `:message-type` header is missing") + } + + switch messageType { + case "event": + guard let eventTypeHeader = headersByName[":event-type"]?.first, + case let .string(eventType) = eventTypeHeader.value else { + throw AWSEventStreamError.invalidMessage("Invalid `event` message: `:event-type` header is missing") + } + + let contentType: String? + if let contentTypeHeader = headersByName[":content-type"]?.first, + case let .string(ct) = contentTypeHeader.value { + contentType = ct + } else { + contentType = nil + } + return .event(.init(eventType: eventType, contentType: contentType)) + case "exception": + guard let exceptionTypeHeader = headersByName[":exception-type"]?.first, + case let .string(exceptionType) = exceptionTypeHeader.value else { + throw AWSEventStreamError.invalidMessage(""" + Invalid `exception` message: `:exception-type` header is missing + """) + } + + let contentType: String? + if let contentTypeHeader = headersByName[":content-type"]?.first, + case let .string(ct) = contentTypeHeader.value { + contentType = ct + } else { + contentType = nil + } + return .exception(.init(exceptionType: exceptionType, contentType: contentType)) + case "error": + guard let errorCodeHeader = headersByName[":error-code"]?.first, + case let .string(errorCode) = errorCodeHeader.value else { + throw AWSEventStreamError.invalidMessage("Invalid `error` message: `:error-code` header is missing") + } + + let message: String? + if let messageHeader = headersByName[":error-message"]?.first, + case let .string(msg) = messageHeader.value { + message = msg + } else { + message = nil + } + return .error(.init(errorCode: errorCode, message: message)) + default: + return .unknown(messageType: messageType) + } + } +} + +extension ClientRuntime.EventStream.Message { + func toCRTMessage() -> EventStreamMessage { + let crtHeaders = headers.map { header in + header.toCRTHeader() + } + return EventStreamMessage(headers: crtHeaders, payload: payload) + } +} diff --git a/Sources/Core/AWSClientRuntime/HttpContextBuilder+Extension.swift b/Sources/Core/AWSClientRuntime/HttpContextBuilder+Extension.swift index e1450b3cabe..64fcadf24d9 100644 --- a/Sources/Core/AWSClientRuntime/HttpContextBuilder+Extension.swift +++ b/Sources/Core/AWSClientRuntime/HttpContextBuilder+Extension.swift @@ -13,60 +13,120 @@ extension HttpContext { public static let signingName = AttributeKey(name: "SigningName") public static let signingRegion = AttributeKey(name: "SigningRegion") public static let signingAlgorithm = AttributeKey(name: "SigningAlgorithm") + public static let requestSignature = AttributeKey(name: "AWS_HTTP_SIGNATURE") func getCredentialsProvider() -> CredentialsProviding? { return attributes.get(key: HttpContext.credentialsProvider) } func getRegion() -> String? { - return attributes.get(key: HttpContext.region) + return attributes.get(key: Self.region) } func getSigningName() -> String? { - return attributes.get(key: HttpContext.signingName) + return attributes.get(key: Self.signingName) } func getSigningRegion() -> String? { - return attributes.get(key: HttpContext.signingRegion) + return attributes.get(key: Self.signingRegion) } func getSigningAlgorithm() -> AWSSigningAlgorithm? { - guard let algorithmRawValue = attributes.get(key: HttpContext.signingAlgorithm) else { + guard let algorithmRawValue = attributes.get(key: Self.signingAlgorithm) else { return nil } return AWSSigningAlgorithm(rawValue: algorithmRawValue) } + + /// Returns the request signature for the event stream operation + /// - Returns: `String` request signature + public func getRequestSignature() -> String { + return attributes.get(key: Self.requestSignature)! + } + + /// Returns the signing config for the event stream message + /// - Returns: `AWSSigningConfig` for the event stream message + public func makeEventStreamSigningConfig(date: Date = Date().withoutFractionalSeconds()) + async throws -> AWSSigningConfig { + let credentials = try await getCredentialsProvider()?.getCredentials() + guard let service = getSigningName() else { + fatalError("Signing name must not be nil, it must be set by the middleware during the request") + } + + guard let region = getSigningRegion() ?? getRegion() else { + fatalError("Signing region must not be nil, it must be set by the middleware during the request") + } + + // default flags + let flags = SigningFlags(useDoubleURIEncode: false, + shouldNormalizeURIPath: false, + omitSessionToken: false) + + return AWSSigningConfig(credentials: credentials, + signedBodyValue: .empty, // there is no body, only payload needs to be signed + flags: flags, + date: date, + service: service, + region: region, + signatureType: .requestEvent, + signingAlgorithm: .sigv4) + } + + /// Setups context with encoder, decoder and signer for bidirectional streaming + /// and sets the bidirectional streaming flag + public func setupBidirectionalStreaming() throws { + // setup client to server + let messageEncoder = AWSClientRuntime.AWSEventStream.AWSMessageEncoder() + let messageSigner = AWSClientRuntime.AWSEventStream.AWSMessageSigner(encoder: messageEncoder) { + try await self.makeEventStreamSigningConfig() + } requestSignature: { + self.getRequestSignature() + } + attributes.set(key: HttpContext.messageEncoder, value: messageEncoder) + attributes.set(key: HttpContext.messageSigner, value: messageSigner) + + // enable the flag + attributes.set(key: HttpContext.bidirectionalStreaming, value: true) + } } extension HttpContextBuilder { @discardableResult public func withRegion(value: String?) -> HttpContextBuilder { - self.attributes.set(key: AttributeKey(name: "Region"), value: value) + self.attributes.set(key: HttpContext.region, value: value) return self } @discardableResult public func withCredentialsProvider(value: CredentialsProviding) -> HttpContextBuilder { - self.attributes.set(key: AttributeKey(name: "CredentialsProvider"), value: value) + self.attributes.set(key: HttpContext.credentialsProvider, value: value) return self } @discardableResult public func withSigningName(value: String) -> HttpContextBuilder { - self.attributes.set(key: AttributeKey(name: "SigningName"), value: value) + self.attributes.set(key: HttpContext.signingName, value: value) return self } @discardableResult public func withSigningRegion(value: String?) -> HttpContextBuilder { - self.attributes.set(key: AttributeKey(name: "SigningRegion"), value: value) + self.attributes.set(key: HttpContext.signingRegion, value: value) return self } @discardableResult public func withSigningAlgorithm(value: AWSSigningAlgorithm?) -> HttpContextBuilder { - self.attributes.set(key: AttributeKey(name: "SigningAlgorithm"), value: value?.rawValue) + self.attributes.set(key: HttpContext.signingAlgorithm, value: value?.rawValue) + return self + } + + /// Sets the request signature for the event stream operation + /// - Parameter value: `String` request signature + @discardableResult + public func withRequestSignature(value: String) -> HttpContextBuilder { + self.attributes.set(key: HttpContext.requestSignature, value: value) return self } } diff --git a/Sources/Core/AWSClientRuntime/Middlewares/Sha256TreeHashMiddleware.swift b/Sources/Core/AWSClientRuntime/Middlewares/Sha256TreeHashMiddleware.swift index 092e2f7772b..72262fadd68 100644 --- a/Sources/Core/AWSClientRuntime/Middlewares/Sha256TreeHashMiddleware.swift +++ b/Sources/Core/AWSClientRuntime/Middlewares/Sha256TreeHashMiddleware.swift @@ -34,16 +34,31 @@ public struct Sha256TreeHashMiddleware 0 else { + let streamBytes: Data? + let currentPosition = stream.position + if stream.isSeekable { + streamBytes = try stream.readToEnd() + try stream.seek(toOffset: currentPosition) + } else { + // If the stream is not seekable, we need to cache the stream in memory + // so we can compute the hash and still be able to send the stream to the service. + // This is not ideal, but it is the best we can do. + let cachingStream = CachingStream(base: stream) + streamBytes = try cachingStream.readToEnd() + try cachingStream.seek(toOffset: currentPosition) + input.withBody(.stream(cachingStream)) + } + guard let streamBytes = streamBytes, !streamBytes.isEmpty else { return try await next.handle(context: context, input: input) } - let (linearHash, treeHash) = try computeHashes(data: streamBytes.getData()) + let (linearHash, treeHash) = try computeHashes(data: streamBytes) if let treeHash = treeHash, let linearHash = linearHash { input.withHeader(name: X_AMZ_SHA256_TREE_HASH_HEADER_NAME, value: treeHash) input.withHeader(name: X_AMZ_CONTENT_SHA256_HEADER_NAME, value: linearHash) } - case .empty, .none: + case .empty: + break + case .none: break } diff --git a/Sources/Core/AWSClientRuntime/Middlewares/SigV4Middleware.swift b/Sources/Core/AWSClientRuntime/Middlewares/SigV4Middleware.swift index 65d56f2342f..2bd4cf79748 100644 --- a/Sources/Core/AWSClientRuntime/Middlewares/SigV4Middleware.swift +++ b/Sources/Core/AWSClientRuntime/Middlewares/SigV4Middleware.swift @@ -31,7 +31,12 @@ public struct SigV4Middleware.client( @@ -75,6 +80,9 @@ public struct SigV4Middleware { + sequence(state: startIndex) { startIndex in + // bail if we've reached the end of the string + guard startIndex < self.endIndex else { return nil } + + // get the next two characters + let endIndex = self.index(startIndex, offsetBy: 2, limitedBy: self.endIndex) ?? self.endIndex + defer { startIndex = endIndex } + + // convert the characters to a UInt8 + return UInt8(self[startIndex.. SigningResult { + let signature = try await Signer.signEvent(event: payload, + previousSignature: previousSignature, + config: try signingConfig.toCRTType()) + let binarySignature = signature.hexaData + + let message = EventStream.Message(headers: [ .init(name: ":date", + value: .timestamp(signingConfig.date)), + .init(name: ":chunk-signature", + value: .byteArray(binarySignature))], + payload: payload) + + return SigningResult(output: message, signature: signature) + } + public static func sigV4SignedRequest( requestBuilder: SdkHttpRequestBuilder, signingConfig: AWSSigningConfig @@ -75,3 +99,8 @@ public class AWSSigV4Signer { } } } + +public struct SigningResult { + public let output: T + public let signature: String +} diff --git a/Sources/Core/AWSClientRuntime/Signing/AWSSignatureType.swift b/Sources/Core/AWSClientRuntime/Signing/AWSSignatureType.swift index 9bfd1255b0e..54ed4e5039b 100644 --- a/Sources/Core/AWSClientRuntime/Signing/AWSSignatureType.swift +++ b/Sources/Core/AWSClientRuntime/Signing/AWSSignatureType.swift @@ -12,6 +12,7 @@ public enum AWSSignatureType { case requestQueryParams case requestChunk case requestTrailingHeaders + case requestEvent } extension AWSSignatureType { @@ -21,6 +22,7 @@ extension AWSSignatureType { case .requestHeaders: return .requestHeaders case .requestQueryParams: return .requestQueryParams case .requestTrailingHeaders: return .requestTrailingHeaders + case .requestEvent: return .requestEvent } } } diff --git a/Sources/Services/AWSACM/ACMClient.swift b/Sources/Services/AWSACM/ACMClient.swift index ea4a23ecfc6..229ddd35018 100644 --- a/Sources/Services/AWSACM/ACMClient.swift +++ b/Sources/Services/AWSACM/ACMClient.swift @@ -208,6 +208,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +459,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -469,7 +476,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -489,6 +496,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -505,7 +513,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -525,6 +533,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -541,7 +550,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -561,6 +570,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -577,7 +587,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -597,6 +607,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -613,7 +624,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -633,6 +644,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "renewCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -649,7 +661,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -669,6 +681,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "requestCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -685,7 +698,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -705,6 +718,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resendValidationEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -721,7 +735,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -741,6 +755,7 @@ extension ACMClient: ACMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCertificateOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -757,7 +772,7 @@ extension ACMClient: ACMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSACM/models/Models.swift b/Sources/Services/AWSACM/models/Models.swift index 42c1ee71206..a57afbc006a 100644 --- a/Sources/Services/AWSACM/models/Models.swift +++ b/Sources/Services/AWSACM/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have access required to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -908,9 +907,8 @@ extension ACMClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -924,7 +922,7 @@ extension ConflictException { } /// You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1135,9 +1133,8 @@ public enum DescribeCertificateOutputError: Swift.Error, Swift.Equatable { extension DescribeCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate } else { @@ -1504,9 +1501,8 @@ extension ExportCertificateOutputResponse: Swift.CustomDebugStringConvertible { extension ExportCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate self.certificateChain = output.certificateChain @@ -1910,9 +1906,8 @@ public enum GetAccountConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetAccountConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expiryEvents = output.expiryEvents } else { @@ -2025,9 +2020,8 @@ public enum GetCertificateOutputError: Swift.Error, Swift.Equatable { extension GetCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate self.certificateChain = output.certificateChain @@ -2224,9 +2218,8 @@ public enum ImportCertificateOutputError: Swift.Error, Swift.Equatable { extension ImportCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn } else { @@ -2265,9 +2258,8 @@ extension ImportCertificateOutputResponseBody: Swift.Decodable { extension InvalidArgsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2281,7 +2273,7 @@ extension InvalidArgsException { } /// One or more of of request parameters specified is not valid. -public struct InvalidArgsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2317,9 +2309,8 @@ extension InvalidArgsExceptionBody: Swift.Decodable { extension InvalidArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2333,7 +2324,7 @@ extension InvalidArnException { } /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. -public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2369,9 +2360,8 @@ extension InvalidArnExceptionBody: Swift.Decodable { extension InvalidDomainValidationOptionsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDomainValidationOptionsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2385,7 +2375,7 @@ extension InvalidDomainValidationOptionsException { } /// One or more values in the [DomainValidationOption] structure is incorrect. -public struct InvalidDomainValidationOptionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDomainValidationOptionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2421,9 +2411,8 @@ extension InvalidDomainValidationOptionsExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2437,7 +2426,7 @@ extension InvalidParameterException { } /// An input parameter was invalid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2473,9 +2462,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2489,7 +2477,7 @@ extension InvalidStateException { } /// Processing has reached an invalid state. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2525,9 +2513,8 @@ extension InvalidStateExceptionBody: Swift.Decodable { extension InvalidTagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2541,7 +2528,7 @@ extension InvalidTagException { } /// One or both of the values that make up the key-value pair is not valid. For example, you cannot specify a tag value that begins with aws:. -public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2718,9 +2705,8 @@ extension ACMClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2734,7 +2720,7 @@ extension LimitExceededException { } /// An ACM quota has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2913,9 +2899,8 @@ public enum ListCertificatesOutputError: Swift.Error, Swift.Equatable { extension ListCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateSummaryList = output.certificateSummaryList self.nextToken = output.nextToken @@ -3045,9 +3030,8 @@ public enum ListTagsForCertificateOutputError: Swift.Error, Swift.Equatable { extension ListTagsForCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3789,9 +3773,8 @@ public enum RequestCertificateOutputError: Swift.Error, Swift.Equatable { extension RequestCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn } else { @@ -3830,9 +3813,8 @@ extension RequestCertificateOutputResponseBody: Swift.Decodable { extension RequestInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3846,7 +3828,7 @@ extension RequestInProgressException { } /// The certificate request is in process and the certificate in your account has not yet been issued. -public struct RequestInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4004,9 +3986,8 @@ public struct ResendValidationEmailOutputResponse: Swift.Equatable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4020,7 +4001,7 @@ extension ResourceInUseException { } /// The certificate is in use by another Amazon Web Services service in the caller's account. Remove the association and try again. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4056,9 +4037,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4072,7 +4052,7 @@ extension ResourceNotFoundException { } /// The specified certificate cannot be found in the caller's account or the caller's account cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4329,9 +4309,8 @@ extension ACMClientTypes { extension TagPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4345,7 +4324,7 @@ extension TagPolicyException { } /// A specified tag did not comply with an existing tag policy and was rejected. -public struct TagPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4381,9 +4360,8 @@ extension TagPolicyExceptionBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4397,7 +4375,7 @@ extension ThrottlingException { } /// The request was denied because it exceeded a quota. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4433,9 +4411,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4449,7 +4426,7 @@ extension TooManyTagsException { } /// The request contains too many tags. Try the request again with fewer tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4584,9 +4561,8 @@ public struct UpdateCertificateOptionsOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4600,7 +4576,7 @@ extension ValidationException { } /// The supplied input failed to satisfy constraints of an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSACMPCA/ACMPCAClient.swift b/Sources/Services/AWSACMPCA/ACMPCAClient.swift index 8a48247e727..2d01e442b9e 100644 --- a/Sources/Services/AWSACMPCA/ACMPCAClient.swift +++ b/Sources/Services/AWSACMPCA/ACMPCAClient.swift @@ -208,6 +208,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCertificateAuthorityAuditReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -302,7 +305,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -322,6 +325,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -338,7 +342,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -364,6 +368,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -380,7 +385,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -408,6 +413,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +430,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -458,6 +464,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -474,7 +481,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -494,6 +501,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificateAuthorityAuditReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -510,7 +518,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -530,6 +538,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -546,7 +555,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -566,6 +575,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCertificateAuthorityCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +592,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +612,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCertificateAuthorityCsr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -618,7 +629,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -646,6 +657,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -662,7 +674,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -758,6 +770,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importCertificateAuthorityCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -774,7 +787,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -794,6 +807,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "issueCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -810,7 +824,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -830,6 +844,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCertificateAuthorities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -846,7 +861,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +887,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +904,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +924,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +941,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -952,6 +969,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -968,7 +986,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -988,6 +1006,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1004,7 +1023,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1024,6 +1043,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1040,7 +1060,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1060,6 +1080,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1076,7 +1097,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1096,6 +1117,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1112,7 +1134,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1132,6 +1154,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "acm-pca") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1148,7 +1171,7 @@ extension ACMPCAClient: ACMPCAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSACMPCA/models/Models.swift b/Sources/Services/AWSACMPCA/models/Models.swift index a8077ca087e..c65aa2b0960 100644 --- a/Sources/Services/AWSACMPCA/models/Models.swift +++ b/Sources/Services/AWSACMPCA/models/Models.swift @@ -819,9 +819,8 @@ extension ACMPCAClientTypes { extension CertificateMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -835,7 +834,7 @@ extension CertificateMismatchException { } /// The certificate authority certificate you are importing does not comply with conditions specified in the certificate that signed it. -public struct CertificateMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -871,9 +870,8 @@ extension CertificateMismatchExceptionBody: Swift.Decodable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -887,7 +885,7 @@ extension ConcurrentModificationException { } /// A previous update to your private CA is still ongoing. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1029,9 +1027,8 @@ public enum CreateCertificateAuthorityAuditReportOutputError: Swift.Error, Swift extension CreateCertificateAuthorityAuditReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCertificateAuthorityAuditReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auditReportId = output.auditReportId self.s3Key = output.s3Key @@ -1259,9 +1256,8 @@ public enum CreateCertificateAuthorityOutputError: Swift.Error, Swift.Equatable extension CreateCertificateAuthorityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCertificateAuthorityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateAuthorityArn = output.certificateAuthorityArn } else { @@ -2105,9 +2101,8 @@ public enum DescribeCertificateAuthorityAuditReportOutputError: Swift.Error, Swi extension DescribeCertificateAuthorityAuditReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificateAuthorityAuditReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auditReportStatus = output.auditReportStatus self.createdAt = output.createdAt @@ -2248,9 +2243,8 @@ public enum DescribeCertificateAuthorityOutputError: Swift.Error, Swift.Equatabl extension DescribeCertificateAuthorityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificateAuthorityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateAuthority = output.certificateAuthority } else { @@ -2770,9 +2764,8 @@ public enum GetCertificateAuthorityCertificateOutputError: Swift.Error, Swift.Eq extension GetCertificateAuthorityCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCertificateAuthorityCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate self.certificateChain = output.certificateChain @@ -2915,9 +2908,8 @@ public enum GetCertificateAuthorityCsrOutputError: Swift.Error, Swift.Equatable extension GetCertificateAuthorityCsrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCertificateAuthorityCsrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.csr = output.csr } else { @@ -3063,9 +3055,8 @@ public enum GetCertificateOutputError: Swift.Error, Swift.Equatable { extension GetCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate self.certificateChain = output.certificateChain @@ -3190,9 +3181,8 @@ public enum GetPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -3352,9 +3342,8 @@ public struct ImportCertificateAuthorityCertificateOutputResponse: Swift.Equatab extension InvalidArgsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3368,7 +3357,7 @@ extension InvalidArgsException { } /// One or more of the specified arguments was not valid. -public struct InvalidArgsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3404,9 +3393,8 @@ extension InvalidArgsExceptionBody: Swift.Decodable { extension InvalidArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3420,7 +3408,7 @@ extension InvalidArnException { } /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. -public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3456,9 +3444,8 @@ extension InvalidArnExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3472,7 +3459,7 @@ extension InvalidNextTokenException { } /// The token specified in the NextToken argument is not valid. Use the token returned from your previous call to [ListCertificateAuthorities](https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html). -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3508,9 +3495,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3524,7 +3510,7 @@ extension InvalidPolicyException { } /// The resource policy is invalid or is missing a required statement. For general information about IAM policy and statement structure, see [Overview of JSON Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json). -public struct InvalidPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3560,9 +3546,8 @@ extension InvalidPolicyExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3576,7 +3561,7 @@ extension InvalidRequestException { } /// The request action cannot be performed or is prohibited. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3612,9 +3597,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3628,7 +3612,7 @@ extension InvalidStateException { } /// The state of the private CA does not allow this action to occur. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3664,9 +3648,8 @@ extension InvalidStateExceptionBody: Swift.Decodable { extension InvalidTagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3680,7 +3663,7 @@ extension InvalidTagException { } /// The tag associated with the CA is not valid. The invalid argument is contained in the message field. -public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3883,9 +3866,8 @@ public enum IssueCertificateOutputError: Swift.Error, Swift.Equatable { extension IssueCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IssueCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn } else { @@ -4109,9 +4091,8 @@ extension ACMPCAClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4125,7 +4106,7 @@ extension LimitExceededException { } /// An Amazon Web Services Private CA quota has been exceeded. See the exception message returned to determine the quota that was exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4254,9 +4235,8 @@ public enum ListCertificateAuthoritiesOutputError: Swift.Error, Swift.Equatable extension ListCertificateAuthoritiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCertificateAuthoritiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateAuthorities = output.certificateAuthorities self.nextToken = output.nextToken @@ -4416,9 +4396,8 @@ public enum ListPermissionsOutputError: Swift.Error, Swift.Equatable { extension ListPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -4574,9 +4553,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -4634,9 +4612,8 @@ extension ListTagsOutputResponseBody: Swift.Decodable { extension LockoutPreventedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LockoutPreventedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4650,7 +4627,7 @@ extension LockoutPreventedException { } /// The current action was prevented because it would lock the caller out from performing subsequent actions. Verify that the specified parameters would not result in the caller being denied access to the resource. -public struct LockoutPreventedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LockoutPreventedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4686,9 +4663,8 @@ extension LockoutPreventedExceptionBody: Swift.Decodable { extension MalformedCSRException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedCSRExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4702,7 +4678,7 @@ extension MalformedCSRException { } /// The certificate signing request is invalid. -public struct MalformedCSRException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedCSRException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4738,9 +4714,8 @@ extension MalformedCSRExceptionBody: Swift.Decodable { extension MalformedCertificateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedCertificateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4754,7 +4729,7 @@ extension MalformedCertificateException { } /// One or more fields in the certificate are invalid. -public struct MalformedCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4980,9 +4955,8 @@ extension ACMPCAClientTypes { extension PermissionAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PermissionAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4996,7 +4970,7 @@ extension PermissionAlreadyExistsException { } /// The designated permission has already been given to the user. -public struct PermissionAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PermissionAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5307,9 +5281,8 @@ extension ACMPCAClientTypes { extension RequestAlreadyProcessedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestAlreadyProcessedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5323,7 +5296,7 @@ extension RequestAlreadyProcessedException { } /// Your request has already been completed. -public struct RequestAlreadyProcessedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestAlreadyProcessedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5359,9 +5332,8 @@ extension RequestAlreadyProcessedExceptionBody: Swift.Decodable { extension RequestFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5375,7 +5347,7 @@ extension RequestFailedException { } /// The request has failed for an unspecified reason. -public struct RequestFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5411,9 +5383,8 @@ extension RequestFailedExceptionBody: Swift.Decodable { extension RequestInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5427,7 +5398,7 @@ extension RequestInProgressException { } /// Your request is already in progress. -public struct RequestInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5463,9 +5434,8 @@ extension RequestInProgressExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5479,7 +5449,7 @@ extension ResourceNotFoundException { } /// A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6083,9 +6053,8 @@ public struct TagCertificateAuthorityOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6099,7 +6068,7 @@ extension TooManyTagsException { } /// You can associate up to 50 tags with a private CA. Exception information is contained in the exception message field. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAPIGateway/APIGatewayClient.swift b/Sources/Services/AWSAPIGateway/APIGatewayClient.swift index 16db5357e0e..218261c6cd1 100644 --- a/Sources/Services/AWSAPIGateway/APIGatewayClient.swift +++ b/Sources/Services/AWSAPIGateway/APIGatewayClient.swift @@ -208,6 +208,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBasePathMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDocumentationPart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDocumentationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRequestValidator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRestApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUsagePlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUsagePlanKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -761,7 +777,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -781,6 +797,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -794,7 +811,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -814,6 +831,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBasePathMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -827,7 +845,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -847,6 +865,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClientCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -860,7 +879,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -880,6 +899,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -893,7 +913,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -913,6 +933,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDocumentationPart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -926,7 +947,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -946,6 +967,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDocumentationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +981,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +1001,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -992,7 +1015,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1012,6 +1035,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGatewayResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1025,7 +1049,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1069,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1058,7 +1083,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1078,6 +1103,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntegrationResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1091,7 +1117,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1111,6 +1137,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMethod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1151,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1171,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMethodResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1185,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1177,6 +1205,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1190,7 +1219,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1210,6 +1239,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRequestValidator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1223,7 +1253,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1243,6 +1273,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1256,7 +1287,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1276,6 +1307,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRestApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1289,7 +1321,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1309,6 +1341,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1322,7 +1355,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1342,6 +1375,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUsagePlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1355,7 +1389,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1375,6 +1409,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUsagePlanKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1388,7 +1423,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1408,6 +1443,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1421,7 +1457,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1441,6 +1477,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "flushStageAuthorizersCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1454,7 +1491,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1474,6 +1511,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "flushStageCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1487,7 +1525,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1507,6 +1545,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateClientCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1523,7 +1562,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1543,6 +1582,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1596,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1616,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1590,7 +1631,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1610,6 +1651,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApiKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1624,7 +1666,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1644,6 +1686,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1657,7 +1700,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1677,6 +1720,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAuthorizers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1691,7 +1735,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1711,6 +1755,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBasePathMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1724,7 +1769,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1744,6 +1789,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBasePathMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1758,7 +1804,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1778,6 +1824,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClientCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1791,7 +1838,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1811,6 +1858,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClientCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1825,7 +1873,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1845,6 +1893,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1859,7 +1908,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1879,6 +1928,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1893,7 +1943,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1913,6 +1963,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocumentationPart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1926,7 +1977,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1946,6 +1997,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocumentationParts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1960,7 +2012,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1980,6 +2032,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocumentationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1993,7 +2046,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2013,6 +2066,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocumentationVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2027,7 +2081,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2047,6 +2101,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2060,7 +2115,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2135,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2094,7 +2150,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2114,6 +2170,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2129,7 +2186,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2149,6 +2206,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGatewayResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2162,7 +2220,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2182,6 +2240,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGatewayResponses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2196,7 +2255,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2216,6 +2275,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2229,7 +2289,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2249,6 +2309,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntegrationResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2262,7 +2323,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2282,6 +2343,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMethod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2295,7 +2357,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2315,6 +2377,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMethodResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2328,7 +2391,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2348,6 +2411,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2362,7 +2426,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2382,6 +2446,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModelTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2395,7 +2460,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2415,6 +2480,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2429,7 +2495,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2449,6 +2515,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRequestValidator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2462,7 +2529,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2482,6 +2549,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRequestValidators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2496,7 +2564,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2516,6 +2584,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2530,7 +2599,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2550,6 +2619,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2564,7 +2634,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2584,6 +2654,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRestApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2597,7 +2668,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2617,6 +2688,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRestApis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2631,7 +2703,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2651,6 +2723,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSdk") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2665,7 +2738,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2685,6 +2758,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSdkType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2698,7 +2772,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2718,6 +2792,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSdkTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2732,7 +2807,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2752,6 +2827,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2765,7 +2841,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2785,6 +2861,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2799,7 +2876,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2819,6 +2896,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2833,7 +2911,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2853,6 +2931,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2867,7 +2946,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2887,6 +2966,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsagePlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2900,7 +2980,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2920,6 +3000,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsagePlanKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2933,7 +3014,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2953,6 +3034,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsagePlanKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2967,7 +3049,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2987,6 +3069,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsagePlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3001,7 +3084,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3021,6 +3104,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVpcLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3034,7 +3118,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3054,6 +3138,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVpcLinks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3068,7 +3153,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3088,6 +3173,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importApiKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3105,7 +3191,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3125,6 +3211,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importDocumentationParts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3142,7 +3229,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3162,6 +3249,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importRestApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3179,7 +3267,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3199,6 +3287,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putGatewayResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3215,7 +3304,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3235,6 +3324,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3251,7 +3341,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3271,6 +3361,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putIntegrationResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3287,7 +3378,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3307,6 +3398,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMethod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3323,7 +3415,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3343,6 +3435,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMethodResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3359,7 +3452,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3379,6 +3472,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRestApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3396,7 +3490,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3416,6 +3510,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3432,7 +3527,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3452,6 +3547,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testInvokeAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3468,7 +3564,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3488,6 +3584,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testInvokeMethod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3504,7 +3601,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3524,6 +3621,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3538,7 +3636,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3558,6 +3656,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3574,7 +3673,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3594,6 +3693,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3610,7 +3710,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3630,6 +3730,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3646,7 +3747,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3666,6 +3767,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBasePathMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3682,7 +3784,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3702,6 +3804,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClientCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3718,7 +3821,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3738,6 +3841,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3754,7 +3858,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3774,6 +3878,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDocumentationPart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3790,7 +3895,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3810,6 +3915,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDocumentationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3826,7 +3932,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3846,6 +3952,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3862,7 +3969,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3882,6 +3989,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewayResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3898,7 +4006,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3918,6 +4026,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3934,7 +4043,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3954,6 +4063,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIntegrationResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3970,7 +4080,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3990,6 +4100,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMethod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4006,7 +4117,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4026,6 +4137,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMethodResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4042,7 +4154,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4062,6 +4174,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4078,7 +4191,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4098,6 +4211,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRequestValidator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4114,7 +4228,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4134,6 +4248,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4150,7 +4265,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4170,6 +4285,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRestApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4186,7 +4302,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4206,6 +4322,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4222,7 +4339,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4242,6 +4359,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4258,7 +4376,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4278,6 +4396,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUsagePlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4294,7 +4413,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4314,6 +4433,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVpcLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4330,7 +4450,7 @@ extension APIGatewayClient: APIGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAPIGateway/models/Models.swift b/Sources/Services/AWSAPIGateway/models/Models.swift index 4b425d6d24d..e21935ed293 100644 --- a/Sources/Services/AWSAPIGateway/models/Models.swift +++ b/Sources/Services/AWSAPIGateway/models/Models.swift @@ -499,9 +499,8 @@ extension APIGatewayClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -515,7 +514,7 @@ extension BadRequestException { } /// The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -873,9 +872,8 @@ extension APIGatewayClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -889,7 +887,7 @@ extension ConflictException { } /// The request configuration has conflicts. For details, see the accompanying error message. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1177,9 +1175,8 @@ public enum CreateApiKeyOutputError: Swift.Error, Swift.Equatable { extension CreateApiKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApiKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.customerId = output.customerId @@ -1525,9 +1522,8 @@ public enum CreateAuthorizerOutputError: Swift.Error, Swift.Equatable { extension CreateAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authType = output.authType self.authorizerCredentials = output.authorizerCredentials @@ -1779,9 +1775,8 @@ public enum CreateBasePathMappingOutputError: Swift.Error, Swift.Equatable { extension CreateBasePathMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBasePathMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.basePath = output.basePath self.restApiId = output.restApiId @@ -2027,9 +2022,8 @@ public enum CreateDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiSummary = output.apiSummary self.createdDate = output.createdDate @@ -2217,9 +2211,8 @@ public enum CreateDocumentationPartOutputError: Swift.Error, Swift.Equatable { extension CreateDocumentationPartOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDocumentationPartOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.location = output.location @@ -2392,9 +2385,8 @@ public enum CreateDocumentationVersionOutputError: Swift.Error, Swift.Equatable extension CreateDocumentationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDocumentationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.description = output.description @@ -2689,9 +2681,8 @@ public enum CreateDomainNameOutputError: Swift.Error, Swift.Equatable { extension CreateDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn self.certificateName = output.certificateName @@ -3026,9 +3017,8 @@ public enum CreateModelOutputError: Swift.Error, Swift.Equatable { extension CreateModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentType = output.contentType self.description = output.description @@ -3220,9 +3210,8 @@ public enum CreateRequestValidatorOutputError: Swift.Error, Swift.Equatable { extension CreateRequestValidatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRequestValidatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -3389,9 +3378,8 @@ public enum CreateResourceOutputError: Swift.Error, Swift.Equatable { extension CreateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.parentId = output.parentId @@ -3703,9 +3691,8 @@ public enum CreateRestApiOutputError: Swift.Error, Swift.Equatable { extension CreateRestApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRestApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeySource = output.apiKeySource self.binaryMediaTypes = output.binaryMediaTypes @@ -4114,9 +4101,8 @@ public enum CreateStageOutputError: Swift.Error, Swift.Equatable { extension CreateStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessLogSettings = output.accessLogSettings self.cacheClusterEnabled = output.cacheClusterEnabled @@ -4578,9 +4564,8 @@ public enum CreateUsagePlanKeyOutputError: Swift.Error, Swift.Equatable { extension CreateUsagePlanKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUsagePlanKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -4682,9 +4667,8 @@ public enum CreateUsagePlanOutputError: Swift.Error, Swift.Equatable { extension CreateUsagePlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUsagePlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiStages = output.apiStages self.description = output.description @@ -4952,9 +4936,8 @@ public enum CreateVpcLinkOutputError: Swift.Error, Swift.Equatable { extension CreateVpcLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.id = output.id @@ -7963,9 +7946,8 @@ public enum GenerateClientCertificateOutputError: Swift.Error, Swift.Equatable { extension GenerateClientCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateClientCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientCertificateId = output.clientCertificateId self.createdDate = output.createdDate @@ -8113,9 +8095,8 @@ public enum GetAccountOutputError: Swift.Error, Swift.Equatable { extension GetAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeyVersion = output.apiKeyVersion self.cloudwatchRoleArn = output.cloudwatchRoleArn @@ -8271,9 +8252,8 @@ public enum GetApiKeyOutputError: Swift.Error, Swift.Equatable { extension GetApiKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApiKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.customerId = output.customerId @@ -8522,9 +8502,8 @@ public enum GetApiKeysOutputError: Swift.Error, Swift.Equatable { extension GetApiKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApiKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.warnings = output.warnings @@ -8665,9 +8644,8 @@ public enum GetAuthorizerOutputError: Swift.Error, Swift.Equatable { extension GetAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authType = output.authType self.authorizerCredentials = output.authorizerCredentials @@ -8891,9 +8869,8 @@ public enum GetAuthorizersOutputError: Swift.Error, Swift.Equatable { extension GetAuthorizersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAuthorizersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -9015,9 +8992,8 @@ public enum GetBasePathMappingOutputError: Swift.Error, Swift.Equatable { extension GetBasePathMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBasePathMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.basePath = output.basePath self.restApiId = output.restApiId @@ -9162,9 +9138,8 @@ public enum GetBasePathMappingsOutputError: Swift.Error, Swift.Equatable { extension GetBasePathMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBasePathMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -9278,9 +9253,8 @@ public enum GetClientCertificateOutputError: Swift.Error, Swift.Equatable { extension GetClientCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClientCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientCertificateId = output.clientCertificateId self.createdDate = output.createdDate @@ -9456,9 +9430,8 @@ public enum GetClientCertificatesOutputError: Swift.Error, Swift.Equatable { extension GetClientCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClientCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -9601,9 +9574,8 @@ public enum GetDeploymentOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiSummary = output.apiSummary self.createdDate = output.createdDate @@ -9776,9 +9748,8 @@ public enum GetDeploymentsOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -9900,9 +9871,8 @@ public enum GetDocumentationPartOutputError: Swift.Error, Swift.Equatable { extension GetDocumentationPartOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentationPartOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.location = output.location @@ -10079,9 +10049,8 @@ public enum GetDocumentationPartsOutputError: Swift.Error, Swift.Equatable { extension GetDocumentationPartsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentationPartsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -10201,9 +10170,8 @@ public enum GetDocumentationVersionOutputError: Swift.Error, Swift.Equatable { extension GetDocumentationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.description = output.description @@ -10348,9 +10316,8 @@ public enum GetDocumentationVersionsOutputError: Swift.Error, Swift.Equatable { extension GetDocumentationVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentationVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -10464,9 +10431,8 @@ public enum GetDomainNameOutputError: Swift.Error, Swift.Equatable { extension GetDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn self.certificateName = output.certificateName @@ -10752,9 +10718,8 @@ public enum GetDomainNamesOutputError: Swift.Error, Swift.Equatable { extension GetDomainNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -10934,9 +10899,12 @@ extension GetExportOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.body = data - } else { + case .stream(let stream): + self.body = try stream.readToEnd() + case .none: self.body = nil } } @@ -11049,9 +11017,8 @@ public enum GetGatewayResponseOutputError: Swift.Error, Swift.Equatable { extension GetGatewayResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGatewayResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultResponse = output.defaultResponse self.responseParameters = output.responseParameters @@ -11234,9 +11201,8 @@ public enum GetGatewayResponsesOutputError: Swift.Error, Swift.Equatable { extension GetGatewayResponsesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGatewayResponsesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -11366,9 +11332,8 @@ public enum GetIntegrationOutputError: Swift.Error, Swift.Equatable { extension GetIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheKeyParameters = output.cacheKeyParameters self.cacheNamespace = output.cacheNamespace @@ -11668,9 +11633,8 @@ public enum GetIntegrationResponseOutputError: Swift.Error, Swift.Equatable { extension GetIntegrationResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntegrationResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentHandling = output.contentHandling self.responseParameters = output.responseParameters @@ -11842,9 +11806,8 @@ public enum GetMethodOutputError: Swift.Error, Swift.Equatable { extension GetMethodOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMethodOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeyRequired = output.apiKeyRequired self.authorizationScopes = output.authorizationScopes @@ -12102,9 +12065,8 @@ public enum GetMethodResponseOutputError: Swift.Error, Swift.Equatable { extension GetMethodResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMethodResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.responseModels = output.responseModels self.responseParameters = output.responseParameters @@ -12267,9 +12229,8 @@ public enum GetModelOutputError: Swift.Error, Swift.Equatable { extension GetModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentType = output.contentType self.description = output.description @@ -12417,9 +12378,8 @@ public enum GetModelTemplateOutputError: Swift.Error, Swift.Equatable { extension GetModelTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.value = output.value } else { @@ -12544,9 +12504,8 @@ public enum GetModelsOutputError: Swift.Error, Swift.Equatable { extension GetModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -12668,9 +12627,8 @@ public enum GetRequestValidatorOutputError: Swift.Error, Swift.Equatable { extension GetRequestValidatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRequestValidatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -12825,9 +12783,8 @@ public enum GetRequestValidatorsOutputError: Swift.Error, Swift.Equatable { extension GetRequestValidatorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRequestValidatorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -12966,9 +12923,8 @@ public enum GetResourceOutputError: Swift.Error, Swift.Equatable { extension GetResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.parentId = output.parentId @@ -13152,9 +13108,8 @@ public enum GetResourcesOutputError: Swift.Error, Swift.Equatable { extension GetResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -13268,9 +13223,8 @@ public enum GetRestApiOutputError: Swift.Error, Swift.Equatable { extension GetRestApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRestApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeySource = output.apiKeySource self.binaryMediaTypes = output.binaryMediaTypes @@ -13534,9 +13488,8 @@ public enum GetRestApisOutputError: Swift.Error, Swift.Equatable { extension GetRestApisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRestApisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -13702,9 +13655,12 @@ extension GetSdkOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.body = data - } else { + case .stream(let stream): + self.body = try stream.readToEnd() + case .none: self.body = nil } } @@ -13809,9 +13765,8 @@ public enum GetSdkTypeOutputError: Swift.Error, Swift.Equatable { extension GetSdkTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSdkTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationProperties = output.configurationProperties self.description = output.description @@ -13967,9 +13922,8 @@ public enum GetSdkTypesOutputError: Swift.Error, Swift.Equatable { extension GetSdkTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSdkTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -14090,9 +14044,8 @@ public enum GetStageOutputError: Swift.Error, Swift.Equatable { extension GetStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessLogSettings = output.accessLogSettings self.cacheClusterEnabled = output.cacheClusterEnabled @@ -14400,9 +14353,8 @@ public enum GetStagesOutputError: Swift.Error, Swift.Equatable { extension GetStagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.item = output.item } else { @@ -14536,9 +14488,8 @@ public enum GetTagsOutputError: Swift.Error, Swift.Equatable { extension GetTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -14702,9 +14653,8 @@ public enum GetUsageOutputError: Swift.Error, Swift.Equatable { extension GetUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endDate = output.endDate self.items = output.items @@ -14904,9 +14854,8 @@ public enum GetUsagePlanKeyOutputError: Swift.Error, Swift.Equatable { extension GetUsagePlanKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsagePlanKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -15069,9 +15018,8 @@ public enum GetUsagePlanKeysOutputError: Swift.Error, Swift.Equatable { extension GetUsagePlanKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsagePlanKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -15153,9 +15101,8 @@ public enum GetUsagePlanOutputError: Swift.Error, Swift.Equatable { extension GetUsagePlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsagePlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiStages = output.apiStages self.description = output.description @@ -15368,9 +15315,8 @@ public enum GetUsagePlansOutputError: Swift.Error, Swift.Equatable { extension GetUsagePlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsagePlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -15484,9 +15430,8 @@ public enum GetVpcLinkOutputError: Swift.Error, Swift.Equatable { extension GetVpcLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVpcLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.id = output.id @@ -15681,9 +15626,8 @@ public enum GetVpcLinksOutputError: Swift.Error, Swift.Equatable { extension GetVpcLinksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVpcLinksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items } else { @@ -15749,9 +15693,9 @@ public struct ImportApiKeysInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.data(bodydata) - input.builder.withBody(bodybody) + let bodyData = body + let bodyBody = ClientRuntime.HttpBody.data(bodyData) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -15873,9 +15817,8 @@ public enum ImportApiKeysOutputError: Swift.Error, Swift.Equatable { extension ImportApiKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportApiKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ids = output.ids self.warnings = output.warnings @@ -15955,9 +15898,9 @@ public struct ImportDocumentationPartsInputBodyMiddleware: ClientRuntime.Middlew Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.data(bodydata) - input.builder.withBody(bodybody) + let bodyData = body + let bodyBody = ClientRuntime.HttpBody.data(bodyData) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -16083,9 +16026,8 @@ public enum ImportDocumentationPartsOutputError: Swift.Error, Swift.Equatable { extension ImportDocumentationPartsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportDocumentationPartsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ids = output.ids self.warnings = output.warnings @@ -16165,9 +16107,9 @@ public struct ImportRestApiInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.data(bodydata) - input.builder.withBody(bodybody) + let bodyData = body + let bodyBody = ClientRuntime.HttpBody.data(bodyData) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -16291,9 +16233,8 @@ public enum ImportRestApiOutputError: Swift.Error, Swift.Equatable { extension ImportRestApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportRestApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeySource = output.apiKeySource self.binaryMediaTypes = output.binaryMediaTypes @@ -16849,9 +16790,8 @@ extension LimitExceededException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16865,7 +16805,7 @@ extension LimitExceededException { } /// The request exceeded the rate limit. Retry after the specified time period. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17555,9 +17495,8 @@ extension APIGatewayClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17571,7 +17510,7 @@ extension NotFoundException { } /// The requested resource is not found. Make sure that the request URI is correct. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17860,9 +17799,8 @@ public enum PutGatewayResponseOutputError: Swift.Error, Swift.Equatable { extension PutGatewayResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutGatewayResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultResponse = output.defaultResponse self.responseParameters = output.responseParameters @@ -18257,9 +18195,8 @@ public enum PutIntegrationOutputError: Swift.Error, Swift.Equatable { extension PutIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheKeyParameters = output.cacheKeyParameters self.cacheNamespace = output.cacheNamespace @@ -18647,9 +18584,8 @@ public enum PutIntegrationResponseOutputError: Swift.Error, Swift.Equatable { extension PutIntegrationResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutIntegrationResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentHandling = output.contentHandling self.responseParameters = output.responseParameters @@ -18972,9 +18908,8 @@ public enum PutMethodOutputError: Swift.Error, Swift.Equatable { extension PutMethodOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutMethodOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeyRequired = output.apiKeyRequired self.authorizationScopes = output.authorizationScopes @@ -19298,9 +19233,8 @@ public enum PutMethodResponseOutputError: Swift.Error, Swift.Equatable { extension PutMethodResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutMethodResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.responseModels = output.responseModels self.responseParameters = output.responseParameters @@ -19422,9 +19356,9 @@ public struct PutRestApiInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.data(bodydata) - input.builder.withBody(bodybody) + let bodyData = body + let bodyBody = ClientRuntime.HttpBody.data(bodyData) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -19563,9 +19497,8 @@ public enum PutRestApiOutputError: Swift.Error, Swift.Equatable { extension PutRestApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRestApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeySource = output.apiKeySource self.binaryMediaTypes = output.binaryMediaTypes @@ -20374,9 +20307,8 @@ extension ServiceUnavailableException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20390,7 +20322,7 @@ extension ServiceUnavailableException { } /// The requested service is not available. For details see the accompanying error message. Retry after the specified time period. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21026,9 +20958,8 @@ public enum TestInvokeAuthorizerOutputError: Swift.Error, Swift.Equatable { extension TestInvokeAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestInvokeAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorization = output.authorization self.claims = output.claims @@ -21359,9 +21290,8 @@ public enum TestInvokeMethodOutputError: Swift.Error, Swift.Equatable { extension TestInvokeMethodOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestInvokeMethodOutputResponseBody = try responseDecoder.decode(responseBody: data) self.body = output.body self.headers = output.headers @@ -21561,9 +21491,8 @@ extension TooManyRequestsException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21577,7 +21506,7 @@ extension TooManyRequestsException { } /// The request has reached its throttling limit. Retry after the specified time period. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21651,9 +21580,8 @@ extension APIGatewayClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21667,7 +21595,7 @@ extension UnauthorizedException { } /// The request is denied because the caller has insufficient permissions. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21891,9 +21819,8 @@ public enum UpdateAccountOutputError: Swift.Error, Swift.Equatable { extension UpdateAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeyVersion = output.apiKeyVersion self.cloudwatchRoleArn = output.cloudwatchRoleArn @@ -22072,9 +21999,8 @@ public enum UpdateApiKeyOutputError: Swift.Error, Swift.Equatable { extension UpdateApiKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApiKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.customerId = output.customerId @@ -22330,9 +22256,8 @@ public enum UpdateAuthorizerOutputError: Swift.Error, Swift.Equatable { extension UpdateAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authType = output.authType self.authorizerCredentials = output.authorizerCredentials @@ -22579,9 +22504,8 @@ public enum UpdateBasePathMappingOutputError: Swift.Error, Swift.Equatable { extension UpdateBasePathMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBasePathMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.basePath = output.basePath self.restApiId = output.restApiId @@ -22741,9 +22665,8 @@ public enum UpdateClientCertificateOutputError: Swift.Error, Swift.Equatable { extension UpdateClientCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClientCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientCertificateId = output.clientCertificateId self.createdDate = output.createdDate @@ -22952,9 +22875,8 @@ public enum UpdateDeploymentOutputError: Swift.Error, Swift.Equatable { extension UpdateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiSummary = output.apiSummary self.createdDate = output.createdDate @@ -23148,9 +23070,8 @@ public enum UpdateDocumentationPartOutputError: Swift.Error, Swift.Equatable { extension UpdateDocumentationPartOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDocumentationPartOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.location = output.location @@ -23318,9 +23239,8 @@ public enum UpdateDocumentationVersionOutputError: Swift.Error, Swift.Equatable extension UpdateDocumentationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDocumentationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.description = output.description @@ -23480,9 +23400,8 @@ public enum UpdateDomainNameOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn self.certificateName = output.certificateName @@ -23799,9 +23718,8 @@ public enum UpdateGatewayResponseOutputError: Swift.Error, Swift.Equatable { extension UpdateGatewayResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGatewayResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultResponse = output.defaultResponse self.responseParameters = output.responseParameters @@ -24015,9 +23933,8 @@ public enum UpdateIntegrationOutputError: Swift.Error, Swift.Equatable { extension UpdateIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheKeyParameters = output.cacheKeyParameters self.cacheNamespace = output.cacheNamespace @@ -24357,9 +24274,8 @@ public enum UpdateIntegrationResponseOutputError: Swift.Error, Swift.Equatable { extension UpdateIntegrationResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIntegrationResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentHandling = output.contentHandling self.responseParameters = output.responseParameters @@ -24571,9 +24487,8 @@ public enum UpdateMethodOutputError: Swift.Error, Swift.Equatable { extension UpdateMethodOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMethodOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeyRequired = output.apiKeyRequired self.authorizationScopes = output.authorizationScopes @@ -24873,9 +24788,8 @@ public enum UpdateMethodResponseOutputError: Swift.Error, Swift.Equatable { extension UpdateMethodResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMethodResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.responseModels = output.responseModels self.responseParameters = output.responseParameters @@ -25061,9 +24975,8 @@ public enum UpdateModelOutputError: Swift.Error, Swift.Equatable { extension UpdateModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentType = output.contentType self.description = output.description @@ -25251,9 +25164,8 @@ public enum UpdateRequestValidatorOutputError: Swift.Error, Swift.Equatable { extension UpdateRequestValidatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRequestValidatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -25429,9 +25341,8 @@ public enum UpdateResourceOutputError: Swift.Error, Swift.Equatable { extension UpdateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.parentId = output.parentId @@ -25620,9 +25531,8 @@ public enum UpdateRestApiOutputError: Swift.Error, Swift.Equatable { extension UpdateRestApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRestApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeySource = output.apiKeySource self.binaryMediaTypes = output.binaryMediaTypes @@ -25917,9 +25827,8 @@ public enum UpdateStageOutputError: Swift.Error, Swift.Equatable { extension UpdateStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessLogSettings = output.accessLogSettings self.cacheClusterEnabled = output.cacheClusterEnabled @@ -26254,9 +26163,8 @@ public enum UpdateUsageOutputError: Swift.Error, Swift.Equatable { extension UpdateUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endDate = output.endDate self.items = output.items @@ -26456,9 +26364,8 @@ public enum UpdateUsagePlanOutputError: Swift.Error, Swift.Equatable { extension UpdateUsagePlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUsagePlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiStages = output.apiStages self.description = output.description @@ -26686,9 +26593,8 @@ public enum UpdateVpcLinkOutputError: Swift.Error, Swift.Equatable { extension UpdateVpcLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVpcLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.id = output.id diff --git a/Sources/Services/AWSARCZonalShift/ARCZonalShiftClient.swift b/Sources/Services/AWSARCZonalShift/ARCZonalShiftClient.swift index 37211b67229..144c3053667 100644 --- a/Sources/Services/AWSARCZonalShift/ARCZonalShiftClient.swift +++ b/Sources/Services/AWSARCZonalShift/ARCZonalShiftClient.swift @@ -208,6 +208,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "arc-zonal-shift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelZonalShift") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "arc-zonal-shift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getManagedResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "arc-zonal-shift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listManagedResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -285,7 +288,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -305,6 +308,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "arc-zonal-shift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listZonalShifts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -318,7 +322,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -338,6 +342,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "arc-zonal-shift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startZonalShift") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -353,7 +358,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -373,6 +378,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "arc-zonal-shift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateZonalShift") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -388,7 +394,7 @@ extension ARCZonalShiftClient: ARCZonalShiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSARCZonalShift/models/Models.swift b/Sources/Services/AWSARCZonalShift/models/Models.swift index c8128684c3a..48b963b5f58 100644 --- a/Sources/Services/AWSARCZonalShift/models/Models.swift +++ b/Sources/Services/AWSARCZonalShift/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -151,9 +150,8 @@ public enum CancelZonalShiftOutputError: Swift.Error, Swift.Equatable { extension CancelZonalShiftOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelZonalShiftOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awayFrom = output.awayFrom self.comment = output.comment @@ -265,9 +263,8 @@ extension CancelZonalShiftOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -285,7 +282,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -435,9 +432,8 @@ public enum GetManagedResourceOutputError: Swift.Error, Swift.Equatable { extension GetManagedResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetManagedResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appliedWeights = output.appliedWeights self.arn = output.arn @@ -526,9 +522,8 @@ extension GetManagedResourceOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -542,7 +537,7 @@ extension InternalServerException { } /// There was an internal server error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -654,9 +649,8 @@ public enum ListManagedResourcesOutputError: Swift.Error, Swift.Equatable { extension ListManagedResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListManagedResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -805,9 +799,8 @@ public enum ListZonalShiftsOutputError: Swift.Error, Swift.Equatable { extension ListZonalShiftsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListZonalShiftsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -933,9 +926,8 @@ extension ARCZonalShiftClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -949,7 +941,7 @@ extension ResourceNotFoundException { } /// The input requested a resource that was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1112,9 +1104,8 @@ public enum StartZonalShiftOutputError: Swift.Error, Swift.Equatable { extension StartZonalShiftOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartZonalShiftOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awayFrom = output.awayFrom self.comment = output.comment @@ -1226,9 +1217,8 @@ extension StartZonalShiftOutputResponseBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1242,7 +1232,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1384,9 +1374,8 @@ public enum UpdateZonalShiftOutputError: Swift.Error, Swift.Equatable { extension UpdateZonalShiftOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateZonalShiftOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awayFrom = output.awayFrom self.comment = output.comment @@ -1498,9 +1487,8 @@ extension UpdateZonalShiftOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -1516,7 +1504,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAccessAnalyzer/AccessAnalyzerClient.swift b/Sources/Services/AWSAccessAnalyzer/AccessAnalyzerClient.swift index 277388ad4bf..043e281dd6b 100644 --- a/Sources/Services/AWSAccessAnalyzer/AccessAnalyzerClient.swift +++ b/Sources/Services/AWSAccessAnalyzer/AccessAnalyzerClient.swift @@ -208,6 +208,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applyArchiveRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelPolicyGeneration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -263,7 +265,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessPreview") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -306,7 +309,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -326,6 +329,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAnalyzer") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -349,7 +353,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -369,6 +373,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createArchiveRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -392,7 +397,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +417,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAnalyzer") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -433,7 +439,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +459,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteArchiveRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -474,7 +481,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -494,6 +501,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPreview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -507,7 +515,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -527,6 +535,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnalyzedResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -540,7 +549,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -560,6 +569,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnalyzer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -572,7 +582,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -592,6 +602,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getArchiveRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +615,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +635,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFinding") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -637,7 +649,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +669,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGeneratedPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -670,7 +683,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -690,6 +703,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessPreviewFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -705,7 +719,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -725,6 +739,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessPreviews") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -738,7 +753,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -758,6 +773,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnalyzedResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -773,7 +789,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -793,6 +809,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnalyzers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -806,7 +823,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -826,6 +843,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listArchiveRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -839,7 +857,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +877,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -874,7 +893,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -894,6 +913,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicyGenerations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -907,7 +927,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -927,6 +947,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -939,7 +960,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -959,6 +980,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startPolicyGeneration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -982,7 +1004,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1002,6 +1024,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startResourceScan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1017,7 +1040,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1037,6 +1060,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1085,7 +1110,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1105,6 +1130,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateArchiveRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1128,7 +1154,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1174,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFindings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1171,7 +1198,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1191,6 +1218,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "access-analyzer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validatePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1207,7 +1235,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAccessAnalyzer/models/Models.swift b/Sources/Services/AWSAccessAnalyzer/models/Models.swift index 0a691ac7687..ae132ed4676 100644 --- a/Sources/Services/AWSAccessAnalyzer/models/Models.swift +++ b/Sources/Services/AWSAccessAnalyzer/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1624,9 +1623,8 @@ extension AccessAnalyzerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1644,7 +1642,7 @@ extension ConflictException { } /// A conflict exception error. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1818,9 +1816,8 @@ public enum CreateAccessPreviewOutputError: Swift.Error, Swift.Equatable { extension CreateAccessPreviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessPreviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -2014,9 +2011,8 @@ public enum CreateAnalyzerOutputError: Swift.Error, Swift.Equatable { extension CreateAnalyzerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAnalyzerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3562,9 +3558,8 @@ public enum GetAccessPreviewOutputError: Swift.Error, Swift.Equatable { extension GetAccessPreviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPreviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPreview = output.accessPreview } else { @@ -3689,9 +3684,8 @@ public enum GetAnalyzedResourceOutputError: Swift.Error, Swift.Equatable { extension GetAnalyzedResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnalyzedResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resource = output.resource } else { @@ -3793,9 +3787,8 @@ public enum GetAnalyzerOutputError: Swift.Error, Swift.Equatable { extension GetAnalyzerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnalyzerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzer = output.analyzer } else { @@ -3906,9 +3899,8 @@ public enum GetArchiveRuleOutputError: Swift.Error, Swift.Equatable { extension GetArchiveRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetArchiveRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveRule = output.archiveRule } else { @@ -4031,9 +4023,8 @@ public enum GetFindingOutputError: Swift.Error, Swift.Equatable { extension GetFindingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.finding = output.finding } else { @@ -4157,9 +4148,8 @@ public enum GetGeneratedPolicyOutputError: Swift.Error, Swift.Equatable { extension GetGeneratedPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGeneratedPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.generatedPolicyResult = output.generatedPolicyResult self.jobDetails = output.jobDetails @@ -4309,9 +4299,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4325,7 +4314,7 @@ extension InternalServerException { } /// Internal server error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5019,9 +5008,8 @@ public enum ListAccessPreviewFindingsOutputError: Swift.Error, Swift.Equatable { extension ListAccessPreviewFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessPreviewFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings self.nextToken = output.nextToken @@ -5169,9 +5157,8 @@ public enum ListAccessPreviewsOutputError: Swift.Error, Swift.Equatable { extension ListAccessPreviewsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessPreviewsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPreviews = output.accessPreviews self.nextToken = output.nextToken @@ -5345,9 +5332,8 @@ public enum ListAnalyzedResourcesOutputError: Swift.Error, Swift.Equatable { extension ListAnalyzedResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnalyzedResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzedResources = output.analyzedResources self.nextToken = output.nextToken @@ -5492,9 +5478,8 @@ public enum ListAnalyzersOutputError: Swift.Error, Swift.Equatable { extension ListAnalyzersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnalyzersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzers = output.analyzers self.nextToken = output.nextToken @@ -5639,9 +5624,8 @@ public enum ListArchiveRulesOutputError: Swift.Error, Swift.Equatable { extension ListArchiveRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListArchiveRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveRules = output.archiveRules self.nextToken = output.nextToken @@ -5840,9 +5824,8 @@ public enum ListFindingsOutputError: Swift.Error, Swift.Equatable { extension ListFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings self.nextToken = output.nextToken @@ -5986,9 +5969,8 @@ public enum ListPolicyGenerationsOutputError: Swift.Error, Swift.Equatable { extension ListPolicyGenerationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPolicyGenerationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.policyGenerations = output.policyGenerations @@ -6109,9 +6091,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6899,9 +6880,8 @@ extension AccessAnalyzerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -6919,7 +6899,7 @@ extension ResourceNotFoundException { } /// The specified resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7322,9 +7302,8 @@ extension AccessAnalyzerClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -7342,7 +7321,7 @@ extension ServiceQuotaExceededException { } /// Service quote met error. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7663,9 +7642,8 @@ public enum StartPolicyGenerationOutputError: Swift.Error, Swift.Equatable { extension StartPolicyGenerationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartPolicyGenerationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -8017,9 +7995,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8033,7 +8010,7 @@ extension ThrottlingException { } /// Throttling limit exceeded error. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8884,9 +8861,8 @@ public enum ValidatePolicyOutputError: Swift.Error, Swift.Equatable { extension ValidatePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidatePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings self.nextToken = output.nextToken @@ -8986,9 +8962,8 @@ extension AccessAnalyzerClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -9006,7 +8981,7 @@ extension ValidationException { } /// Validation exception error. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAccount/AccountClient.swift b/Sources/Services/AWSAccount/AccountClient.swift index 096fffc8c98..479d61670ad 100644 --- a/Sources/Services/AWSAccount/AccountClient.swift +++ b/Sources/Services/AWSAccount/AccountClient.swift @@ -208,6 +208,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlternateContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableRegion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableRegion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAlternateContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContactInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegionOptStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAlternateContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension AccountClient: AccountClientProtocol { .withRegion(value: config.region) .withSigningName(value: "account") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putContactInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension AccountClient: AccountClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAccount/models/Models.swift b/Sources/Services/AWSAccount/models/Models.swift index 6f9dc6f535d..ee4915efe93 100644 --- a/Sources/Services/AWSAccount/models/Models.swift +++ b/Sources/Services/AWSAccount/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The operation failed because the calling identity doesn't have the minimum required permissions. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -172,9 +171,8 @@ extension AccountClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -188,7 +186,7 @@ extension ConflictException { } /// The request could not be processed because of a conflict in the current status of the resource. For example, this happens if you try to enable a Region that is currently being disabled (in a status of DISABLING). -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -771,9 +769,8 @@ public enum GetAlternateContactOutputError: Swift.Error, Swift.Equatable { extension GetAlternateContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAlternateContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alternateContact = output.alternateContact } else { @@ -889,9 +886,8 @@ public enum GetContactInformationOutputError: Swift.Error, Swift.Equatable { extension GetContactInformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactInformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactInformation = output.contactInformation } else { @@ -1018,9 +1014,8 @@ public enum GetRegionOptStatusOutputError: Swift.Error, Swift.Equatable { extension GetRegionOptStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegionOptStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.regionName = output.regionName self.regionOptStatus = output.regionOptStatus @@ -1069,9 +1064,8 @@ extension GetRegionOptStatusOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1085,7 +1079,7 @@ extension InternalServerException { } /// The operation failed because of an error internal to Amazon Web Services. Try your operation again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1245,9 +1239,8 @@ public enum ListRegionsOutputError: Swift.Error, Swift.Equatable { extension ListRegionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.regions = output.regions @@ -1644,9 +1637,8 @@ extension AccountClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1660,7 +1652,7 @@ extension ResourceNotFoundException { } /// The operation failed because it specified a resource that can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1697,9 +1689,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1713,7 +1704,7 @@ extension TooManyRequestsException { } /// The operation failed because it was called too frequently and exceeded a throttle limit. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1755,9 +1746,8 @@ extension ValidationException: Swift.CustomDebugStringConvertible { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -1775,7 +1765,7 @@ extension ValidationException { } /// The operation failed because one of the input parameters was invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAlexaForBusiness/AlexaForBusinessClient.swift b/Sources/Services/AWSAlexaForBusiness/AlexaForBusinessClient.swift index af68399ef1d..fda05888731 100644 --- a/Sources/Services/AWSAlexaForBusiness/AlexaForBusinessClient.swift +++ b/Sources/Services/AWSAlexaForBusiness/AlexaForBusinessClient.swift @@ -208,6 +208,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "approveSkill") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateContactWithAddressBook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDeviceWithNetworkProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDeviceWithRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateSkillGroupWithRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateSkillWithSkillGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateSkillWithUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAddressBook") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -484,7 +492,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBusinessReportSchedule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -528,7 +537,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +557,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConferenceProvider") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -572,7 +582,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -592,6 +602,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContact") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -616,7 +627,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +647,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGatewayGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -660,7 +672,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +692,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -704,7 +717,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -724,6 +737,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -748,7 +762,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +782,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoom") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -792,7 +807,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -812,6 +827,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSkillGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -836,7 +852,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +872,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -880,7 +897,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +917,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAddressBook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +934,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +954,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBusinessReportSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +971,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +991,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConferenceProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -988,7 +1008,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1008,6 +1028,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1045,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1065,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1082,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1102,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeviceUsageData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1119,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1139,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGatewayGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1132,7 +1156,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1152,6 +1176,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1193,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1213,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1204,7 +1230,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1224,6 +1250,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1267,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1287,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoomSkillParameter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1276,7 +1304,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1296,6 +1324,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSkillAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1341,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1332,6 +1361,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSkillGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1348,7 +1378,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1368,6 +1398,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1384,7 +1415,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1404,6 +1435,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateContactFromAddressBook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1420,7 +1452,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1440,6 +1472,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDeviceFromRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1456,7 +1489,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1509,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateSkillFromSkillGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1492,7 +1526,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1512,6 +1546,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateSkillFromUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1528,7 +1563,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1548,6 +1583,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateSkillGroupFromRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1564,7 +1600,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1584,6 +1620,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "forgetSmartHomeAppliances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1600,7 +1637,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1620,6 +1657,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAddressBook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1636,7 +1674,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1656,6 +1694,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConferencePreference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1672,7 +1711,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1692,6 +1731,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConferenceProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1708,7 +1748,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1728,6 +1768,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1744,7 +1785,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1764,6 +1805,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1780,7 +1822,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1800,6 +1842,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1816,7 +1859,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1836,6 +1879,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGatewayGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1852,7 +1896,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1916,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInvitationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1888,7 +1933,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1908,6 +1953,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1924,7 +1970,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1944,6 +1990,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1960,7 +2007,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1980,6 +2027,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1996,7 +2044,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2016,6 +2064,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRoomSkillParameter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2032,7 +2081,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2052,6 +2101,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSkillGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2068,7 +2118,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2088,6 +2138,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBusinessReportSchedules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2104,7 +2155,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2124,6 +2175,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConferenceProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2140,7 +2192,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2160,6 +2212,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2176,7 +2229,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2196,6 +2249,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGatewayGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2212,7 +2266,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2232,6 +2286,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2248,7 +2303,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2268,6 +2323,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSkills") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2284,7 +2340,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2304,6 +2360,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSkillsStoreCategories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2320,7 +2377,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2340,6 +2397,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSkillsStoreSkillsByCategory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2356,7 +2414,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2376,6 +2434,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSmartHomeAppliances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2392,7 +2451,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2412,6 +2471,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2428,7 +2488,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2448,6 +2508,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConferencePreference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2464,7 +2525,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2484,6 +2545,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putInvitationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2500,7 +2562,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2520,6 +2582,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRoomSkillParameter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2536,7 +2599,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2556,6 +2619,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSkillAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2572,7 +2636,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2592,6 +2656,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerAVSDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2608,7 +2673,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2628,6 +2693,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectSkill") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2644,7 +2710,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2664,6 +2730,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resolveRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2680,7 +2747,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2700,6 +2767,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2716,7 +2784,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2736,6 +2804,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchAddressBooks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2752,7 +2821,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2772,6 +2841,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchContacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2788,7 +2858,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2808,6 +2878,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2824,7 +2895,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2844,6 +2915,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchNetworkProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2860,7 +2932,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2880,6 +2952,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2896,7 +2969,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2916,6 +2989,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchRooms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2932,7 +3006,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2952,6 +3026,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchSkillGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2968,7 +3043,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2988,6 +3063,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3004,7 +3080,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3024,6 +3100,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendAnnouncement") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3048,7 +3125,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3068,6 +3145,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3084,7 +3162,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3114,6 +3192,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDeviceSync") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3130,7 +3209,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3150,6 +3229,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSmartHomeApplianceDiscovery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3166,7 +3246,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3186,6 +3266,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3202,7 +3283,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3222,6 +3303,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3238,7 +3320,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3258,6 +3340,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAddressBook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3274,7 +3357,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3294,6 +3377,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBusinessReportSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3310,7 +3394,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3330,6 +3414,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConferenceProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3346,7 +3431,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3366,6 +3451,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3382,7 +3468,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3402,6 +3488,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3418,7 +3505,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3438,6 +3525,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3454,7 +3542,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3474,6 +3562,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewayGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3490,7 +3579,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3510,6 +3599,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNetworkProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3526,7 +3616,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3546,6 +3636,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3562,7 +3653,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3582,6 +3673,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3598,7 +3690,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3618,6 +3710,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "a4b") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSkillGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3634,7 +3727,7 @@ extension AlexaForBusinessClient: AlexaForBusinessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAlexaForBusiness/models/Models.swift b/Sources/Services/AWSAlexaForBusiness/models/Models.swift index aa7e61a4d74..d552affd740 100644 --- a/Sources/Services/AWSAlexaForBusiness/models/Models.swift +++ b/Sources/Services/AWSAlexaForBusiness/models/Models.swift @@ -114,9 +114,8 @@ extension AlexaForBusinessClientTypes { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -130,7 +129,7 @@ extension AlreadyExistsException { } /// The resource being created already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1364,9 +1363,8 @@ extension AlexaForBusinessClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1380,7 +1378,7 @@ extension ConcurrentModificationException { } /// There is a concurrent modification of resources. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2083,9 +2081,8 @@ public enum CreateAddressBookOutputError: Swift.Error, Swift.Equatable { extension CreateAddressBookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAddressBookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressBookArn = output.addressBookArn } else { @@ -2291,9 +2288,8 @@ public enum CreateBusinessReportScheduleOutputError: Swift.Error, Swift.Equatabl extension CreateBusinessReportScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBusinessReportScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduleArn = output.scheduleArn } else { @@ -2488,9 +2484,8 @@ public enum CreateConferenceProviderOutputError: Swift.Error, Swift.Equatable { extension CreateConferenceProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConferenceProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conferenceProviderArn = output.conferenceProviderArn } else { @@ -2726,9 +2721,8 @@ public enum CreateContactOutputError: Swift.Error, Swift.Equatable { extension CreateContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactArn = output.contactArn } else { @@ -2958,9 +2952,8 @@ public enum CreateGatewayGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGatewayGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGatewayGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayGroupArn = output.gatewayGroupArn } else { @@ -3341,9 +3334,8 @@ public enum CreateNetworkProfileOutputError: Swift.Error, Swift.Equatable { extension CreateNetworkProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkProfileArn = output.networkProfileArn } else { @@ -3629,9 +3621,8 @@ public enum CreateProfileOutputError: Swift.Error, Swift.Equatable { extension CreateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profileArn = output.profileArn } else { @@ -3861,9 +3852,8 @@ public enum CreateRoomOutputError: Swift.Error, Swift.Equatable { extension CreateRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roomArn = output.roomArn } else { @@ -4024,9 +4014,8 @@ public enum CreateSkillGroupOutputError: Swift.Error, Swift.Equatable { extension CreateSkillGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSkillGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.skillGroupArn = output.skillGroupArn } else { @@ -4211,9 +4200,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userArn = output.userArn } else { @@ -5946,9 +5934,8 @@ extension AlexaForBusinessClientTypes { extension DeviceNotRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeviceNotRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5962,7 +5949,7 @@ extension DeviceNotRegisteredException { } /// The request failed because this device is no longer registered and therefore no longer managed by this account. -public struct DeviceNotRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeviceNotRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7457,9 +7444,8 @@ public enum GetAddressBookOutputError: Swift.Error, Swift.Equatable { extension GetAddressBookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAddressBookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressBook = output.addressBook } else { @@ -7548,9 +7534,8 @@ public enum GetConferencePreferenceOutputError: Swift.Error, Swift.Equatable { extension GetConferencePreferenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConferencePreferenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preference = output.preference } else { @@ -7659,9 +7644,8 @@ public enum GetConferenceProviderOutputError: Swift.Error, Swift.Equatable { extension GetConferenceProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConferenceProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conferenceProvider = output.conferenceProvider } else { @@ -7770,9 +7754,8 @@ public enum GetContactOutputError: Swift.Error, Swift.Equatable { extension GetContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contact = output.contact } else { @@ -7880,9 +7863,8 @@ public enum GetDeviceOutputError: Swift.Error, Swift.Equatable { extension GetDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.device = output.device } else { @@ -7991,9 +7973,8 @@ public enum GetGatewayGroupOutputError: Swift.Error, Swift.Equatable { extension GetGatewayGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGatewayGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayGroup = output.gatewayGroup } else { @@ -8102,9 +8083,8 @@ public enum GetGatewayOutputError: Swift.Error, Swift.Equatable { extension GetGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gateway = output.gateway } else { @@ -8193,9 +8173,8 @@ public enum GetInvitationConfigurationOutputError: Swift.Error, Swift.Equatable extension GetInvitationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInvitationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactEmail = output.contactEmail self.organizationName = output.organizationName @@ -8335,9 +8314,8 @@ public enum GetNetworkProfileOutputError: Swift.Error, Swift.Equatable { extension GetNetworkProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkProfile = output.networkProfile } else { @@ -8445,9 +8423,8 @@ public enum GetProfileOutputError: Swift.Error, Swift.Equatable { extension GetProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profile = output.profile } else { @@ -8555,9 +8532,8 @@ public enum GetRoomOutputError: Swift.Error, Swift.Equatable { extension GetRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.room = output.room } else { @@ -8691,9 +8667,8 @@ public enum GetRoomSkillParameterOutputError: Swift.Error, Swift.Equatable { extension GetRoomSkillParameterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRoomSkillParameterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roomSkillParameter = output.roomSkillParameter } else { @@ -8801,9 +8776,8 @@ public enum GetSkillGroupOutputError: Swift.Error, Swift.Equatable { extension GetSkillGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSkillGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.skillGroup = output.skillGroup } else { @@ -8934,9 +8908,8 @@ extension AlexaForBusinessClientTypes { extension InvalidCertificateAuthorityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCertificateAuthorityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8950,7 +8923,7 @@ extension InvalidCertificateAuthorityException { } /// The Certificate Authority can't issue or revoke a certificate. -public struct InvalidCertificateAuthorityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCertificateAuthorityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8986,9 +8959,8 @@ extension InvalidCertificateAuthorityExceptionBody: Swift.Decodable { extension InvalidDeviceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeviceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9002,7 +8974,7 @@ extension InvalidDeviceException { } /// The device is in an invalid state. -public struct InvalidDeviceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeviceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9038,9 +9010,8 @@ extension InvalidDeviceExceptionBody: Swift.Decodable { extension InvalidSecretsManagerResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSecretsManagerResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9054,7 +9025,7 @@ extension InvalidSecretsManagerResourceException { } /// A password in SecretsManager is in an invalid state. -public struct InvalidSecretsManagerResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSecretsManagerResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9090,9 +9061,8 @@ extension InvalidSecretsManagerResourceExceptionBody: Swift.Decodable { extension InvalidServiceLinkedRoleStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidServiceLinkedRoleStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9106,7 +9076,7 @@ extension InvalidServiceLinkedRoleStateException { } /// The service linked role is locked for deletion. -public struct InvalidServiceLinkedRoleStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidServiceLinkedRoleStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9142,9 +9112,8 @@ extension InvalidServiceLinkedRoleStateExceptionBody: Swift.Decodable { extension InvalidUserStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidUserStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9158,7 +9127,7 @@ extension InvalidUserStatusException { } /// The attempt to update a user is invalid due to the user's current status. -public struct InvalidUserStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUserStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9194,9 +9163,8 @@ extension InvalidUserStatusExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9210,7 +9178,7 @@ extension LimitExceededException { } /// You are performing an action that would put you beyond your account's limits. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9325,9 +9293,8 @@ public enum ListBusinessReportSchedulesOutputError: Swift.Error, Swift.Equatable extension ListBusinessReportSchedulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBusinessReportSchedulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.businessReportSchedules = output.businessReportSchedules self.nextToken = output.nextToken @@ -9464,9 +9431,8 @@ public enum ListConferenceProvidersOutputError: Swift.Error, Swift.Equatable { extension ListConferenceProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConferenceProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conferenceProviders = output.conferenceProviders self.nextToken = output.nextToken @@ -9630,9 +9596,8 @@ public enum ListDeviceEventsOutputError: Swift.Error, Swift.Equatable { extension ListDeviceEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceEvents = output.deviceEvents self.nextToken = output.nextToken @@ -9769,9 +9734,8 @@ public enum ListGatewayGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGatewayGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGatewayGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayGroups = output.gatewayGroups self.nextToken = output.nextToken @@ -9920,9 +9884,8 @@ public enum ListGatewaysOutputError: Swift.Error, Swift.Equatable { extension ListGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gateways = output.gateways self.nextToken = output.nextToken @@ -10095,9 +10058,8 @@ public enum ListSkillsOutputError: Swift.Error, Swift.Equatable { extension ListSkillsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSkillsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.skillSummaries = output.skillSummaries @@ -10234,9 +10196,8 @@ public enum ListSkillsStoreCategoriesOutputError: Swift.Error, Swift.Equatable { extension ListSkillsStoreCategoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSkillsStoreCategoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.categoryList = output.categoryList self.nextToken = output.nextToken @@ -10386,9 +10347,8 @@ public enum ListSkillsStoreSkillsByCategoryOutputError: Swift.Error, Swift.Equat extension ListSkillsStoreSkillsByCategoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSkillsStoreSkillsByCategoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.skillsStoreSkills = output.skillsStoreSkills @@ -10540,9 +10500,8 @@ public enum ListSmartHomeAppliancesOutputError: Swift.Error, Swift.Equatable { extension ListSmartHomeAppliancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSmartHomeAppliancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.smartHomeAppliances = output.smartHomeAppliances @@ -10694,9 +10653,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -10890,9 +10848,8 @@ extension AlexaForBusinessClientTypes { extension NameInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NameInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10906,7 +10863,7 @@ extension NameInUseException { } /// The name sent in the request is already in use. -public struct NameInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NameInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11249,9 +11206,8 @@ extension AlexaForBusinessClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11265,7 +11221,7 @@ extension NotFoundException { } /// The resource is not found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12337,9 +12293,8 @@ public enum RegisterAVSDeviceOutputError: Swift.Error, Swift.Equatable { extension RegisterAVSDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterAVSDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceArn = output.deviceArn } else { @@ -12623,9 +12578,8 @@ public enum ResolveRoomOutputError: Swift.Error, Swift.Equatable { extension ResolveRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResolveRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roomArn = output.roomArn self.roomName = output.roomName @@ -12693,9 +12647,8 @@ extension ResolveRoomOutputResponseBody: Swift.Decodable { extension ResourceAssociatedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAssociatedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12709,7 +12662,7 @@ extension ResourceAssociatedException { } /// Another resource is associated with the resource in the request. -public struct ResourceAssociatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAssociatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12745,9 +12698,8 @@ extension ResourceAssociatedExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.clientRequestToken = output.clientRequestToken self.message = output.message @@ -12763,7 +12715,7 @@ extension ResourceInUseException { } /// The resource in the request is already in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13234,9 +13186,8 @@ public enum SearchAddressBooksOutputError: Swift.Error, Swift.Equatable { extension SearchAddressBooksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchAddressBooksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressBooks = output.addressBooks self.nextToken = output.nextToken @@ -13431,9 +13382,8 @@ public enum SearchContactsOutputError: Swift.Error, Swift.Equatable { extension SearchContactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchContactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contacts = output.contacts self.nextToken = output.nextToken @@ -13628,9 +13578,8 @@ public enum SearchDevicesOutputError: Swift.Error, Swift.Equatable { extension SearchDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.nextToken = output.nextToken @@ -13825,9 +13774,8 @@ public enum SearchNetworkProfilesOutputError: Swift.Error, Swift.Equatable { extension SearchNetworkProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchNetworkProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkProfiles = output.networkProfiles self.nextToken = output.nextToken @@ -14022,9 +13970,8 @@ public enum SearchProfilesOutputError: Swift.Error, Swift.Equatable { extension SearchProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.profiles = output.profiles @@ -14219,9 +14166,8 @@ public enum SearchRoomsOutputError: Swift.Error, Swift.Equatable { extension SearchRoomsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchRoomsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rooms = output.rooms @@ -14416,9 +14362,8 @@ public enum SearchSkillGroupsOutputError: Swift.Error, Swift.Equatable { extension SearchSkillGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchSkillGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.skillGroups = output.skillGroups @@ -14613,9 +14558,8 @@ public enum SearchUsersOutputError: Swift.Error, Swift.Equatable { extension SearchUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.totalCount = output.totalCount @@ -14805,9 +14749,8 @@ public enum SendAnnouncementOutputError: Swift.Error, Swift.Equatable { extension SendAnnouncementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendAnnouncementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.announcementArn = output.announcementArn } else { @@ -15305,9 +15248,8 @@ extension AlexaForBusinessClientTypes { extension SkillNotLinkedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SkillNotLinkedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15321,7 +15263,7 @@ extension SkillNotLinkedException { } /// The skill must be linked to a third-party account. -public struct SkillNotLinkedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SkillNotLinkedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16214,9 +16156,8 @@ extension AlexaForBusinessClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16230,7 +16171,7 @@ extension UnauthorizedException { } /// The caller has no permissions to operate on the resource involved in the API call. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAmp/AmpClient.swift b/Sources/Services/AWSAmp/AmpClient.swift index e2dcb882432..b4cc2efdb13 100644 --- a/Sources/Services/AWSAmp/AmpClient.swift +++ b/Sources/Services/AWSAmp/AmpClient.swift @@ -208,6 +208,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlertManagerDefinition") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoggingConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRuleGroupsNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkspace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -360,7 +364,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +384,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlertManagerDefinition") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -401,7 +406,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -421,6 +426,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoggingConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -442,7 +448,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -462,6 +468,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRuleGroupsNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -483,7 +490,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -503,6 +510,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkspace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -524,7 +532,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -544,6 +552,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlertManagerDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +565,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +585,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +598,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +618,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRuleGroupsNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +631,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +651,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -652,7 +664,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -672,6 +684,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuleGroupsNamespaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -685,7 +698,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -705,6 +718,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -717,7 +731,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -737,6 +751,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +765,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +785,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAlertManagerDefinition") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -793,7 +809,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -813,6 +829,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRuleGroupsNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -836,7 +853,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +873,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -871,7 +889,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -891,6 +909,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -904,7 +923,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -924,6 +943,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLoggingConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -947,7 +967,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +987,7 @@ extension AmpClient: AmpClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aps") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkspaceAlias") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -990,7 +1011,7 @@ extension AmpClient: AmpClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAmp/models/Models.swift b/Sources/Services/AWSAmp/models/Models.swift index 72896b2f1f3..77a0e11290a 100644 --- a/Sources/Services/AWSAmp/models/Models.swift +++ b/Sources/Services/AWSAmp/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// User does not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -224,9 +223,8 @@ extension AmpClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -244,7 +242,7 @@ extension ConflictException { } /// Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -403,9 +401,8 @@ public enum CreateAlertManagerDefinitionOutputError: Swift.Error, Swift.Equatabl extension CreateAlertManagerDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAlertManagerDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -543,9 +540,8 @@ public enum CreateLoggingConfigurationOutputError: Swift.Error, Swift.Equatable extension CreateLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -726,9 +722,8 @@ public enum CreateRuleGroupsNamespaceOutputError: Swift.Error, Swift.Equatable { extension CreateRuleGroupsNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleGroupsNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -926,9 +921,8 @@ public enum CreateWorkspaceOutputError: Swift.Error, Swift.Equatable { extension CreateWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.status = output.status @@ -1442,9 +1436,8 @@ public enum DescribeAlertManagerDefinitionOutputError: Swift.Error, Swift.Equata extension DescribeAlertManagerDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlertManagerDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alertManagerDefinition = output.alertManagerDefinition } else { @@ -1545,9 +1538,8 @@ public enum DescribeLoggingConfigurationOutputError: Swift.Error, Swift.Equatabl extension DescribeLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -1658,9 +1650,8 @@ public enum DescribeRuleGroupsNamespaceOutputError: Swift.Error, Swift.Equatable extension DescribeRuleGroupsNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRuleGroupsNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleGroupsNamespace = output.ruleGroupsNamespace } else { @@ -1763,9 +1754,8 @@ public enum DescribeWorkspaceOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workspace = output.workspace } else { @@ -1811,9 +1801,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1827,7 +1816,7 @@ extension InternalServerException { } /// Unexpected error during processing of request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1964,9 +1953,8 @@ public enum ListRuleGroupsNamespacesOutputError: Swift.Error, Swift.Equatable { extension ListRuleGroupsNamespacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRuleGroupsNamespacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.ruleGroupsNamespaces = output.ruleGroupsNamespaces @@ -2087,9 +2075,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2222,9 +2209,8 @@ public enum ListWorkspacesOutputError: Swift.Error, Swift.Equatable { extension ListWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workspaces = output.workspaces @@ -2564,9 +2550,8 @@ public enum PutAlertManagerDefinitionOutputError: Swift.Error, Swift.Equatable { extension PutAlertManagerDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAlertManagerDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -2718,9 +2703,8 @@ public enum PutRuleGroupsNamespaceOutputError: Swift.Error, Swift.Equatable { extension PutRuleGroupsNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRuleGroupsNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -2802,9 +2786,8 @@ extension PutRuleGroupsNamespaceOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -2822,7 +2805,7 @@ extension ResourceNotFoundException { } /// Request references a resource which does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3190,9 +3173,8 @@ extension AmpClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -3214,7 +3196,7 @@ extension ServiceQuotaExceededException { } /// Request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3401,9 +3383,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -3421,7 +3402,7 @@ extension ThrottlingException { } /// Request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3671,9 +3652,8 @@ public enum UpdateLoggingConfigurationOutputError: Swift.Error, Swift.Equatable extension UpdateLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -3826,9 +3806,8 @@ public struct UpdateWorkspaceAliasOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -3846,7 +3825,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAmplify/AmplifyClient.swift b/Sources/Services/AWSAmplify/AmplifyClient.swift index 807259b7b90..cab4bda276a 100644 --- a/Sources/Services/AWSAmplify/AmplifyClient.swift +++ b/Sources/Services/AWSAmplify/AmplifyClient.swift @@ -208,6 +208,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackendEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomainAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackendEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +470,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -482,6 +490,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -494,7 +503,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -514,6 +523,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomainAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -526,7 +536,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -546,6 +556,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -558,7 +569,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -578,6 +589,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -590,7 +602,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -610,6 +622,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateAccessLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -625,7 +638,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -645,6 +658,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -657,7 +671,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -677,6 +691,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getArtifactUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -689,7 +704,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -709,6 +724,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackendEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -721,7 +737,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -741,6 +757,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -753,7 +770,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -773,6 +790,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -785,7 +803,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -805,6 +823,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -817,7 +836,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -837,6 +856,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +869,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +889,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -882,7 +903,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +923,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listArtifacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +937,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +957,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackendEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -948,7 +971,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -968,6 +991,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBranches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -981,7 +1005,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1001,6 +1025,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1014,7 +1039,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1034,6 +1059,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1047,7 +1073,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1067,6 +1093,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1079,7 +1106,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1099,6 +1126,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWebhooks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1112,7 +1140,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1132,6 +1160,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1147,7 +1176,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1167,6 +1196,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1182,7 +1212,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1202,6 +1232,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1214,7 +1245,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1234,6 +1265,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1249,7 +1281,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1269,6 +1301,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1282,7 +1315,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1302,6 +1335,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1317,7 +1351,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1337,6 +1371,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1352,7 +1387,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1372,6 +1407,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1387,7 +1423,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1407,6 +1443,7 @@ extension AmplifyClient: AmplifyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplify") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1422,7 +1459,7 @@ extension AmplifyClient: AmplifyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAmplify/models/Models.swift b/Sources/Services/AWSAmplify/models/Models.swift index 141a9c8aa46..199670989ae 100644 --- a/Sources/Services/AWSAmplify/models/Models.swift +++ b/Sources/Services/AWSAmplify/models/Models.swift @@ -612,9 +612,8 @@ extension AmplifyClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -628,7 +627,7 @@ extension BadRequestException { } /// A request contains unexpected data. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1377,9 +1376,8 @@ public enum CreateAppOutputError: Swift.Error, Swift.Equatable { extension CreateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.app = output.app } else { @@ -1530,9 +1528,8 @@ public enum CreateBackendEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateBackendEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackendEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backendEnvironment = output.backendEnvironment } else { @@ -1883,9 +1880,8 @@ public enum CreateBranchOutputError: Swift.Error, Swift.Equatable { extension CreateBranchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBranchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.branch = output.branch } else { @@ -2030,9 +2026,8 @@ public enum CreateDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileUploadUrls = output.fileUploadUrls self.jobId = output.jobId @@ -2265,9 +2260,8 @@ public enum CreateDomainAssociationOutputError: Swift.Error, Swift.Equatable { extension CreateDomainAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainAssociation = output.domainAssociation } else { @@ -2409,9 +2403,8 @@ public enum CreateWebhookOutputError: Swift.Error, Swift.Equatable { extension CreateWebhookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWebhookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webhook = output.webhook } else { @@ -2581,9 +2574,8 @@ public enum DeleteAppOutputError: Swift.Error, Swift.Equatable { extension DeleteAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.app = output.app } else { @@ -2694,9 +2686,8 @@ public enum DeleteBackendEnvironmentOutputError: Swift.Error, Swift.Equatable { extension DeleteBackendEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackendEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backendEnvironment = output.backendEnvironment } else { @@ -2807,9 +2798,8 @@ public enum DeleteBranchOutputError: Swift.Error, Swift.Equatable { extension DeleteBranchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBranchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.branch = output.branch } else { @@ -2920,9 +2910,8 @@ public enum DeleteDomainAssociationOutputError: Swift.Error, Swift.Equatable { extension DeleteDomainAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainAssociation = output.domainAssociation } else { @@ -3040,9 +3029,8 @@ public enum DeleteJobOutputError: Swift.Error, Swift.Equatable { extension DeleteJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummary = output.jobSummary } else { @@ -3145,9 +3133,8 @@ public enum DeleteWebhookOutputError: Swift.Error, Swift.Equatable { extension DeleteWebhookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWebhookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webhook = output.webhook } else { @@ -3188,9 +3175,8 @@ extension DeleteWebhookOutputResponseBody: Swift.Decodable { extension DependentServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependentServiceFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3204,7 +3190,7 @@ extension DependentServiceFailureException { } /// An operation failed because a dependent service threw an exception. -public struct DependentServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependentServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3544,9 +3530,8 @@ public enum GenerateAccessLogsOutputError: Swift.Error, Swift.Equatable { extension GenerateAccessLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateAccessLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logUrl = output.logUrl } else { @@ -3646,9 +3631,8 @@ public enum GetAppOutputError: Swift.Error, Swift.Equatable { extension GetAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.app = output.app } else { @@ -3750,9 +3734,8 @@ public enum GetArtifactUrlOutputError: Swift.Error, Swift.Equatable { extension GetArtifactUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetArtifactUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifactId = output.artifactId self.artifactUrl = output.artifactUrl @@ -3872,9 +3855,8 @@ public enum GetBackendEnvironmentOutputError: Swift.Error, Swift.Equatable { extension GetBackendEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackendEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backendEnvironment = output.backendEnvironment } else { @@ -3983,9 +3965,8 @@ public enum GetBranchOutputError: Swift.Error, Swift.Equatable { extension GetBranchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBranchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.branch = output.branch } else { @@ -4093,9 +4074,8 @@ public enum GetDomainAssociationOutputError: Swift.Error, Swift.Equatable { extension GetDomainAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainAssociation = output.domainAssociation } else { @@ -4214,9 +4194,8 @@ public enum GetJobOutputError: Swift.Error, Swift.Equatable { extension GetJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -4318,9 +4297,8 @@ public enum GetWebhookOutputError: Swift.Error, Swift.Equatable { extension GetWebhookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWebhookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webhook = output.webhook } else { @@ -4361,9 +4339,8 @@ extension GetWebhookOutputResponseBody: Swift.Decodable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4377,7 +4354,7 @@ extension InternalFailureException { } /// The service failed to perform an operation due to an internal issue. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4680,9 +4657,8 @@ extension AmplifyClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4696,7 +4672,7 @@ extension LimitExceededException { } /// A resource could not be created because service quotas were exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4807,9 +4783,8 @@ public enum ListAppsOutputError: Swift.Error, Swift.Equatable { extension ListAppsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apps = output.apps self.nextToken = output.nextToken @@ -4970,9 +4945,8 @@ public enum ListArtifactsOutputError: Swift.Error, Swift.Equatable { extension ListArtifactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListArtifactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifacts = output.artifacts self.nextToken = output.nextToken @@ -5123,9 +5097,8 @@ public enum ListBackendEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListBackendEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackendEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backendEnvironments = output.backendEnvironments self.nextToken = output.nextToken @@ -5268,9 +5241,8 @@ public enum ListBranchesOutputError: Swift.Error, Swift.Equatable { extension ListBranchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBranchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.branches = output.branches self.nextToken = output.nextToken @@ -5413,9 +5385,8 @@ public enum ListDomainAssociationsOutputError: Swift.Error, Swift.Equatable { extension ListDomainAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainAssociations = output.domainAssociations self.nextToken = output.nextToken @@ -5568,9 +5539,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummaries = output.jobSummaries self.nextToken = output.nextToken @@ -5688,9 +5658,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5824,9 +5793,8 @@ public enum ListWebhooksOutputError: Swift.Error, Swift.Equatable { extension ListWebhooksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWebhooksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.webhooks = output.webhooks @@ -5886,9 +5854,8 @@ extension ListWebhooksOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5902,7 +5869,7 @@ extension NotFoundException { } /// An entity was not found during an operation. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6073,9 +6040,8 @@ extension AmplifyClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -6091,7 +6057,7 @@ extension ResourceNotFoundException { } /// An operation failed due to a non-existent resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6283,9 +6249,8 @@ public enum StartDeploymentOutputError: Swift.Error, Swift.Equatable { extension StartDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummary = output.jobSummary } else { @@ -6481,9 +6446,8 @@ public enum StartJobOutputError: Swift.Error, Swift.Equatable { extension StartJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummary = output.jobSummary } else { @@ -6753,9 +6717,8 @@ public enum StopJobOutputError: Swift.Error, Swift.Equatable { extension StopJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummary = output.jobSummary } else { @@ -7007,9 +6970,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7023,7 +6985,7 @@ extension UnauthorizedException { } /// An operation failed due to a lack of access. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7479,9 +7441,8 @@ public enum UpdateAppOutputError: Swift.Error, Swift.Equatable { extension UpdateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.app = output.app } else { @@ -7801,9 +7762,8 @@ public enum UpdateBranchOutputError: Swift.Error, Swift.Equatable { extension UpdateBranchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBranchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.branch = output.branch } else { @@ -7998,9 +7958,8 @@ public enum UpdateDomainAssociationOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainAssociation = output.domainAssociation } else { @@ -8139,9 +8098,8 @@ public enum UpdateWebhookOutputError: Swift.Error, Swift.Equatable { extension UpdateWebhookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWebhookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webhook = output.webhook } else { diff --git a/Sources/Services/AWSAmplifyBackend/AmplifyBackendClient.swift b/Sources/Services/AWSAmplifyBackend/AmplifyBackendClient.swift index 2001b38d0a3..a380bac0e6b 100644 --- a/Sources/Services/AWSAmplifyBackend/AmplifyBackendClient.swift +++ b/Sources/Services/AWSAmplifyBackend/AmplifyBackendClient.swift @@ -208,6 +208,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cloneBackend") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackend") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackendAPI") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackendAuth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackendConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackendStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackend") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +470,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -482,6 +490,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackendAPI") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -497,7 +506,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -517,6 +526,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackendAuth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -532,7 +542,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -552,6 +562,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackendStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -567,7 +578,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +598,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +611,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -619,6 +631,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateBackendAPIModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -634,7 +647,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -654,6 +667,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackend") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -669,7 +683,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -689,6 +703,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackendAPI") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -704,7 +719,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -724,6 +739,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackendAPIModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -739,7 +755,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -759,6 +775,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackendAuth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -774,7 +791,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -794,6 +811,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackendJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -806,7 +824,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -826,6 +844,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackendStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -841,7 +860,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -861,6 +880,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -873,7 +893,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -893,6 +913,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importBackendAuth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +929,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +949,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importBackendStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -943,7 +965,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -963,6 +985,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackendJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -978,7 +1001,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1021,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listS3Buckets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1013,7 +1037,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1033,6 +1057,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeAllBackends") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1048,7 +1073,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1068,6 +1093,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeBackendConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1080,7 +1106,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1100,6 +1126,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBackendAPI") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1115,7 +1142,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1135,6 +1162,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBackendAuth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1150,7 +1178,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1170,6 +1198,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBackendConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1185,7 +1214,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1205,6 +1234,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBackendJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1220,7 +1250,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1240,6 +1270,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifybackend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBackendStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1255,7 +1286,7 @@ extension AmplifyBackendClient: AmplifyBackendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAmplifyBackend/models/Models.swift b/Sources/Services/AWSAmplifyBackend/models/Models.swift index 3be08667f6e..62288068b97 100644 --- a/Sources/Services/AWSAmplifyBackend/models/Models.swift +++ b/Sources/Services/AWSAmplifyBackend/models/Models.swift @@ -678,9 +678,8 @@ extension AmplifyBackendClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -694,7 +693,7 @@ extension BadRequestException { } /// An error returned if a request is not formed properly. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -824,9 +823,8 @@ public enum CloneBackendOutputError: Swift.Error, Swift.Equatable { extension CloneBackendOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloneBackendOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -1026,9 +1024,8 @@ public enum CreateBackendAPIOutputError: Swift.Error, Swift.Equatable { extension CreateBackendAPIOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackendAPIOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -1502,9 +1499,8 @@ public enum CreateBackendAuthOutputError: Swift.Error, Swift.Equatable { extension CreateBackendAuthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackendAuthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -1979,9 +1975,8 @@ public enum CreateBackendConfigOutputError: Swift.Error, Swift.Equatable { extension CreateBackendConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackendConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -2177,9 +2172,8 @@ public enum CreateBackendOutputError: Swift.Error, Swift.Equatable { extension CreateBackendOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackendOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -2379,9 +2373,8 @@ public enum CreateBackendStorageOutputError: Swift.Error, Swift.Equatable { extension CreateBackendStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackendStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -2566,9 +2559,8 @@ public enum CreateTokenOutputError: Swift.Error, Swift.Equatable { extension CreateTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.challengeCode = output.challengeCode @@ -2742,9 +2734,8 @@ public enum DeleteBackendAPIOutputError: Swift.Error, Swift.Equatable { extension DeleteBackendAPIOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackendAPIOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -2926,9 +2917,8 @@ public enum DeleteBackendAuthOutputError: Swift.Error, Swift.Equatable { extension DeleteBackendAuthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackendAuthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -3084,9 +3074,8 @@ public enum DeleteBackendOutputError: Swift.Error, Swift.Equatable { extension DeleteBackendOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackendOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -3281,9 +3270,8 @@ public enum DeleteBackendStorageOutputError: Swift.Error, Swift.Equatable { extension DeleteBackendStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackendStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -3419,9 +3407,8 @@ public enum DeleteTokenOutputError: Swift.Error, Swift.Equatable { extension DeleteTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isSuccess = output.isSuccess } else { @@ -3538,9 +3525,8 @@ extension AmplifyBackendClientTypes { extension GatewayTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GatewayTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3554,7 +3540,7 @@ extension GatewayTimeoutException { } /// An error returned if there's a temporary issue with the service. -public struct GatewayTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GatewayTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3684,9 +3670,8 @@ public enum GenerateBackendAPIModelsOutputError: Swift.Error, Swift.Equatable { extension GenerateBackendAPIModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateBackendAPIModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -3945,9 +3930,8 @@ public enum GetBackendAPIModelsOutputError: Swift.Error, Swift.Equatable { extension GetBackendAPIModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackendAPIModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelIntrospectionSchema = output.modelIntrospectionSchema self.models = output.models @@ -4034,9 +4018,8 @@ public enum GetBackendAPIOutputError: Swift.Error, Swift.Equatable { extension GetBackendAPIOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackendAPIOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -4208,9 +4191,8 @@ public enum GetBackendAuthOutputError: Swift.Error, Swift.Equatable { extension GetBackendAuthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackendAuthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -4420,9 +4402,8 @@ public enum GetBackendJobOutputError: Swift.Error, Swift.Equatable { extension GetBackendJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackendJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -4559,9 +4540,8 @@ public enum GetBackendOutputError: Swift.Error, Swift.Equatable { extension GetBackendOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackendOutputResponseBody = try responseDecoder.decode(responseBody: data) self.amplifyFeatureFlags = output.amplifyFeatureFlags self.amplifyMetaConfig = output.amplifyMetaConfig @@ -4762,9 +4742,8 @@ public enum GetBackendStorageOutputError: Swift.Error, Swift.Equatable { extension GetBackendStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackendStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -4967,9 +4946,8 @@ public enum GetTokenOutputError: Swift.Error, Swift.Equatable { extension GetTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.challengeCode = output.challengeCode @@ -5169,9 +5147,8 @@ public enum ImportBackendAuthOutputError: Swift.Error, Swift.Equatable { extension ImportBackendAuthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportBackendAuthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -5365,9 +5342,8 @@ public enum ImportBackendStorageOutputError: Swift.Error, Swift.Equatable { extension ImportBackendStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportBackendStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -5576,9 +5552,8 @@ public enum ListBackendJobsOutputError: Swift.Error, Swift.Equatable { extension ListBackendJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackendJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -5712,9 +5687,8 @@ public enum ListS3BucketsOutputError: Swift.Error, Swift.Equatable { extension ListS3BucketsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListS3BucketsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buckets = output.buckets self.nextToken = output.nextToken @@ -5942,9 +5916,8 @@ extension AmplifyBackendClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -5960,7 +5933,7 @@ extension NotFoundException { } /// An error returned when a specific resource type is not found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6162,9 +6135,8 @@ public enum RemoveAllBackendsOutputError: Swift.Error, Swift.Equatable { extension RemoveAllBackendsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveAllBackendsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.error = output.error @@ -6302,9 +6274,8 @@ public enum RemoveBackendConfigOutputError: Swift.Error, Swift.Equatable { extension RemoveBackendConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveBackendConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.error = output.error } else { @@ -6808,9 +6779,8 @@ extension AmplifyBackendClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.limitType = output.limitType self.message = output.message @@ -6826,7 +6796,7 @@ extension TooManyRequestsException { } /// An error that is returned when a limit of a specific type has been exceeded. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7011,9 +6981,8 @@ public enum UpdateBackendAPIOutputError: Swift.Error, Swift.Equatable { extension UpdateBackendAPIOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBackendAPIOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -7464,9 +7433,8 @@ public enum UpdateBackendAuthOutputError: Swift.Error, Swift.Equatable { extension UpdateBackendAuthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBackendAuthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -7895,9 +7863,8 @@ public enum UpdateBackendConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateBackendConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBackendConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendManagerAppId = output.backendManagerAppId @@ -8078,9 +8045,8 @@ public enum UpdateBackendJobOutputError: Swift.Error, Swift.Equatable { extension UpdateBackendJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBackendJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName @@ -8295,9 +8261,8 @@ public enum UpdateBackendStorageOutputError: Swift.Error, Swift.Equatable { extension UpdateBackendStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBackendStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.backendEnvironmentName = output.backendEnvironmentName diff --git a/Sources/Services/AWSAmplifyUIBuilder/AmplifyUIBuilderClient.swift b/Sources/Services/AWSAmplifyUIBuilder/AmplifyUIBuilderClient.swift index 3ac0f19749e..88c6b1514f3 100644 --- a/Sources/Services/AWSAmplifyUIBuilder/AmplifyUIBuilderClient.swift +++ b/Sources/Services/AWSAmplifyUIBuilder/AmplifyUIBuilderClient.swift @@ -208,6 +208,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createForm") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -276,7 +278,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -296,6 +298,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTheme") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -320,7 +323,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +343,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +356,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +376,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteForm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +389,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +409,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTheme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -416,7 +422,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -436,6 +442,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exchangeCodeForToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -451,7 +458,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +478,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportForms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -517,7 +526,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -537,6 +546,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportThemes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -550,7 +560,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -570,6 +580,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +593,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +613,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getForm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -614,7 +626,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -634,6 +646,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -646,7 +659,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -666,6 +679,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTheme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +692,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +712,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -711,7 +726,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -731,6 +746,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listForms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +760,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +780,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThemes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -777,7 +794,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -797,6 +814,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMetadataFlag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -812,7 +830,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -832,6 +850,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "refreshToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -847,7 +866,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -867,6 +886,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -891,7 +911,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -911,6 +931,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateForm") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -935,7 +956,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -955,6 +976,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "amplifyuibuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTheme") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -979,7 +1001,7 @@ extension AmplifyUIBuilderClient: AmplifyUIBuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAmplifyUIBuilder/models/Models.swift b/Sources/Services/AWSAmplifyUIBuilder/models/Models.swift index f5b0c7f764c..45d218239ee 100644 --- a/Sources/Services/AWSAmplifyUIBuilder/models/Models.swift +++ b/Sources/Services/AWSAmplifyUIBuilder/models/Models.swift @@ -1653,15 +1653,15 @@ public struct CreateComponentInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let componentToCreate = input.operationInput.componentToCreate { - let componentToCreatedata = try encoder.encode(componentToCreate) - let componentToCreatebody = ClientRuntime.HttpBody.data(componentToCreatedata) - input.builder.withBody(componentToCreatebody) + let componentToCreateData = try encoder.encode(componentToCreate) + let componentToCreateBody = ClientRuntime.HttpBody.data(componentToCreateData) + input.builder.withBody(componentToCreateBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let componentToCreatedata = "{}".data(using: .utf8)! - let componentToCreatebody = ClientRuntime.HttpBody.data(componentToCreatedata) - input.builder.withBody(componentToCreatebody) + let componentToCreateData = "{}".data(using: .utf8)! + let componentToCreateBody = ClientRuntime.HttpBody.data(componentToCreateData) + input.builder.withBody(componentToCreateBody) } } } catch let err { @@ -1786,13 +1786,9 @@ public enum CreateComponentOutputError: Swift.Error, Swift.Equatable { extension CreateComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Component = try responseDecoder.decode(responseBody: data) - self.entity = output - } else { - self.entity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Component = try responseDecoder.decode(responseBody: data) + self.entity = output } else { self.entity = nil } @@ -2011,15 +2007,15 @@ public struct CreateFormInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let formToCreate = input.operationInput.formToCreate { - let formToCreatedata = try encoder.encode(formToCreate) - let formToCreatebody = ClientRuntime.HttpBody.data(formToCreatedata) - input.builder.withBody(formToCreatebody) + let formToCreateData = try encoder.encode(formToCreate) + let formToCreateBody = ClientRuntime.HttpBody.data(formToCreateData) + input.builder.withBody(formToCreateBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let formToCreatedata = "{}".data(using: .utf8)! - let formToCreatebody = ClientRuntime.HttpBody.data(formToCreatedata) - input.builder.withBody(formToCreatebody) + let formToCreateData = "{}".data(using: .utf8)! + let formToCreateBody = ClientRuntime.HttpBody.data(formToCreateData) + input.builder.withBody(formToCreateBody) } } } catch let err { @@ -2144,13 +2140,9 @@ public enum CreateFormOutputError: Swift.Error, Swift.Equatable { extension CreateFormOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Form = try responseDecoder.decode(responseBody: data) - self.entity = output - } else { - self.entity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Form = try responseDecoder.decode(responseBody: data) + self.entity = output } else { self.entity = nil } @@ -2304,15 +2296,15 @@ public struct CreateThemeInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let themeToCreate = input.operationInput.themeToCreate { - let themeToCreatedata = try encoder.encode(themeToCreate) - let themeToCreatebody = ClientRuntime.HttpBody.data(themeToCreatedata) - input.builder.withBody(themeToCreatebody) + let themeToCreateData = try encoder.encode(themeToCreate) + let themeToCreateBody = ClientRuntime.HttpBody.data(themeToCreateData) + input.builder.withBody(themeToCreateBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let themeToCreatedata = "{}".data(using: .utf8)! - let themeToCreatebody = ClientRuntime.HttpBody.data(themeToCreatedata) - input.builder.withBody(themeToCreatebody) + let themeToCreateData = "{}".data(using: .utf8)! + let themeToCreateBody = ClientRuntime.HttpBody.data(themeToCreateData) + input.builder.withBody(themeToCreateBody) } } } catch let err { @@ -2437,13 +2429,9 @@ public enum CreateThemeOutputError: Swift.Error, Swift.Equatable { extension CreateThemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Theme = try responseDecoder.decode(responseBody: data) - self.entity = output - } else { - self.entity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Theme = try responseDecoder.decode(responseBody: data) + self.entity = output } else { self.entity = nil } @@ -2743,15 +2731,15 @@ public struct ExchangeCodeForTokenInputBodyMiddleware: ClientRuntime.Middleware do { let encoder = context.getEncoder() if let request = input.operationInput.request { - let requestdata = try encoder.encode(request) - let requestbody = ClientRuntime.HttpBody.data(requestdata) - input.builder.withBody(requestbody) + let requestData = try encoder.encode(request) + let requestBody = ClientRuntime.HttpBody.data(requestData) + input.builder.withBody(requestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let requestdata = "{}".data(using: .utf8)! - let requestbody = ClientRuntime.HttpBody.data(requestdata) - input.builder.withBody(requestbody) + let requestData = "{}".data(using: .utf8)! + let requestBody = ClientRuntime.HttpBody.data(requestData) + input.builder.withBody(requestBody) } } } catch let err { @@ -2850,9 +2838,8 @@ extension ExchangeCodeForTokenOutputResponse: Swift.CustomDebugStringConvertible extension ExchangeCodeForTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExchangeCodeForTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessToken = output.accessToken self.expiresIn = output.expiresIn @@ -3056,9 +3043,8 @@ public enum ExportComponentsOutputError: Swift.Error, Swift.Equatable { extension ExportComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -3197,9 +3183,8 @@ public enum ExportFormsOutputError: Swift.Error, Swift.Equatable { extension ExportFormsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportFormsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -3338,9 +3323,8 @@ public enum ExportThemesOutputError: Swift.Error, Swift.Equatable { extension ExportThemesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportThemesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -4922,13 +4906,9 @@ public enum GetComponentOutputError: Swift.Error, Swift.Equatable { extension GetComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Component = try responseDecoder.decode(responseBody: data) - self.component = output - } else { - self.component = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Component = try responseDecoder.decode(responseBody: data) + self.component = output } else { self.component = nil } @@ -5038,13 +5018,9 @@ public enum GetFormOutputError: Swift.Error, Swift.Equatable { extension GetFormOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Form = try responseDecoder.decode(responseBody: data) - self.form = output - } else { - self.form = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Form = try responseDecoder.decode(responseBody: data) + self.form = output } else { self.form = nil } @@ -5144,9 +5120,8 @@ public enum GetMetadataOutputError: Swift.Error, Swift.Equatable { extension GetMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.features = output.features } else { @@ -5268,13 +5243,9 @@ public enum GetThemeOutputError: Swift.Error, Swift.Equatable { extension GetThemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Theme = try responseDecoder.decode(responseBody: data) - self.theme = output - } else { - self.theme = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Theme = try responseDecoder.decode(responseBody: data) + self.theme = output } else { self.theme = nil } @@ -5311,9 +5282,8 @@ extension GetThemeOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5327,7 +5297,7 @@ extension InternalServerException { } /// An internal error has occurred. Please retry your request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5363,9 +5333,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5379,7 +5348,7 @@ extension InvalidParameterException { } /// An invalid or out-of-range value was supplied for the input parameter. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5538,9 +5507,8 @@ public enum ListComponentsOutputError: Swift.Error, Swift.Equatable { extension ListComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -5687,9 +5655,8 @@ public enum ListFormsOutputError: Swift.Error, Swift.Equatable { extension ListFormsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFormsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -5836,9 +5803,8 @@ public enum ListThemesOutputError: Swift.Error, Swift.Equatable { extension ListThemesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThemesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -6114,15 +6080,15 @@ public struct PutMetadataFlagInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let body = input.operationInput.body { - let bodydata = try encoder.encode(body) - let bodybody = ClientRuntime.HttpBody.data(bodydata) - input.builder.withBody(bodybody) + let bodyData = try encoder.encode(body) + let bodyBody = ClientRuntime.HttpBody.data(bodyData) + input.builder.withBody(bodyBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let bodydata = "{}".data(using: .utf8)! - let bodybody = ClientRuntime.HttpBody.data(bodydata) - input.builder.withBody(bodybody) + let bodyData = "{}".data(using: .utf8)! + let bodyBody = ClientRuntime.HttpBody.data(bodyData) + input.builder.withBody(bodyBody) } } } catch let err { @@ -6258,15 +6224,15 @@ public struct RefreshTokenInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let refreshTokenBody = input.operationInput.refreshTokenBody { - let refreshTokenBodydata = try encoder.encode(refreshTokenBody) - let refreshTokenBodybody = ClientRuntime.HttpBody.data(refreshTokenBodydata) - input.builder.withBody(refreshTokenBodybody) + let refreshTokenBodyData = try encoder.encode(refreshTokenBody) + let refreshTokenBodyBody = ClientRuntime.HttpBody.data(refreshTokenBodyData) + input.builder.withBody(refreshTokenBodyBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let refreshTokenBodydata = "{}".data(using: .utf8)! - let refreshTokenBodybody = ClientRuntime.HttpBody.data(refreshTokenBodydata) - input.builder.withBody(refreshTokenBodybody) + let refreshTokenBodyData = "{}".data(using: .utf8)! + let refreshTokenBodyBody = ClientRuntime.HttpBody.data(refreshTokenBodyData) + input.builder.withBody(refreshTokenBodyBody) } } } catch let err { @@ -6365,9 +6331,8 @@ extension RefreshTokenOutputResponse: Swift.CustomDebugStringConvertible { extension RefreshTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RefreshTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessToken = output.accessToken self.expiresIn = output.expiresIn @@ -6469,9 +6434,8 @@ extension AmplifyUIBuilderClientTypes { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6485,7 +6449,7 @@ extension ResourceConflictException { } /// The resource specified in the request conflicts with an existing resource. -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6521,9 +6485,8 @@ extension ResourceConflictExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6537,7 +6500,7 @@ extension ResourceNotFoundException { } /// The requested resource does not exist, or access was denied. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6659,9 +6622,8 @@ extension AmplifyUIBuilderClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6675,7 +6637,7 @@ extension ServiceQuotaExceededException { } /// You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your Amazon Web Services account. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7183,9 +7145,8 @@ extension AmplifyUIBuilderClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7199,7 +7160,7 @@ extension UnauthorizedException { } /// You don't have permission to perform this operation. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7488,15 +7449,15 @@ public struct UpdateComponentInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let updatedComponent = input.operationInput.updatedComponent { - let updatedComponentdata = try encoder.encode(updatedComponent) - let updatedComponentbody = ClientRuntime.HttpBody.data(updatedComponentdata) - input.builder.withBody(updatedComponentbody) + let updatedComponentData = try encoder.encode(updatedComponent) + let updatedComponentBody = ClientRuntime.HttpBody.data(updatedComponentData) + input.builder.withBody(updatedComponentBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let updatedComponentdata = "{}".data(using: .utf8)! - let updatedComponentbody = ClientRuntime.HttpBody.data(updatedComponentdata) - input.builder.withBody(updatedComponentbody) + let updatedComponentData = "{}".data(using: .utf8)! + let updatedComponentBody = ClientRuntime.HttpBody.data(updatedComponentData) + input.builder.withBody(updatedComponentBody) } } } catch let err { @@ -7627,13 +7588,9 @@ public enum UpdateComponentOutputError: Swift.Error, Swift.Equatable { extension UpdateComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Component = try responseDecoder.decode(responseBody: data) - self.entity = output - } else { - self.entity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Component = try responseDecoder.decode(responseBody: data) + self.entity = output } else { self.entity = nil } @@ -7823,15 +7780,15 @@ public struct UpdateFormInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let updatedForm = input.operationInput.updatedForm { - let updatedFormdata = try encoder.encode(updatedForm) - let updatedFormbody = ClientRuntime.HttpBody.data(updatedFormdata) - input.builder.withBody(updatedFormbody) + let updatedFormData = try encoder.encode(updatedForm) + let updatedFormBody = ClientRuntime.HttpBody.data(updatedFormData) + input.builder.withBody(updatedFormBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let updatedFormdata = "{}".data(using: .utf8)! - let updatedFormbody = ClientRuntime.HttpBody.data(updatedFormdata) - input.builder.withBody(updatedFormbody) + let updatedFormData = "{}".data(using: .utf8)! + let updatedFormBody = ClientRuntime.HttpBody.data(updatedFormData) + input.builder.withBody(updatedFormBody) } } } catch let err { @@ -7962,13 +7919,9 @@ public enum UpdateFormOutputError: Swift.Error, Swift.Equatable { extension UpdateFormOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Form = try responseDecoder.decode(responseBody: data) - self.entity = output - } else { - self.entity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Form = try responseDecoder.decode(responseBody: data) + self.entity = output } else { self.entity = nil } @@ -8109,15 +8062,15 @@ public struct UpdateThemeInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let updatedTheme = input.operationInput.updatedTheme { - let updatedThemedata = try encoder.encode(updatedTheme) - let updatedThemebody = ClientRuntime.HttpBody.data(updatedThemedata) - input.builder.withBody(updatedThemebody) + let updatedThemeData = try encoder.encode(updatedTheme) + let updatedThemeBody = ClientRuntime.HttpBody.data(updatedThemeData) + input.builder.withBody(updatedThemeBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let updatedThemedata = "{}".data(using: .utf8)! - let updatedThemebody = ClientRuntime.HttpBody.data(updatedThemedata) - input.builder.withBody(updatedThemebody) + let updatedThemeData = "{}".data(using: .utf8)! + let updatedThemeBody = ClientRuntime.HttpBody.data(updatedThemeData) + input.builder.withBody(updatedThemeBody) } } } catch let err { @@ -8248,13 +8201,9 @@ public enum UpdateThemeOutputError: Swift.Error, Swift.Equatable { extension UpdateThemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AmplifyUIBuilderClientTypes.Theme = try responseDecoder.decode(responseBody: data) - self.entity = output - } else { - self.entity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AmplifyUIBuilderClientTypes.Theme = try responseDecoder.decode(responseBody: data) + self.entity = output } else { self.entity = nil } diff --git a/Sources/Services/AWSApiGatewayManagementApi/ApiGatewayManagementApiClient.swift b/Sources/Services/AWSApiGatewayManagementApi/ApiGatewayManagementApiClient.swift index 3c95dca819f..76e31ba569c 100644 --- a/Sources/Services/AWSApiGatewayManagementApi/ApiGatewayManagementApiClient.swift +++ b/Sources/Services/AWSApiGatewayManagementApi/ApiGatewayManagementApiClient.swift @@ -208,6 +208,7 @@ extension ApiGatewayManagementApiClient: ApiGatewayManagementApiClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension ApiGatewayManagementApiClient: ApiGatewayManagementApiClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension ApiGatewayManagementApiClient: ApiGatewayManagementApiClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension ApiGatewayManagementApiClient: ApiGatewayManagementApiClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension ApiGatewayManagementApiClient: ApiGatewayManagementApiClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "postToConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension ApiGatewayManagementApiClient: ApiGatewayManagementApiClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSApiGatewayManagementApi/models/Models.swift b/Sources/Services/AWSApiGatewayManagementApi/models/Models.swift index 2c26a15d580..7107c6d56ff 100644 --- a/Sources/Services/AWSApiGatewayManagementApi/models/Models.swift +++ b/Sources/Services/AWSApiGatewayManagementApi/models/Models.swift @@ -78,7 +78,7 @@ extension ForbiddenException { } /// The caller is not authorized to invoke this operation. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -148,9 +148,8 @@ public enum GetConnectionOutputError: Swift.Error, Swift.Equatable { extension GetConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectedAt = output.connectedAt self.identity = output.identity @@ -216,7 +215,7 @@ extension GoneException { } /// The connection with the provided id no longer exists. -public struct GoneException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GoneException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -284,7 +283,7 @@ extension LimitExceededException { } /// The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -298,9 +297,8 @@ public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swif extension PayloadTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PayloadTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -314,7 +312,7 @@ extension PayloadTooLargeException { } /// The data has exceeded the maximum size allowed. -public struct PayloadTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PayloadTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -362,9 +360,9 @@ public struct PostToConnectionInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let data = input.operationInput.data { - let datadata = data - let databody = ClientRuntime.HttpBody.data(datadata) - input.builder.withBody(databody) + let dataData = data + let dataBody = ClientRuntime.HttpBody.data(dataData) + input.builder.withBody(dataBody) } return try await next.handle(context: context, input: input) } diff --git a/Sources/Services/AWSApiGatewayV2/ApiGatewayV2Client.swift b/Sources/Services/AWSApiGatewayV2/ApiGatewayV2Client.swift index b5eccfb7609..93c3bd0554b 100644 --- a/Sources/Services/AWSApiGatewayV2/ApiGatewayV2Client.swift +++ b/Sources/Services/AWSApiGatewayV2/ApiGatewayV2Client.swift @@ -208,6 +208,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApiMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIntegrationResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRouteResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessLogSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -640,7 +653,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -660,6 +673,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +686,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +706,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApiMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -704,7 +719,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -724,6 +739,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +752,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +772,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCorsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +785,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +805,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +818,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +838,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -832,7 +851,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -852,6 +871,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -864,7 +884,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -884,6 +904,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntegrationResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -896,7 +917,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -916,6 +937,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -928,7 +950,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -948,6 +970,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +983,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +1003,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRouteRequestParameter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -992,7 +1016,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1012,6 +1036,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRouteResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1049,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1069,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRouteSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1056,7 +1082,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1076,6 +1102,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1115,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1135,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1120,7 +1148,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1139,6 +1167,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1152,7 +1181,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1172,6 +1201,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1184,7 +1214,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1204,6 +1234,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApiMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1216,7 +1247,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1236,6 +1267,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApiMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1249,7 +1281,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1269,6 +1301,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1282,7 +1315,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1302,6 +1335,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1314,7 +1348,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1334,6 +1368,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAuthorizers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1382,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1367,6 +1402,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1379,7 +1415,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1399,6 +1435,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1449,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1469,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1444,7 +1482,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1464,6 +1502,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1477,7 +1516,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1497,6 +1536,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1509,7 +1549,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1529,6 +1569,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntegrationResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1541,7 +1582,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1561,6 +1602,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntegrationResponses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1574,7 +1616,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1594,6 +1636,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntegrations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1607,7 +1650,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1627,6 +1670,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1639,7 +1683,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1659,6 +1703,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModelTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1671,7 +1716,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1691,6 +1736,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1704,7 +1750,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1724,6 +1770,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1783,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1803,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRouteResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1768,7 +1816,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1788,6 +1836,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRouteResponses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1801,7 +1850,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1821,6 +1870,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1834,7 +1884,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1854,6 +1904,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1866,7 +1917,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1886,6 +1937,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1899,7 +1951,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1919,6 +1971,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1931,7 +1984,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1951,6 +2004,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVpcLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1963,7 +2017,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1983,6 +2037,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVpcLinks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1996,7 +2051,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2016,6 +2071,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2032,7 +2088,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2052,6 +2108,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reimportApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2068,7 +2125,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2088,6 +2145,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetAuthorizersCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2100,7 +2158,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2120,6 +2178,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2135,7 +2194,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2155,6 +2214,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2228,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2248,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2203,7 +2264,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2223,6 +2284,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApiMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2238,7 +2300,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2258,6 +2320,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2273,7 +2336,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2293,6 +2356,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2308,7 +2372,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2328,6 +2392,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2343,7 +2408,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2363,6 +2428,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2378,7 +2444,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2398,6 +2464,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIntegrationResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2413,7 +2480,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2433,6 +2500,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2448,7 +2516,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2468,6 +2536,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2483,7 +2552,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2503,6 +2572,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRouteResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2518,7 +2588,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2538,6 +2608,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2553,7 +2624,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2573,6 +2644,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apigateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVpcLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2588,7 +2660,7 @@ extension ApiGatewayV2Client: ApiGatewayV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSApiGatewayV2/models/Models.swift b/Sources/Services/AWSApiGatewayV2/models/Models.swift index d9c55d2669c..eff271e8b51 100644 --- a/Sources/Services/AWSApiGatewayV2/models/Models.swift +++ b/Sources/Services/AWSApiGatewayV2/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19,7 +18,7 @@ extension AccessDeniedException { } } -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -611,9 +610,8 @@ extension ApiGatewayV2ClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -627,7 +625,7 @@ extension BadRequestException { } /// The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -664,9 +662,8 @@ extension BadRequestExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -680,7 +677,7 @@ extension ConflictException { } /// The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1232,9 +1229,8 @@ public enum CreateApiMappingOutputError: Swift.Error, Swift.Equatable { extension CreateApiMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApiMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiId = output.apiId self.apiMappingId = output.apiMappingId @@ -1331,9 +1327,8 @@ public enum CreateApiOutputError: Swift.Error, Swift.Equatable { extension CreateApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiEndpoint = output.apiEndpoint self.apiGatewayManaged = output.apiGatewayManaged @@ -1756,9 +1751,8 @@ public enum CreateAuthorizerOutputError: Swift.Error, Swift.Equatable { extension CreateAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerCredentialsArn = output.authorizerCredentialsArn self.authorizerId = output.authorizerId @@ -2002,9 +1996,8 @@ public enum CreateDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoDeployed = output.autoDeployed self.createdDate = output.createdDate @@ -2232,9 +2225,8 @@ public enum CreateDomainNameOutputError: Swift.Error, Swift.Equatable { extension CreateDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiMappingSelectionExpression = output.apiMappingSelectionExpression self.domainName = output.domainName @@ -2654,9 +2646,8 @@ public enum CreateIntegrationOutputError: Swift.Error, Swift.Equatable { extension CreateIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiGatewayManaged = output.apiGatewayManaged self.connectionId = output.connectionId @@ -3084,9 +3075,8 @@ public enum CreateIntegrationResponseOutputError: Swift.Error, Swift.Equatable { extension CreateIntegrationResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIntegrationResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentHandlingStrategy = output.contentHandlingStrategy self.integrationResponseId = output.integrationResponseId @@ -3315,9 +3305,8 @@ public enum CreateModelOutputError: Swift.Error, Swift.Equatable { extension CreateModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentType = output.contentType self.description = output.description @@ -3637,9 +3626,8 @@ public enum CreateRouteOutputError: Swift.Error, Swift.Equatable { extension CreateRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiGatewayManaged = output.apiGatewayManaged self.apiKeyRequired = output.apiKeyRequired @@ -3978,9 +3966,8 @@ public enum CreateRouteResponseOutputError: Swift.Error, Swift.Equatable { extension CreateRouteResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRouteResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelSelectionExpression = output.modelSelectionExpression self.responseModels = output.responseModels @@ -4306,9 +4293,8 @@ public enum CreateStageOutputError: Swift.Error, Swift.Equatable { extension CreateStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessLogSettings = output.accessLogSettings self.apiGatewayManaged = output.apiGatewayManaged @@ -4650,9 +4636,8 @@ public enum CreateVpcLinkOutputError: Swift.Error, Swift.Equatable { extension CreateVpcLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.name = output.name @@ -6495,9 +6480,12 @@ public enum ExportApiOutputError: Swift.Error, Swift.Equatable { extension ExportApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.body = data - } else { + case .stream(let stream): + self.body = try stream.readToEnd() + case .none: self.body = nil } } @@ -6629,9 +6617,8 @@ public enum GetApiMappingOutputError: Swift.Error, Swift.Equatable { extension GetApiMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApiMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiId = output.apiId self.apiMappingId = output.apiMappingId @@ -6782,9 +6769,8 @@ public enum GetApiMappingsOutputError: Swift.Error, Swift.Equatable { extension GetApiMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApiMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6866,9 +6852,8 @@ public enum GetApiOutputError: Swift.Error, Swift.Equatable { extension GetApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiEndpoint = output.apiEndpoint self.apiGatewayManaged = output.apiGatewayManaged @@ -7158,9 +7143,8 @@ public enum GetApisOutputError: Swift.Error, Swift.Equatable { extension GetApisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7281,9 +7265,8 @@ public enum GetAuthorizerOutputError: Swift.Error, Swift.Equatable { extension GetAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerCredentialsArn = output.authorizerCredentialsArn self.authorizerId = output.authorizerId @@ -7513,9 +7496,8 @@ public enum GetAuthorizersOutputError: Swift.Error, Swift.Equatable { extension GetAuthorizersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAuthorizersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7636,9 +7618,8 @@ public enum GetDeploymentOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoDeployed = output.autoDeployed self.createdDate = output.createdDate @@ -7809,9 +7790,8 @@ public enum GetDeploymentsOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7924,9 +7904,8 @@ public enum GetDomainNameOutputError: Swift.Error, Swift.Equatable { extension GetDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiMappingSelectionExpression = output.apiMappingSelectionExpression self.domainName = output.domainName @@ -8097,9 +8076,8 @@ public enum GetDomainNamesOutputError: Swift.Error, Swift.Equatable { extension GetDomainNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -8220,9 +8198,8 @@ public enum GetIntegrationOutputError: Swift.Error, Swift.Equatable { extension GetIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiGatewayManaged = output.apiGatewayManaged self.connectionId = output.connectionId @@ -8556,9 +8533,8 @@ public enum GetIntegrationResponseOutputError: Swift.Error, Swift.Equatable { extension GetIntegrationResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntegrationResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentHandlingStrategy = output.contentHandlingStrategy self.integrationResponseId = output.integrationResponseId @@ -8755,9 +8731,8 @@ public enum GetIntegrationResponsesOutputError: Swift.Error, Swift.Equatable { extension GetIntegrationResponsesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntegrationResponsesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -8897,9 +8872,8 @@ public enum GetIntegrationsOutputError: Swift.Error, Swift.Equatable { extension GetIntegrationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntegrationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -9020,9 +8994,8 @@ public enum GetModelOutputError: Swift.Error, Swift.Equatable { extension GetModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentType = output.contentType self.description = output.description @@ -9164,9 +9137,8 @@ public enum GetModelTemplateOutputError: Swift.Error, Swift.Equatable { extension GetModelTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.value = output.value } else { @@ -9287,9 +9259,8 @@ public enum GetModelsOutputError: Swift.Error, Swift.Equatable { extension GetModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -9410,9 +9381,8 @@ public enum GetRouteOutputError: Swift.Error, Swift.Equatable { extension GetRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiGatewayManaged = output.apiGatewayManaged self.apiKeyRequired = output.apiKeyRequired @@ -9669,9 +9639,8 @@ public enum GetRouteResponseOutputError: Swift.Error, Swift.Equatable { extension GetRouteResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRouteResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelSelectionExpression = output.modelSelectionExpression self.responseModels = output.responseModels @@ -9858,9 +9827,8 @@ public enum GetRouteResponsesOutputError: Swift.Error, Swift.Equatable { extension GetRouteResponsesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRouteResponsesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10000,9 +9968,8 @@ public enum GetRoutesOutputError: Swift.Error, Swift.Equatable { extension GetRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10123,9 +10090,8 @@ public enum GetStageOutputError: Swift.Error, Swift.Equatable { extension GetStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessLogSettings = output.accessLogSettings self.apiGatewayManaged = output.apiGatewayManaged @@ -10403,9 +10369,8 @@ public enum GetStagesOutputError: Swift.Error, Swift.Equatable { extension GetStagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10522,9 +10487,8 @@ public enum GetTagsOutputError: Swift.Error, Swift.Equatable { extension GetTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10627,9 +10591,8 @@ public enum GetVpcLinkOutputError: Swift.Error, Swift.Equatable { extension GetVpcLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVpcLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.name = output.name @@ -10847,9 +10810,8 @@ public enum GetVpcLinksOutputError: Swift.Error, Swift.Equatable { extension GetVpcLinksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVpcLinksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -11009,9 +10971,8 @@ public enum ImportApiOutputError: Swift.Error, Swift.Equatable { extension ImportApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiEndpoint = output.apiEndpoint self.apiGatewayManaged = output.apiGatewayManaged @@ -11929,9 +11890,8 @@ extension ApiGatewayV2ClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -11947,7 +11907,7 @@ extension NotFoundException { } /// The resource specified in the request was not found. See the message field for more information. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12206,9 +12166,8 @@ public enum ReimportApiOutputError: Swift.Error, Swift.Equatable { extension ReimportApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReimportApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiEndpoint = output.apiEndpoint self.apiGatewayManaged = output.apiGatewayManaged @@ -13275,9 +13234,8 @@ extension ApiGatewayV2ClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.limitType = output.limitType self.message = output.message @@ -13293,7 +13251,7 @@ extension TooManyRequestsException { } /// A limit has been exceeded. See the accompanying error message for details. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13722,9 +13680,8 @@ public enum UpdateApiMappingOutputError: Swift.Error, Swift.Equatable { extension UpdateApiMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApiMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiId = output.apiId self.apiMappingId = output.apiMappingId @@ -13821,9 +13778,8 @@ public enum UpdateApiOutputError: Swift.Error, Swift.Equatable { extension UpdateApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiEndpoint = output.apiEndpoint self.apiGatewayManaged = output.apiGatewayManaged @@ -14251,9 +14207,8 @@ public enum UpdateAuthorizerOutputError: Swift.Error, Swift.Equatable { extension UpdateAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerCredentialsArn = output.authorizerCredentialsArn self.authorizerId = output.authorizerId @@ -14493,9 +14448,8 @@ public enum UpdateDeploymentOutputError: Swift.Error, Swift.Equatable { extension UpdateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoDeployed = output.autoDeployed self.createdDate = output.createdDate @@ -14692,9 +14646,8 @@ public enum UpdateDomainNameOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiMappingSelectionExpression = output.apiMappingSelectionExpression self.domainName = output.domainName @@ -15121,9 +15074,8 @@ public enum UpdateIntegrationOutputError: Swift.Error, Swift.Equatable { extension UpdateIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiGatewayManaged = output.apiGatewayManaged self.connectionId = output.connectionId @@ -15558,9 +15510,8 @@ public enum UpdateIntegrationResponseOutputError: Swift.Error, Swift.Equatable { extension UpdateIntegrationResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIntegrationResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentHandlingStrategy = output.contentHandlingStrategy self.integrationResponseId = output.integrationResponseId @@ -15795,9 +15746,8 @@ public enum UpdateModelOutputError: Swift.Error, Swift.Equatable { extension UpdateModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentType = output.contentType self.description = output.description @@ -16124,9 +16074,8 @@ public enum UpdateRouteOutputError: Swift.Error, Swift.Equatable { extension UpdateRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiGatewayManaged = output.apiGatewayManaged self.apiKeyRequired = output.apiKeyRequired @@ -16472,9 +16421,8 @@ public enum UpdateRouteResponseOutputError: Swift.Error, Swift.Equatable { extension UpdateRouteResponseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRouteResponseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelSelectionExpression = output.modelSelectionExpression self.responseModels = output.responseModels @@ -16771,9 +16719,8 @@ public enum UpdateStageOutputError: Swift.Error, Swift.Equatable { extension UpdateStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessLogSettings = output.accessLogSettings self.apiGatewayManaged = output.apiGatewayManaged @@ -17051,9 +16998,8 @@ public enum UpdateVpcLinkOutputError: Swift.Error, Swift.Equatable { extension UpdateVpcLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVpcLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.name = output.name diff --git a/Sources/Services/AWSAppConfig/AppConfigClient.swift b/Sources/Services/AWSAppConfig/AppConfigClient.swift index 529ef2b2844..8e8ae0f1aa9 100644 --- a/Sources/Services/AWSAppConfig/AppConfigClient.swift +++ b/Sources/Services/AWSAppConfig/AppConfigClient.swift @@ -208,6 +208,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -267,6 +268,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -282,7 +284,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -302,6 +304,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeploymentStrategy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -317,7 +320,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +356,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +376,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExtension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -388,7 +393,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -408,6 +413,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExtensionAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -423,7 +429,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -443,6 +449,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHostedConfigurationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -459,7 +466,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -479,6 +486,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -491,7 +499,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -511,6 +519,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +532,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -543,6 +552,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeploymentStrategy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -555,7 +565,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -575,6 +585,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -587,7 +598,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -607,6 +618,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExtension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExtensionAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -652,7 +665,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -672,6 +685,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHostedConfigurationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -684,7 +698,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -704,6 +718,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -716,7 +731,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -741,6 +756,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -754,7 +770,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -774,6 +790,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfigurationProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -786,7 +803,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -806,6 +823,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeploymentStrategy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -850,7 +869,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -870,6 +889,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -882,7 +902,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +922,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExtension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +936,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +956,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExtensionAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -947,7 +969,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +989,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHostedConfigurationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -979,7 +1002,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -999,6 +1022,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1012,7 +1036,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1032,6 +1056,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurationProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1045,7 +1070,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1065,6 +1090,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeploymentStrategies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1078,7 +1104,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1098,6 +1124,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1111,7 +1138,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1131,6 +1158,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1144,7 +1172,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1164,6 +1192,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExtensionAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1177,7 +1206,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1197,6 +1226,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExtensions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1210,7 +1240,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1230,6 +1260,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHostedConfigurationVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1243,7 +1274,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1263,6 +1294,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1307,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1327,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1310,7 +1343,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1330,6 +1363,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1342,7 +1376,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1362,6 +1396,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1377,7 +1412,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1397,6 +1432,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1410,7 +1446,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1430,6 +1466,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1445,7 +1482,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1465,6 +1502,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1480,7 +1518,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1500,6 +1538,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeploymentStrategy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1515,7 +1554,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1535,6 +1574,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1550,7 +1590,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1570,6 +1610,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateExtension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1585,7 +1626,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1605,6 +1646,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateExtensionAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1620,7 +1662,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1640,6 +1682,7 @@ extension AppConfigClient: AppConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1653,7 +1696,7 @@ extension AppConfigClient: AppConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAppConfig/models/Models.swift b/Sources/Services/AWSAppConfig/models/Models.swift index 1ded51e1b0b..6376cfbfd7a 100644 --- a/Sources/Services/AWSAppConfig/models/Models.swift +++ b/Sources/Services/AWSAppConfig/models/Models.swift @@ -405,9 +405,8 @@ extension AppConfigClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.details = output.details self.message = output.message @@ -425,7 +424,7 @@ extension BadRequestException { } /// The input fails to satisfy the constraints specified by an Amazon Web Services service. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -632,9 +631,8 @@ extension AppConfigClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -648,7 +646,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -792,9 +790,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.id = output.id @@ -1043,9 +1040,8 @@ public enum CreateConfigurationProfileOutputError: Swift.Error, Swift.Equatable extension CreateConfigurationProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfigurationProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.description = output.description @@ -1337,9 +1333,8 @@ public enum CreateDeploymentStrategyOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentStrategyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentStrategyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentDurationInMinutes = output.deploymentDurationInMinutes self.description = output.description @@ -1590,9 +1585,8 @@ public enum CreateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.description = output.description @@ -1839,9 +1833,8 @@ public enum CreateExtensionAssociationOutputError: Swift.Error, Swift.Equatable extension CreateExtensionAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExtensionAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.extensionArn = output.extensionArn @@ -2124,9 +2117,8 @@ public enum CreateExtensionOutputError: Swift.Error, Swift.Equatable { extension CreateExtensionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExtensionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actions = output.actions self.arn = output.arn @@ -2262,9 +2254,9 @@ public struct CreateHostedConfigurationVersionInputBodyMiddleware: ClientRuntime Self.Context == H.Context { if let content = input.operationInput.content { - let contentdata = content - let contentbody = ClientRuntime.HttpBody.data(contentdata) - input.builder.withBody(contentbody) + let contentData = content + let contentBody = ClientRuntime.HttpBody.data(contentData) + input.builder.withBody(contentBody) } return try await next.handle(context: context, input: input) } @@ -2448,9 +2440,12 @@ extension CreateHostedConfigurationVersionOutputResponse: ClientRuntime.HttpResp } else { self.versionNumber = 0 } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.content = data - } else { + case .stream(let stream): + self.content = try stream.readToEnd() + case .none: self.content = nil } } @@ -3767,9 +3762,8 @@ public enum GetApplicationOutputError: Swift.Error, Swift.Equatable { extension GetApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.id = output.id @@ -3944,9 +3938,12 @@ extension GetConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.content = data - } else { + case .stream(let stream): + self.content = try stream.readToEnd() + case .none: self.content = nil } } @@ -4055,9 +4052,8 @@ public enum GetConfigurationProfileOutputError: Swift.Error, Swift.Equatable { extension GetConfigurationProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigurationProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.description = output.description @@ -4249,9 +4245,8 @@ public enum GetDeploymentOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.appliedExtensions = output.appliedExtensions @@ -4565,9 +4560,8 @@ public enum GetDeploymentStrategyOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentStrategyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentStrategyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentDurationInMinutes = output.deploymentDurationInMinutes self.description = output.description @@ -4741,9 +4735,8 @@ public enum GetEnvironmentOutputError: Swift.Error, Swift.Equatable { extension GetEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.description = output.description @@ -4898,9 +4891,8 @@ public enum GetExtensionAssociationOutputError: Swift.Error, Swift.Equatable { extension GetExtensionAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExtensionAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.extensionArn = output.extensionArn @@ -5072,9 +5064,8 @@ public enum GetExtensionOutputError: Swift.Error, Swift.Equatable { extension GetExtensionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExtensionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actions = output.actions self.arn = output.arn @@ -5306,9 +5297,12 @@ extension GetHostedConfigurationVersionOutputResponse: ClientRuntime.HttpRespons } else { self.versionNumber = 0 } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.content = data - } else { + case .stream(let stream): + self.content = try stream.readToEnd() + case .none: self.content = nil } } @@ -5485,9 +5479,8 @@ extension AppConfigClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5501,7 +5494,7 @@ extension InternalServerException { } /// There was an internal failure in the AppConfig service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5684,9 +5677,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5834,9 +5826,8 @@ public enum ListConfigurationProfilesOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5966,9 +5957,8 @@ public enum ListDeploymentStrategiesOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentStrategiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentStrategiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6116,9 +6106,8 @@ public enum ListDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6258,9 +6247,8 @@ public enum ListEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6414,9 +6402,8 @@ public enum ListExtensionAssociationsOutputError: Swift.Error, Swift.Equatable { extension ListExtensionAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExtensionAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6554,9 +6541,8 @@ public enum ListExtensionsOutputError: Swift.Error, Swift.Equatable { extension ListExtensionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExtensionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6712,9 +6698,8 @@ public enum ListHostedConfigurationVersionsOutputError: Swift.Error, Swift.Equat extension ListHostedConfigurationVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHostedConfigurationVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6829,9 +6814,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6970,9 +6954,8 @@ extension AppConfigClientTypes { extension PayloadTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PayloadTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.limit = output.limit self.measure = output.measure @@ -6992,7 +6975,7 @@ extension PayloadTooLargeException { } /// The configuration size is too large. -public struct PayloadTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PayloadTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7081,9 +7064,8 @@ extension AppConfigClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -7099,7 +7081,7 @@ extension ResourceNotFoundException { } /// The requested resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7142,9 +7124,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7158,7 +7139,7 @@ extension ServiceQuotaExceededException { } /// The number of hosted configuration versions exceeds the limit for the AppConfig hosted configuration store. Delete one or more versions and try again. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7360,9 +7341,8 @@ public enum StartDeploymentOutputError: Swift.Error, Swift.Equatable { extension StartDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.appliedExtensions = output.appliedExtensions @@ -7692,9 +7672,8 @@ public enum StopDeploymentOutputError: Swift.Error, Swift.Equatable { extension StopDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.appliedExtensions = output.appliedExtensions @@ -8275,9 +8254,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.id = output.id @@ -8473,9 +8451,8 @@ public enum UpdateConfigurationProfileOutputError: Swift.Error, Swift.Equatable extension UpdateConfigurationProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConfigurationProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.description = output.description @@ -8726,9 +8703,8 @@ public enum UpdateDeploymentStrategyOutputError: Swift.Error, Swift.Equatable { extension UpdateDeploymentStrategyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDeploymentStrategyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentDurationInMinutes = output.deploymentDurationInMinutes self.description = output.description @@ -8962,9 +8938,8 @@ public enum UpdateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension UpdateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.description = output.description @@ -9155,9 +9130,8 @@ public enum UpdateExtensionAssociationOutputError: Swift.Error, Swift.Equatable extension UpdateExtensionAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateExtensionAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.extensionArn = output.extensionArn @@ -9408,9 +9382,8 @@ public enum UpdateExtensionOutputError: Swift.Error, Swift.Equatable { extension UpdateExtensionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateExtensionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actions = output.actions self.arn = output.arn diff --git a/Sources/Services/AWSAppConfigData/AppConfigDataClient.swift b/Sources/Services/AWSAppConfigData/AppConfigDataClient.swift index 74f91e08b5c..b0f111359d1 100644 --- a/Sources/Services/AWSAppConfigData/AppConfigDataClient.swift +++ b/Sources/Services/AWSAppConfigData/AppConfigDataClient.swift @@ -212,6 +212,7 @@ extension AppConfigDataClient: AppConfigDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLatestConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -225,7 +226,7 @@ extension AppConfigDataClient: AppConfigDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -245,6 +246,7 @@ extension AppConfigDataClient: AppConfigDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appconfig") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startConfigurationSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension AppConfigDataClient: AppConfigDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAppConfigData/models/Models.swift b/Sources/Services/AWSAppConfigData/models/Models.swift index 2553039b683..c7b37453cc4 100644 --- a/Sources/Services/AWSAppConfigData/models/Models.swift +++ b/Sources/Services/AWSAppConfigData/models/Models.swift @@ -53,9 +53,8 @@ extension AppConfigDataClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.details = output.details self.message = output.message @@ -73,7 +72,7 @@ extension BadRequestException { } /// The input fails to satisfy the constraints specified by the service. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -251,9 +250,12 @@ extension GetLatestConfigurationOutputResponse: ClientRuntime.HttpResponseBindin } else { self.versionLabel = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.configuration = data - } else { + case .stream(let stream): + self.configuration = try stream.readToEnd() + case .none: self.configuration = nil } } @@ -305,9 +307,8 @@ extension GetLatestConfigurationOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -321,7 +322,7 @@ extension InternalServerException { } /// There was an internal failure in the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -430,9 +431,8 @@ extension AppConfigDataClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.referencedBy = output.referencedBy @@ -450,7 +450,7 @@ extension ResourceNotFoundException { } /// The requested resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -671,9 +671,8 @@ public enum StartConfigurationSessionOutputError: Swift.Error, Swift.Equatable { extension StartConfigurationSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartConfigurationSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.initialConfigurationToken = output.initialConfigurationToken } else { @@ -712,9 +711,8 @@ extension StartConfigurationSessionOutputResponseBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -728,7 +726,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAppIntegrations/AppIntegrationsClient.swift b/Sources/Services/AWSAppIntegrations/AppIntegrationsClient.swift index 438ba95a012..007254ac11b 100644 --- a/Sources/Services/AWSAppIntegrations/AppIntegrationsClient.swift +++ b/Sources/Services/AWSAppIntegrations/AppIntegrationsClient.swift @@ -208,6 +208,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataIntegration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventIntegration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -306,7 +309,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -326,6 +329,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -338,7 +342,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -358,6 +362,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -370,7 +375,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -390,6 +395,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -402,7 +408,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -422,6 +428,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataIntegrationAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -435,7 +442,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +462,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataIntegrations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventIntegrationAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -501,7 +510,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -521,6 +530,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventIntegrations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -566,7 +577,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -586,6 +597,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -601,7 +613,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -621,6 +633,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -634,7 +647,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -654,6 +667,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -669,7 +683,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -689,6 +703,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "app-integrations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -704,7 +719,7 @@ extension AppIntegrationsClient: AppIntegrationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAppIntegrations/models/Models.swift b/Sources/Services/AWSAppIntegrations/models/Models.swift index 794b857c600..ba51dc735e8 100644 --- a/Sources/Services/AWSAppIntegrations/models/Models.swift +++ b/Sources/Services/AWSAppIntegrations/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -279,9 +278,8 @@ public enum CreateDataIntegrationOutputError: Swift.Error, Swift.Equatable { extension CreateDataIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientToken = output.clientToken @@ -606,9 +604,8 @@ public enum CreateEventIntegrationOutputError: Swift.Error, Swift.Equatable { extension CreateEventIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventIntegrationArn = output.eventIntegrationArn } else { @@ -899,9 +896,8 @@ public struct DeleteEventIntegrationOutputResponse: Swift.Equatable { extension DuplicateResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -915,7 +911,7 @@ extension DuplicateResourceException { } /// A resource with the specified name already exists. -public struct DuplicateResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1322,9 +1318,8 @@ public enum GetDataIntegrationOutputError: Swift.Error, Swift.Equatable { extension GetDataIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.description = output.description @@ -1546,9 +1541,8 @@ public enum GetEventIntegrationOutputError: Swift.Error, Swift.Equatable { extension GetEventIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.eventBridgeBus = output.eventBridgeBus @@ -1646,9 +1640,8 @@ extension GetEventIntegrationOutputResponseBody: Swift.Decodable { extension InternalServiceError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1662,7 +1655,7 @@ extension InternalServiceError { } /// Request processing failed due to an error or failure with the service. -public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1698,9 +1691,8 @@ extension InternalServiceErrorBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1714,7 +1706,7 @@ extension InvalidRequestException { } /// The request is not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1836,9 +1828,8 @@ public enum ListDataIntegrationAssociationsOutputError: Swift.Error, Swift.Equat extension ListDataIntegrationAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataIntegrationAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataIntegrationAssociations = output.dataIntegrationAssociations self.nextToken = output.nextToken @@ -1972,9 +1963,8 @@ public enum ListDataIntegrationsOutputError: Swift.Error, Swift.Equatable { extension ListDataIntegrationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataIntegrationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataIntegrations = output.dataIntegrations self.nextToken = output.nextToken @@ -2118,9 +2108,8 @@ public enum ListEventIntegrationAssociationsOutputError: Swift.Error, Swift.Equa extension ListEventIntegrationAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventIntegrationAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventIntegrationAssociations = output.eventIntegrationAssociations self.nextToken = output.nextToken @@ -2254,9 +2243,8 @@ public enum ListEventIntegrationsOutputError: Swift.Error, Swift.Equatable { extension ListEventIntegrationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventIntegrationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventIntegrations = output.eventIntegrations self.nextToken = output.nextToken @@ -2373,9 +2361,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2423,9 +2410,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2439,7 +2425,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2475,9 +2461,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2491,7 +2476,7 @@ extension ResourceQuotaExceededException { } /// The allowed quota for the resource has been exceeded. -public struct ResourceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2689,9 +2674,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2705,7 +2689,7 @@ extension ThrottlingException { } /// The throttling limit has been exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAppMesh/AppMeshClient.swift b/Sources/Services/AWSAppMesh/AppMeshClient.swift index 3463d7dbaf3..40aaf5eda78 100644 --- a/Sources/Services/AWSAppMesh/AppMeshClient.swift +++ b/Sources/Services/AWSAppMesh/AppMeshClient.swift @@ -208,6 +208,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGatewayRoute") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMesh") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -275,7 +277,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -295,6 +297,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoute") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -319,7 +322,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +342,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVirtualGateway") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -363,7 +367,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +387,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVirtualNode") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -407,7 +412,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -427,6 +432,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVirtualRouter") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -451,7 +457,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +477,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVirtualService") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -495,7 +502,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -515,6 +522,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGatewayRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -528,7 +536,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +556,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMesh") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -560,7 +569,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -580,6 +589,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +603,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +623,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVirtualGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -626,7 +637,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -646,6 +657,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVirtualNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -659,7 +671,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -679,6 +691,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVirtualRouter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +705,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +725,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVirtualService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -725,7 +739,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -745,6 +759,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGatewayRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -758,7 +773,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -778,6 +793,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMesh") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -791,7 +807,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -811,6 +827,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -824,7 +841,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -844,6 +861,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVirtualGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -857,7 +875,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -877,6 +895,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVirtualNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -890,7 +909,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -910,6 +929,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVirtualRouter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -923,7 +943,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +963,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVirtualService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -956,7 +977,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -976,6 +997,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGatewayRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1011,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1031,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMeshes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1022,7 +1045,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1042,6 +1065,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1055,7 +1079,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1075,6 +1099,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVirtualGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1121,7 +1147,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1141,6 +1167,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVirtualNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1154,7 +1181,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1174,6 +1201,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVirtualRouters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1187,7 +1215,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1207,6 +1235,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVirtualServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1220,7 +1249,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1240,6 +1269,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1256,7 +1286,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1276,6 +1306,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1292,7 +1323,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1312,6 +1343,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewayRoute") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1336,7 +1368,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1356,6 +1388,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMesh") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1379,7 +1412,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1399,6 +1432,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoute") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1423,7 +1457,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1443,6 +1477,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVirtualGateway") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1467,7 +1502,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1487,6 +1522,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVirtualNode") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1511,7 +1547,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1531,6 +1567,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVirtualRouter") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1555,7 +1592,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1575,6 +1612,7 @@ extension AppMeshClient: AppMeshClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appmesh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVirtualService") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1599,7 +1637,7 @@ extension AppMeshClient: AppMeshClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAppMesh/models/Models.swift b/Sources/Services/AWSAppMesh/models/Models.swift index e62514adaaa..8a728bd8ddd 100644 --- a/Sources/Services/AWSAppMesh/models/Models.swift +++ b/Sources/Services/AWSAppMesh/models/Models.swift @@ -239,9 +239,8 @@ extension AppMeshClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -255,7 +254,7 @@ extension BadRequestException { } /// The request syntax was malformed. Check your request syntax and try again. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -451,9 +450,8 @@ extension AppMeshClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -467,7 +465,7 @@ extension ConflictException { } /// The request contains a client token that was used for a previous update resource call with different specifications. Try the request again with a new client token. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -669,13 +667,9 @@ public enum CreateGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension CreateGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.GatewayRouteData = try responseDecoder.decode(responseBody: data) - self.gatewayRoute = output - } else { - self.gatewayRoute = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.GatewayRouteData = try responseDecoder.decode(responseBody: data) + self.gatewayRoute = output } else { self.gatewayRoute = nil } @@ -846,13 +840,9 @@ public enum CreateMeshOutputError: Swift.Error, Swift.Equatable { extension CreateMeshOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.MeshData = try responseDecoder.decode(responseBody: data) - self.mesh = output - } else { - self.mesh = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.MeshData = try responseDecoder.decode(responseBody: data) + self.mesh = output } else { self.mesh = nil } @@ -1058,13 +1048,9 @@ public enum CreateRouteOutputError: Swift.Error, Swift.Equatable { extension CreateRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.RouteData = try responseDecoder.decode(responseBody: data) - self.route = output - } else { - self.route = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.RouteData = try responseDecoder.decode(responseBody: data) + self.route = output } else { self.route = nil } @@ -1261,13 +1247,9 @@ public enum CreateVirtualGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateVirtualGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualGatewayData = try responseDecoder.decode(responseBody: data) - self.virtualGateway = output - } else { - self.virtualGateway = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualGatewayData = try responseDecoder.decode(responseBody: data) + self.virtualGateway = output } else { self.virtualGateway = nil } @@ -1464,13 +1446,9 @@ public enum CreateVirtualNodeOutputError: Swift.Error, Swift.Equatable { extension CreateVirtualNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualNodeData = try responseDecoder.decode(responseBody: data) - self.virtualNode = output - } else { - self.virtualNode = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualNodeData = try responseDecoder.decode(responseBody: data) + self.virtualNode = output } else { self.virtualNode = nil } @@ -1668,13 +1646,9 @@ public enum CreateVirtualRouterOutputError: Swift.Error, Swift.Equatable { extension CreateVirtualRouterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualRouterData = try responseDecoder.decode(responseBody: data) - self.virtualRouter = output - } else { - self.virtualRouter = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualRouterData = try responseDecoder.decode(responseBody: data) + self.virtualRouter = output } else { self.virtualRouter = nil } @@ -1872,13 +1846,9 @@ public enum CreateVirtualServiceOutputError: Swift.Error, Swift.Equatable { extension CreateVirtualServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualServiceData = try responseDecoder.decode(responseBody: data) - self.virtualService = output - } else { - self.virtualService = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualServiceData = try responseDecoder.decode(responseBody: data) + self.virtualService = output } else { self.virtualService = nil } @@ -2047,13 +2017,9 @@ public enum DeleteGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension DeleteGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.GatewayRouteData = try responseDecoder.decode(responseBody: data) - self.gatewayRoute = output - } else { - self.gatewayRoute = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.GatewayRouteData = try responseDecoder.decode(responseBody: data) + self.gatewayRoute = output } else { self.gatewayRoute = nil } @@ -2157,13 +2123,9 @@ public enum DeleteMeshOutputError: Swift.Error, Swift.Equatable { extension DeleteMeshOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.MeshData = try responseDecoder.decode(responseBody: data) - self.mesh = output - } else { - self.mesh = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.MeshData = try responseDecoder.decode(responseBody: data) + self.mesh = output } else { self.mesh = nil } @@ -2301,13 +2263,9 @@ public enum DeleteRouteOutputError: Swift.Error, Swift.Equatable { extension DeleteRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.RouteData = try responseDecoder.decode(responseBody: data) - self.route = output - } else { - self.route = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.RouteData = try responseDecoder.decode(responseBody: data) + self.route = output } else { self.route = nil } @@ -2436,13 +2394,9 @@ public enum DeleteVirtualGatewayOutputError: Swift.Error, Swift.Equatable { extension DeleteVirtualGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualGatewayData = try responseDecoder.decode(responseBody: data) - self.virtualGateway = output - } else { - self.virtualGateway = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualGatewayData = try responseDecoder.decode(responseBody: data) + self.virtualGateway = output } else { self.virtualGateway = nil } @@ -2571,13 +2525,9 @@ public enum DeleteVirtualNodeOutputError: Swift.Error, Swift.Equatable { extension DeleteVirtualNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualNodeData = try responseDecoder.decode(responseBody: data) - self.virtualNode = output - } else { - self.virtualNode = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualNodeData = try responseDecoder.decode(responseBody: data) + self.virtualNode = output } else { self.virtualNode = nil } @@ -2707,13 +2657,9 @@ public enum DeleteVirtualRouterOutputError: Swift.Error, Swift.Equatable { extension DeleteVirtualRouterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualRouterData = try responseDecoder.decode(responseBody: data) - self.virtualRouter = output - } else { - self.virtualRouter = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualRouterData = try responseDecoder.decode(responseBody: data) + self.virtualRouter = output } else { self.virtualRouter = nil } @@ -2843,13 +2789,9 @@ public enum DeleteVirtualServiceOutputError: Swift.Error, Swift.Equatable { extension DeleteVirtualServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualServiceData = try responseDecoder.decode(responseBody: data) - self.virtualService = output - } else { - self.virtualService = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualServiceData = try responseDecoder.decode(responseBody: data) + self.virtualService = output } else { self.virtualService = nil } @@ -2984,13 +2926,9 @@ public enum DescribeGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension DescribeGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.GatewayRouteData = try responseDecoder.decode(responseBody: data) - self.gatewayRoute = output - } else { - self.gatewayRoute = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.GatewayRouteData = try responseDecoder.decode(responseBody: data) + self.gatewayRoute = output } else { self.gatewayRoute = nil } @@ -3109,13 +3047,9 @@ public enum DescribeMeshOutputError: Swift.Error, Swift.Equatable { extension DescribeMeshOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.MeshData = try responseDecoder.decode(responseBody: data) - self.mesh = output - } else { - self.mesh = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.MeshData = try responseDecoder.decode(responseBody: data) + self.mesh = output } else { self.mesh = nil } @@ -3251,13 +3185,9 @@ public enum DescribeRouteOutputError: Swift.Error, Swift.Equatable { extension DescribeRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.RouteData = try responseDecoder.decode(responseBody: data) - self.route = output - } else { - self.route = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.RouteData = try responseDecoder.decode(responseBody: data) + self.route = output } else { self.route = nil } @@ -3384,13 +3314,9 @@ public enum DescribeVirtualGatewayOutputError: Swift.Error, Swift.Equatable { extension DescribeVirtualGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualGatewayData = try responseDecoder.decode(responseBody: data) - self.virtualGateway = output - } else { - self.virtualGateway = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualGatewayData = try responseDecoder.decode(responseBody: data) + self.virtualGateway = output } else { self.virtualGateway = nil } @@ -3517,13 +3443,9 @@ public enum DescribeVirtualNodeOutputError: Swift.Error, Swift.Equatable { extension DescribeVirtualNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualNodeData = try responseDecoder.decode(responseBody: data) - self.virtualNode = output - } else { - self.virtualNode = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualNodeData = try responseDecoder.decode(responseBody: data) + self.virtualNode = output } else { self.virtualNode = nil } @@ -3651,13 +3573,9 @@ public enum DescribeVirtualRouterOutputError: Swift.Error, Swift.Equatable { extension DescribeVirtualRouterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualRouterData = try responseDecoder.decode(responseBody: data) - self.virtualRouter = output - } else { - self.virtualRouter = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualRouterData = try responseDecoder.decode(responseBody: data) + self.virtualRouter = output } else { self.virtualRouter = nil } @@ -3785,13 +3703,9 @@ public enum DescribeVirtualServiceOutputError: Swift.Error, Swift.Equatable { extension DescribeVirtualServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualServiceData = try responseDecoder.decode(responseBody: data) - self.virtualService = output - } else { - self.virtualService = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualServiceData = try responseDecoder.decode(responseBody: data) + self.virtualService = output } else { self.virtualService = nil } @@ -4109,9 +4023,8 @@ extension AppMeshClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4125,7 +4038,7 @@ extension ForbiddenException { } /// You don't have permissions to perform this action. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6734,9 +6647,8 @@ extension AppMeshClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6750,7 +6662,7 @@ extension InternalServerErrorException { } /// The request processing has failed because of an unknown error, exception, or failure. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6871,9 +6783,8 @@ extension AppMeshClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6887,7 +6798,7 @@ extension LimitExceededException { } /// You have exceeded a service limit for your account. For more information, see [Service Limits](https://docs.aws.amazon.com/app-mesh/latest/userguide/service-quotas.html) in the App Mesh User Guide. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7027,9 +6938,8 @@ public enum ListGatewayRoutesOutputError: Swift.Error, Swift.Equatable { extension ListGatewayRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGatewayRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayRoutes = output.gatewayRoutes self.nextToken = output.nextToken @@ -7169,9 +7079,8 @@ public enum ListMeshesOutputError: Swift.Error, Swift.Equatable { extension ListMeshesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMeshesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.meshes = output.meshes self.nextToken = output.nextToken @@ -7336,9 +7245,8 @@ public enum ListRoutesOutputError: Swift.Error, Swift.Equatable { extension ListRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routes = output.routes @@ -7490,9 +7398,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -7648,9 +7555,8 @@ public enum ListVirtualGatewaysOutputError: Swift.Error, Swift.Equatable { extension ListVirtualGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVirtualGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.virtualGateways = output.virtualGateways @@ -7806,9 +7712,8 @@ public enum ListVirtualNodesOutputError: Swift.Error, Swift.Equatable { extension ListVirtualNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVirtualNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.virtualNodes = output.virtualNodes @@ -7965,9 +7870,8 @@ public enum ListVirtualRoutersOutputError: Swift.Error, Swift.Equatable { extension ListVirtualRoutersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVirtualRoutersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.virtualRouters = output.virtualRouters @@ -8124,9 +8028,8 @@ public enum ListVirtualServicesOutputError: Swift.Error, Swift.Equatable { extension ListVirtualServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVirtualServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.virtualServices = output.virtualServices @@ -9168,9 +9071,8 @@ extension AppMeshClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9184,7 +9086,7 @@ extension NotFoundException { } /// The specified resource doesn't exist. Check your request syntax and try again. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9409,9 +9311,8 @@ extension AppMeshClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9425,7 +9326,7 @@ extension ResourceInUseException { } /// You can't delete the specified resource because it's in use or required by another resource. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9971,9 +9872,8 @@ extension AppMeshClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9987,7 +9887,7 @@ extension ServiceUnavailableException { } /// The request has failed due to a temporary failure of the service. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10706,9 +10606,8 @@ extension AppMeshClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10722,7 +10621,7 @@ extension TooManyRequestsException { } /// The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best results, use an increasing or variable sleep interval between requests. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10758,9 +10657,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10774,7 +10672,7 @@ extension TooManyTagsException { } /// The request exceeds the maximum allowed number of tags allowed per resource. The current limit is 50 user tags per resource. You must reduce the number of tags in the request. None of the tags in this request were applied. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11071,13 +10969,9 @@ public enum UpdateGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension UpdateGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.GatewayRouteData = try responseDecoder.decode(responseBody: data) - self.gatewayRoute = output - } else { - self.gatewayRoute = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.GatewayRouteData = try responseDecoder.decode(responseBody: data) + self.gatewayRoute = output } else { self.gatewayRoute = nil } @@ -11217,13 +11111,9 @@ public enum UpdateMeshOutputError: Swift.Error, Swift.Equatable { extension UpdateMeshOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.MeshData = try responseDecoder.decode(responseBody: data) - self.mesh = output - } else { - self.mesh = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.MeshData = try responseDecoder.decode(responseBody: data) + self.mesh = output } else { self.mesh = nil } @@ -11400,13 +11290,9 @@ public enum UpdateRouteOutputError: Swift.Error, Swift.Equatable { extension UpdateRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.RouteData = try responseDecoder.decode(responseBody: data) - self.route = output - } else { - self.route = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.RouteData = try responseDecoder.decode(responseBody: data) + self.route = output } else { self.route = nil } @@ -11574,13 +11460,9 @@ public enum UpdateVirtualGatewayOutputError: Swift.Error, Swift.Equatable { extension UpdateVirtualGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualGatewayData = try responseDecoder.decode(responseBody: data) - self.virtualGateway = output - } else { - self.virtualGateway = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualGatewayData = try responseDecoder.decode(responseBody: data) + self.virtualGateway = output } else { self.virtualGateway = nil } @@ -11748,13 +11630,9 @@ public enum UpdateVirtualNodeOutputError: Swift.Error, Swift.Equatable { extension UpdateVirtualNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualNodeData = try responseDecoder.decode(responseBody: data) - self.virtualNode = output - } else { - self.virtualNode = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualNodeData = try responseDecoder.decode(responseBody: data) + self.virtualNode = output } else { self.virtualNode = nil } @@ -11923,13 +11801,9 @@ public enum UpdateVirtualRouterOutputError: Swift.Error, Swift.Equatable { extension UpdateVirtualRouterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualRouterData = try responseDecoder.decode(responseBody: data) - self.virtualRouter = output - } else { - self.virtualRouter = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualRouterData = try responseDecoder.decode(responseBody: data) + self.virtualRouter = output } else { self.virtualRouter = nil } @@ -12098,13 +11972,9 @@ public enum UpdateVirtualServiceOutputError: Swift.Error, Swift.Equatable { extension UpdateVirtualServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: AppMeshClientTypes.VirtualServiceData = try responseDecoder.decode(responseBody: data) - self.virtualService = output - } else { - self.virtualService = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: AppMeshClientTypes.VirtualServiceData = try responseDecoder.decode(responseBody: data) + self.virtualService = output } else { self.virtualService = nil } diff --git a/Sources/Services/AWSAppRunner/AppRunnerClient.swift b/Sources/Services/AWSAppRunner/AppRunnerClient.swift index 754f92a5b2e..f3582cd7d66 100644 --- a/Sources/Services/AWSAppRunner/AppRunnerClient.swift +++ b/Sources/Services/AWSAppRunner/AppRunnerClient.swift @@ -208,6 +208,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateCustomDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAutoScalingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createObservabilityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcIngressConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAutoScalingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteObservabilityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcIngressConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +677,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +697,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutoScalingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +714,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +734,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +751,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +771,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeObservabilityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +788,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +808,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +825,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +845,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +862,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +882,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcIngressConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +899,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +919,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateCustomDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +936,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +956,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAutoScalingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +973,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +993,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -988,7 +1010,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1008,6 +1030,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObservabilityConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1047,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1067,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1084,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1104,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1121,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1141,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1132,7 +1158,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1152,6 +1178,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcConnectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1195,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1215,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcIngressConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1204,7 +1232,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1224,6 +1252,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pauseService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1269,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1289,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1276,7 +1306,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1296,6 +1326,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1343,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1332,6 +1363,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1348,7 +1380,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1368,6 +1400,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1384,7 +1417,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1404,6 +1437,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1420,7 +1454,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1446,6 +1480,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "apprunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVpcIngressConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1462,7 +1497,7 @@ extension AppRunnerClient: AppRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAppRunner/models/Models.swift b/Sources/Services/AWSAppRunner/models/Models.swift index 902fa713bf6..d0dc95bbf27 100644 --- a/Sources/Services/AWSAppRunner/models/Models.swift +++ b/Sources/Services/AWSAppRunner/models/Models.swift @@ -103,9 +103,8 @@ public enum AssociateCustomDomainOutputError: Swift.Error, Swift.Equatable { extension AssociateCustomDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateCustomDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customDomain = output.customDomain self.dnsTarget = output.dnsTarget @@ -1124,9 +1123,8 @@ public enum CreateAutoScalingConfigurationOutputError: Swift.Error, Swift.Equata extension CreateAutoScalingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAutoScalingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingConfiguration = output.autoScalingConfiguration } else { @@ -1277,9 +1275,8 @@ public enum CreateConnectionOutputError: Swift.Error, Swift.Equatable { extension CreateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -1429,9 +1426,8 @@ public enum CreateObservabilityConfigurationOutputError: Swift.Error, Swift.Equa extension CreateObservabilityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateObservabilityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.observabilityConfiguration = output.observabilityConfiguration } else { @@ -1654,9 +1650,8 @@ public enum CreateServiceOutputError: Swift.Error, Swift.Equatable { extension CreateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId self.service = output.service @@ -1854,9 +1849,8 @@ public enum CreateVpcConnectorOutputError: Swift.Error, Swift.Equatable { extension CreateVpcConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcConnector = output.vpcConnector } else { @@ -2022,9 +2016,8 @@ public enum CreateVpcIngressConnectionOutputError: Swift.Error, Swift.Equatable extension CreateVpcIngressConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcIngressConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcIngressConnection = output.vpcIngressConnection } else { @@ -2265,9 +2258,8 @@ public enum DeleteAutoScalingConfigurationOutputError: Swift.Error, Swift.Equata extension DeleteAutoScalingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAutoScalingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingConfiguration = output.autoScalingConfiguration } else { @@ -2381,9 +2373,8 @@ public enum DeleteConnectionOutputError: Swift.Error, Swift.Equatable { extension DeleteConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -2496,9 +2487,8 @@ public enum DeleteObservabilityConfigurationOutputError: Swift.Error, Swift.Equa extension DeleteObservabilityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteObservabilityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.observabilityConfiguration = output.observabilityConfiguration } else { @@ -2614,9 +2604,8 @@ public enum DeleteServiceOutputError: Swift.Error, Swift.Equatable { extension DeleteServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId self.service = output.service @@ -2741,9 +2730,8 @@ public enum DeleteVpcConnectorOutputError: Swift.Error, Swift.Equatable { extension DeleteVpcConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcConnector = output.vpcConnector } else { @@ -2859,9 +2847,8 @@ public enum DeleteVpcIngressConnectionOutputError: Swift.Error, Swift.Equatable extension DeleteVpcIngressConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcIngressConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcIngressConnection = output.vpcIngressConnection } else { @@ -2975,9 +2962,8 @@ public enum DescribeAutoScalingConfigurationOutputError: Swift.Error, Swift.Equa extension DescribeAutoScalingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutoScalingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingConfiguration = output.autoScalingConfiguration } else { @@ -3115,9 +3101,8 @@ public enum DescribeCustomDomainsOutputError: Swift.Error, Swift.Equatable { extension DescribeCustomDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customDomains = output.customDomains self.dnsTarget = output.dnsTarget @@ -3292,9 +3277,8 @@ public enum DescribeObservabilityConfigurationOutputError: Swift.Error, Swift.Eq extension DescribeObservabilityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeObservabilityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.observabilityConfiguration = output.observabilityConfiguration } else { @@ -3408,9 +3392,8 @@ public enum DescribeServiceOutputError: Swift.Error, Swift.Equatable { extension DescribeServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -3524,9 +3507,8 @@ public enum DescribeVpcConnectorOutputError: Swift.Error, Swift.Equatable { extension DescribeVpcConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcConnector = output.vpcConnector } else { @@ -3640,9 +3622,8 @@ public enum DescribeVpcIngressConnectionOutputError: Swift.Error, Swift.Equatabl extension DescribeVpcIngressConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcIngressConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcIngressConnection = output.vpcIngressConnection } else { @@ -3771,9 +3752,8 @@ public enum DisassociateCustomDomainOutputError: Swift.Error, Swift.Equatable { extension DisassociateCustomDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateCustomDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customDomain = output.customDomain self.dnsTarget = output.dnsTarget @@ -4407,9 +4387,8 @@ extension AppRunnerClientTypes { extension InternalServiceErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4423,7 +4402,7 @@ extension InternalServiceErrorException { } /// An unexpected service exception occurred. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4459,9 +4438,8 @@ extension InternalServiceErrorExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4475,7 +4453,7 @@ extension InvalidRequestException { } /// One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4511,9 +4489,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4527,7 +4504,7 @@ extension InvalidStateException { } /// You can't perform this action when the resource is in its current state. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4670,9 +4647,8 @@ public enum ListAutoScalingConfigurationsOutputError: Swift.Error, Swift.Equatab extension ListAutoScalingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAutoScalingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingConfigurationSummaryList = output.autoScalingConfigurationSummaryList self.nextToken = output.nextToken @@ -4826,9 +4802,8 @@ public enum ListConnectionsOutputError: Swift.Error, Swift.Equatable { extension ListConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionSummaryList = output.connectionSummaryList self.nextToken = output.nextToken @@ -4994,9 +4969,8 @@ public enum ListObservabilityConfigurationsOutputError: Swift.Error, Swift.Equat extension ListObservabilityConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObservabilityConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.observabilityConfigurationSummaryList = output.observabilityConfigurationSummaryList @@ -5153,9 +5127,8 @@ public enum ListOperationsOutputError: Swift.Error, Swift.Equatable { extension ListOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.operationSummaryList = output.operationSummaryList @@ -5296,9 +5269,8 @@ public enum ListServicesOutputError: Swift.Error, Swift.Equatable { extension ListServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceSummaryList = output.serviceSummaryList @@ -5433,9 +5405,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5566,9 +5537,8 @@ public enum ListVpcConnectorsOutputError: Swift.Error, Swift.Equatable { extension ListVpcConnectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcConnectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcConnectors = output.vpcConnectors @@ -5767,9 +5737,8 @@ public enum ListVpcIngressConnectionsOutputError: Swift.Error, Swift.Equatable { extension ListVpcIngressConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcIngressConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcIngressConnectionSummaryList = output.vpcIngressConnectionSummaryList @@ -6327,9 +6296,8 @@ public enum PauseServiceOutputError: Swift.Error, Swift.Equatable { extension PauseServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PauseServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId self.service = output.service @@ -6408,9 +6376,8 @@ extension AppRunnerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6424,7 +6391,7 @@ extension ResourceNotFoundException { } /// A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6536,9 +6503,8 @@ public enum ResumeServiceOutputError: Swift.Error, Swift.Equatable { extension ResumeServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResumeServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId self.service = output.service @@ -6879,9 +6845,8 @@ extension AppRunnerClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6895,7 +6860,7 @@ extension ServiceQuotaExceededException { } /// App Runner can't create this resource. You've reached your account quota for this resource type. For App Runner per-resource quotas, see [App Runner endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the Amazon Web Services General Reference. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7289,9 +7254,8 @@ public enum StartDeploymentOutputError: Swift.Error, Swift.Equatable { extension StartDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -7811,9 +7775,8 @@ public enum UpdateServiceOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId self.service = output.service @@ -7953,9 +7916,8 @@ public enum UpdateVpcIngressConnectionOutputError: Swift.Error, Swift.Equatable extension UpdateVpcIngressConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVpcIngressConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcIngressConnection = output.vpcIngressConnection } else { diff --git a/Sources/Services/AWSAppStream/AppStreamClient.swift b/Sources/Services/AWSAppStream/AppStreamClient.swift index def2ff2214c..c0fbd0af308 100644 --- a/Sources/Services/AWSAppStream/AppStreamClient.swift +++ b/Sources/Services/AWSAppStream/AppStreamClient.swift @@ -208,6 +208,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateApplicationFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateApplicationToEntitlement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateUserStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateUserStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDirectoryConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEntitlement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImageBuilder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImageBuilderStreamingURL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStreamingURL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUpdatedImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUsageReportSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDirectoryConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEntitlement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImageBuilder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImagePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUsageReportSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppBlocks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplicationFleetAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDirectoryConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEntitlements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImageBuilders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImagePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUsageReportSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1688,6 +1729,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserStackAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1704,7 +1746,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1724,6 +1766,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1740,7 +1783,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1760,6 +1803,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1776,7 +1820,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1796,6 +1840,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateApplicationFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1812,7 +1857,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1832,6 +1877,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateApplicationFromEntitlement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1848,7 +1894,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1868,6 +1914,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1884,7 +1931,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1904,6 +1951,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1920,7 +1968,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1940,6 +1988,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "expireSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1956,7 +2005,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1976,6 +2025,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociatedFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1992,7 +2042,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2012,6 +2062,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociatedStacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2028,7 +2079,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2048,6 +2099,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntitledApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2064,7 +2116,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2084,6 +2136,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2100,7 +2153,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2120,6 +2173,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2136,7 +2190,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2156,6 +2210,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImageBuilder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2172,7 +2227,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2192,6 +2247,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2208,7 +2264,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2228,6 +2284,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopImageBuilder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2244,7 +2301,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2264,6 +2321,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2280,7 +2338,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2300,6 +2358,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2316,7 +2375,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2336,6 +2395,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2352,7 +2412,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2372,6 +2432,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDirectoryConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2388,7 +2449,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2408,6 +2469,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEntitlement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2424,7 +2486,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2451,6 +2513,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2467,7 +2530,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2487,6 +2550,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateImagePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2503,7 +2567,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2523,6 +2587,7 @@ extension AppStreamClient: AppStreamClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appstream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2539,7 +2604,7 @@ extension AppStreamClient: AppStreamClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAppStream/models/Models.swift b/Sources/Services/AWSAppStream/models/Models.swift index cffb202d291..6998ff56d95 100644 --- a/Sources/Services/AWSAppStream/models/Models.swift +++ b/Sources/Services/AWSAppStream/models/Models.swift @@ -738,9 +738,8 @@ public enum AssociateApplicationFleetOutputError: Swift.Error, Swift.Equatable { extension AssociateApplicationFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateApplicationFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationFleetAssociation = output.applicationFleetAssociation } else { @@ -1116,9 +1115,8 @@ public enum BatchAssociateUserStackOutputError: Swift.Error, Swift.Equatable { extension BatchAssociateUserStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateUserStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1250,9 +1248,8 @@ public enum BatchDisassociateUserStackOutputError: Swift.Error, Swift.Equatable extension BatchDisassociateUserStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateUserStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1482,9 +1479,8 @@ extension AppStreamClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1498,7 +1494,7 @@ extension ConcurrentModificationException { } /// An API error occurred. Wait a few minutes and try again. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1653,9 +1649,8 @@ public enum CopyImageOutputError: Swift.Error, Swift.Equatable { extension CopyImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationImageName = output.destinationImageName } else { @@ -1844,9 +1839,8 @@ public enum CreateAppBlockOutputError: Swift.Error, Swift.Equatable { extension CreateAppBlockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppBlockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appBlock = output.appBlock } else { @@ -2124,9 +2118,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -2294,9 +2287,8 @@ public enum CreateDirectoryConfigOutputError: Swift.Error, Swift.Equatable { extension CreateDirectoryConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDirectoryConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryConfig = output.directoryConfig } else { @@ -2474,9 +2466,8 @@ public enum CreateEntitlementOutputError: Swift.Error, Swift.Equatable { extension CreateEntitlementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEntitlementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitlement = output.entitlement } else { @@ -2953,9 +2944,8 @@ public enum CreateFleetOutputError: Swift.Error, Swift.Equatable { extension CreateFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleet = output.fleet } else { @@ -3319,9 +3309,8 @@ public enum CreateImageBuilderOutputError: Swift.Error, Swift.Equatable { extension CreateImageBuilderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImageBuilderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageBuilder = output.imageBuilder } else { @@ -3444,9 +3433,8 @@ public enum CreateImageBuilderStreamingURLOutputError: Swift.Error, Swift.Equata extension CreateImageBuilderStreamingURLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImageBuilderStreamingURLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expires = output.expires self.streamingURL = output.streamingURL @@ -3769,9 +3757,8 @@ public enum CreateStackOutputError: Swift.Error, Swift.Equatable { extension CreateStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stack = output.stack } else { @@ -3948,9 +3935,8 @@ public enum CreateStreamingURLOutputError: Swift.Error, Swift.Equatable { extension CreateStreamingURLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStreamingURLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expires = output.expires self.streamingURL = output.streamingURL @@ -4154,9 +4140,8 @@ public enum CreateUpdatedImageOutputError: Swift.Error, Swift.Equatable { extension CreateUpdatedImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUpdatedImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.canUpdateImage = output.canUpdateImage self.image = output.image @@ -4259,9 +4244,8 @@ public enum CreateUsageReportSubscriptionOutputError: Swift.Error, Swift.Equatab extension CreateUsageReportSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUsageReportSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3BucketName = output.s3BucketName self.schedule = output.schedule @@ -4961,9 +4945,8 @@ public enum DeleteImageBuilderOutputError: Swift.Error, Swift.Equatable { extension DeleteImageBuilderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteImageBuilderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageBuilder = output.imageBuilder } else { @@ -5078,9 +5061,8 @@ public enum DeleteImageOutputError: Swift.Error, Swift.Equatable { extension DeleteImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.image = output.image } else { @@ -5567,9 +5549,8 @@ public enum DescribeAppBlocksOutputError: Swift.Error, Swift.Equatable { extension DescribeAppBlocksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppBlocksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appBlocks = output.appBlocks self.nextToken = output.nextToken @@ -5734,9 +5715,8 @@ public enum DescribeApplicationFleetAssociationsOutputError: Swift.Error, Swift. extension DescribeApplicationFleetAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationFleetAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationFleetAssociations = output.applicationFleetAssociations self.nextToken = output.nextToken @@ -5901,9 +5881,8 @@ public enum DescribeApplicationsOutputError: Swift.Error, Swift.Equatable { extension DescribeApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications self.nextToken = output.nextToken @@ -6066,9 +6045,8 @@ public enum DescribeDirectoryConfigsOutputError: Swift.Error, Swift.Equatable { extension DescribeDirectoryConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDirectoryConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryConfigs = output.directoryConfigs self.nextToken = output.nextToken @@ -6236,9 +6214,8 @@ public enum DescribeEntitlementsOutputError: Swift.Error, Swift.Equatable { extension DescribeEntitlementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEntitlementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitlements = output.entitlements self.nextToken = output.nextToken @@ -6389,9 +6366,8 @@ public enum DescribeFleetsOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleets = output.fleets self.nextToken = output.nextToken @@ -6554,9 +6530,8 @@ public enum DescribeImageBuildersOutputError: Swift.Error, Swift.Equatable { extension DescribeImageBuildersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImageBuildersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageBuilders = output.imageBuilders self.nextToken = output.nextToken @@ -6732,9 +6707,8 @@ public enum DescribeImagePermissionsOutputError: Swift.Error, Swift.Equatable { extension DescribeImagePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImagePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name self.nextToken = output.nextToken @@ -6945,9 +6919,8 @@ public enum DescribeImagesOutputError: Swift.Error, Swift.Equatable { extension DescribeImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.images = output.images self.nextToken = output.nextToken @@ -7136,9 +7109,8 @@ public enum DescribeSessionsOutputError: Swift.Error, Swift.Equatable { extension DescribeSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sessions = output.sessions @@ -7289,9 +7261,8 @@ public enum DescribeStacksOutputError: Swift.Error, Swift.Equatable { extension DescribeStacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stacks = output.stacks @@ -7432,9 +7403,8 @@ public enum DescribeUsageReportSubscriptionsOutputError: Swift.Error, Swift.Equa extension DescribeUsageReportSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUsageReportSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.usageReportSubscriptions = output.usageReportSubscriptions @@ -7616,9 +7586,8 @@ public enum DescribeUserStackAssociationsOutputError: Swift.Error, Swift.Equatab extension DescribeUserStackAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserStackAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userStackAssociations = output.userStackAssociations @@ -7774,9 +7743,8 @@ public enum DescribeUsersOutputError: Swift.Error, Swift.Equatable { extension DescribeUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.users = output.users @@ -8618,9 +8586,8 @@ extension AppStreamClientTypes { extension EntitlementAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntitlementAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8634,7 +8601,7 @@ extension EntitlementAlreadyExistsException { } /// The entitlement already exists. -public struct EntitlementAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntitlementAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8732,9 +8699,8 @@ extension AppStreamClientTypes { extension EntitlementNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntitlementNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8748,7 +8714,7 @@ extension EntitlementNotFoundException { } /// The entitlement can't be found. -public struct EntitlementNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntitlementNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10326,9 +10292,8 @@ extension AppStreamClientTypes { extension IncompatibleImageException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncompatibleImageExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10342,7 +10307,7 @@ extension IncompatibleImageException { } /// The image can't be updated because it's not compatible for updates. -public struct IncompatibleImageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleImageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10379,9 +10344,8 @@ extension IncompatibleImageExceptionBody: Swift.Decodable { extension InvalidAccountStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAccountStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10395,7 +10359,7 @@ extension InvalidAccountStatusException { } /// The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support. -public struct InvalidAccountStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAccountStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10432,9 +10396,8 @@ extension InvalidAccountStatusExceptionBody: Swift.Decodable { extension InvalidParameterCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterCombinationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10448,7 +10411,7 @@ extension InvalidParameterCombinationException { } /// Indicates an incorrect combination of parameters, or a missing parameter. -public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10485,9 +10448,8 @@ extension InvalidParameterCombinationExceptionBody: Swift.Decodable { extension InvalidRoleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRoleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10501,7 +10463,7 @@ extension InvalidRoleException { } /// The specified role is invalid. -public struct InvalidRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10583,9 +10545,8 @@ extension AppStreamClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10599,7 +10560,7 @@ extension LimitExceededException { } /// The requested limit exceeds the permitted limit for an account. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10716,9 +10677,8 @@ public enum ListAssociatedFleetsOutputError: Swift.Error, Swift.Equatable { extension ListAssociatedFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociatedFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.names = output.names self.nextToken = output.nextToken @@ -10856,9 +10816,8 @@ public enum ListAssociatedStacksOutputError: Swift.Error, Swift.Equatable { extension ListAssociatedStacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociatedStacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.names = output.names self.nextToken = output.nextToken @@ -11027,9 +10986,8 @@ public enum ListEntitledApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListEntitledApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntitledApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitledApplications = output.entitledApplications self.nextToken = output.nextToken @@ -11157,9 +11115,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -11284,9 +11241,8 @@ extension AppStreamClientTypes { extension OperationNotPermittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotPermittedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11300,7 +11256,7 @@ extension OperationNotPermittedException { } /// The attempted operation is not permitted. -public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11439,9 +11395,8 @@ extension AppStreamClientTypes { extension RequestLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11455,7 +11410,7 @@ extension RequestLimitExceededException { } /// AppStream 2.0 can’t process the request right now because the Describe calls from your AWS account are being throttled by Amazon EC2. Try again later. -public struct RequestLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11492,9 +11447,8 @@ extension RequestLimitExceededExceptionBody: Swift.Decodable { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11508,7 +11462,7 @@ extension ResourceAlreadyExistsException { } /// The specified resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11600,9 +11554,8 @@ extension AppStreamClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11616,7 +11569,7 @@ extension ResourceInUseException { } /// The specified resource is in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11653,9 +11606,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotAvailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotAvailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11669,7 +11621,7 @@ extension ResourceNotAvailableException { } /// The specified resource exists and is not in use, but isn't available. -public struct ResourceNotAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11706,9 +11658,8 @@ extension ResourceNotAvailableExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11722,7 +11673,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12720,9 +12671,8 @@ public enum StartImageBuilderOutputError: Swift.Error, Swift.Equatable { extension StartImageBuilderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImageBuilderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageBuilder = output.imageBuilder } else { @@ -12917,9 +12867,8 @@ public enum StopImageBuilderOutputError: Swift.Error, Swift.Equatable { extension StopImageBuilderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopImageBuilderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageBuilder = output.imageBuilder } else { @@ -13525,9 +13474,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -13692,9 +13640,8 @@ public enum UpdateDirectoryConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateDirectoryConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDirectoryConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryConfig = output.directoryConfig } else { @@ -13870,9 +13817,8 @@ public enum UpdateEntitlementOutputError: Swift.Error, Swift.Equatable { extension UpdateEntitlementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEntitlementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitlement = output.entitlement } else { @@ -14348,9 +14294,8 @@ public enum UpdateFleetOutputError: Swift.Error, Swift.Equatable { extension UpdateFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleet = output.fleet } else { @@ -14790,9 +14735,8 @@ public enum UpdateStackOutputError: Swift.Error, Swift.Equatable { extension UpdateStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stack = output.stack } else { diff --git a/Sources/Services/AWSAppSync/AppSyncClient.swift b/Sources/Services/AWSAppSync/AppSyncClient.swift index 3625ea2276c..b2a0314c851 100644 --- a/Sources/Services/AWSAppSync/AppSyncClient.swift +++ b/Sources/Services/AWSAppSync/AppSyncClient.swift @@ -208,6 +208,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApiCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGraphqlApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResolver") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApiCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +545,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +565,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -567,7 +578,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +598,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +611,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -619,6 +631,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -631,7 +644,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -651,6 +664,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -663,7 +677,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -683,6 +697,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGraphqlApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -695,7 +710,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -715,6 +730,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResolver") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -727,7 +743,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -747,6 +763,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -759,7 +776,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -779,6 +796,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -791,7 +809,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -811,6 +829,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "evaluateCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -826,7 +845,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -846,6 +865,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "evaluateMappingTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -861,7 +881,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -881,6 +901,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "flushApiCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -893,7 +914,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -913,6 +934,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApiAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -925,7 +947,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -945,6 +967,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApiCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -957,7 +980,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -977,6 +1000,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1013,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1033,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1021,7 +1046,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1041,6 +1066,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1053,7 +1079,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1073,6 +1099,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGraphqlApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1085,7 +1112,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1105,6 +1132,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntrospectionSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1118,7 +1146,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1138,6 +1166,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolver") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1150,7 +1179,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1170,6 +1199,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchemaCreationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1182,7 +1212,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1202,6 +1232,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1215,7 +1246,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1235,6 +1266,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApiKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1280,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1300,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1281,7 +1314,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1301,6 +1334,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1314,7 +1348,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1334,6 +1368,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFunctions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1382,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1367,6 +1402,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGraphqlApis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1380,7 +1416,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1400,6 +1436,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolvers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1413,7 +1450,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1433,6 +1470,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolversByFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1446,7 +1484,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1466,6 +1504,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1478,7 +1517,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1498,6 +1537,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1511,7 +1551,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1531,6 +1571,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSchemaCreation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1546,7 +1587,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1566,6 +1607,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1581,7 +1623,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1601,6 +1643,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1614,7 +1657,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1634,6 +1677,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApiCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1649,7 +1693,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1669,6 +1713,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1684,7 +1729,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1704,6 +1749,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1719,7 +1765,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1739,6 +1785,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1754,7 +1801,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1774,6 +1821,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1789,7 +1837,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1809,6 +1857,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGraphqlApi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1824,7 +1873,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1844,6 +1893,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResolver") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1859,7 +1909,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1879,6 +1929,7 @@ extension AppSyncClient: AppSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appsync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1894,7 +1945,7 @@ extension AppSyncClient: AppSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAppSync/models/Models.swift b/Sources/Services/AWSAppSync/models/Models.swift index ca27bd6b8ee..ed0a8b8e298 100644 --- a/Sources/Services/AWSAppSync/models/Models.swift +++ b/Sources/Services/AWSAppSync/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have access to perform this operation on this resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -558,9 +557,8 @@ extension AppSyncClientTypes { extension ApiKeyLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApiKeyLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -574,7 +572,7 @@ extension ApiKeyLimitExceededException { } /// The API key exceeded a limit. Try your request again. -public struct ApiKeyLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApiKeyLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -610,9 +608,8 @@ extension ApiKeyLimitExceededExceptionBody: Swift.Decodable { extension ApiKeyValidityOutOfBoundsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApiKeyValidityOutOfBoundsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -626,7 +623,7 @@ extension ApiKeyValidityOutOfBoundsException { } /// The API key expiration must be set to a value between 1 and 365 days from creation (for CreateApiKey) or from update (for UpdateApiKey). -public struct ApiKeyValidityOutOfBoundsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApiKeyValidityOutOfBoundsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -662,9 +659,8 @@ extension ApiKeyValidityOutOfBoundsExceptionBody: Swift.Decodable { extension ApiLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApiLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -678,7 +674,7 @@ extension ApiLimitExceededException { } /// The GraphQL API exceeded a limit. Try your request again. -public struct ApiLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApiLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -845,9 +841,8 @@ public enum AssociateApiOutputError: Swift.Error, Swift.Equatable { extension AssociateApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiAssociation = output.apiAssociation } else { @@ -1131,9 +1126,8 @@ extension AppSyncClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.detail = output.detail self.message = output.message @@ -1151,7 +1145,7 @@ extension BadRequestException { } /// The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1458,9 +1452,8 @@ extension AppSyncClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1474,7 +1467,7 @@ extension ConcurrentModificationException { } /// Another modification is in progress at this time and it must complete before you can make your change. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1754,9 +1747,8 @@ public enum CreateApiCacheOutputError: Swift.Error, Swift.Equatable { extension CreateApiCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApiCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiCache = output.apiCache } else { @@ -1897,9 +1889,8 @@ public enum CreateApiKeyOutputError: Swift.Error, Swift.Equatable { extension CreateApiKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApiKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKey = output.apiKey } else { @@ -2145,9 +2136,8 @@ public enum CreateDataSourceOutputError: Swift.Error, Swift.Equatable { extension CreateDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSource = output.dataSource } else { @@ -2285,9 +2275,8 @@ public enum CreateDomainNameOutputError: Swift.Error, Swift.Equatable { extension CreateDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainNameConfig = output.domainNameConfig } else { @@ -2519,9 +2508,8 @@ public enum CreateFunctionOutputError: Swift.Error, Swift.Equatable { extension CreateFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFunctionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionConfiguration = output.functionConfiguration } else { @@ -2761,9 +2749,8 @@ public enum CreateGraphqlApiOutputError: Swift.Error, Swift.Equatable { extension CreateGraphqlApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGraphqlApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.graphqlApi = output.graphqlApi } else { @@ -3020,9 +3007,8 @@ public enum CreateResolverOutputError: Swift.Error, Swift.Equatable { extension CreateResolverOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResolverOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolver = output.resolver } else { @@ -3160,9 +3146,8 @@ public enum CreateTypeOutputError: Swift.Error, Swift.Equatable { extension CreateTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.type = output.type } else { @@ -4589,9 +4574,8 @@ public enum EvaluateCodeOutputError: Swift.Error, Swift.Equatable { extension EvaluateCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EvaluateCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.evaluationResult = output.evaluationResult @@ -4746,9 +4730,8 @@ public enum EvaluateMappingTemplateOutputError: Swift.Error, Swift.Equatable { extension EvaluateMappingTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EvaluateMappingTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.evaluationResult = output.evaluationResult @@ -5164,9 +5147,8 @@ public enum GetApiAssociationOutputError: Swift.Error, Swift.Equatable { extension GetApiAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApiAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiAssociation = output.apiAssociation } else { @@ -5267,9 +5249,8 @@ public enum GetApiCacheOutputError: Swift.Error, Swift.Equatable { extension GetApiCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApiCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiCache = output.apiCache } else { @@ -5378,9 +5359,8 @@ public enum GetDataSourceOutputError: Swift.Error, Swift.Equatable { extension GetDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSource = output.dataSource } else { @@ -5478,9 +5458,8 @@ public enum GetDomainNameOutputError: Swift.Error, Swift.Equatable { extension GetDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainNameConfig = output.domainNameConfig } else { @@ -5584,9 +5563,8 @@ public enum GetFunctionOutputError: Swift.Error, Swift.Equatable { extension GetFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionConfiguration = output.functionConfiguration } else { @@ -5686,9 +5664,8 @@ public enum GetGraphqlApiOutputError: Swift.Error, Swift.Equatable { extension GetGraphqlApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGraphqlApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.graphqlApi = output.graphqlApi } else { @@ -5814,9 +5791,12 @@ public enum GetIntrospectionSchemaOutputError: Swift.Error, Swift.Equatable { extension GetIntrospectionSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.schema = data - } else { + case .stream(let stream): + self.schema = try stream.readToEnd() + case .none: self.schema = nil } } @@ -5925,9 +5905,8 @@ public enum GetResolverOutputError: Swift.Error, Swift.Equatable { extension GetResolverOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolver = output.resolver } else { @@ -6025,9 +6004,8 @@ public enum GetSchemaCreationStatusOutputError: Swift.Error, Swift.Equatable { extension GetSchemaCreationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSchemaCreationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.details = output.details self.status = output.status @@ -6165,9 +6143,8 @@ public enum GetTypeOutputError: Swift.Error, Swift.Equatable { extension GetTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.type = output.type } else { @@ -6206,9 +6183,8 @@ extension GetTypeOutputResponseBody: Swift.Decodable { extension GraphQLSchemaException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GraphQLSchemaExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6222,7 +6198,7 @@ extension GraphQLSchemaException { } /// The GraphQL schema is not valid. -public struct GraphQLSchemaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GraphQLSchemaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6494,9 +6470,8 @@ extension AppSyncClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6510,7 +6485,7 @@ extension InternalFailureException { } /// An internal AppSync error occurred. Try your request again. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6673,9 +6648,8 @@ extension AppSyncClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6689,7 +6663,7 @@ extension LimitExceededException { } /// The request exceeded a limit. Try your request again. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6809,9 +6783,8 @@ public enum ListApiKeysOutputError: Swift.Error, Swift.Equatable { extension ListApiKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApiKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKeys = output.apiKeys self.nextToken = output.nextToken @@ -6953,9 +6926,8 @@ public enum ListDataSourcesOutputError: Swift.Error, Swift.Equatable { extension ListDataSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSources = output.dataSources self.nextToken = output.nextToken @@ -7087,9 +7059,8 @@ public enum ListDomainNamesOutputError: Swift.Error, Swift.Equatable { extension ListDomainNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainNameConfigs = output.domainNameConfigs self.nextToken = output.nextToken @@ -7231,9 +7202,8 @@ public enum ListFunctionsOutputError: Swift.Error, Swift.Equatable { extension ListFunctionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFunctionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functions = output.functions self.nextToken = output.nextToken @@ -7365,9 +7335,8 @@ public enum ListGraphqlApisOutputError: Swift.Error, Swift.Equatable { extension ListGraphqlApisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGraphqlApisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.graphqlApis = output.graphqlApis self.nextToken = output.nextToken @@ -7517,9 +7486,8 @@ public enum ListResolversByFunctionOutputError: Swift.Error, Swift.Equatable { extension ListResolversByFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolversByFunctionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resolvers = output.resolvers @@ -7669,9 +7637,8 @@ public enum ListResolversOutputError: Swift.Error, Swift.Equatable { extension ListResolversOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolversOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resolvers = output.resolvers @@ -7792,9 +7759,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7939,9 +7905,8 @@ public enum ListTypesOutputError: Swift.Error, Swift.Equatable { extension ListTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.types = output.types @@ -8118,9 +8083,8 @@ extension AppSyncClientTypes.ModelType: Swift.Codable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8134,7 +8098,7 @@ extension NotFoundException { } /// The resource specified in the request was not found. Check the resource, and then try again. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8863,9 +8827,8 @@ public enum StartSchemaCreationOutputError: Swift.Error, Swift.Equatable { extension StartSchemaCreationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSchemaCreationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -9143,9 +9106,8 @@ extension AppSyncClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9159,7 +9121,7 @@ extension UnauthorizedException { } /// You aren't authorized to perform this operation. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9440,9 +9402,8 @@ public enum UpdateApiCacheOutputError: Swift.Error, Swift.Equatable { extension UpdateApiCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApiCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiCache = output.apiCache } else { @@ -9589,9 +9550,8 @@ public enum UpdateApiKeyOutputError: Swift.Error, Swift.Equatable { extension UpdateApiKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApiKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiKey = output.apiKey } else { @@ -9832,9 +9792,8 @@ public enum UpdateDataSourceOutputError: Swift.Error, Swift.Equatable { extension UpdateDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSource = output.dataSource } else { @@ -9958,9 +9917,8 @@ public enum UpdateDomainNameOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainNameConfig = output.domainNameConfig } else { @@ -10200,9 +10158,8 @@ public enum UpdateFunctionOutputError: Swift.Error, Swift.Equatable { extension UpdateFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFunctionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionConfiguration = output.functionConfiguration } else { @@ -10425,9 +10382,8 @@ public enum UpdateGraphqlApiOutputError: Swift.Error, Swift.Equatable { extension UpdateGraphqlApiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGraphqlApiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.graphqlApi = output.graphqlApi } else { @@ -10679,9 +10635,8 @@ public enum UpdateResolverOutputError: Swift.Error, Swift.Equatable { extension UpdateResolverOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResolverOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolver = output.resolver } else { @@ -10826,9 +10781,8 @@ public enum UpdateTypeOutputError: Swift.Error, Swift.Equatable { extension UpdateTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.type = output.type } else { diff --git a/Sources/Services/AWSAppflow/AppflowClient.swift b/Sources/Services/AWSAppflow/AppflowClient.swift index 655c4da9695..97563824739 100644 --- a/Sources/Services/AWSAppflow/AppflowClient.swift +++ b/Sources/Services/AWSAppflow/AppflowClient.swift @@ -208,6 +208,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnectorProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFlow") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnectorProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -309,7 +312,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -329,6 +332,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -344,7 +348,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -364,6 +368,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -379,7 +384,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -399,6 +404,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnectorEntity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -414,7 +420,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -434,6 +440,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnectorProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -449,7 +456,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -469,6 +476,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +528,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +548,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFlowExecutionRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -554,7 +564,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -574,6 +584,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnectorEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -589,7 +600,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -609,6 +620,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -624,7 +636,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -644,6 +656,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFlows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -659,7 +672,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -679,6 +692,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -691,7 +705,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -711,6 +725,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerConnector") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -734,7 +749,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -754,6 +769,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFlow") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -777,7 +793,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -797,6 +813,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -812,7 +829,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -832,6 +849,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -847,7 +865,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -867,6 +885,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unregisterConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -882,7 +901,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +921,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +935,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +955,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnectorProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -958,7 +979,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -982,6 +1003,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnectorRegistration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1005,7 +1027,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1025,6 +1047,7 @@ extension AppflowClient: AppflowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "appflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFlow") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1048,7 +1071,7 @@ extension AppflowClient: AppflowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAppflow/models/Models.swift b/Sources/Services/AWSAppflow/models/Models.swift index 7e738d7b9e3..44e23a8ead5 100644 --- a/Sources/Services/AWSAppflow/models/Models.swift +++ b/Sources/Services/AWSAppflow/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// AppFlow/Requester has invalid or missing permissions. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -654,9 +653,8 @@ extension AppflowClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -670,7 +668,7 @@ extension ConflictException { } /// There was a conflict when processing the request (for example, a flow with the given name already exists within the account. Check for conflicting resource names and try again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -738,9 +736,8 @@ extension AppflowClientTypes { extension ConnectorAuthenticationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConnectorAuthenticationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -754,7 +751,7 @@ extension ConnectorAuthenticationException { } /// An error occurred when authenticating with the connector endpoint. -public struct ConnectorAuthenticationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConnectorAuthenticationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2780,9 +2777,8 @@ extension AppflowClientTypes { extension ConnectorServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConnectorServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2796,7 +2792,7 @@ extension ConnectorServerException { } /// An error occurred when retrieving data from the connector endpoint. -public struct ConnectorServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConnectorServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3083,9 +3079,8 @@ public enum CreateConnectorProfileOutputError: Swift.Error, Swift.Equatable { extension CreateConnectorProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectorProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorProfileArn = output.connectorProfileArn } else { @@ -3354,9 +3349,8 @@ public enum CreateFlowOutputError: Swift.Error, Swift.Equatable { extension CreateFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.flowStatus = output.flowStatus @@ -4430,9 +4424,8 @@ public enum DescribeConnectorEntityOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectorEntityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectorEntityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorEntityFields = output.connectorEntityFields } else { @@ -4567,9 +4560,8 @@ public enum DescribeConnectorOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorConfiguration = output.connectorConfiguration } else { @@ -4739,9 +4731,8 @@ public enum DescribeConnectorProfilesOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectorProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectorProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorProfileDetails = output.connectorProfileDetails self.nextToken = output.nextToken @@ -4906,9 +4897,8 @@ public enum DescribeConnectorsOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorConfigurations = output.connectorConfigurations self.connectors = output.connectors @@ -5083,9 +5073,8 @@ public enum DescribeFlowExecutionRecordsOutputError: Swift.Error, Swift.Equatabl extension DescribeFlowExecutionRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFlowExecutionRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowExecutions = output.flowExecutions self.nextToken = output.nextToken @@ -5215,9 +5204,8 @@ public enum DescribeFlowOutputError: Swift.Error, Swift.Equatable { extension DescribeFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.createdBy = output.createdBy @@ -7541,9 +7529,8 @@ extension AppflowClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7557,7 +7544,7 @@ extension InternalServerException { } /// An internal service error occurred during the processing of your request. Try again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7766,9 +7753,8 @@ public enum ListConnectorEntitiesOutputError: Swift.Error, Swift.Equatable { extension ListConnectorEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectorEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorEntityMap = output.connectorEntityMap self.nextToken = output.nextToken @@ -7917,9 +7903,8 @@ public enum ListConnectorsOutputError: Swift.Error, Swift.Equatable { extension ListConnectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectors = output.connectors self.nextToken = output.nextToken @@ -8060,9 +8045,8 @@ public enum ListFlowsOutputError: Swift.Error, Swift.Equatable { extension ListFlowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFlowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flows = output.flows self.nextToken = output.nextToken @@ -8177,9 +8161,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10486,9 +10469,8 @@ public enum RegisterConnectorOutputError: Swift.Error, Swift.Equatable { extension RegisterConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorArn = output.connectorArn } else { @@ -10582,9 +10564,8 @@ extension AppflowClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10598,7 +10579,7 @@ extension ResourceNotFoundException { } /// The resource specified in the request (such as the source or destination connector profile) is not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12237,9 +12218,8 @@ extension AppflowClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12253,7 +12233,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota (such as the number of flows) to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13427,9 +13407,8 @@ public enum StartFlowOutputError: Swift.Error, Swift.Equatable { extension StartFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionId = output.executionId self.flowArn = output.flowArn @@ -13564,9 +13543,8 @@ public enum StopFlowOutputError: Swift.Error, Swift.Equatable { extension StopFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.flowStatus = output.flowStatus @@ -13957,9 +13935,8 @@ extension AppflowClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13973,7 +13950,7 @@ extension ThrottlingException { } /// API calls have exceeded the maximum allowed API request rate per account and per Region. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14406,9 +14383,8 @@ public struct UnregisterConnectorOutputResponse: Swift.Equatable { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14422,7 +14398,7 @@ extension UnsupportedOperationException { } /// The requested operation is not supported for the current flow. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14663,9 +14639,8 @@ public enum UpdateConnectorProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectorProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectorProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorProfileArn = output.connectorProfileArn } else { @@ -14826,9 +14801,8 @@ public enum UpdateConnectorRegistrationOutputError: Swift.Error, Swift.Equatable extension UpdateConnectorRegistrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectorRegistrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorArn = output.connectorArn } else { @@ -15061,9 +15035,8 @@ public enum UpdateFlowOutputError: Swift.Error, Swift.Equatable { extension UpdateFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowStatus = output.flowStatus } else { @@ -15235,9 +15208,8 @@ extension AppflowClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15251,7 +15223,7 @@ extension ValidationException { } /// The request has invalid or missing parameters. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSApplicationAutoScaling/ApplicationAutoScalingClient.swift b/Sources/Services/AWSApplicationAutoScaling/ApplicationAutoScalingClient.swift index 454d4859bb0..a2ec5e4e99c 100644 --- a/Sources/Services/AWSApplicationAutoScaling/ApplicationAutoScalingClient.swift +++ b/Sources/Services/AWSApplicationAutoScaling/ApplicationAutoScalingClient.swift @@ -208,6 +208,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScheduledAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterScalableTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalableTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalingActivities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalingPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScheduledActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putScheduledAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerScalableTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension ApplicationAutoScalingClient: ApplicationAutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSApplicationAutoScaling/models/Models.swift b/Sources/Services/AWSApplicationAutoScaling/models/Models.swift index 51c245404e1..e3ee6a3e1f4 100644 --- a/Sources/Services/AWSApplicationAutoScaling/models/Models.swift +++ b/Sources/Services/AWSApplicationAutoScaling/models/Models.swift @@ -86,9 +86,8 @@ extension ApplicationAutoScalingClientTypes { extension ConcurrentUpdateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentUpdateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -102,7 +101,7 @@ extension ConcurrentUpdateException { } /// Concurrent updates caused an exception, for example, if you request an update to an Application Auto Scaling resource that already has a pending update. -public struct ConcurrentUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1040,9 +1039,8 @@ public enum DescribeScalableTargetsOutputError: Swift.Error, Swift.Equatable { extension DescribeScalableTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalableTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scalableTargets = output.scalableTargets @@ -1308,9 +1306,8 @@ public enum DescribeScalingActivitiesOutputError: Swift.Error, Swift.Equatable { extension DescribeScalingActivitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalingActivitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scalingActivities = output.scalingActivities @@ -1590,9 +1587,8 @@ public enum DescribeScalingPoliciesOutputError: Swift.Error, Swift.Equatable { extension DescribeScalingPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalingPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scalingPolicies = output.scalingPolicies @@ -1870,9 +1866,8 @@ public enum DescribeScheduledActionsOutputError: Swift.Error, Swift.Equatable { extension DescribeScheduledActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduledActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduledActions = output.scheduledActions @@ -1930,9 +1925,8 @@ extension DescribeScheduledActionsOutputResponseBody: Swift.Decodable { extension FailedResourceAccessException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailedResourceAccessExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1946,7 +1940,7 @@ extension FailedResourceAccessException { } /// Failed access to resources caused an exception. This exception is thrown when Application Auto Scaling is unable to retrieve the alarms associated with a scaling policy due to a client error, for example, if the role ARN specified for a scalable target does not have permission to call the CloudWatch [DescribeAlarms](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html) on your behalf. -public struct FailedResourceAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FailedResourceAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1982,9 +1976,8 @@ extension FailedResourceAccessExceptionBody: Swift.Decodable { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1998,7 +1991,7 @@ extension InternalServiceException { } /// The service encountered an internal error. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2034,9 +2027,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2050,7 +2042,7 @@ extension InvalidNextTokenException { } /// The next token supplied was invalid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2086,9 +2078,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2102,7 +2093,7 @@ extension LimitExceededException { } /// A per-account resource limit is exceeded. For more information, see [Application Auto Scaling service quotas](https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html). -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2208,9 +2199,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2546,9 +2536,8 @@ extension ApplicationAutoScalingClientTypes { extension ObjectNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ObjectNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2562,7 +2551,7 @@ extension ObjectNotFoundException { } /// The specified object could not be found. For any operation that depends on the existence of a scalable target, this exception is thrown if the scalable target with the specified service namespace, resource ID, and scalable dimension does not exist. For any operation that deletes or deregisters a resource, this exception is thrown if the resource cannot be found. -public struct ObjectNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ObjectNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2910,9 +2899,8 @@ public enum PutScalingPolicyOutputError: Swift.Error, Swift.Equatable { extension PutScalingPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutScalingPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarms = output.alarms self.policyARN = output.policyARN @@ -3513,9 +3501,8 @@ public enum RegisterScalableTargetOutputError: Swift.Error, Swift.Equatable { extension RegisterScalableTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterScalableTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scalableTargetARN = output.scalableTargetARN } else { @@ -3554,9 +3541,8 @@ extension RegisterScalableTargetOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -3572,7 +3558,7 @@ extension ResourceNotFoundException { } /// The specified resource doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5470,9 +5456,8 @@ extension ApplicationAutoScalingClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -5488,7 +5473,7 @@ extension TooManyTagsException { } /// The request contains too many tags. Try the request again with fewer tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5639,9 +5624,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5655,7 +5639,7 @@ extension ValidationException { } /// An exception was thrown for a validation issue. Review the available parameters for the API request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSApplicationCostProfiler/ApplicationCostProfilerClient.swift b/Sources/Services/AWSApplicationCostProfiler/ApplicationCostProfilerClient.swift index 69587bd4412..009b603ca1f 100644 --- a/Sources/Services/AWSApplicationCostProfiler/ApplicationCostProfilerClient.swift +++ b/Sources/Services/AWSApplicationCostProfiler/ApplicationCostProfilerClient.swift @@ -208,6 +208,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-cost-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReportDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-cost-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReportDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-cost-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importApplicationUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-cost-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReportDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-cost-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putReportDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -355,7 +360,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -375,6 +380,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "application-cost-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReportDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -390,7 +396,7 @@ extension ApplicationCostProfilerClient: ApplicationCostProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSApplicationCostProfiler/models/Models.swift b/Sources/Services/AWSApplicationCostProfiler/models/Models.swift index 5c5871ae0c9..311e67c3372 100644 --- a/Sources/Services/AWSApplicationCostProfiler/models/Models.swift +++ b/Sources/Services/AWSApplicationCostProfiler/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have permission to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -115,9 +114,8 @@ public enum DeleteReportDefinitionOutputError: Swift.Error, Swift.Equatable { extension DeleteReportDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteReportDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportId = output.reportId } else { @@ -247,9 +245,8 @@ public enum GetReportDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetReportDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReportDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.destinationS3Location = output.destinationS3Location @@ -431,9 +428,8 @@ public enum ImportApplicationUsageOutputError: Swift.Error, Swift.Equatable { extension ImportApplicationUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportApplicationUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importId = output.importId } else { @@ -473,9 +469,8 @@ extension ImportApplicationUsageOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -489,7 +484,7 @@ extension InternalServerException { } /// An internal server error occurred. Retry your request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -601,9 +596,8 @@ public enum ListReportDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListReportDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReportDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportDefinitions = output.reportDefinitions @@ -791,9 +785,8 @@ public enum PutReportDefinitionOutputError: Swift.Error, Swift.Equatable { extension PutReportDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutReportDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportId = output.reportId } else { @@ -1047,9 +1040,8 @@ extension ApplicationCostProfilerClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1063,7 +1055,7 @@ extension ServiceQuotaExceededException { } /// Your request exceeds one or more of the service quotas. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1156,9 +1148,8 @@ extension ApplicationCostProfilerClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1172,7 +1163,7 @@ extension ThrottlingException { } /// The calls to AWS Application Cost Profiler API are throttled. The request was denied. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1331,9 +1322,8 @@ public enum UpdateReportDefinitionOutputError: Swift.Error, Swift.Equatable { extension UpdateReportDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReportDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportId = output.reportId } else { @@ -1372,9 +1362,8 @@ extension UpdateReportDefinitionOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1388,7 +1377,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints for the API. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSApplicationDiscoveryService/ApplicationDiscoveryClient.swift b/Sources/Services/AWSApplicationDiscoveryService/ApplicationDiscoveryClient.swift index e409a8a6fbb..10324860585 100644 --- a/Sources/Services/AWSApplicationDiscoveryService/ApplicationDiscoveryClient.swift +++ b/Sources/Services/AWSApplicationDiscoveryService/ApplicationDiscoveryClient.swift @@ -208,6 +208,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateConfigurationItemsToApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteImportData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAgents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +478,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +495,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +515,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContinuousExports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +532,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -544,6 +553,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExportConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -560,7 +570,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -580,6 +590,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExportTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -596,7 +607,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +627,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImportTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -632,7 +644,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -661,6 +673,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -677,7 +690,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -697,6 +710,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateConfigurationItemsFromApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +727,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -734,6 +748,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +765,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +785,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDiscoverySummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -786,7 +802,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -806,6 +822,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -822,7 +839,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -842,6 +859,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServerNeighbors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -858,7 +876,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -878,6 +896,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startContinuousExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -894,7 +913,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -914,6 +933,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDataCollectionByAgentIds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -930,7 +950,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -950,6 +970,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startExportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -966,7 +987,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -997,6 +1018,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImportTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1021,7 +1043,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1041,6 +1063,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopContinuousExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1057,7 +1080,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1077,6 +1100,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDataCollectionByAgentIds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1093,7 +1117,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1113,6 +1137,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "discovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1129,7 +1154,7 @@ extension ApplicationDiscoveryClient: ApplicationDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSApplicationDiscoveryService/models/Models.swift b/Sources/Services/AWSApplicationDiscoveryService/models/Models.swift index dbc89bc25c6..a1831d83db8 100644 --- a/Sources/Services/AWSApplicationDiscoveryService/models/Models.swift +++ b/Sources/Services/AWSApplicationDiscoveryService/models/Models.swift @@ -398,9 +398,8 @@ public struct AssociateConfigurationItemsToApplicationOutputResponse: Swift.Equa extension AuthorizationErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizationErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -414,7 +413,7 @@ extension AuthorizationErrorException { } /// The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account. -public struct AuthorizationErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -630,9 +629,8 @@ public enum BatchDeleteImportDataOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteImportDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteImportDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -793,9 +791,8 @@ extension ApplicationDiscoveryClientTypes { extension ConflictErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -809,7 +806,7 @@ extension ConflictErrorException { } /// -public struct ConflictErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1145,9 +1142,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationId = output.configurationId } else { @@ -2105,9 +2101,8 @@ public enum DescribeAgentsOutputError: Swift.Error, Swift.Equatable { extension DescribeAgentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAgentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentsInfo = output.agentsInfo self.nextToken = output.nextToken @@ -2255,9 +2250,8 @@ public enum DescribeConfigurationsOutputError: Swift.Error, Swift.Equatable { extension DescribeConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurations = output.configurations } else { @@ -2431,9 +2425,8 @@ public enum DescribeContinuousExportsOutputError: Swift.Error, Swift.Equatable { extension DescribeContinuousExportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContinuousExportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.descriptions = output.descriptions self.nextToken = output.nextToken @@ -2606,9 +2599,8 @@ public enum DescribeExportConfigurationsOutputError: Swift.Error, Swift.Equatabl extension DescribeExportConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExportConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportsInfo = output.exportsInfo self.nextToken = output.nextToken @@ -2805,9 +2797,8 @@ public enum DescribeExportTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeExportTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExportTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportsInfo = output.exportsInfo self.nextToken = output.nextToken @@ -2978,9 +2969,8 @@ public enum DescribeImportTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeImportTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImportTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tasks = output.tasks @@ -3153,9 +3143,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -3386,9 +3375,8 @@ public enum ExportConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ExportConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportId = output.exportId } else { @@ -3801,9 +3789,8 @@ public enum GetDiscoverySummaryOutputError: Swift.Error, Swift.Equatable { extension GetDiscoverySummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDiscoverySummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentSummary = output.agentSummary self.agentlessCollectorSummary = output.agentlessCollectorSummary @@ -3911,9 +3898,8 @@ extension GetDiscoverySummaryOutputResponseBody: Swift.Decodable { extension HomeRegionNotSetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HomeRegionNotSetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3927,7 +3913,7 @@ extension HomeRegionNotSetException { } /// The home region is not set. Set the home region to continue. -public struct HomeRegionNotSetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HomeRegionNotSetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4269,9 +4255,8 @@ extension ApplicationDiscoveryClientTypes { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4285,7 +4270,7 @@ extension InvalidParameterException { } /// One or more parameters are not valid. Verify the parameters and try again. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4321,9 +4306,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4337,7 +4321,7 @@ extension InvalidParameterValueException { } /// The value of one or more parameters are either invalid or out of range. Verify the parameter values and try again. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4525,9 +4509,8 @@ public enum ListConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurations = output.configurations self.nextToken = output.nextToken @@ -4732,9 +4715,8 @@ public enum ListServerNeighborsOutputError: Swift.Error, Swift.Equatable { extension ListServerNeighborsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServerNeighborsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.knownDependencyCount = output.knownDependencyCount self.neighbors = output.neighbors @@ -4881,9 +4863,8 @@ extension ApplicationDiscoveryClientTypes { extension OperationNotPermittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotPermittedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4897,7 +4878,7 @@ extension OperationNotPermittedException { } /// This operation is not permitted. -public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5011,9 +4992,8 @@ extension ApplicationDiscoveryClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5027,7 +5007,7 @@ extension ResourceInUseException { } /// This issue occurs when the same clientRequestToken is used with the StartImportTask action, but with different parameters. For example, you use the same request token but have two different import URLs, you can encounter this issue. If the import tasks are meant to be different, use a different clientRequestToken, and try again. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5063,9 +5043,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5079,7 +5058,7 @@ extension ResourceNotFoundException { } /// The specified configuration ID was not located. Verify the configuration ID and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5115,9 +5094,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServerInternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerInternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5131,7 +5109,7 @@ extension ServerInternalErrorException { } /// The server experienced an internal error. Try again. -public struct ServerInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5231,9 +5209,8 @@ public enum StartContinuousExportOutputError: Swift.Error, Swift.Equatable { extension StartContinuousExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartContinuousExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSource = output.dataSource self.exportId = output.exportId @@ -5413,9 +5390,8 @@ public enum StartDataCollectionByAgentIdsOutputError: Swift.Error, Swift.Equatab extension StartDataCollectionByAgentIdsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDataCollectionByAgentIdsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentsConfigurationStatus = output.agentsConfigurationStatus } else { @@ -5602,9 +5578,8 @@ public enum StartExportTaskOutputError: Swift.Error, Swift.Equatable { extension StartExportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartExportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportId = output.exportId } else { @@ -5748,9 +5723,8 @@ public enum StartImportTaskOutputError: Swift.Error, Swift.Equatable { extension StartImportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.task = output.task } else { @@ -5873,9 +5847,8 @@ public enum StopContinuousExportOutputError: Swift.Error, Swift.Equatable { extension StopContinuousExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopContinuousExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.startTime = output.startTime self.stopTime = output.stopTime @@ -6014,9 +5987,8 @@ public enum StopDataCollectionByAgentIdsOutputError: Swift.Error, Swift.Equatabl extension StopDataCollectionByAgentIdsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDataCollectionByAgentIdsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentsConfigurationStatus = output.agentsConfigurationStatus } else { diff --git a/Sources/Services/AWSApplicationInsights/ApplicationInsightsClient.swift b/Sources/Services/AWSApplicationInsights/ApplicationInsightsClient.swift index 7fd6639abd5..56247b80582 100644 --- a/Sources/Services/AWSApplicationInsights/ApplicationInsightsClient.swift +++ b/Sources/Services/AWSApplicationInsights/ApplicationInsightsClient.swift @@ -208,6 +208,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLogPattern") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLogPattern") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeComponentConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeComponentConfigurationRecommendation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLogPattern") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeObservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProblem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProblemObservations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -790,6 +806,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurationHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -806,7 +823,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -826,6 +843,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLogPatternSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -842,7 +860,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -862,6 +880,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLogPatterns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -878,7 +897,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -898,6 +917,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProblems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -914,7 +934,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -934,6 +954,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -950,7 +971,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -970,6 +991,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -986,7 +1008,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1006,6 +1028,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1022,7 +1045,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1042,6 +1065,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1058,7 +1082,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1078,6 +1102,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1119,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1114,6 +1139,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateComponentConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1130,7 +1156,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1150,6 +1176,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "applicationinsights") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLogPattern") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1166,7 +1193,7 @@ extension ApplicationInsightsClient: ApplicationInsightsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSApplicationInsights/models/Models.swift b/Sources/Services/AWSApplicationInsights/models/Models.swift index 4534d49f06e..152c968b89c 100644 --- a/Sources/Services/AWSApplicationInsights/models/Models.swift +++ b/Sources/Services/AWSApplicationInsights/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// User does not have permissions to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -282,9 +281,8 @@ extension ApplicationInsightsClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -298,7 +296,7 @@ extension BadRequestException { } /// The request is not understood by the server. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -705,9 +703,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInfo = output.applicationInfo } else { @@ -998,9 +995,8 @@ public enum CreateLogPatternOutputError: Swift.Error, Swift.Equatable { extension CreateLogPatternOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLogPatternOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logPattern = output.logPattern self.resourceGroupName = output.resourceGroupName @@ -1418,9 +1414,8 @@ public enum DescribeApplicationOutputError: Swift.Error, Swift.Equatable { extension DescribeApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInfo = output.applicationInfo } else { @@ -1546,9 +1541,8 @@ public enum DescribeComponentConfigurationOutputError: Swift.Error, Swift.Equata extension DescribeComponentConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeComponentConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentConfiguration = output.componentConfiguration self.monitor = output.monitor @@ -1707,9 +1701,8 @@ public enum DescribeComponentConfigurationRecommendationOutputError: Swift.Error extension DescribeComponentConfigurationRecommendationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeComponentConfigurationRecommendationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentConfiguration = output.componentConfiguration } else { @@ -1835,9 +1828,8 @@ public enum DescribeComponentOutputError: Swift.Error, Swift.Equatable { extension DescribeComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationComponent = output.applicationComponent self.resourceList = output.resourceList @@ -1995,9 +1987,8 @@ public enum DescribeLogPatternOutputError: Swift.Error, Swift.Equatable { extension DescribeLogPatternOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLogPatternOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logPattern = output.logPattern self.resourceGroupName = output.resourceGroupName @@ -2120,9 +2111,8 @@ public enum DescribeObservationOutputError: Swift.Error, Swift.Equatable { extension DescribeObservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeObservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.observation = output.observation } else { @@ -2283,9 +2273,8 @@ public enum DescribeProblemObservationsOutputError: Swift.Error, Swift.Equatable extension DescribeProblemObservationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProblemObservationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.relatedObservations = output.relatedObservations } else { @@ -2350,9 +2339,8 @@ public enum DescribeProblemOutputError: Swift.Error, Swift.Equatable { extension DescribeProblemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProblemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.problem = output.problem } else { @@ -2516,9 +2504,8 @@ extension ApplicationInsightsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2532,7 +2519,7 @@ extension InternalServerException { } /// The server encountered an internal error and is unable to complete the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2651,9 +2638,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInfoList = output.applicationInfoList self.nextToken = output.nextToken @@ -2809,9 +2795,8 @@ public enum ListComponentsOutputError: Swift.Error, Swift.Equatable { extension ListComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationComponentList = output.applicationComponentList self.nextToken = output.nextToken @@ -3002,9 +2987,8 @@ public enum ListConfigurationHistoryOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventList = output.eventList self.nextToken = output.nextToken @@ -3160,9 +3144,8 @@ public enum ListLogPatternSetsOutputError: Swift.Error, Swift.Equatable { extension ListLogPatternSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLogPatternSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logPatternSets = output.logPatternSets self.nextToken = output.nextToken @@ -3340,9 +3323,8 @@ public enum ListLogPatternsOutputError: Swift.Error, Swift.Equatable { extension ListLogPatternsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLogPatternsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logPatterns = output.logPatterns self.nextToken = output.nextToken @@ -3543,9 +3525,8 @@ public enum ListProblemsOutputError: Swift.Error, Swift.Equatable { extension ListProblemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProblemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.problemList = output.problemList @@ -3685,9 +3666,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4546,9 +4526,8 @@ extension ApplicationInsightsClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4562,7 +4541,7 @@ extension ResourceInUseException { } /// The resource is already created or in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4598,9 +4577,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4614,7 +4592,7 @@ extension ResourceNotFoundException { } /// The resource does not exist in the customer account. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4888,9 +4866,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TagsAlreadyExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagsAlreadyExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4904,7 +4881,7 @@ extension TagsAlreadyExistException { } /// Tags are already registered for the specified application ARN. -public struct TagsAlreadyExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagsAlreadyExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5020,9 +4997,8 @@ extension ApplicationInsightsClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -5038,7 +5014,7 @@ extension TooManyTagsException { } /// The number of the provided tags is beyond the limit, or the number of total tags you are trying to attach to the specified resource exceeds the limit. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5323,9 +5299,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInfo = output.applicationInfo } else { @@ -5770,9 +5745,8 @@ public enum UpdateLogPatternOutputError: Swift.Error, Swift.Equatable { extension UpdateLogPatternOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLogPatternOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logPattern = output.logPattern self.resourceGroupName = output.resourceGroupName @@ -5821,9 +5795,8 @@ extension UpdateLogPatternOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5837,7 +5810,7 @@ extension ValidationException { } /// The parameter is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAthena/AthenaClient.swift b/Sources/Services/AWSAthena/AthenaClient.swift index 1e4cb518b41..221949b7889 100644 --- a/Sources/Services/AWSAthena/AthenaClient.swift +++ b/Sources/Services/AWSAthena/AthenaClient.swift @@ -208,6 +208,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetNamedQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetPreparedStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetQueryExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNamedQuery") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -376,7 +381,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNotebook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +438,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPreparedStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPresignedNotebookUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +566,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNamedQuery") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -600,7 +611,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -620,6 +631,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNotebook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -636,7 +648,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -656,6 +668,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePreparedStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +685,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +705,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +722,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +742,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportNotebook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +759,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +779,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCalculationExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +796,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +816,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCalculationExecutionCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +833,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +853,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCalculationExecutionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +870,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +890,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +907,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +927,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +944,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +964,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNamedQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +981,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +1001,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNotebookMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1018,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1038,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPreparedStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1055,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1075,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueryExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1068,7 +1092,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1088,6 +1112,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueryResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1129,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1149,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueryRuntimeStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1140,7 +1166,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1186,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1203,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1223,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSessionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1212,7 +1240,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1232,6 +1260,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTableMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1277,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1297,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1284,7 +1314,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1304,6 +1334,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importNotebook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1320,7 +1351,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1371,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationDPUSizes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1388,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1408,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCalculationExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1392,7 +1425,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1412,6 +1445,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataCatalogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1462,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1482,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatabases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1464,7 +1499,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1484,6 +1519,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEngineVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1500,7 +1536,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1520,6 +1556,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExecutors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1536,7 +1573,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1556,6 +1593,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNamedQueries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1572,7 +1610,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1592,6 +1630,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotebookMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1608,7 +1647,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1628,6 +1667,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotebookSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1644,7 +1684,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1664,6 +1704,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPreparedStatements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1680,7 +1721,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1700,6 +1741,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueryExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1716,7 +1758,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1736,6 +1778,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1752,7 +1795,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1772,6 +1815,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTableMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1788,7 +1832,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1808,6 +1852,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1824,7 +1869,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1844,6 +1889,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1860,7 +1906,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1880,6 +1926,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCalculationExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1896,7 +1943,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1916,6 +1963,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startQueryExecution") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1940,7 +1988,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1960,6 +2008,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1976,7 +2025,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1996,6 +2045,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopCalculationExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2012,7 +2062,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2032,6 +2082,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopQueryExecution") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2056,7 +2107,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2076,6 +2127,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2092,7 +2144,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2112,6 +2164,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2128,7 +2181,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2148,6 +2201,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2164,7 +2218,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2184,6 +2238,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2200,7 +2255,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2220,6 +2275,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNamedQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2236,7 +2292,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2256,6 +2312,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNotebook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2272,7 +2329,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2292,6 +2349,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNotebookMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2308,7 +2366,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2328,6 +2386,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePreparedStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2344,7 +2403,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2364,6 +2423,7 @@ extension AthenaClient: AthenaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "athena") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2380,7 +2440,7 @@ extension AthenaClient: AthenaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAthena/models/Models.swift b/Sources/Services/AWSAthena/models/Models.swift index 83c0d636ee7..bfe69b33de8 100644 --- a/Sources/Services/AWSAthena/models/Models.swift +++ b/Sources/Services/AWSAthena/models/Models.swift @@ -247,9 +247,8 @@ public enum BatchGetNamedQueryOutputError: Swift.Error, Swift.Equatable { extension BatchGetNamedQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetNamedQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namedQueries = output.namedQueries self.unprocessedNamedQueryIds = output.unprocessedNamedQueryIds @@ -413,9 +412,8 @@ public enum BatchGetPreparedStatementOutputError: Swift.Error, Swift.Equatable { extension BatchGetPreparedStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetPreparedStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preparedStatements = output.preparedStatements self.unprocessedPreparedStatementNames = output.unprocessedPreparedStatementNames @@ -567,9 +565,8 @@ public enum BatchGetQueryExecutionOutputError: Swift.Error, Swift.Equatable { extension BatchGetQueryExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetQueryExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryExecutions = output.queryExecutions self.unprocessedQueryExecutionIds = output.unprocessedQueryExecutionIds @@ -1477,9 +1474,8 @@ public enum CreateNamedQueryOutputError: Swift.Error, Swift.Equatable { extension CreateNamedQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNamedQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namedQueryId = output.namedQueryId } else { @@ -1617,9 +1613,8 @@ public enum CreateNotebookOutputError: Swift.Error, Swift.Equatable { extension CreateNotebookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNotebookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notebookId = output.notebookId } else { @@ -1852,9 +1847,8 @@ public enum CreatePresignedNotebookUrlOutputError: Swift.Error, Swift.Equatable extension CreatePresignedNotebookUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePresignedNotebookUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authToken = output.authToken self.authTokenExpirationTime = output.authTokenExpirationTime @@ -3243,9 +3237,8 @@ public enum ExportNotebookOutputError: Swift.Error, Swift.Equatable { extension ExportNotebookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportNotebookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notebookMetadata = output.notebookMetadata self.payload = output.payload @@ -3403,9 +3396,8 @@ public enum GetCalculationExecutionCodeOutputError: Swift.Error, Swift.Equatable extension GetCalculationExecutionCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCalculationExecutionCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeBlock = output.codeBlock } else { @@ -3518,9 +3510,8 @@ public enum GetCalculationExecutionOutputError: Swift.Error, Swift.Equatable { extension GetCalculationExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCalculationExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.calculationExecutionId = output.calculationExecutionId self.description = output.description @@ -3693,9 +3684,8 @@ public enum GetCalculationExecutionStatusOutputError: Swift.Error, Swift.Equatab extension GetCalculationExecutionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCalculationExecutionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statistics = output.statistics self.status = output.status @@ -3816,9 +3806,8 @@ public enum GetDataCatalogOutputError: Swift.Error, Swift.Equatable { extension GetDataCatalogOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataCatalogOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataCatalog = output.dataCatalog } else { @@ -3944,9 +3933,8 @@ public enum GetDatabaseOutputError: Swift.Error, Swift.Equatable { extension GetDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.database = output.database } else { @@ -4057,9 +4045,8 @@ public enum GetNamedQueryOutputError: Swift.Error, Swift.Equatable { extension GetNamedQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNamedQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namedQuery = output.namedQuery } else { @@ -4172,9 +4159,8 @@ public enum GetNotebookMetadataOutputError: Swift.Error, Swift.Equatable { extension GetNotebookMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNotebookMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notebookMetadata = output.notebookMetadata } else { @@ -4300,9 +4286,8 @@ public enum GetPreparedStatementOutputError: Swift.Error, Swift.Equatable { extension GetPreparedStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPreparedStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preparedStatement = output.preparedStatement } else { @@ -4413,9 +4398,8 @@ public enum GetQueryExecutionOutputError: Swift.Error, Swift.Equatable { extension GetQueryExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueryExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryExecution = output.queryExecution } else { @@ -4552,9 +4536,8 @@ public enum GetQueryResultsOutputError: Swift.Error, Swift.Equatable { extension GetQueryResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueryResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resultSet = output.resultSet @@ -4685,9 +4668,8 @@ public enum GetQueryRuntimeStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetQueryRuntimeStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueryRuntimeStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryRuntimeStatistics = output.queryRuntimeStatistics } else { @@ -4800,9 +4782,8 @@ public enum GetSessionOutputError: Swift.Error, Swift.Equatable { extension GetSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.engineConfiguration = output.engineConfiguration @@ -4995,9 +4976,8 @@ public enum GetSessionStatusOutputError: Swift.Error, Swift.Equatable { extension GetSessionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSessionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionId = output.sessionId self.status = output.status @@ -5146,9 +5126,8 @@ public enum GetTableMetadataOutputError: Swift.Error, Swift.Equatable { extension GetTableMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTableMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableMetadata = output.tableMetadata } else { @@ -5259,9 +5238,8 @@ public enum GetWorkGroupOutputError: Swift.Error, Swift.Equatable { extension GetWorkGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workGroup = output.workGroup } else { @@ -5425,9 +5403,8 @@ public enum ImportNotebookOutputError: Swift.Error, Swift.Equatable { extension ImportNotebookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportNotebookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notebookId = output.notebookId } else { @@ -5466,9 +5443,8 @@ extension ImportNotebookOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5482,7 +5458,7 @@ extension InternalServerException { } /// Indicates a platform issue, which may be due to a transient condition or outage. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5518,9 +5494,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.athenaErrorCode = output.athenaErrorCode self.message = output.message @@ -5536,7 +5511,7 @@ extension InvalidRequestException { } /// Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5665,9 +5640,8 @@ public enum ListApplicationDPUSizesOutputError: Swift.Error, Swift.Equatable { extension ListApplicationDPUSizesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationDPUSizesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationDPUSizes = output.applicationDPUSizes self.nextToken = output.nextToken @@ -5835,9 +5809,8 @@ public enum ListCalculationExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListCalculationExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCalculationExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.calculations = output.calculations self.nextToken = output.nextToken @@ -5978,9 +5951,8 @@ public enum ListDataCatalogsOutputError: Swift.Error, Swift.Equatable { extension ListDataCatalogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataCatalogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataCatalogsSummary = output.dataCatalogsSummary self.nextToken = output.nextToken @@ -6136,9 +6108,8 @@ public enum ListDatabasesOutputError: Swift.Error, Swift.Equatable { extension ListDatabasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatabasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databaseList = output.databaseList self.nextToken = output.nextToken @@ -6279,9 +6250,8 @@ public enum ListEngineVersionsOutputError: Swift.Error, Swift.Equatable { extension ListEngineVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEngineVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineVersions = output.engineVersions self.nextToken = output.nextToken @@ -6449,9 +6419,8 @@ public enum ListExecutorsOutputError: Swift.Error, Swift.Equatable { extension ListExecutorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExecutorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executorsSummary = output.executorsSummary self.nextToken = output.nextToken @@ -6615,9 +6584,8 @@ public enum ListNamedQueriesOutputError: Swift.Error, Swift.Equatable { extension ListNamedQueriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNamedQueriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namedQueryIds = output.namedQueryIds self.nextToken = output.nextToken @@ -6785,9 +6753,8 @@ public enum ListNotebookMetadataOutputError: Swift.Error, Swift.Equatable { extension ListNotebookMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotebookMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notebookMetadataList = output.notebookMetadataList @@ -6943,9 +6910,8 @@ public enum ListNotebookSessionsOutputError: Swift.Error, Swift.Equatable { extension ListNotebookSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotebookSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notebookSessionsList = output.notebookSessionsList @@ -7100,9 +7066,8 @@ public enum ListPreparedStatementsOutputError: Swift.Error, Swift.Equatable { extension ListPreparedStatementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPreparedStatementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.preparedStatements = output.preparedStatements @@ -7255,9 +7220,8 @@ public enum ListQueryExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListQueryExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueryExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queryExecutionIds = output.queryExecutionIds @@ -7425,9 +7389,8 @@ public enum ListSessionsOutputError: Swift.Error, Swift.Equatable { extension ListSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sessions = output.sessions @@ -7608,9 +7571,8 @@ public enum ListTableMetadataOutputError: Swift.Error, Swift.Equatable { extension ListTableMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTableMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tableMetadataList = output.tableMetadataList @@ -7766,9 +7728,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -7909,9 +7870,8 @@ public enum ListWorkGroupsOutputError: Swift.Error, Swift.Equatable { extension ListWorkGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workGroups = output.workGroups @@ -7969,9 +7929,8 @@ extension ListWorkGroupsOutputResponseBody: Swift.Decodable { extension MetadataException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MetadataExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7985,7 +7944,7 @@ extension MetadataException { } /// An exception that Athena received when it called a custom metastore. Occurs if the error is not caused by user input (InvalidRequestException) or from the Athena platform (InternalServerException). For example, if a user-created Lambda function is missing permissions, the Lambda 4XX exception is returned in a MetadataException. -public struct MetadataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MetadataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9222,9 +9181,8 @@ extension AthenaClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -9240,7 +9198,7 @@ extension ResourceNotFoundException { } /// A resource, such as a workgroup, was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9751,9 +9709,8 @@ extension AthenaClientTypes { extension SessionAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SessionAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9767,7 +9724,7 @@ extension SessionAlreadyExistsException { } /// The specified session already exists. -public struct SessionAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SessionAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10236,9 +10193,8 @@ public enum StartCalculationExecutionOutputError: Swift.Error, Swift.Equatable { extension StartCalculationExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartCalculationExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.calculationExecutionId = output.calculationExecutionId self.state = output.state @@ -10445,9 +10401,8 @@ public enum StartQueryExecutionOutputError: Swift.Error, Swift.Equatable { extension StartQueryExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartQueryExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryExecutionId = output.queryExecutionId } else { @@ -10625,9 +10580,8 @@ public enum StartSessionOutputError: Swift.Error, Swift.Equatable { extension StartSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionId = output.sessionId self.state = output.state @@ -10785,9 +10739,8 @@ public enum StopCalculationExecutionOutputError: Swift.Error, Swift.Equatable { extension StopCalculationExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopCalculationExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -11268,9 +11221,8 @@ public enum TerminateSessionOutputError: Swift.Error, Swift.Equatable { extension TerminateSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -11339,9 +11291,8 @@ extension AthenaClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -11357,7 +11308,7 @@ extension TooManyRequestsException { } /// Indicates that the request was throttled. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAuditManager/AuditManagerClient.swift b/Sources/Services/AWSAuditManager/AuditManagerClient.swift index 0c3cd3f89a8..e75c1aef810 100644 --- a/Sources/Services/AWSAuditManager/AuditManagerClient.swift +++ b/Sources/Services/AWSAuditManager/AuditManagerClient.swift @@ -208,6 +208,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateAssessmentReportEvidenceFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateAssessmentReportEvidence") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateDelegationByAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteDelegationByAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateAssessmentReportEvidence") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -392,6 +397,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchImportEvidenceToAssessmentControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -407,7 +413,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -427,6 +433,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -442,7 +449,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -462,6 +469,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssessmentFramework") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +485,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +505,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssessmentReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -547,7 +557,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -567,6 +577,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -579,7 +590,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -599,6 +610,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssessmentFramework") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -611,7 +623,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -631,6 +643,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssessmentFrameworkShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -644,7 +657,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +684,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssessmentReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -683,7 +697,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -703,6 +717,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -715,7 +730,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -735,6 +750,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -747,7 +763,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -780,6 +796,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -795,7 +812,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -815,6 +832,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateAssessmentReportEvidenceFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -830,7 +848,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -850,6 +868,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -862,7 +881,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -882,6 +901,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -894,7 +914,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -914,6 +934,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssessmentFramework") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -926,7 +947,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -946,6 +967,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssessmentReportUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -958,7 +980,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -978,6 +1000,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChangeLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -991,7 +1014,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1011,6 +1034,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1023,7 +1047,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1043,6 +1067,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDelegations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1056,7 +1081,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1076,6 +1101,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEvidence") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1114,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1134,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEvidenceByEvidenceFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1121,7 +1148,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1141,6 +1168,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEvidenceFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1153,7 +1181,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1173,6 +1201,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEvidenceFoldersByAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1186,7 +1215,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1206,6 +1235,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEvidenceFoldersByAssessmentControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1219,7 +1249,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1239,6 +1269,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1251,7 +1282,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1271,6 +1302,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsightsByAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1283,7 +1315,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1303,6 +1335,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1315,7 +1348,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1335,6 +1368,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServicesInScope") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1381,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1367,6 +1401,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1379,7 +1414,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1399,6 +1434,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessmentControlInsightsByControlDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1448,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1468,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessmentFrameworkShareRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1445,7 +1482,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1465,6 +1502,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessmentFrameworks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1478,7 +1516,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1498,6 +1536,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessmentReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1511,7 +1550,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1531,6 +1570,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1544,7 +1584,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1564,6 +1604,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listControlDomainInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1577,7 +1618,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1597,6 +1638,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listControlDomainInsightsByAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1610,7 +1652,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1630,6 +1672,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listControlInsightsByControlDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1643,7 +1686,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1663,6 +1706,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1676,7 +1720,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1696,6 +1740,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKeywordsForDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1709,7 +1754,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1729,6 +1774,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1742,7 +1788,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1762,6 +1808,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1774,7 +1821,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1794,6 +1841,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1809,7 +1857,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1829,6 +1877,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1893,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1875,6 +1924,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAssessmentFrameworkShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1890,7 +1940,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1910,6 +1960,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1925,7 +1976,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1945,6 +1996,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1958,7 +2010,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1978,6 +2030,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1993,7 +2046,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2013,6 +2066,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssessmentControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2028,7 +2082,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2048,6 +2102,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssessmentControlSetStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2063,7 +2118,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2083,6 +2138,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssessmentFramework") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2098,7 +2154,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2118,6 +2174,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssessmentFrameworkShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2133,7 +2190,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2153,6 +2210,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssessmentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2226,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2246,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2203,7 +2262,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2223,6 +2282,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2238,7 +2298,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2258,6 +2318,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "auditmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateAssessmentReportIntegrity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2273,7 +2334,7 @@ extension AuditManagerClient: AuditManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAuditManager/models/Models.swift b/Sources/Services/AWSAuditManager/models/Models.swift index 3c77fc8c560..4166a1e64f0 100644 --- a/Sources/Services/AWSAuditManager/models/Models.swift +++ b/Sources/Services/AWSAuditManager/models/Models.swift @@ -98,9 +98,8 @@ extension AuditManagerClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -114,7 +113,7 @@ extension AccessDeniedException { } /// Your account isn't registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2102,9 +2101,8 @@ public enum BatchAssociateAssessmentReportEvidenceOutputError: Swift.Error, Swif extension BatchAssociateAssessmentReportEvidenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateAssessmentReportEvidenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.evidenceIds = output.evidenceIds @@ -2322,9 +2320,8 @@ public enum BatchCreateDelegationByAssessmentOutputError: Swift.Error, Swift.Equ extension BatchCreateDelegationByAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateDelegationByAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegations = output.delegations self.errors = output.errors @@ -2542,9 +2539,8 @@ public enum BatchDeleteDelegationByAssessmentOutputError: Swift.Error, Swift.Equ extension BatchDeleteDelegationByAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteDelegationByAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -2701,9 +2697,8 @@ public enum BatchDisassociateAssessmentReportEvidenceOutputError: Swift.Error, S extension BatchDisassociateAssessmentReportEvidenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateAssessmentReportEvidenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.evidenceIds = output.evidenceIds @@ -2937,9 +2932,8 @@ public enum BatchImportEvidenceToAssessmentControlOutputError: Swift.Error, Swif extension BatchImportEvidenceToAssessmentControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchImportEvidenceToAssessmentControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -4191,9 +4185,8 @@ public enum CreateAssessmentFrameworkOutputError: Swift.Error, Swift.Equatable { extension CreateAssessmentFrameworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssessmentFrameworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.framework = output.framework } else { @@ -4410,9 +4403,8 @@ public enum CreateAssessmentOutputError: Swift.Error, Swift.Equatable { extension CreateAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessment = output.assessment } else { @@ -4559,9 +4551,8 @@ public enum CreateAssessmentReportOutputError: Swift.Error, Swift.Equatable { extension CreateAssessmentReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssessmentReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentReport = output.assessmentReport } else { @@ -4878,9 +4869,8 @@ public enum CreateControlOutputError: Swift.Error, Swift.Equatable { extension CreateControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.control = output.control } else { @@ -5702,9 +5692,8 @@ public enum DeregisterAccountOutputError: Swift.Error, Swift.Equatable { extension DeregisterAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -6701,9 +6690,8 @@ public enum GetAccountStatusOutputError: Swift.Error, Swift.Equatable { extension GetAccountStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -6801,9 +6789,8 @@ public enum GetAssessmentFrameworkOutputError: Swift.Error, Swift.Equatable { extension GetAssessmentFrameworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssessmentFrameworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.framework = output.framework } else { @@ -6901,9 +6888,8 @@ public enum GetAssessmentOutputError: Swift.Error, Swift.Equatable { extension GetAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessment = output.assessment self.userRole = output.userRole @@ -7019,9 +7005,8 @@ public enum GetAssessmentReportUrlOutputError: Swift.Error, Swift.Equatable { extension GetAssessmentReportUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssessmentReportUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preSignedUrl = output.preSignedUrl } else { @@ -7160,9 +7145,8 @@ public enum GetChangeLogsOutputError: Swift.Error, Swift.Equatable { extension GetChangeLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChangeLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeLogs = output.changeLogs self.nextToken = output.nextToken @@ -7279,9 +7263,8 @@ public enum GetControlOutputError: Swift.Error, Swift.Equatable { extension GetControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.control = output.control } else { @@ -7394,9 +7377,8 @@ public enum GetDelegationsOutputError: Swift.Error, Swift.Equatable { extension GetDelegationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDelegationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegations = output.delegations self.nextToken = output.nextToken @@ -7554,9 +7536,8 @@ public enum GetEvidenceByEvidenceFolderOutputError: Swift.Error, Swift.Equatable extension GetEvidenceByEvidenceFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEvidenceByEvidenceFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evidence = output.evidence self.nextToken = output.nextToken @@ -7689,9 +7670,8 @@ public enum GetEvidenceFolderOutputError: Swift.Error, Swift.Equatable { extension GetEvidenceFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEvidenceFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evidenceFolder = output.evidenceFolder } else { @@ -7830,9 +7810,8 @@ public enum GetEvidenceFoldersByAssessmentControlOutputError: Swift.Error, Swift extension GetEvidenceFoldersByAssessmentControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEvidenceFoldersByAssessmentControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evidenceFolders = output.evidenceFolders self.nextToken = output.nextToken @@ -7974,9 +7953,8 @@ public enum GetEvidenceFoldersByAssessmentOutputError: Swift.Error, Swift.Equata extension GetEvidenceFoldersByAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEvidenceFoldersByAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evidenceFolders = output.evidenceFolders self.nextToken = output.nextToken @@ -8117,9 +8095,8 @@ public enum GetEvidenceOutputError: Swift.Error, Swift.Equatable { extension GetEvidenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEvidenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evidence = output.evidence } else { @@ -8217,9 +8194,8 @@ public enum GetInsightsByAssessmentOutputError: Swift.Error, Swift.Equatable { extension GetInsightsByAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightsByAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insights = output.insights } else { @@ -8302,9 +8278,8 @@ public enum GetInsightsOutputError: Swift.Error, Swift.Equatable { extension GetInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insights = output.insights } else { @@ -8391,9 +8366,8 @@ public enum GetOrganizationAdminAccountOutputError: Swift.Error, Swift.Equatable extension GetOrganizationAdminAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOrganizationAdminAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adminAccountId = output.adminAccountId self.organizationId = output.organizationId @@ -8488,9 +8462,8 @@ public enum GetServicesInScopeOutputError: Swift.Error, Swift.Equatable { extension GetServicesInScopeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServicesInScopeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceMetadata = output.serviceMetadata } else { @@ -8593,9 +8566,8 @@ public enum GetSettingsOutputError: Swift.Error, Swift.Equatable { extension GetSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.settings = output.settings } else { @@ -8822,9 +8794,8 @@ extension AuditManagerClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8838,7 +8809,7 @@ extension InternalServerException { } /// An internal service error occurred during the processing of your request. Try again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9002,9 +8973,8 @@ public enum ListAssessmentControlInsightsByControlDomainOutputError: Swift.Error extension ListAssessmentControlInsightsByControlDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentControlInsightsByControlDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlInsightsByAssessment = output.controlInsightsByAssessment self.nextToken = output.nextToken @@ -9147,9 +9117,8 @@ public enum ListAssessmentFrameworkShareRequestsOutputError: Swift.Error, Swift. extension ListAssessmentFrameworkShareRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentFrameworkShareRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentFrameworkShareRequests = output.assessmentFrameworkShareRequests self.nextToken = output.nextToken @@ -9292,9 +9261,8 @@ public enum ListAssessmentFrameworksOutputError: Swift.Error, Swift.Equatable { extension ListAssessmentFrameworksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentFrameworksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.frameworkMetadataList = output.frameworkMetadataList self.nextToken = output.nextToken @@ -9426,9 +9394,8 @@ public enum ListAssessmentReportsOutputError: Swift.Error, Swift.Equatable { extension ListAssessmentReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentReports = output.assessmentReports self.nextToken = output.nextToken @@ -9568,9 +9535,8 @@ public enum ListAssessmentsOutputError: Swift.Error, Swift.Equatable { extension ListAssessmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentMetadata = output.assessmentMetadata self.nextToken = output.nextToken @@ -9715,9 +9681,8 @@ public enum ListControlDomainInsightsByAssessmentOutputError: Swift.Error, Swift extension ListControlDomainInsightsByAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListControlDomainInsightsByAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlDomainInsights = output.controlDomainInsights self.nextToken = output.nextToken @@ -9851,9 +9816,8 @@ public enum ListControlDomainInsightsOutputError: Swift.Error, Swift.Equatable { extension ListControlDomainInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListControlDomainInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlDomainInsights = output.controlDomainInsights self.nextToken = output.nextToken @@ -9998,9 +9962,8 @@ public enum ListControlInsightsByControlDomainOutputError: Swift.Error, Swift.Eq extension ListControlInsightsByControlDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListControlInsightsByControlDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlInsightsMetadata = output.controlInsightsMetadata self.nextToken = output.nextToken @@ -10143,9 +10106,8 @@ public enum ListControlsOutputError: Swift.Error, Swift.Equatable { extension ListControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListControlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlMetadataList = output.controlMetadataList self.nextToken = output.nextToken @@ -10288,9 +10250,8 @@ public enum ListKeywordsForDataSourceOutputError: Swift.Error, Swift.Equatable { extension ListKeywordsForDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListKeywordsForDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keywords = output.keywords self.nextToken = output.nextToken @@ -10422,9 +10383,8 @@ public enum ListNotificationsOutputError: Swift.Error, Swift.Equatable { extension ListNotificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notifications = output.notifications @@ -10539,9 +10499,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10859,9 +10818,8 @@ public enum RegisterAccountOutputError: Swift.Error, Swift.Equatable { extension RegisterAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -10976,9 +10934,8 @@ public enum RegisterOrganizationAdminAccountOutputError: Swift.Error, Swift.Equa extension RegisterOrganizationAdminAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterOrganizationAdminAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adminAccountId = output.adminAccountId self.organizationId = output.organizationId @@ -11088,9 +11045,8 @@ extension AuditManagerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -11108,7 +11064,7 @@ extension ResourceNotFoundException { } /// The resource that's specified in the request can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11376,9 +11332,8 @@ extension AuditManagerClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11392,7 +11347,7 @@ extension ServiceQuotaExceededException { } /// You've reached your account quota for this resource type. To perform the requested action, delete some existing resources or [request a quota increase](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) from the Service Quotas console. For a list of Audit Manager service quotas, see [Quotas and restrictions for Audit Manager](https://docs.aws.amazon.com/audit-manager/latest/userguide/service-quotas.html). -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11990,9 +11945,8 @@ public enum StartAssessmentFrameworkShareOutputError: Swift.Error, Swift.Equatab extension StartAssessmentFrameworkShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAssessmentFrameworkShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentFrameworkShareRequest = output.assessmentFrameworkShareRequest } else { @@ -12135,9 +12089,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12151,7 +12104,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12433,9 +12386,8 @@ public enum UpdateAssessmentControlOutputError: Swift.Error, Swift.Equatable { extension UpdateAssessmentControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssessmentControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.control = output.control } else { @@ -12579,9 +12531,8 @@ public enum UpdateAssessmentControlSetStatusOutputError: Swift.Error, Swift.Equa extension UpdateAssessmentControlSetStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssessmentControlSetStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlSet = output.controlSet } else { @@ -12822,9 +12773,8 @@ public enum UpdateAssessmentFrameworkOutputError: Swift.Error, Swift.Equatable { extension UpdateAssessmentFrameworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssessmentFrameworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.framework = output.framework } else { @@ -12962,9 +12912,8 @@ public enum UpdateAssessmentFrameworkShareOutputError: Swift.Error, Swift.Equata extension UpdateAssessmentFrameworkShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssessmentFrameworkShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentFrameworkShareRequest = output.assessmentFrameworkShareRequest } else { @@ -13147,9 +13096,8 @@ public enum UpdateAssessmentOutputError: Swift.Error, Swift.Equatable { extension UpdateAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessment = output.assessment } else { @@ -13274,9 +13222,8 @@ public enum UpdateAssessmentStatusOutputError: Swift.Error, Swift.Equatable { extension UpdateAssessmentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssessmentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessment = output.assessment } else { @@ -13472,9 +13419,8 @@ public enum UpdateControlOutputError: Swift.Error, Swift.Equatable { extension UpdateControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.control = output.control } else { @@ -13658,9 +13604,8 @@ public enum UpdateSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.settings = output.settings } else { @@ -13775,9 +13720,8 @@ public enum ValidateAssessmentReportIntegrityOutputError: Swift.Error, Swift.Equ extension ValidateAssessmentReportIntegrityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateAssessmentReportIntegrityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.signatureAlgorithm = output.signatureAlgorithm self.signatureDateTime = output.signatureDateTime @@ -13865,9 +13809,8 @@ extension ValidateAssessmentReportIntegrityOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -13885,7 +13828,7 @@ extension ValidationException { } /// The request has invalid or missing parameters. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSAutoScaling/AutoScalingClient.swift b/Sources/Services/AWSAutoScaling/AutoScalingClient.swift index 6d6cb0feb32..e2f89a8c175 100644 --- a/Sources/Services/AWSAutoScaling/AutoScalingClient.swift +++ b/Sources/Services/AWSAutoScaling/AutoScalingClient.swift @@ -204,6 +204,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -248,6 +249,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachLoadBalancerTargetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -263,7 +265,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachLoadBalancers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -298,7 +301,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -331,6 +334,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachTrafficSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -346,7 +350,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -366,6 +370,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteScheduledAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -381,7 +386,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -401,6 +406,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutScheduledUpdateGroupAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -416,7 +422,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -436,6 +442,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelInstanceRefresh") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -451,7 +458,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -486,6 +493,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeLifecycleAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -501,7 +509,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -521,6 +529,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAutoScalingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -536,7 +545,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -556,6 +565,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -571,7 +581,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -591,6 +601,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOrUpdateTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -606,7 +617,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -626,6 +637,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAutoScalingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -641,7 +653,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -661,6 +673,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -676,7 +689,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -696,6 +709,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLifecycleHook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -711,7 +725,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -731,6 +745,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -746,7 +761,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -766,6 +781,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -781,7 +797,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -801,6 +817,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScheduledAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +833,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +853,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -851,7 +869,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -871,6 +889,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWarmPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -886,7 +905,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -906,6 +925,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -921,7 +941,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -947,6 +967,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAdjustmentTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -962,7 +983,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -982,6 +1003,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutoScalingGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -997,7 +1019,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1017,6 +1039,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutoScalingInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1055,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1075,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutoScalingNotificationTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1067,7 +1091,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1111,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceRefreshes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1102,7 +1127,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1147,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLaunchConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1163,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1161,6 +1187,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLifecycleHookTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1203,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1223,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLifecycleHooks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1211,7 +1239,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1231,6 +1259,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBalancerTargetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1246,7 +1275,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1266,6 +1295,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBalancers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1281,7 +1311,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1301,6 +1331,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMetricCollectionTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1316,7 +1347,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1336,6 +1367,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNotificationConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1351,7 +1383,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1371,6 +1403,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1386,7 +1419,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1406,6 +1439,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalingActivities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1421,7 +1455,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1441,6 +1475,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalingProcessTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1456,7 +1491,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1511,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScheduledActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1491,7 +1527,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1511,6 +1547,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1526,7 +1563,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1546,6 +1583,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTerminationPolicyTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1561,7 +1599,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1581,6 +1619,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrafficSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1596,7 +1635,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1616,6 +1655,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWarmPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1631,7 +1671,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1651,6 +1691,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1666,7 +1707,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1686,6 +1727,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachLoadBalancerTargetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1701,7 +1743,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1721,6 +1763,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachLoadBalancers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachTrafficSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1771,7 +1815,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1791,6 +1835,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableMetricsCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1806,7 +1851,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1826,6 +1871,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableMetricsCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1841,7 +1887,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1861,6 +1907,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enterStandby") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1876,7 +1923,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1896,6 +1943,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1911,7 +1959,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1931,6 +1979,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exitStandby") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1946,7 +1995,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1966,6 +2015,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPredictiveScalingForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1981,7 +2031,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2016,6 +2066,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLifecycleHook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2031,7 +2082,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2051,6 +2102,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2066,7 +2118,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2086,6 +2138,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2101,7 +2154,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2121,6 +2174,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putScheduledUpdateGroupAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2136,7 +2190,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2156,6 +2210,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putWarmPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2171,7 +2226,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2206,6 +2261,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "recordLifecycleActionHeartbeat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2221,7 +2277,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2241,6 +2297,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeProcesses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2256,7 +2313,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2285,6 +2342,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rollbackInstanceRefresh") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2300,7 +2358,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2320,6 +2378,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setDesiredCapacity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2335,7 +2394,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2355,6 +2414,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setInstanceHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2370,7 +2430,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2390,6 +2450,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setInstanceProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2405,7 +2466,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2425,6 +2486,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startInstanceRefresh") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2440,7 +2502,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2460,6 +2522,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "suspendProcesses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2475,7 +2538,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2495,6 +2558,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateInstanceInAutoScalingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2510,7 +2574,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2539,6 +2603,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAutoScalingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2554,7 +2619,7 @@ extension AutoScalingClient: AutoScalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAutoScaling/models/Models.swift b/Sources/Services/AWSAutoScaling/models/Models.swift index 69a1506048f..01f9e578e69 100644 --- a/Sources/Services/AWSAutoScaling/models/Models.swift +++ b/Sources/Services/AWSAutoScaling/models/Models.swift @@ -214,7 +214,7 @@ extension AutoScalingClientTypes { extension ActiveInstanceRefreshNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -229,7 +229,7 @@ extension ActiveInstanceRefreshNotFoundFault { } /// The request failed because an active instance refresh or rollback for the specified Auto Scaling group was not found. -public struct ActiveInstanceRefreshNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActiveInstanceRefreshNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -495,7 +495,7 @@ extension AutoScalingClientTypes { extension AlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -510,7 +510,7 @@ extension AlreadyExistsFault { } /// You already have an Auto Scaling group or launch configuration with this name. -public struct AlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1937,9 +1937,8 @@ public enum BatchDeleteScheduledActionOutputError: Swift.Error, Swift.Equatable extension BatchDeleteScheduledActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteScheduledActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedScheduledActions = output.failedScheduledActions } else { @@ -2105,9 +2104,8 @@ public enum BatchPutScheduledUpdateGroupActionOutputError: Swift.Error, Swift.Eq extension BatchPutScheduledUpdateGroupActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutScheduledUpdateGroupActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedScheduledUpdateGroupActions = output.failedScheduledUpdateGroupActions } else { @@ -2336,9 +2334,8 @@ public enum CancelInstanceRefreshOutputError: Swift.Error, Swift.Equatable { extension CancelInstanceRefreshOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelInstanceRefreshOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceRefreshId = output.instanceRefreshId } else { @@ -4565,9 +4562,8 @@ public enum DescribeAccountLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.maxNumberOfAutoScalingGroups = output.maxNumberOfAutoScalingGroups self.maxNumberOfLaunchConfigurations = output.maxNumberOfLaunchConfigurations @@ -4677,9 +4673,8 @@ public enum DescribeAdjustmentTypesOutputError: Swift.Error, Swift.Equatable { extension DescribeAdjustmentTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAdjustmentTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adjustmentTypes = output.adjustmentTypes } else { @@ -4889,9 +4884,8 @@ public enum DescribeAutoScalingGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeAutoScalingGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutoScalingGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingGroups = output.autoScalingGroups self.nextToken = output.nextToken @@ -5075,9 +5069,8 @@ public enum DescribeAutoScalingInstancesOutputError: Swift.Error, Swift.Equatabl extension DescribeAutoScalingInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutoScalingInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingInstances = output.autoScalingInstances self.nextToken = output.nextToken @@ -5184,9 +5177,8 @@ public enum DescribeAutoScalingNotificationTypesOutputError: Swift.Error, Swift. extension DescribeAutoScalingNotificationTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutoScalingNotificationTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingNotificationTypes = output.autoScalingNotificationTypes } else { @@ -5371,9 +5363,8 @@ public enum DescribeInstanceRefreshesOutputError: Swift.Error, Swift.Equatable { extension DescribeInstanceRefreshesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceRefreshesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceRefreshes = output.instanceRefreshes self.nextToken = output.nextToken @@ -5556,9 +5547,8 @@ public enum DescribeLaunchConfigurationsOutputError: Swift.Error, Swift.Equatabl extension DescribeLaunchConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLaunchConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchConfigurations = output.launchConfigurations self.nextToken = output.nextToken @@ -5666,9 +5656,8 @@ public enum DescribeLifecycleHookTypesOutputError: Swift.Error, Swift.Equatable extension DescribeLifecycleHookTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLifecycleHookTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecycleHookTypes = output.lifecycleHookTypes } else { @@ -5829,9 +5818,8 @@ public enum DescribeLifecycleHooksOutputError: Swift.Error, Swift.Equatable { extension DescribeLifecycleHooksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLifecycleHooksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecycleHooks = output.lifecycleHooks } else { @@ -5979,9 +5967,8 @@ public enum DescribeLoadBalancerTargetGroupsOutputError: Swift.Error, Swift.Equa extension DescribeLoadBalancerTargetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBalancerTargetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancerTargetGroups = output.loadBalancerTargetGroups self.nextToken = output.nextToken @@ -6139,9 +6126,8 @@ public enum DescribeLoadBalancersOutputError: Swift.Error, Swift.Equatable { extension DescribeLoadBalancersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBalancersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancers = output.loadBalancers self.nextToken = output.nextToken @@ -6248,9 +6234,8 @@ public enum DescribeMetricCollectionTypesOutputError: Swift.Error, Swift.Equatab extension DescribeMetricCollectionTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMetricCollectionTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.granularities = output.granularities self.metrics = output.metrics @@ -6450,9 +6435,8 @@ public enum DescribeNotificationConfigurationsOutputError: Swift.Error, Swift.Eq extension DescribeNotificationConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNotificationConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notificationConfigurations = output.notificationConfigurations @@ -6686,9 +6670,8 @@ public enum DescribePoliciesOutputError: Swift.Error, Swift.Equatable { extension DescribePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scalingPolicies = output.scalingPolicies @@ -6893,9 +6876,8 @@ public enum DescribeScalingActivitiesOutputError: Swift.Error, Swift.Equatable { extension DescribeScalingActivitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalingActivitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activities = output.activities self.nextToken = output.nextToken @@ -7003,9 +6985,8 @@ public enum DescribeScalingProcessTypesOutputError: Swift.Error, Swift.Equatable extension DescribeScalingProcessTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalingProcessTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.processes = output.processes } else { @@ -7211,9 +7192,8 @@ public enum DescribeScheduledActionsOutputError: Swift.Error, Swift.Equatable { extension DescribeScheduledActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduledActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduledUpdateGroupActions = output.scheduledUpdateGroupActions @@ -7396,9 +7376,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -7505,9 +7484,8 @@ public enum DescribeTerminationPolicyTypesOutputError: Swift.Error, Swift.Equata extension DescribeTerminationPolicyTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTerminationPolicyTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.terminationPolicyTypes = output.terminationPolicyTypes } else { @@ -7672,9 +7650,8 @@ public enum DescribeTrafficSourcesOutputError: Swift.Error, Swift.Equatable { extension DescribeTrafficSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrafficSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trafficSources = output.trafficSources @@ -7834,9 +7811,8 @@ public enum DescribeWarmPoolOutputError: Swift.Error, Swift.Equatable { extension DescribeWarmPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWarmPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.nextToken = output.nextToken @@ -8074,9 +8050,8 @@ public enum DetachInstancesOutputError: Swift.Error, Swift.Equatable { extension DetachInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activities = output.activities } else { @@ -9121,9 +9096,8 @@ public enum EnterStandbyOutputError: Swift.Error, Swift.Equatable { extension EnterStandbyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnterStandbyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activities = output.activities } else { @@ -9407,9 +9381,8 @@ public enum ExitStandbyOutputError: Swift.Error, Swift.Equatable { extension ExitStandbyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExitStandbyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activities = output.activities } else { @@ -9713,9 +9686,8 @@ public enum GetPredictiveScalingForecastOutputError: Swift.Error, Swift.Equatabl extension GetPredictiveScalingForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPredictiveScalingForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityForecast = output.capacityForecast self.loadForecast = output.loadForecast @@ -10264,7 +10236,7 @@ extension AutoScalingClientTypes { extension InstanceRefreshInProgressFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10279,7 +10251,7 @@ extension InstanceRefreshInProgressFault { } /// The request failed because an active instance refresh already exists for the specified Auto Scaling group. -public struct InstanceRefreshInProgressFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceRefreshInProgressFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11155,7 +11127,7 @@ extension AutoScalingClientTypes { extension InvalidNextToken { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11170,7 +11142,7 @@ extension InvalidNextToken { } /// The NextToken value is not valid. -public struct InvalidNextToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11207,7 +11179,7 @@ extension InvalidNextTokenBody: Swift.Decodable { extension IrreversibleInstanceRefreshFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11222,7 +11194,7 @@ extension IrreversibleInstanceRefreshFault { } /// The request failed because a desired configuration was not found or an incompatible launch template (uses a Systems Manager parameter instead of an AMI ID) or launch template version ($Latest or $Default) is present on the Auto Scaling group. -public struct IrreversibleInstanceRefreshFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IrreversibleInstanceRefreshFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12074,7 +12046,7 @@ extension AutoScalingClientTypes { extension LimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12089,7 +12061,7 @@ extension LimitExceededFault { } /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, see [DescribeAccountLimits](https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html) in the Amazon EC2 Auto Scaling API Reference. -public struct LimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14565,9 +14537,8 @@ public enum PutScalingPolicyOutputError: Swift.Error, Swift.Equatable { extension PutScalingPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutScalingPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarms = output.alarms self.policyARN = output.policyARN @@ -15216,7 +15187,7 @@ extension AutoScalingClientTypes { extension ResourceContentionFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15231,7 +15202,7 @@ extension ResourceContentionFault { } /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer). -public struct ResourceContentionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceContentionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15268,7 +15239,7 @@ extension ResourceContentionFaultBody: Swift.Decodable { extension ResourceInUseFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15283,7 +15254,7 @@ extension ResourceInUseFault { } /// The operation can't be performed because the resource is in use. -public struct ResourceInUseFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15604,9 +15575,8 @@ public enum RollbackInstanceRefreshOutputError: Swift.Error, Swift.Equatable { extension RollbackInstanceRefreshOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RollbackInstanceRefreshOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceRefreshId = output.instanceRefreshId } else { @@ -15681,7 +15651,7 @@ extension AutoScalingClientTypes { extension ScalingActivityInProgressFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15696,7 +15666,7 @@ extension ScalingActivityInProgressFault { } /// The operation can't be performed because there are scaling activities in progress. -public struct ScalingActivityInProgressFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ScalingActivityInProgressFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16288,7 +16258,7 @@ extension AutoScalingClientTypes { extension ServiceLinkedRoleFailure { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16303,7 +16273,7 @@ extension ServiceLinkedRoleFailure { } /// The service-linked role is not yet ready for use. -public struct ServiceLinkedRoleFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLinkedRoleFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16815,9 +16785,8 @@ public enum StartInstanceRefreshOutputError: Swift.Error, Swift.Equatable { extension StartInstanceRefreshOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartInstanceRefreshOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceRefreshId = output.instanceRefreshId } else { @@ -17544,9 +17513,8 @@ public enum TerminateInstanceInAutoScalingGroupOutputError: Swift.Error, Swift.E extension TerminateInstanceInAutoScalingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateInstanceInAutoScalingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activity = output.activity } else { diff --git a/Sources/Services/AWSAutoScalingPlans/AutoScalingPlansClient.swift b/Sources/Services/AWSAutoScalingPlans/AutoScalingPlansClient.swift index c5248fc10c3..56e9a892ee5 100644 --- a/Sources/Services/AWSAutoScalingPlans/AutoScalingPlansClient.swift +++ b/Sources/Services/AWSAutoScalingPlans/AutoScalingPlansClient.swift @@ -208,6 +208,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling-plans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createScalingPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling-plans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScalingPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling-plans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalingPlanResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling-plans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalingPlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling-plans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getScalingPlanResourceForecastData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "autoscaling-plans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateScalingPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension AutoScalingPlansClient: AutoScalingPlansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSAutoScalingPlans/models/Models.swift b/Sources/Services/AWSAutoScalingPlans/models/Models.swift index 5e9a347aba2..a97ac875dfc 100644 --- a/Sources/Services/AWSAutoScalingPlans/models/Models.swift +++ b/Sources/Services/AWSAutoScalingPlans/models/Models.swift @@ -61,9 +61,8 @@ extension AutoScalingPlansClientTypes { extension ConcurrentUpdateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentUpdateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -77,7 +76,7 @@ extension ConcurrentUpdateException { } /// Concurrent updates caused an exception, for example, if you request an update to a scaling plan that already has a pending update. -public struct ConcurrentUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -227,9 +226,8 @@ public enum CreateScalingPlanOutputError: Swift.Error, Swift.Equatable { extension CreateScalingPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScalingPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scalingPlanVersion = output.scalingPlanVersion } else { @@ -713,9 +711,8 @@ public enum DescribeScalingPlanResourcesOutputError: Swift.Error, Swift.Equatabl extension DescribeScalingPlanResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalingPlanResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scalingPlanResources = output.scalingPlanResources @@ -920,9 +917,8 @@ public enum DescribeScalingPlansOutputError: Swift.Error, Swift.Equatable { extension DescribeScalingPlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalingPlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scalingPlans = output.scalingPlans @@ -1189,9 +1185,8 @@ public enum GetScalingPlanResourceForecastDataOutputError: Swift.Error, Swift.Eq extension GetScalingPlanResourceForecastDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetScalingPlanResourceForecastDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datapoints = output.datapoints } else { @@ -1240,9 +1235,8 @@ extension GetScalingPlanResourceForecastDataOutputResponseBody: Swift.Decodable extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1256,7 +1250,7 @@ extension InternalServiceException { } /// The service encountered an internal error. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1292,9 +1286,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1308,7 +1301,7 @@ extension InvalidNextTokenException { } /// The token provided is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1344,9 +1337,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1360,7 +1352,7 @@ extension LimitExceededException { } /// Your account exceeded a limit. This exception is thrown when a per-account resource limit is exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1522,9 +1514,8 @@ extension AutoScalingPlansClientTypes { extension ObjectNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ObjectNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1538,7 +1529,7 @@ extension ObjectNotFoundException { } /// The specified object could not be found. -public struct ObjectNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ObjectNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2909,9 +2900,8 @@ public struct UpdateScalingPlanOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2925,7 +2915,7 @@ extension ValidationException { } /// An exception was thrown for a validation issue. Review the parameters provided. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSBackup/BackupClient.swift b/Sources/Services/AWSBackup/BackupClient.swift index 4249ff9907f..ac1b62e15c5 100644 --- a/Sources/Services/AWSBackup/BackupClient.swift +++ b/Sources/Services/AWSBackup/BackupClient.swift @@ -208,6 +208,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelLegalHold") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackupPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -256,7 +258,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -276,6 +278,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackupSelection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -291,7 +294,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -311,6 +314,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackupVault") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -326,7 +330,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -346,6 +350,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFramework") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -369,7 +374,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -389,6 +394,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLegalHold") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReportPlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -447,7 +454,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -467,6 +474,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackupPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -479,7 +487,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -499,6 +507,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackupSelection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -511,7 +520,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -531,6 +540,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackupVault") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -543,7 +553,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -563,6 +573,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackupVaultAccessPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -575,7 +586,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -595,6 +606,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackupVaultLockConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -607,7 +619,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -627,6 +639,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackupVaultNotifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFramework") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -671,7 +685,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -691,6 +705,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecoveryPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -703,7 +718,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -723,6 +738,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReportPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -735,7 +751,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -755,6 +771,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBackupJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -767,7 +784,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -787,6 +804,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBackupVault") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -799,7 +817,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -819,6 +837,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCopyJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -831,7 +850,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -851,6 +870,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFramework") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -863,7 +883,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -883,6 +903,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGlobalSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -895,7 +916,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -915,6 +936,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProtectedResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -927,7 +949,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -947,6 +969,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecoveryPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +982,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +1002,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRegionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -991,7 +1015,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1011,6 +1035,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1023,7 +1048,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1043,6 +1068,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReportPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1055,7 +1081,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1075,6 +1101,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRestoreJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1087,7 +1114,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1107,6 +1134,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateRecoveryPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1119,7 +1147,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1139,6 +1167,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateRecoveryPointFromParent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1151,7 +1180,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1171,6 +1200,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportBackupPlanTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1183,7 +1213,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1203,6 +1233,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackupPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1216,7 +1247,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1236,6 +1267,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackupPlanFromJSON") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1251,7 +1283,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1271,6 +1303,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackupPlanFromTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1283,7 +1316,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1303,6 +1336,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackupSelection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1315,7 +1349,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1335,6 +1369,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackupVaultAccessPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1382,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1367,6 +1402,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBackupVaultNotifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1379,7 +1415,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1399,6 +1435,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLegalHold") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1411,7 +1448,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1431,6 +1468,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecoveryPointRestoreMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1443,7 +1481,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1463,6 +1501,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSupportedResourceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1475,7 +1514,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1495,6 +1534,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackupJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1508,7 +1548,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1528,6 +1568,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackupPlanTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1541,7 +1582,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1561,6 +1602,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackupPlanVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1574,7 +1616,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1594,6 +1636,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackupPlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1607,7 +1650,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1627,6 +1670,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackupSelections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1640,7 +1684,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1660,6 +1704,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackupVaults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1673,7 +1718,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1693,6 +1738,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCopyJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1706,7 +1752,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1726,6 +1772,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFrameworks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1739,7 +1786,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1759,6 +1806,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLegalHolds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1820,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1840,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProtectedResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1805,7 +1854,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1825,6 +1874,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecoveryPointsByBackupVault") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1838,7 +1888,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1858,6 +1908,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecoveryPointsByLegalHold") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1871,7 +1922,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1891,6 +1942,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecoveryPointsByResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1904,7 +1956,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1924,6 +1976,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1937,7 +1990,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1957,6 +2010,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReportPlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1970,7 +2024,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1990,6 +2044,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRestoreJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2003,7 +2058,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2023,6 +2078,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2036,7 +2092,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2056,6 +2112,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBackupVaultAccessPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2071,7 +2128,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2091,6 +2148,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBackupVaultLockConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2106,7 +2164,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2126,6 +2184,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBackupVaultNotifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2141,7 +2200,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2161,6 +2220,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBackupJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2176,7 +2236,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2196,6 +2256,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCopyJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2211,7 +2272,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2231,6 +2292,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReportJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2254,7 +2316,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2274,6 +2336,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRestoreJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2289,7 +2352,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2309,6 +2372,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopBackupJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2321,7 +2385,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2341,6 +2405,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2356,7 +2421,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2376,6 +2441,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2391,7 +2457,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2411,6 +2477,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBackupPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2426,7 +2493,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2446,6 +2513,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFramework") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2469,7 +2537,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2489,6 +2557,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGlobalSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2504,7 +2573,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2524,6 +2593,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRecoveryPointLifecycle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2539,7 +2609,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2559,6 +2629,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRegionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2574,7 +2645,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2594,6 +2665,7 @@ extension BackupClient: BackupClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReportPlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2617,7 +2689,7 @@ extension BackupClient: BackupClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSBackup/models/Models.swift b/Sources/Services/AWSBackup/models/Models.swift index c3abd95f834..72315fa8643 100644 --- a/Sources/Services/AWSBackup/models/Models.swift +++ b/Sources/Services/AWSBackup/models/Models.swift @@ -61,9 +61,8 @@ extension BackupClientTypes { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.code = output.code @@ -87,7 +86,7 @@ extension AlreadyExistsException { } /// The required resource already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1925,9 +1924,8 @@ extension BackupClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -1947,7 +1945,7 @@ extension ConflictException { } /// Backup can't perform the action that you requested until it finishes performing a previous action. Try again later. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2595,9 +2593,8 @@ public enum CreateBackupPlanOutputError: Swift.Error, Swift.Equatable { extension CreateBackupPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackupPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedBackupSettings = output.advancedBackupSettings self.backupPlanArn = output.backupPlanArn @@ -2783,9 +2780,8 @@ public enum CreateBackupSelectionOutputError: Swift.Error, Swift.Equatable { extension CreateBackupSelectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackupSelectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlanId = output.backupPlanId self.creationDate = output.creationDate @@ -2970,9 +2966,8 @@ public enum CreateBackupVaultOutputError: Swift.Error, Swift.Equatable { extension CreateBackupVaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackupVaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupVaultArn = output.backupVaultArn self.backupVaultName = output.backupVaultName @@ -3182,9 +3177,8 @@ public enum CreateFrameworkOutputError: Swift.Error, Swift.Equatable { extension CreateFrameworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFrameworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.frameworkArn = output.frameworkArn self.frameworkName = output.frameworkName @@ -3375,9 +3369,8 @@ public enum CreateLegalHoldOutputError: Swift.Error, Swift.Equatable { extension CreateLegalHoldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLegalHoldOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.description = output.description @@ -3628,9 +3621,8 @@ public enum CreateReportPlanOutputError: Swift.Error, Swift.Equatable { extension CreateReportPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReportPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.reportPlanArn = output.reportPlanArn @@ -3797,9 +3789,8 @@ public enum DeleteBackupPlanOutputError: Swift.Error, Swift.Equatable { extension DeleteBackupPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackupPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlanArn = output.backupPlanArn self.backupPlanId = output.backupPlanId @@ -4448,9 +4439,8 @@ public struct DeleteReportPlanOutputResponse: Swift.Equatable { extension DependencyFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependencyFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -4470,7 +4460,7 @@ extension DependencyFailureException { } /// A dependent Amazon Web Services service or resource returned an error to the Backup service, and the action cannot be completed. -public struct DependencyFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4590,9 +4580,8 @@ public enum DescribeBackupJobOutputError: Swift.Error, Swift.Equatable { extension DescribeBackupJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBackupJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId self.backupJobId = output.backupJobId @@ -4948,9 +4937,8 @@ public enum DescribeBackupVaultOutputError: Swift.Error, Swift.Equatable { extension DescribeBackupVaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBackupVaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupVaultArn = output.backupVaultArn self.backupVaultName = output.backupVaultName @@ -5138,9 +5126,8 @@ public enum DescribeCopyJobOutputError: Swift.Error, Swift.Equatable { extension DescribeCopyJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCopyJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.copyJob = output.copyJob } else { @@ -5238,9 +5225,8 @@ public enum DescribeFrameworkOutputError: Swift.Error, Swift.Equatable { extension DescribeFrameworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFrameworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.deploymentStatus = output.deploymentStatus @@ -5410,9 +5396,8 @@ public enum DescribeGlobalSettingsOutputError: Swift.Error, Swift.Equatable { extension DescribeGlobalSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGlobalSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalSettings = output.globalSettings self.lastUpdateTime = output.lastUpdateTime @@ -5529,9 +5514,8 @@ public enum DescribeProtectedResourceOutputError: Swift.Error, Swift.Equatable { extension DescribeProtectedResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProtectedResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastBackupTime = output.lastBackupTime self.resourceArn = output.resourceArn @@ -5667,9 +5651,8 @@ public enum DescribeRecoveryPointOutputError: Swift.Error, Swift.Equatable { extension DescribeRecoveryPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecoveryPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupSizeInBytes = output.backupSizeInBytes self.backupVaultArn = output.backupVaultArn @@ -5970,9 +5953,8 @@ public enum DescribeRegionSettingsOutputError: Swift.Error, Swift.Equatable { extension DescribeRegionSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRegionSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceTypeManagementPreference = output.resourceTypeManagementPreference self.resourceTypeOptInPreference = output.resourceTypeOptInPreference @@ -6096,9 +6078,8 @@ public enum DescribeReportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeReportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportJob = output.reportJob } else { @@ -6196,9 +6177,8 @@ public enum DescribeReportPlanOutputError: Swift.Error, Swift.Equatable { extension DescribeReportPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReportPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportPlan = output.reportPlan } else { @@ -6298,9 +6278,8 @@ public enum DescribeRestoreJobOutputError: Swift.Error, Swift.Equatable { extension DescribeRestoreJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRestoreJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId self.backupSizeInBytes = output.backupSizeInBytes @@ -6678,9 +6657,8 @@ public enum ExportBackupPlanTemplateOutputError: Swift.Error, Swift.Equatable { extension ExportBackupPlanTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportBackupPlanTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlanTemplateJson = output.backupPlanTemplateJson } else { @@ -6950,9 +6928,8 @@ public enum GetBackupPlanFromJSONOutputError: Swift.Error, Swift.Equatable { extension GetBackupPlanFromJSONOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackupPlanFromJSONOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlan = output.backupPlan } else { @@ -7050,9 +7027,8 @@ public enum GetBackupPlanFromTemplateOutputError: Swift.Error, Swift.Equatable { extension GetBackupPlanFromTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackupPlanFromTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlanDocument = output.backupPlanDocument } else { @@ -7167,9 +7143,8 @@ public enum GetBackupPlanOutputError: Swift.Error, Swift.Equatable { extension GetBackupPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackupPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedBackupSettings = output.advancedBackupSettings self.backupPlan = output.backupPlan @@ -7364,9 +7339,8 @@ public enum GetBackupSelectionOutputError: Swift.Error, Swift.Equatable { extension GetBackupSelectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackupSelectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlanId = output.backupPlanId self.backupSelection = output.backupSelection @@ -7504,9 +7478,8 @@ public enum GetBackupVaultAccessPolicyOutputError: Swift.Error, Swift.Equatable extension GetBackupVaultAccessPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackupVaultAccessPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupVaultArn = output.backupVaultArn self.backupVaultName = output.backupVaultName @@ -7624,9 +7597,8 @@ public enum GetBackupVaultNotificationsOutputError: Swift.Error, Swift.Equatable extension GetBackupVaultNotificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBackupVaultNotificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupVaultArn = output.backupVaultArn self.backupVaultEvents = output.backupVaultEvents @@ -7763,9 +7735,8 @@ public enum GetLegalHoldOutputError: Swift.Error, Swift.Equatable { extension GetLegalHoldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLegalHoldOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cancelDescription = output.cancelDescription self.cancellationDate = output.cancellationDate @@ -7966,9 +7937,8 @@ extension GetRecoveryPointRestoreMetadataOutputResponse: Swift.CustomDebugString extension GetRecoveryPointRestoreMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecoveryPointRestoreMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupVaultArn = output.backupVaultArn self.recoveryPointArn = output.recoveryPointArn @@ -8078,9 +8048,8 @@ public enum GetSupportedResourceTypesOutputError: Swift.Error, Swift.Equatable { extension GetSupportedResourceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSupportedResourceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceTypes = output.resourceTypes } else { @@ -8148,9 +8117,8 @@ extension GetSupportedResourceTypesOutputResponseBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -8170,7 +8138,7 @@ extension InvalidParameterValueException { } /// Indicates that something is wrong with a parameter's value. For example, the value is out of range. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8229,9 +8197,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -8251,7 +8218,7 @@ extension InvalidRequestException { } /// Indicates that something is wrong with the input to the request. For example, a parameter is of the wrong type. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8310,9 +8277,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidResourceStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceStateExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -8332,7 +8298,7 @@ extension InvalidResourceStateException { } /// Backup is already performing an action on this recovery point. It can't perform the action you requested until the first action finishes. Try again later. -public struct InvalidResourceStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8569,9 +8535,8 @@ extension BackupClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -8591,7 +8556,7 @@ extension LimitExceededException { } /// A limit in the request has been exceeded; for example, a maximum number of items allowed in a request. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8826,9 +8791,8 @@ public enum ListBackupJobsOutputError: Swift.Error, Swift.Equatable { extension ListBackupJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackupJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupJobs = output.backupJobs self.nextToken = output.nextToken @@ -8962,9 +8926,8 @@ public enum ListBackupPlanTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListBackupPlanTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackupPlanTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlanTemplatesList = output.backupPlanTemplatesList self.nextToken = output.nextToken @@ -9106,9 +9069,8 @@ public enum ListBackupPlanVersionsOutputError: Swift.Error, Swift.Equatable { extension ListBackupPlanVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackupPlanVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlanVersionsList = output.backupPlanVersionsList self.nextToken = output.nextToken @@ -9250,9 +9212,8 @@ public enum ListBackupPlansOutputError: Swift.Error, Swift.Equatable { extension ListBackupPlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackupPlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPlansList = output.backupPlansList self.nextToken = output.nextToken @@ -9394,9 +9355,8 @@ public enum ListBackupSelectionsOutputError: Swift.Error, Swift.Equatable { extension ListBackupSelectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackupSelectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupSelectionsList = output.backupSelectionsList self.nextToken = output.nextToken @@ -9530,9 +9490,8 @@ public enum ListBackupVaultsOutputError: Swift.Error, Swift.Equatable { extension ListBackupVaultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackupVaultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupVaultList = output.backupVaultList self.nextToken = output.nextToken @@ -9766,9 +9725,8 @@ public enum ListCopyJobsOutputError: Swift.Error, Swift.Equatable { extension ListCopyJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCopyJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.copyJobs = output.copyJobs self.nextToken = output.nextToken @@ -9898,9 +9856,8 @@ public enum ListFrameworksOutputError: Swift.Error, Swift.Equatable { extension ListFrameworksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFrameworksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.frameworks = output.frameworks self.nextToken = output.nextToken @@ -10030,9 +9987,8 @@ public enum ListLegalHoldsOutputError: Swift.Error, Swift.Equatable { extension ListLegalHoldsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLegalHoldsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.legalHolds = output.legalHolds self.nextToken = output.nextToken @@ -10162,9 +10118,8 @@ public enum ListProtectedResourcesOutputError: Swift.Error, Swift.Equatable { extension ListProtectedResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProtectedResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -10354,9 +10309,8 @@ public enum ListRecoveryPointsByBackupVaultOutputError: Swift.Error, Swift.Equat extension ListRecoveryPointsByBackupVaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecoveryPointsByBackupVaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recoveryPoints = output.recoveryPoints @@ -10496,9 +10450,8 @@ public enum ListRecoveryPointsByLegalHoldOutputError: Swift.Error, Swift.Equatab extension ListRecoveryPointsByLegalHoldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecoveryPointsByLegalHoldOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recoveryPoints = output.recoveryPoints @@ -10640,9 +10593,8 @@ public enum ListRecoveryPointsByResourceOutputError: Swift.Error, Swift.Equatabl extension ListRecoveryPointsByResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecoveryPointsByResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recoveryPoints = output.recoveryPoints @@ -10806,9 +10758,8 @@ public enum ListReportJobsOutputError: Swift.Error, Swift.Equatable { extension ListReportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportJobs = output.reportJobs @@ -10938,9 +10889,8 @@ public enum ListReportPlansOutputError: Swift.Error, Swift.Equatable { extension ListReportPlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReportPlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportPlans = output.reportPlans @@ -11122,9 +11072,8 @@ public enum ListRestoreJobsOutputError: Swift.Error, Swift.Equatable { extension ListRestoreJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRestoreJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.restoreJobs = output.restoreJobs @@ -11271,9 +11220,8 @@ extension ListTagsOutputResponse: Swift.CustomDebugStringConvertible { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -11331,9 +11279,8 @@ extension ListTagsOutputResponseBody: Swift.Decodable { extension MissingParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -11353,7 +11300,7 @@ extension MissingParameterValueException { } /// Indicates that a required parameter is missing. -public struct MissingParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12885,9 +12832,8 @@ extension BackupClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -12907,7 +12853,7 @@ extension ResourceNotFoundException { } /// A resource that is required for the action doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13162,9 +13108,8 @@ extension BackupClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -13184,7 +13129,7 @@ extension ServiceUnavailableException { } /// The request failed due to a temporary failure of the server. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13450,9 +13395,8 @@ public enum StartBackupJobOutputError: Swift.Error, Swift.Equatable { extension StartBackupJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartBackupJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupJobId = output.backupJobId self.creationDate = output.creationDate @@ -13664,9 +13608,8 @@ public enum StartCopyJobOutputError: Swift.Error, Swift.Equatable { extension StartCopyJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartCopyJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.copyJobId = output.copyJobId self.creationDate = output.creationDate @@ -13808,9 +13751,8 @@ public enum StartReportJobOutputError: Swift.Error, Swift.Equatable { extension StartReportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportJobId = output.reportJobId } else { @@ -14029,9 +13971,8 @@ public enum StartRestoreJobOutputError: Swift.Error, Swift.Equatable { extension StartRestoreJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRestoreJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.restoreJobId = output.restoreJobId } else { @@ -14484,9 +14425,8 @@ public enum UpdateBackupPlanOutputError: Swift.Error, Swift.Equatable { extension UpdateBackupPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBackupPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedBackupSettings = output.advancedBackupSettings self.backupPlanArn = output.backupPlanArn @@ -14699,9 +14639,8 @@ public enum UpdateFrameworkOutputError: Swift.Error, Swift.Equatable { extension UpdateFrameworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFrameworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.frameworkArn = output.frameworkArn @@ -14950,9 +14889,8 @@ public enum UpdateRecoveryPointLifecycleOutputError: Swift.Error, Swift.Equatabl extension UpdateRecoveryPointLifecycleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRecoveryPointLifecycleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupVaultArn = output.backupVaultArn self.calculatedLifecycle = output.calculatedLifecycle @@ -15261,9 +15199,8 @@ public enum UpdateReportPlanOutputError: Swift.Error, Swift.Equatable { extension UpdateReportPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReportPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.reportPlanArn = output.reportPlanArn diff --git a/Sources/Services/AWSBackupGateway/BackupGatewayClient.swift b/Sources/Services/AWSBackupGateway/BackupGatewayClient.swift index b44046144b2..4aa3ef20b53 100644 --- a/Sources/Services/AWSBackupGateway/BackupGatewayClient.swift +++ b/Sources/Services/AWSBackupGateway/BackupGatewayClient.swift @@ -208,6 +208,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateGatewayToServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHypervisor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateGatewayFromServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBandwidthRateLimitSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHypervisor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHypervisorPropertyMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVirtualMachine") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importHypervisorConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHypervisors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVirtualMachines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBandwidthRateLimitSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putHypervisorPropertyMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMaintenanceStartTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startVirtualMachinesMetadataSync") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testHypervisorConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewayInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewaySoftwareNow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-gateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHypervisor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension BackupGatewayClient: BackupGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSBackupGateway/models/Models.swift b/Sources/Services/AWSBackupGateway/models/Models.swift index d39822d0f55..19193798a7b 100644 --- a/Sources/Services/AWSBackupGateway/models/Models.swift +++ b/Sources/Services/AWSBackupGateway/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// The operation cannot proceed because you have insufficient permissions. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -150,9 +149,8 @@ public enum AssociateGatewayToServerOutputError: Swift.Error, Swift.Equatable { extension AssociateGatewayToServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateGatewayToServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -293,9 +291,8 @@ extension BackupGatewayClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -311,7 +308,7 @@ extension ConflictException { } /// The operation cannot proceed because it is not supported. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -474,9 +471,8 @@ public enum CreateGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -585,9 +581,8 @@ public enum DeleteGatewayOutputError: Swift.Error, Swift.Equatable { extension DeleteGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -700,9 +695,8 @@ public enum DeleteHypervisorOutputError: Swift.Error, Swift.Equatable { extension DeleteHypervisorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteHypervisorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hypervisorArn = output.hypervisorArn } else { @@ -813,9 +807,8 @@ public enum DisassociateGatewayFromServerOutputError: Swift.Error, Swift.Equatab extension DisassociateGatewayFromServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateGatewayFromServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -1133,9 +1126,8 @@ public enum GetBandwidthRateLimitScheduleOutputError: Swift.Error, Swift.Equatab extension GetBandwidthRateLimitScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBandwidthRateLimitScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bandwidthRateLimitIntervals = output.bandwidthRateLimitIntervals self.gatewayArn = output.gatewayArn @@ -1263,9 +1255,8 @@ public enum GetGatewayOutputError: Swift.Error, Swift.Equatable { extension GetGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gateway = output.gateway } else { @@ -1374,9 +1365,8 @@ public enum GetHypervisorOutputError: Swift.Error, Swift.Equatable { extension GetHypervisorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHypervisorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hypervisor = output.hypervisor } else { @@ -1485,9 +1475,8 @@ public enum GetHypervisorPropertyMappingsOutputError: Swift.Error, Swift.Equatab extension GetHypervisorPropertyMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHypervisorPropertyMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hypervisorArn = output.hypervisorArn self.iamRoleArn = output.iamRoleArn @@ -1625,9 +1614,8 @@ public enum GetVirtualMachineOutputError: Swift.Error, Swift.Equatable { extension GetVirtualMachineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVirtualMachineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualMachine = output.virtualMachine } else { @@ -2044,9 +2032,8 @@ public enum ImportHypervisorConfigurationOutputError: Swift.Error, Swift.Equatab extension ImportHypervisorConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportHypervisorConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hypervisorArn = output.hypervisorArn } else { @@ -2084,7 +2071,7 @@ extension ImportHypervisorConfigurationOutputResponseBody: Swift.Decodable { } /// The operation did not succeed because an internal error occurred. Try again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2187,9 +2174,8 @@ public enum ListGatewaysOutputError: Swift.Error, Swift.Equatable { extension ListGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gateways = output.gateways self.nextToken = output.nextToken @@ -2326,9 +2312,8 @@ public enum ListHypervisorsOutputError: Swift.Error, Swift.Equatable { extension ListHypervisorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHypervisorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hypervisors = output.hypervisors self.nextToken = output.nextToken @@ -2456,9 +2441,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.tags = output.tags @@ -2607,9 +2591,8 @@ public enum ListVirtualMachinesOutputError: Swift.Error, Swift.Equatable { extension ListVirtualMachinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVirtualMachinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.virtualMachines = output.virtualMachines @@ -2829,9 +2812,8 @@ public enum PutBandwidthRateLimitScheduleOutputError: Swift.Error, Swift.Equatab extension PutBandwidthRateLimitScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutBandwidthRateLimitScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -2982,9 +2964,8 @@ public enum PutHypervisorPropertyMappingsOutputError: Swift.Error, Swift.Equatab extension PutHypervisorPropertyMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutHypervisorPropertyMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hypervisorArn = output.hypervisorArn } else { @@ -3145,9 +3126,8 @@ public enum PutMaintenanceStartTimeOutputError: Swift.Error, Swift.Equatable { extension PutMaintenanceStartTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutMaintenanceStartTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -3186,9 +3166,8 @@ extension PutMaintenanceStartTimeOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -3204,7 +3183,7 @@ extension ResourceNotFoundException { } /// A resource that is required for the action wasn't found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3320,9 +3299,8 @@ public enum StartVirtualMachinesMetadataSyncOutputError: Swift.Error, Swift.Equa extension StartVirtualMachinesMetadataSyncOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartVirtualMachinesMetadataSyncOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hypervisorArn = output.hypervisorArn } else { @@ -3544,9 +3522,8 @@ public enum TagResourceOutputError: Swift.Error, Swift.Equatable { extension TagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceARN = output.resourceARN } else { @@ -3708,7 +3685,7 @@ public struct TestHypervisorConfigurationOutputResponse: Swift.Equatable { } /// TPS has been limited to protect against intentional or unintentional high request volumes. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3828,9 +3805,8 @@ public enum UntagResourceOutputError: Swift.Error, Swift.Equatable { extension UntagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UntagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceARN = output.resourceARN } else { @@ -3953,9 +3929,8 @@ public enum UpdateGatewayInformationOutputError: Swift.Error, Swift.Equatable { extension UpdateGatewayInformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGatewayInformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -4064,9 +4039,8 @@ public enum UpdateGatewaySoftwareNowOutputError: Swift.Error, Swift.Equatable { extension UpdateGatewaySoftwareNowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGatewaySoftwareNowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -4244,9 +4218,8 @@ public enum UpdateHypervisorOutputError: Swift.Error, Swift.Equatable { extension UpdateHypervisorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateHypervisorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hypervisorArn = output.hypervisorArn } else { @@ -4284,7 +4257,7 @@ extension UpdateHypervisorOutputResponseBody: Swift.Decodable { } /// The operation did not succeed because a validation error occurred. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSBackupStorage/BackupStorageClient.swift b/Sources/Services/AWSBackupStorage/BackupStorageClient.swift index f5732d39b88..bb1f89265a4 100644 --- a/Sources/Services/AWSBackupStorage/BackupStorageClient.swift +++ b/Sources/Services/AWSBackupStorage/BackupStorageClient.swift @@ -208,6 +208,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChunk") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -284,7 +287,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -304,6 +307,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChunks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -317,7 +321,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +341,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -350,7 +355,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -370,6 +375,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyObjectComplete") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -386,7 +392,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -406,6 +412,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putChunk") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -422,7 +429,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +449,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -458,7 +466,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -478,6 +486,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "backup-storage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -493,7 +502,7 @@ extension BackupStorageClient: BackupStorageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSBackupStorage/models/Models.swift b/Sources/Services/AWSBackupStorage/models/Models.swift index dca700fef96..0c36fbf6898 100644 --- a/Sources/Services/AWSBackupStorage/models/Models.swift +++ b/Sources/Services/AWSBackupStorage/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19,7 +18,7 @@ extension AccessDeniedException { } } -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -224,9 +223,8 @@ extension BackupStorageClientTypes { extension DataAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DataAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.checksum = output.checksum self.checksumAlgorithm = output.checksumAlgorithm @@ -244,7 +242,7 @@ extension DataAlreadyExistsException { } /// Non-retryable exception. Attempted to create already existing object or chunk. This message contains a checksum of already presented data. -public struct DataAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DataAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -496,9 +494,12 @@ extension GetChunkOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.length = 0 } - if let data = httpResponse.body.toBytes()?.getData() { - self.data = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.data = .data(data) + case .stream(let stream): + self.data = .stream(stream) + case .none: self.data = nil } } @@ -645,9 +646,12 @@ extension GetObjectMetadataOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.metadataString = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.metadataBlob = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.metadataBlob = .data(data) + case .stream(let stream): + self.metadataBlob = .stream(stream) + case .none: self.metadataBlob = nil } } @@ -699,9 +703,8 @@ extension GetObjectMetadataOutputResponseBody: Swift.Decodable { extension IllegalArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -715,7 +718,7 @@ extension IllegalArgumentException { } /// Non-retryable exception, indicates client error (wrong argument passed to API). See exception message for details. -public struct IllegalArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -751,9 +754,8 @@ extension IllegalArgumentExceptionBody: Swift.Decodable { extension KMSInvalidKeyUsageException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSInvalidKeyUsageExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -767,7 +769,7 @@ extension KMSInvalidKeyUsageException { } /// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message for details. -public struct KMSInvalidKeyUsageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInvalidKeyUsageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -899,9 +901,8 @@ public enum ListChunksOutputError: Swift.Error, Swift.Equatable { extension ListChunksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChunksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.chunkList = output.chunkList self.nextToken = output.nextToken @@ -1084,9 +1085,8 @@ public enum ListObjectsOutputError: Swift.Error, Swift.Equatable { extension ListObjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.objectList = output.objectList @@ -1145,9 +1145,8 @@ extension ListObjectsOutputResponseBody: Swift.Decodable { extension NotReadableInputStreamException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotReadableInputStreamExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1161,7 +1160,7 @@ extension NotReadableInputStreamException { } /// Retryalble exception. Indicated issues while reading an input stream due to the networking issues or connection drop on the client side. -public struct NotReadableInputStreamException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotReadableInputStreamException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1209,9 +1208,8 @@ public struct NotifyObjectCompleteInputBodyMiddleware: ClientRuntime.Middleware Self.Context == H.Context { if let metadataBlob = input.operationInput.metadataBlob { - let metadataBlobdata = metadataBlob - let metadataBlobbody = ClientRuntime.HttpBody.stream(metadataBlobdata) - input.builder.withBody(metadataBlobbody) + let metadataBlobBody = ClientRuntime.HttpBody(byteStream: metadataBlob) + input.builder.withBody(metadataBlobBody) } return try await next.handle(context: context, input: input) } @@ -1229,7 +1227,7 @@ extension NotifyObjectCompleteInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let metadataBlob = self.metadataBlob { - try encodeContainer.encode(metadataBlob.toBytes().getData(), forKey: .metadataBlob) + try encodeContainer.encode(metadataBlob, forKey: .metadataBlob) } } } @@ -1385,9 +1383,8 @@ public enum NotifyObjectCompleteOutputError: Swift.Error, Swift.Equatable { extension NotifyObjectCompleteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotifyObjectCompleteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.objectChecksum = output.objectChecksum self.objectChecksumAlgorithm = output.objectChecksumAlgorithm @@ -1450,9 +1447,8 @@ public struct PutChunkInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let data = input.operationInput.data { - let datadata = data - let databody = ClientRuntime.HttpBody.stream(datadata) - input.builder.withBody(databody) + let dataBody = ClientRuntime.HttpBody(byteStream: data) + input.builder.withBody(dataBody) } return try await next.handle(context: context, input: input) } @@ -1470,7 +1466,7 @@ extension PutChunkInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let data = self.data { - try encodeContainer.encode(data.toBytes().getData(), forKey: .data) + try encodeContainer.encode(data, forKey: .data) } } } @@ -1607,9 +1603,8 @@ public enum PutChunkOutputError: Swift.Error, Swift.Equatable { extension PutChunkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutChunkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.chunkChecksum = output.chunkChecksum self.chunkChecksumAlgorithm = output.chunkChecksumAlgorithm @@ -1672,9 +1667,8 @@ public struct PutObjectInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let inlineChunk = input.operationInput.inlineChunk { - let inlineChunkdata = inlineChunk - let inlineChunkbody = ClientRuntime.HttpBody.stream(inlineChunkdata) - input.builder.withBody(inlineChunkbody) + let inlineChunkBody = ClientRuntime.HttpBody(byteStream: inlineChunk) + input.builder.withBody(inlineChunkBody) } return try await next.handle(context: context, input: input) } @@ -1692,7 +1686,7 @@ extension PutObjectInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let inlineChunk = self.inlineChunk { - try encodeContainer.encode(inlineChunk.toBytes().getData(), forKey: .inlineChunk) + try encodeContainer.encode(inlineChunk, forKey: .inlineChunk) } } } @@ -1850,9 +1844,8 @@ public enum PutObjectOutputError: Swift.Error, Swift.Equatable { extension PutObjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutObjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inlineChunkChecksum = output.inlineChunkChecksum self.inlineChunkChecksumAlgorithm = output.inlineChunkChecksumAlgorithm @@ -1925,9 +1918,8 @@ extension PutObjectOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1941,7 +1933,7 @@ extension ResourceNotFoundException { } /// Non-retryable exception. Attempted to make an operation on non-existing or expired resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1977,9 +1969,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension RetryableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1993,7 +1984,7 @@ extension RetryableException { } /// Retryable exception. In general indicates internal failure that can be fixed by retry. -public struct RetryableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RetryableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2029,9 +2020,8 @@ extension RetryableExceptionBody: Swift.Decodable { extension ServiceInternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceInternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2045,7 +2035,7 @@ extension ServiceInternalException { } /// Deprecated. To be removed from the model. -public struct ServiceInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2081,9 +2071,8 @@ extension ServiceInternalExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2097,7 +2086,7 @@ extension ServiceUnavailableException { } /// Retryable exception, indicates internal server error. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2232,9 +2221,8 @@ public enum StartObjectOutputError: Swift.Error, Swift.Equatable { extension StartObjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartObjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.uploadId = output.uploadId } else { @@ -2303,9 +2291,8 @@ extension BackupStorageClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2319,7 +2306,7 @@ extension ThrottlingException { } /// Increased rate over throttling limits. Can be retried with exponential backoff. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSBatch/BatchClient.swift b/Sources/Services/AWSBatch/BatchClient.swift index c695bbd6419..ffa7c9824df 100644 --- a/Sources/Services/AWSBatch/BatchClient.swift +++ b/Sources/Services/AWSBatch/BatchClient.swift @@ -208,6 +208,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -265,6 +266,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComputeEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -280,7 +282,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -300,6 +302,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJobQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -315,7 +318,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -335,6 +338,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSchedulingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -350,7 +354,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -370,6 +374,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteComputeEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -385,7 +390,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -405,6 +410,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJobQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +426,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +446,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchedulingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +462,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +482,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -490,7 +498,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -510,6 +518,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeComputeEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -525,7 +534,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -545,6 +554,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -560,7 +570,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -580,6 +590,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -595,7 +606,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -615,6 +626,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -630,7 +642,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -650,6 +662,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSchedulingPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -665,7 +678,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +707,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +723,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +743,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchedulingPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +759,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +779,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -776,7 +792,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -796,6 +812,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -811,7 +828,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -831,6 +848,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "submitJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -846,7 +864,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -866,6 +884,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -881,7 +900,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -901,6 +920,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +936,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +956,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -949,7 +970,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -969,6 +990,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateComputeEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1006,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1026,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJobQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1019,7 +1042,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1039,6 +1062,7 @@ extension BatchClient: BatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "batch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSchedulingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1054,7 +1078,7 @@ extension BatchClient: BatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSBatch/models/Models.swift b/Sources/Services/AWSBatch/models/Models.swift index ce11f40974e..d9708098dda 100644 --- a/Sources/Services/AWSBatch/models/Models.swift +++ b/Sources/Services/AWSBatch/models/Models.swift @@ -686,9 +686,8 @@ public struct CancelJobOutputResponse: Swift.Equatable { extension ClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -702,7 +701,7 @@ extension ClientException { } /// These errors are usually caused by a client action. One example cause is using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier that's not valid. -public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2548,9 +2547,8 @@ public enum CreateComputeEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateComputeEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateComputeEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computeEnvironmentArn = output.computeEnvironmentArn self.computeEnvironmentName = output.computeEnvironmentName @@ -2758,9 +2756,8 @@ public enum CreateJobQueueOutputError: Swift.Error, Swift.Equatable { extension CreateJobQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobQueueArn = output.jobQueueArn self.jobQueueName = output.jobQueueName @@ -2920,9 +2917,8 @@ public enum CreateSchedulingPolicyOutputError: Swift.Error, Swift.Equatable { extension CreateSchedulingPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSchedulingPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -3412,9 +3408,8 @@ public enum DescribeComputeEnvironmentsOutputError: Swift.Error, Swift.Equatable extension DescribeComputeEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeComputeEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computeEnvironments = output.computeEnvironments self.nextToken = output.nextToken @@ -3604,9 +3599,8 @@ public enum DescribeJobDefinitionsOutputError: Swift.Error, Swift.Equatable { extension DescribeJobDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitions = output.jobDefinitions self.nextToken = output.nextToken @@ -3772,9 +3766,8 @@ public enum DescribeJobQueuesOutputError: Swift.Error, Swift.Equatable { extension DescribeJobQueuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobQueuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobQueues = output.jobQueues self.nextToken = output.nextToken @@ -3917,9 +3910,8 @@ public enum DescribeJobsOutputError: Swift.Error, Swift.Equatable { extension DescribeJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs } else { @@ -4052,9 +4044,8 @@ public enum DescribeSchedulingPoliciesOutputError: Swift.Error, Swift.Equatable extension DescribeSchedulingPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSchedulingPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schedulingPolicies = output.schedulingPolicies } else { @@ -7781,9 +7772,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummaryList = output.jobSummaryList self.nextToken = output.nextToken @@ -7926,9 +7916,8 @@ public enum ListSchedulingPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListSchedulingPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchedulingPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schedulingPolicies = output.schedulingPolicies @@ -8042,9 +8031,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8995,9 +8983,8 @@ public enum RegisterJobDefinitionOutputError: Swift.Error, Swift.Equatable { extension RegisterJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionArn = output.jobDefinitionArn self.jobDefinitionName = output.jobDefinitionName @@ -9399,9 +9386,8 @@ extension BatchClientTypes { extension ServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9415,7 +9401,7 @@ extension ServerException { } /// These errors are usually caused by a server issue. -public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9776,9 +9762,8 @@ public enum SubmitJobOutputError: Swift.Error, Swift.Equatable { extension SubmitJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubmitJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -10386,9 +10371,8 @@ public enum UpdateComputeEnvironmentOutputError: Swift.Error, Swift.Equatable { extension UpdateComputeEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateComputeEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computeEnvironmentArn = output.computeEnvironmentArn self.computeEnvironmentName = output.computeEnvironmentName @@ -10570,9 +10554,8 @@ public enum UpdateJobQueueOutputError: Swift.Error, Swift.Equatable { extension UpdateJobQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateJobQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobQueueArn = output.jobQueueArn self.jobQueueName = output.jobQueueName diff --git a/Sources/Services/AWSBillingconductor/BillingconductorClient.swift b/Sources/Services/AWSBillingconductor/BillingconductorClient.swift index 2f630aba08c..d6fdf052dcd 100644 --- a/Sources/Services/AWSBillingconductor/BillingconductorClient.swift +++ b/Sources/Services/AWSBillingconductor/BillingconductorClient.swift @@ -208,6 +208,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePricingRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateResourcesToCustomLineItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateResourcesFromCustomLineItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBillingGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -372,7 +377,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -392,6 +397,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomLineItem") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -416,7 +422,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -436,6 +442,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPricingPlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -460,7 +467,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -480,6 +487,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPricingRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -504,7 +512,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -524,6 +532,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -539,7 +548,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -559,6 +568,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomLineItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -574,7 +584,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -594,6 +604,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePricingPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -609,7 +620,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -629,6 +640,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePricingRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -644,7 +656,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -664,6 +676,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -679,7 +692,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -699,6 +712,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePricingRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -714,7 +728,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -734,6 +748,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -749,7 +764,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -769,6 +784,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBillingGroupCostReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -784,7 +800,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -804,6 +820,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBillingGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -819,7 +836,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -839,6 +856,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomLineItemVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -854,7 +872,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -874,6 +892,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomLineItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -889,7 +908,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -909,6 +928,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPricingPlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +944,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +964,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPricingPlansAssociatedWithPricingRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +980,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +1000,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPricingRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -994,7 +1016,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1014,6 +1036,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPricingRulesAssociatedToPricingPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1029,7 +1052,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1049,6 +1072,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourcesAssociatedToCustomLineItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1064,7 +1088,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1084,6 +1108,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1121,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1141,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1131,7 +1157,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1151,6 +1177,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1164,7 +1191,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1184,6 +1211,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1199,7 +1227,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1219,6 +1247,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCustomLineItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1234,7 +1263,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1254,6 +1283,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePricingPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1269,7 +1299,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1289,6 +1319,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "billingconductor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePricingRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension BillingconductorClient: BillingconductorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSBillingconductor/models/Models.swift b/Sources/Services/AWSBillingconductor/models/Models.swift index 25cd9989789..69c41703e4e 100644 --- a/Sources/Services/AWSBillingconductor/models/Models.swift +++ b/Sources/Services/AWSBillingconductor/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -282,9 +281,8 @@ public enum AssociateAccountsOutputError: Swift.Error, Swift.Equatable { extension AssociateAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -430,9 +428,8 @@ public enum AssociatePricingRulesOutputError: Swift.Error, Swift.Equatable { extension AssociatePricingRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatePricingRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -721,9 +718,8 @@ public enum BatchAssociateResourcesToCustomLineItemOutputError: Swift.Error, Swi extension BatchAssociateResourcesToCustomLineItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateResourcesToCustomLineItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedAssociatedResources = output.failedAssociatedResources self.successfullyAssociatedResources = output.successfullyAssociatedResources @@ -907,9 +903,8 @@ public enum BatchDisassociateResourcesFromCustomLineItemOutputError: Swift.Error extension BatchDisassociateResourcesFromCustomLineItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateResourcesFromCustomLineItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedDisassociatedResources = output.failedDisassociatedResources self.successfullyDisassociatedResources = output.successfullyDisassociatedResources @@ -1259,9 +1254,8 @@ extension BillingconductorClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -1281,7 +1275,7 @@ extension ConflictException { } /// You can cause an inconsistent state by updating or deleting a resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1558,9 +1552,8 @@ public enum CreateBillingGroupOutputError: Swift.Error, Swift.Equatable { extension CreateBillingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBillingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -1773,9 +1766,8 @@ public enum CreateCustomLineItemOutputError: Swift.Error, Swift.Equatable { extension CreateCustomLineItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomLineItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -2011,9 +2003,8 @@ public enum CreatePricingPlanOutputError: Swift.Error, Swift.Equatable { extension CreatePricingPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePricingPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -2285,9 +2276,8 @@ public enum CreatePricingRuleOutputError: Swift.Error, Swift.Equatable { extension CreatePricingRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePricingRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3020,9 +3010,8 @@ public enum DeleteBillingGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteBillingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBillingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3151,9 +3140,8 @@ public enum DeleteCustomLineItemOutputError: Swift.Error, Swift.Equatable { extension DeleteCustomLineItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCustomLineItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3270,9 +3258,8 @@ public enum DeletePricingPlanOutputError: Swift.Error, Swift.Equatable { extension DeletePricingPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePricingPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3389,9 +3376,8 @@ public enum DeletePricingRuleOutputError: Swift.Error, Swift.Equatable { extension DeletePricingRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePricingRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3535,9 +3521,8 @@ public enum DisassociateAccountsOutputError: Swift.Error, Swift.Equatable { extension DisassociateAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3681,9 +3666,8 @@ public enum DisassociatePricingRulesOutputError: Swift.Error, Swift.Equatable { extension DisassociatePricingRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociatePricingRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3808,9 +3792,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3824,7 +3807,7 @@ extension InternalServerException { } /// An unexpected error occurred while processing a request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4033,9 +4016,8 @@ public enum ListAccountAssociationsOutputError: Swift.Error, Swift.Equatable { extension ListAccountAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.linkedAccounts = output.linkedAccounts self.nextToken = output.nextToken @@ -4253,9 +4235,8 @@ public enum ListBillingGroupCostReportsOutputError: Swift.Error, Swift.Equatable extension ListBillingGroupCostReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBillingGroupCostReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingGroupCostReports = output.billingGroupCostReports self.nextToken = output.nextToken @@ -4505,9 +4486,8 @@ public enum ListBillingGroupsOutputError: Swift.Error, Swift.Equatable { extension ListBillingGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBillingGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingGroups = output.billingGroups self.nextToken = output.nextToken @@ -4885,9 +4865,8 @@ public enum ListCustomLineItemVersionsOutputError: Swift.Error, Swift.Equatable extension ListCustomLineItemVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomLineItemVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customLineItemVersions = output.customLineItemVersions self.nextToken = output.nextToken @@ -5149,9 +5128,8 @@ public enum ListCustomLineItemsOutputError: Swift.Error, Swift.Equatable { extension ListCustomLineItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomLineItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customLineItems = output.customLineItems self.nextToken = output.nextToken @@ -5323,9 +5301,8 @@ public enum ListPricingPlansAssociatedWithPricingRuleOutputError: Swift.Error, S extension ListPricingPlansAssociatedWithPricingRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPricingPlansAssociatedWithPricingRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingPeriod = output.billingPeriod self.nextToken = output.nextToken @@ -5561,9 +5538,8 @@ public enum ListPricingPlansOutputError: Swift.Error, Swift.Equatable { extension ListPricingPlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPricingPlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingPeriod = output.billingPeriod self.nextToken = output.nextToken @@ -5745,9 +5721,8 @@ public enum ListPricingRulesAssociatedToPricingPlanOutputError: Swift.Error, Swi extension ListPricingRulesAssociatedToPricingPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPricingRulesAssociatedToPricingPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingPeriod = output.billingPeriod self.nextToken = output.nextToken @@ -5983,9 +5958,8 @@ public enum ListPricingRulesOutputError: Swift.Error, Swift.Equatable { extension ListPricingRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPricingRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingPeriod = output.billingPeriod self.nextToken = output.nextToken @@ -6214,9 +6188,8 @@ public enum ListResourcesAssociatedToCustomLineItemOutputError: Swift.Error, Swi extension ListResourcesAssociatedToCustomLineItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesAssociatedToCustomLineItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associatedResources = output.associatedResources @@ -6400,9 +6373,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6783,9 +6755,8 @@ extension BillingconductorClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -6803,7 +6774,7 @@ extension ResourceNotFoundException { } /// The request references a resource that doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6858,9 +6829,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.limitCode = output.limitCode self.message = output.message @@ -6882,7 +6852,7 @@ extension ServiceLimitExceededException { } /// The request would cause a service limit to exceed. -public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7066,9 +7036,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7082,7 +7051,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7390,9 +7359,8 @@ extension UpdateBillingGroupOutputResponse: Swift.CustomDebugStringConvertible { extension UpdateBillingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBillingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.description = output.description @@ -7728,9 +7696,8 @@ extension UpdateCustomLineItemOutputResponse: Swift.CustomDebugStringConvertible extension UpdateCustomLineItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCustomLineItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associationSize = output.associationSize @@ -8015,9 +7982,8 @@ extension UpdatePricingPlanOutputResponse: Swift.CustomDebugStringConvertible { extension UpdatePricingPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePricingPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.description = output.description @@ -8246,9 +8212,8 @@ extension UpdatePricingRuleOutputResponse: Swift.CustomDebugStringConvertible { extension UpdatePricingRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePricingRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associatedPricingPlanCount = output.associatedPricingPlanCount @@ -8443,9 +8408,8 @@ extension BillingconductorClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -8463,7 +8427,7 @@ extension ValidationException { } /// The input doesn't match with the constraints specified by Amazon Web Services services. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSBraket/BraketClient.swift b/Sources/Services/AWSBraket/BraketClient.swift index c36b5ea4f7e..d85af44196f 100644 --- a/Sources/Services/AWSBraket/BraketClient.swift +++ b/Sources/Services/AWSBraket/BraketClient.swift @@ -208,6 +208,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelQuantumTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -263,7 +265,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -306,7 +309,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -326,6 +329,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createQuantumTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -349,7 +353,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -369,6 +373,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -381,7 +386,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -401,6 +406,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -413,7 +419,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -433,6 +439,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQuantumTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -445,7 +452,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -465,6 +472,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +485,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +505,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -547,7 +557,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -567,6 +577,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchQuantumTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +593,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +613,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -617,7 +629,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -637,6 +649,7 @@ extension BraketClient: BraketClientProtocol { .withRegion(value: config.region) .withSigningName(value: "braket") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -650,7 +663,7 @@ extension BraketClient: BraketClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSBraket/models/Models.swift b/Sources/Services/AWSBraket/models/Models.swift index a4d4e0695c2..c290ce43972 100644 --- a/Sources/Services/AWSBraket/models/Models.swift +++ b/Sources/Services/AWSBraket/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -164,9 +163,8 @@ public enum CancelJobOutputError: Swift.Error, Swift.Equatable { extension CancelJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cancellationStatus = output.cancellationStatus self.jobArn = output.jobArn @@ -305,9 +303,8 @@ public enum CancelQuantumTaskOutputError: Swift.Error, Swift.Equatable { extension CancelQuantumTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelQuantumTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cancellationStatus = output.cancellationStatus self.quantumTaskArn = output.quantumTaskArn @@ -422,9 +419,8 @@ extension BraketClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -438,7 +434,7 @@ extension ConflictException { } /// An error occurred due to a conflict. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -766,9 +762,8 @@ public enum CreateJobOutputError: Swift.Error, Swift.Equatable { extension CreateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn } else { @@ -1003,9 +998,8 @@ public enum CreateQuantumTaskOutputError: Swift.Error, Swift.Equatable { extension CreateQuantumTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateQuantumTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.quantumTaskArn = output.quantumTaskArn } else { @@ -1117,9 +1111,8 @@ extension BraketClientTypes { extension DeviceOfflineException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeviceOfflineExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1133,7 +1126,7 @@ extension DeviceOfflineException { } /// The specified device is currently offline. -public struct DeviceOfflineException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeviceOfflineException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1169,9 +1162,8 @@ extension DeviceOfflineExceptionBody: Swift.Decodable { extension DeviceRetiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeviceRetiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1185,7 +1177,7 @@ extension DeviceRetiredException { } /// The specified device has been retired. -public struct DeviceRetiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeviceRetiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1429,9 +1421,8 @@ public enum GetDeviceOutputError: Swift.Error, Swift.Equatable { extension GetDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceArn = output.deviceArn self.deviceCapabilities = output.deviceCapabilities @@ -1587,9 +1578,8 @@ public enum GetJobOutputError: Swift.Error, Swift.Equatable { extension GetJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.algorithmSpecification = output.algorithmSpecification self.billableDuration = output.billableDuration @@ -1913,9 +1903,8 @@ public enum GetQuantumTaskOutputError: Swift.Error, Swift.Equatable { extension GetQuantumTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQuantumTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.deviceArn = output.deviceArn @@ -2338,9 +2327,8 @@ extension BraketClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2354,7 +2342,7 @@ extension InternalServiceException { } /// The request processing has failed because of an unknown error, exception, or failure. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2854,9 +2842,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3085,9 +3072,8 @@ extension BraketClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3101,7 +3087,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3401,9 +3387,8 @@ public enum SearchDevicesOutputError: Swift.Error, Swift.Equatable { extension SearchDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.nextToken = output.nextToken @@ -3691,9 +3676,8 @@ public enum SearchJobsOutputError: Swift.Error, Swift.Equatable { extension SearchJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -3978,9 +3962,8 @@ public enum SearchQuantumTasksOutputError: Swift.Error, Swift.Equatable { extension SearchQuantumTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchQuantumTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.quantumTasks = output.quantumTasks @@ -4039,9 +4022,8 @@ extension SearchQuantumTasksOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4055,7 +4037,7 @@ extension ServiceQuotaExceededException { } /// The request failed because a service quota is exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4195,9 +4177,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4211,7 +4192,7 @@ extension ThrottlingException { } /// The throttling rate limit is met. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4336,9 +4317,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4352,7 +4332,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSBudgets/BudgetsClient.swift b/Sources/Services/AWSBudgets/BudgetsClient.swift index 46052f9ee65..a82e772fdab 100644 --- a/Sources/Services/AWSBudgets/BudgetsClient.swift +++ b/Sources/Services/AWSBudgets/BudgetsClient.swift @@ -208,6 +208,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBudget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBudgetAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNotification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubscriber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBudget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBudgetAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNotification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubscriber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBudget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBudgetAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBudgetActionHistories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBudgetActionsForAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBudgetActionsForBudget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBudgetNotificationsForAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBudgetPerformanceHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBudgets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNotificationsForBudget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSubscribersForNotification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeBudgetAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBudget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBudgetAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNotification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension BudgetsClient: BudgetsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "budgets") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubscriber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension BudgetsClient: BudgetsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSBudgets/models/Models.swift b/Sources/Services/AWSBudgets/models/Models.swift index 9edb8782e37..712344ea12e 100644 --- a/Sources/Services/AWSBudgets/models/Models.swift +++ b/Sources/Services/AWSBudgets/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You are not authorized to use this operation with the given parameters. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1483,9 +1482,8 @@ public enum CreateBudgetActionOutputError: Swift.Error, Swift.Equatable { extension CreateBudgetActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBudgetActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId self.actionId = output.actionId @@ -1954,9 +1952,8 @@ public struct CreateSubscriberOutputResponse: Swift.Equatable { extension CreationLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreationLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1970,7 +1967,7 @@ extension CreationLimitExceededException { } /// You've exceeded the notification or subscriber limit. -public struct CreationLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CreationLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2168,9 +2165,8 @@ public enum DeleteBudgetActionOutputError: Swift.Error, Swift.Equatable { extension DeleteBudgetActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBudgetActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId self.action = output.action @@ -2722,9 +2718,8 @@ public enum DescribeBudgetActionHistoriesOutputError: Swift.Error, Swift.Equatab extension DescribeBudgetActionHistoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBudgetActionHistoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionHistories = output.actionHistories self.nextToken = output.nextToken @@ -2887,9 +2882,8 @@ public enum DescribeBudgetActionOutputError: Swift.Error, Swift.Equatable { extension DescribeBudgetActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBudgetActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId self.action = output.action @@ -3053,9 +3047,8 @@ public enum DescribeBudgetActionsForAccountOutputError: Swift.Error, Swift.Equat extension DescribeBudgetActionsForAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBudgetActionsForAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actions = output.actions self.nextToken = output.nextToken @@ -3231,9 +3224,8 @@ public enum DescribeBudgetActionsForBudgetOutputError: Swift.Error, Swift.Equata extension DescribeBudgetActionsForBudgetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBudgetActionsForBudgetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actions = output.actions self.nextToken = output.nextToken @@ -3460,9 +3452,8 @@ public enum DescribeBudgetNotificationsForAccountOutputError: Swift.Error, Swift extension DescribeBudgetNotificationsForAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBudgetNotificationsForAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.budgetNotificationsForAccount = output.budgetNotificationsForAccount self.nextToken = output.nextToken @@ -3550,9 +3541,8 @@ public enum DescribeBudgetOutputError: Swift.Error, Swift.Equatable { extension DescribeBudgetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBudgetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.budget = output.budget } else { @@ -3723,9 +3713,8 @@ public enum DescribeBudgetPerformanceHistoryOutputError: Swift.Error, Swift.Equa extension DescribeBudgetPerformanceHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBudgetPerformanceHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.budgetPerformanceHistory = output.budgetPerformanceHistory self.nextToken = output.nextToken @@ -3881,9 +3870,8 @@ public enum DescribeBudgetsOutputError: Swift.Error, Swift.Equatable { extension DescribeBudgetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBudgetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.budgets = output.budgets self.nextToken = output.nextToken @@ -4062,9 +4050,8 @@ public enum DescribeNotificationsForBudgetOutputError: Swift.Error, Swift.Equata extension DescribeNotificationsForBudgetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNotificationsForBudgetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notifications = output.notifications @@ -4256,9 +4243,8 @@ public enum DescribeSubscribersForNotificationOutputError: Swift.Error, Swift.Eq extension DescribeSubscribersForNotificationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSubscribersForNotificationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscribers = output.subscribers @@ -4317,9 +4303,8 @@ extension DescribeSubscribersForNotificationOutputResponseBody: Swift.Decodable extension DuplicateRecordException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateRecordExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4333,7 +4318,7 @@ extension DuplicateRecordException { } /// The budget name already exists. Budget names must be unique within an account. -public struct DuplicateRecordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateRecordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4530,9 +4515,8 @@ public enum ExecuteBudgetActionOutputError: Swift.Error, Swift.Equatable { extension ExecuteBudgetActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteBudgetActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId self.actionId = output.actionId @@ -4643,9 +4627,8 @@ extension BudgetsClientTypes { extension ExpiredNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4659,7 +4642,7 @@ extension ExpiredNextTokenException { } /// The pagination token expired. -public struct ExpiredNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4852,9 +4835,8 @@ extension BudgetsClientTypes { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4868,7 +4850,7 @@ extension InternalErrorException { } /// An error on the server occurred during the processing of your request. Try again later. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4905,9 +4887,8 @@ extension InternalErrorExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4921,7 +4902,7 @@ extension InvalidNextTokenException { } /// The pagination token is invalid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4958,9 +4939,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4974,7 +4954,7 @@ extension InvalidParameterException { } /// An error on the client occurred. Typically, the cause is an invalid input value. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5011,9 +4991,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5027,7 +5006,7 @@ extension NotFoundException { } /// We can’t locate the resource that you specified. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5274,9 +5253,8 @@ extension BudgetsClientTypes { extension ResourceLockedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLockedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5290,7 +5268,7 @@ extension ResourceLockedException { } /// The request was received and recognized by the server, but the server rejected that particular method for the requested resource. -public struct ResourceLockedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLockedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5629,9 +5607,8 @@ extension BudgetsClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5645,7 +5622,7 @@ extension ThrottlingException { } /// The number of API requests has exceeded the maximum allowed API request throttling limit for the account. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5956,9 +5933,8 @@ public enum UpdateBudgetActionOutputError: Swift.Error, Swift.Equatable { extension UpdateBudgetActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBudgetActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId self.budgetName = output.budgetName diff --git a/Sources/Services/AWSChime/ChimeClient.swift b/Sources/Services/AWSChime/ChimeClient.swift index 519064666a3..773007f011a 100644 --- a/Sources/Services/AWSChime/ChimeClient.swift +++ b/Sources/Services/AWSChime/ChimeClient.swift @@ -208,6 +208,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePhoneNumberWithUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePhoneNumbersWithVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePhoneNumbersWithVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateSigninDelegateGroupsWithAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateChannelMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -405,7 +411,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -425,6 +431,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateRoomMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -441,7 +448,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -461,6 +468,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeletePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +485,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +505,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchSuspendUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -513,7 +522,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -533,6 +542,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUnsuspendUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +559,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdatePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +596,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +616,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -655,7 +668,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -675,6 +688,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -698,7 +712,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -725,6 +739,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppInstanceAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -740,7 +755,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -760,6 +775,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppInstanceUser") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -783,7 +799,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +819,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +835,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +855,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +871,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +891,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -897,7 +916,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -917,6 +936,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannelBan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -933,7 +953,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -973,6 +993,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannelMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -989,7 +1010,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1022,6 +1043,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannelModerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -1038,7 +1060,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1058,6 +1080,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMediaCapturePipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1081,7 +1104,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1101,6 +1124,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMeeting") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1124,7 +1148,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1168,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMeetingDialOut") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1159,7 +1184,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1179,6 +1204,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMeetingWithAttendees") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1203,7 +1229,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1223,6 +1249,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPhoneNumberOrder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1238,7 +1265,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1258,6 +1285,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProxySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1273,7 +1301,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1293,6 +1321,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoom") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1316,7 +1345,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1336,6 +1365,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoomMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1351,7 +1381,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1371,6 +1401,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSipMediaApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1386,7 +1417,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1406,6 +1437,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSipMediaApplicationCall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1421,7 +1453,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1441,6 +1473,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSipRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1456,7 +1489,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1509,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1492,7 +1526,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1512,6 +1546,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1527,7 +1562,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1547,6 +1582,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1562,7 +1598,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1582,6 +1618,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1594,7 +1631,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1614,6 +1651,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -1626,7 +1664,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1646,6 +1684,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInstanceAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -1658,7 +1697,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1678,6 +1717,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInstanceStreamingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1690,7 +1730,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1710,6 +1750,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -1722,7 +1763,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1742,6 +1783,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1754,7 +1796,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1774,6 +1816,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -1787,7 +1830,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1807,6 +1850,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelBan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -1820,7 +1864,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1840,6 +1884,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -1853,7 +1898,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1873,6 +1918,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -1886,7 +1932,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1906,6 +1952,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelModerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -1919,7 +1966,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1939,6 +1986,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1951,7 +1999,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1971,6 +2019,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMediaCapturePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1983,7 +2032,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2003,6 +2052,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMeeting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2015,7 +2065,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2035,6 +2085,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2047,7 +2098,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2067,6 +2118,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProxySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2079,7 +2131,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2099,6 +2151,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2111,7 +2164,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2131,6 +2184,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoomMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2143,7 +2197,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2163,6 +2217,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSipMediaApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2175,7 +2230,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2195,6 +2250,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSipRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2207,7 +2263,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2227,6 +2283,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2239,7 +2296,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2259,6 +2316,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorEmergencyCallingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2271,7 +2329,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2291,6 +2349,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2303,7 +2362,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2323,6 +2382,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorOrigination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2335,7 +2395,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2355,6 +2415,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2367,7 +2428,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2387,6 +2448,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorStreamingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2399,7 +2461,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2419,6 +2481,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorTermination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2431,7 +2494,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2451,6 +2514,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorTerminationCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2467,7 +2531,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2487,6 +2551,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -2499,7 +2564,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2519,6 +2584,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppInstanceAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -2531,7 +2597,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2551,6 +2617,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -2563,7 +2630,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2583,6 +2650,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -2596,7 +2664,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2616,6 +2684,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelBan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -2629,7 +2698,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2649,6 +2718,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -2662,7 +2732,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2682,6 +2752,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelMembershipForAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -2696,7 +2767,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2716,6 +2787,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelModeratedByAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -2730,7 +2802,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2750,6 +2822,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelModerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -2763,7 +2836,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2783,6 +2856,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePhoneNumberFromUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2796,7 +2870,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2816,6 +2890,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePhoneNumbersFromVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2832,7 +2907,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2852,6 +2927,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePhoneNumbersFromVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2868,7 +2944,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2888,6 +2964,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateSigninDelegateGroupsFromAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2904,7 +2981,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2924,6 +3001,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2936,7 +3014,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2956,6 +3034,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2968,7 +3047,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2988,6 +3067,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppInstanceRetentionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -3000,7 +3080,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3020,6 +3100,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppInstanceStreamingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3032,7 +3113,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3052,6 +3133,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3064,7 +3146,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3084,6 +3166,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3096,7 +3179,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3116,6 +3199,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannelMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -3129,7 +3213,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3149,6 +3233,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3161,7 +3246,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3181,6 +3266,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGlobalSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3193,7 +3279,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3213,6 +3299,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMediaCapturePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3225,7 +3312,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3245,6 +3332,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMeeting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3257,7 +3345,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3277,6 +3365,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMessagingSessionEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -3289,7 +3378,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3309,6 +3398,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3321,7 +3411,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3341,6 +3431,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPhoneNumberOrder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3353,7 +3444,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3373,6 +3464,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPhoneNumberSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3385,7 +3477,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3405,6 +3497,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProxySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3417,7 +3510,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3437,6 +3530,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRetentionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3449,7 +3543,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3469,6 +3563,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3481,7 +3576,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3501,6 +3596,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSipMediaApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3513,7 +3609,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3533,6 +3629,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSipMediaApplicationLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3545,7 +3642,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3565,6 +3662,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSipRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3577,7 +3675,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3597,6 +3695,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3609,7 +3708,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3629,6 +3728,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3641,7 +3741,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3661,6 +3761,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3673,7 +3774,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3693,6 +3794,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorEmergencyCallingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3705,7 +3807,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3725,6 +3827,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3737,7 +3840,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3757,6 +3860,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3769,7 +3873,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3789,6 +3893,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorOrigination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3801,7 +3906,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3821,6 +3926,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3833,7 +3939,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3853,6 +3959,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorStreamingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3865,7 +3972,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3885,6 +3992,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorTermination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3897,7 +4005,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3917,6 +4025,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorTerminationHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3929,7 +4038,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3949,6 +4058,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "inviteUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3965,7 +4075,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3985,6 +4095,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3998,7 +4109,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4018,6 +4129,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInstanceAdmins") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -4031,7 +4143,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4051,6 +4163,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInstanceUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -4064,7 +4177,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4084,6 +4197,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -4097,7 +4211,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4117,6 +4231,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttendeeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4129,7 +4244,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4149,6 +4264,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttendees") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4162,7 +4278,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4182,6 +4298,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4195,7 +4312,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4215,6 +4332,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelBans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -4229,7 +4347,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4249,6 +4367,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelMemberships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -4263,7 +4382,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4283,6 +4402,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelMembershipsForAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -4297,7 +4417,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4317,6 +4437,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -4331,7 +4452,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4351,6 +4472,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelModerators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -4365,7 +4487,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4392,6 +4514,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -4406,7 +4529,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4426,6 +4549,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelsModeratedByAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -4440,7 +4564,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4460,6 +4584,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMediaCapturePipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4473,7 +4598,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4493,6 +4618,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMeetingTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4505,7 +4631,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4525,6 +4651,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMeetings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4538,7 +4665,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4558,6 +4685,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPhoneNumberOrders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4571,7 +4699,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4591,6 +4719,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPhoneNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4604,7 +4733,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4624,6 +4753,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProxySessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4637,7 +4767,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4657,6 +4787,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoomMemberships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4670,7 +4801,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4690,6 +4821,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRooms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4703,7 +4835,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4723,6 +4855,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSipMediaApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4736,7 +4869,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4756,6 +4889,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSipRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4769,7 +4903,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4789,6 +4923,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSupportedPhoneNumberCountries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4802,7 +4937,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4822,6 +4957,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4835,7 +4971,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4855,6 +4991,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4868,7 +5005,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4888,6 +5025,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVoiceConnectorGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4901,7 +5039,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4921,6 +5059,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVoiceConnectorTerminationCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4933,7 +5072,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4953,6 +5092,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVoiceConnectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4966,7 +5106,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4986,6 +5126,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "logoutUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4999,7 +5140,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5019,6 +5160,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAppInstanceRetentionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -5034,7 +5176,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5054,6 +5196,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAppInstanceStreamingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5069,7 +5212,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5089,6 +5232,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEventsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5104,7 +5248,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5124,6 +5268,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRetentionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5139,7 +5284,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5159,6 +5304,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSipMediaApplicationLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5174,7 +5320,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5194,6 +5340,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorEmergencyCallingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5209,7 +5356,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5229,6 +5376,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5244,7 +5392,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5264,6 +5412,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorOrigination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5279,7 +5428,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5299,6 +5448,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5314,7 +5464,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5334,6 +5484,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorStreamingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5349,7 +5500,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5369,6 +5520,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorTermination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5384,7 +5536,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5404,6 +5556,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorTerminationCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5420,7 +5573,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5440,6 +5593,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "redactChannelMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -5454,7 +5608,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5474,6 +5628,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "redactConversationMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5487,7 +5642,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5507,6 +5662,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "redactRoomMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5520,7 +5676,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5540,6 +5696,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "regenerateSecurityToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5553,7 +5710,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5573,6 +5730,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetPersonalPIN") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5586,7 +5744,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5606,6 +5764,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restorePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5619,7 +5778,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5639,6 +5798,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchAvailablePhoneNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5652,7 +5812,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5672,6 +5832,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendChannelMessage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -5696,7 +5857,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5716,6 +5877,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMeetingTranscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5732,7 +5894,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5752,6 +5914,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopMeetingTranscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5765,7 +5928,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5785,6 +5948,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5801,7 +5965,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5821,6 +5985,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagMeeting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5837,7 +6002,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5857,6 +6022,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5873,7 +6039,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5893,6 +6059,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5909,7 +6076,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5929,6 +6096,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagMeeting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5945,7 +6113,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5965,6 +6133,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5981,7 +6150,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6001,6 +6170,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6016,7 +6186,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6036,6 +6206,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6051,7 +6222,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6071,6 +6242,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -6086,7 +6258,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6106,6 +6278,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "identity-")) @@ -6121,7 +6294,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6141,6 +6314,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6156,7 +6330,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6176,6 +6350,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -6192,7 +6367,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6212,6 +6387,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannelMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -6228,7 +6404,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6248,6 +6424,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannelReadMarker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "messaging-")) @@ -6261,7 +6438,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6281,6 +6458,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGlobalSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6296,7 +6474,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6316,6 +6494,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6331,7 +6510,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6351,6 +6530,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePhoneNumberSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6366,7 +6546,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6386,6 +6566,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProxySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6401,7 +6582,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6421,6 +6602,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6436,7 +6618,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6456,6 +6638,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoomMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6471,7 +6654,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6491,6 +6674,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSipMediaApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6506,7 +6690,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6526,6 +6710,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSipMediaApplicationCall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6541,7 +6726,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6561,6 +6746,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSipRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6576,7 +6762,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6596,6 +6782,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6611,7 +6798,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6631,6 +6818,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6646,7 +6834,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6666,6 +6854,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6681,7 +6870,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6701,6 +6890,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6716,7 +6906,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6736,6 +6926,7 @@ extension ChimeClient: ChimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateE911Address") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6751,7 +6942,7 @@ extension ChimeClient: ChimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSChime/models/Models.swift b/Sources/Services/AWSChime/models/Models.swift index 55d6fcc67c3..92665b08ca6 100644 --- a/Sources/Services/AWSChime/models/Models.swift +++ b/Sources/Services/AWSChime/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You don't have permissions to perform the requested operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1377,9 +1376,8 @@ public enum AssociatePhoneNumbersWithVoiceConnectorGroupOutputError: Swift.Error extension AssociatePhoneNumbersWithVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatePhoneNumbersWithVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -1553,9 +1551,8 @@ public enum AssociatePhoneNumbersWithVoiceConnectorOutputError: Swift.Error, Swi extension AssociatePhoneNumbersWithVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatePhoneNumbersWithVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -1853,9 +1850,8 @@ extension ChimeClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1871,7 +1867,7 @@ extension BadRequestException { } /// The input parameters don't match the service's restrictions. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2105,9 +2101,8 @@ public enum BatchCreateAttendeeOutputError: Swift.Error, Swift.Equatable { extension BatchCreateAttendeeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateAttendeeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendees = output.attendees self.errors = output.errors @@ -2365,9 +2360,8 @@ public enum BatchCreateChannelMembershipOutputError: Swift.Error, Swift.Equatabl extension BatchCreateChannelMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateChannelMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchChannelMemberships = output.batchChannelMemberships self.errors = output.errors @@ -2545,9 +2539,8 @@ public enum BatchCreateRoomMembershipOutputError: Swift.Error, Swift.Equatable { extension BatchCreateRoomMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateRoomMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -2699,9 +2692,8 @@ public enum BatchDeletePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension BatchDeletePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeletePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -2861,9 +2853,8 @@ public enum BatchSuspendUserOutputError: Swift.Error, Swift.Equatable { extension BatchSuspendUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchSuspendUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userErrors = output.userErrors } else { @@ -3023,9 +3014,8 @@ public enum BatchUnsuspendUserOutputError: Swift.Error, Swift.Equatable { extension BatchUnsuspendUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUnsuspendUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userErrors = output.userErrors } else { @@ -3177,9 +3167,8 @@ public enum BatchUpdatePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension BatchUpdatePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdatePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -3329,9 +3318,8 @@ public enum BatchUpdateUserOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userErrors = output.userErrors } else { @@ -4843,9 +4831,8 @@ extension ChimeClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4861,7 +4848,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5096,9 +5083,8 @@ public enum CreateAccountOutputError: Swift.Error, Swift.Equatable { extension CreateAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.account = output.account } else { @@ -5229,9 +5215,8 @@ public enum CreateAppInstanceAdminOutputError: Swift.Error, Swift.Equatable { extension CreateAppInstanceAdminOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppInstanceAdminOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceAdmin = output.appInstanceAdmin self.appInstanceArn = output.appInstanceArn @@ -5418,9 +5403,8 @@ public enum CreateAppInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateAppInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceArn = output.appInstanceArn } else { @@ -5623,9 +5607,8 @@ public enum CreateAppInstanceUserOutputError: Swift.Error, Swift.Equatable { extension CreateAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserArn = output.appInstanceUserArn } else { @@ -5845,9 +5828,8 @@ public enum CreateAttendeeOutputError: Swift.Error, Swift.Equatable { extension CreateAttendeeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAttendeeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendee = output.attendee } else { @@ -6058,9 +6040,8 @@ public enum CreateBotOutputError: Swift.Error, Swift.Equatable { extension CreateBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bot = output.bot } else { @@ -6205,9 +6186,8 @@ public enum CreateChannelBanOutputError: Swift.Error, Swift.Equatable { extension CreateChannelBanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelBanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.member = output.member @@ -6528,9 +6508,8 @@ public enum CreateChannelMembershipOutputError: Swift.Error, Swift.Equatable { extension CreateChannelMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.member = output.member @@ -6685,9 +6664,8 @@ public enum CreateChannelModeratorOutputError: Swift.Error, Swift.Equatable { extension CreateChannelModeratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelModeratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelModerator = output.channelModerator @@ -6772,9 +6750,8 @@ public enum CreateChannelOutputError: Swift.Error, Swift.Equatable { extension CreateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn } else { @@ -6963,9 +6940,8 @@ public enum CreateMediaCapturePipelineOutputError: Swift.Error, Swift.Equatable extension CreateMediaCapturePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMediaCapturePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaCapturePipeline = output.mediaCapturePipeline } else { @@ -7127,9 +7103,8 @@ public enum CreateMeetingDialOutOutputError: Swift.Error, Swift.Equatable { extension CreateMeetingDialOutOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMeetingDialOutOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transactionId = output.transactionId } else { @@ -7327,9 +7302,8 @@ public enum CreateMeetingOutputError: Swift.Error, Swift.Equatable { extension CreateMeetingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMeetingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.meeting = output.meeting } else { @@ -7561,9 +7535,8 @@ public enum CreateMeetingWithAttendeesOutputError: Swift.Error, Swift.Equatable extension CreateMeetingWithAttendeesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMeetingWithAttendeesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendees = output.attendees self.errors = output.errors @@ -7749,9 +7722,8 @@ public enum CreatePhoneNumberOrderOutputError: Swift.Error, Swift.Equatable { extension CreatePhoneNumberOrderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePhoneNumberOrderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberOrder = output.phoneNumberOrder } else { @@ -7982,9 +7954,8 @@ public enum CreateProxySessionOutputError: Swift.Error, Swift.Equatable { extension CreateProxySessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProxySessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxySession = output.proxySession } else { @@ -8210,9 +8181,8 @@ public enum CreateRoomMembershipOutputError: Swift.Error, Swift.Equatable { extension CreateRoomMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRoomMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roomMembership = output.roomMembership } else { @@ -8287,9 +8257,8 @@ public enum CreateRoomOutputError: Swift.Error, Swift.Equatable { extension CreateRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.room = output.room } else { @@ -8462,9 +8431,8 @@ public enum CreateSipMediaApplicationCallOutputError: Swift.Error, Swift.Equatab extension CreateSipMediaApplicationCallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSipMediaApplicationCallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationCall = output.sipMediaApplicationCall } else { @@ -8627,9 +8595,8 @@ public enum CreateSipMediaApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateSipMediaApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSipMediaApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplication = output.sipMediaApplication } else { @@ -8817,9 +8784,8 @@ public enum CreateSipRuleOutputError: Swift.Error, Swift.Equatable { extension CreateSipRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSipRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipRule = output.sipRule } else { @@ -8988,9 +8954,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -9137,9 +9102,8 @@ public enum CreateVoiceConnectorGroupOutputError: Swift.Error, Swift.Equatable { extension CreateVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnectorGroup = output.voiceConnectorGroup } else { @@ -9287,9 +9251,8 @@ public enum CreateVoiceConnectorOutputError: Swift.Error, Swift.Equatable { extension CreateVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnector = output.voiceConnector } else { @@ -11812,9 +11775,8 @@ public enum DescribeAppInstanceAdminOutputError: Swift.Error, Swift.Equatable { extension DescribeAppInstanceAdminOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppInstanceAdminOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceAdmin = output.appInstanceAdmin } else { @@ -11916,9 +11878,8 @@ public enum DescribeAppInstanceOutputError: Swift.Error, Swift.Equatable { extension DescribeAppInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstance = output.appInstance } else { @@ -12020,9 +11981,8 @@ public enum DescribeAppInstanceUserOutputError: Swift.Error, Swift.Equatable { extension DescribeAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUser = output.appInstanceUser } else { @@ -12148,9 +12108,8 @@ public enum DescribeChannelBanOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelBanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelBanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelBan = output.channelBan } else { @@ -12332,9 +12291,8 @@ public enum DescribeChannelMembershipForAppInstanceUserOutputError: Swift.Error, extension DescribeChannelMembershipForAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelMembershipForAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelMembership = output.channelMembership } else { @@ -12460,9 +12418,8 @@ public enum DescribeChannelMembershipOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelMembership = output.channelMembership } else { @@ -12599,9 +12556,8 @@ public enum DescribeChannelModeratedByAppInstanceUserOutputError: Swift.Error, S extension DescribeChannelModeratedByAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelModeratedByAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -12727,9 +12683,8 @@ public enum DescribeChannelModeratorOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelModeratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelModeratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelModerator = output.channelModerator } else { @@ -12800,9 +12755,8 @@ public enum DescribeChannelOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -13046,9 +13000,8 @@ public enum DisassociatePhoneNumbersFromVoiceConnectorGroupOutputError: Swift.Er extension DisassociatePhoneNumbersFromVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociatePhoneNumbersFromVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -13208,9 +13161,8 @@ public enum DisassociatePhoneNumbersFromVoiceConnectorOutputError: Swift.Error, extension DisassociatePhoneNumbersFromVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociatePhoneNumbersFromVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -13817,9 +13769,8 @@ extension ChimeClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -13835,7 +13786,7 @@ extension ForbiddenException { } /// The client is permanently forbidden from making the request. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14022,9 +13973,8 @@ public enum GetAccountOutputError: Swift.Error, Swift.Equatable { extension GetAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.account = output.account } else { @@ -14128,9 +14078,8 @@ public enum GetAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension GetAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettings = output.accountSettings } else { @@ -14234,9 +14183,8 @@ public enum GetAppInstanceRetentionSettingsOutputError: Swift.Error, Swift.Equat extension GetAppInstanceRetentionSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppInstanceRetentionSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceRetentionSettings = output.appInstanceRetentionSettings self.initiateDeletionTimestamp = output.initiateDeletionTimestamp @@ -14350,9 +14298,8 @@ public enum GetAppInstanceStreamingConfigurationsOutputError: Swift.Error, Swift extension GetAppInstanceStreamingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppInstanceStreamingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceStreamingConfigurations = output.appInstanceStreamingConfigurations } else { @@ -14473,9 +14420,8 @@ public enum GetAttendeeOutputError: Swift.Error, Swift.Equatable { extension GetAttendeeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAttendeeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendee = output.attendee } else { @@ -14587,9 +14533,8 @@ public enum GetBotOutputError: Swift.Error, Swift.Equatable { extension GetBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bot = output.bot } else { @@ -14715,9 +14660,8 @@ public enum GetChannelMessageOutputError: Swift.Error, Swift.Equatable { extension GetChannelMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChannelMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelMessage = output.channelMessage } else { @@ -14829,9 +14773,8 @@ public enum GetEventsConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetEventsConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventsConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventsConfiguration = output.eventsConfiguration } else { @@ -14922,9 +14865,8 @@ public enum GetGlobalSettingsOutputError: Swift.Error, Swift.Equatable { extension GetGlobalSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGlobalSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.businessCalling = output.businessCalling self.voiceConnector = output.voiceConnector @@ -15038,9 +14980,8 @@ public enum GetMediaCapturePipelineOutputError: Swift.Error, Swift.Equatable { extension GetMediaCapturePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMediaCapturePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaCapturePipeline = output.mediaCapturePipeline } else { @@ -15144,9 +15085,8 @@ public enum GetMeetingOutputError: Swift.Error, Swift.Equatable { extension GetMeetingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMeetingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.meeting = output.meeting } else { @@ -15235,9 +15175,8 @@ public enum GetMessagingSessionEndpointOutputError: Swift.Error, Swift.Equatable extension GetMessagingSessionEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMessagingSessionEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -15372,9 +15311,8 @@ public enum GetPhoneNumberOrderOutputError: Swift.Error, Swift.Equatable { extension GetPhoneNumberOrderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPhoneNumberOrderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberOrder = output.phoneNumberOrder } else { @@ -15447,9 +15385,8 @@ public enum GetPhoneNumberOutputError: Swift.Error, Swift.Equatable { extension GetPhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumber = output.phoneNumber } else { @@ -15545,9 +15482,8 @@ extension GetPhoneNumberSettingsOutputResponse: Swift.CustomDebugStringConvertib extension GetPhoneNumberSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPhoneNumberSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.callingName = output.callingName self.callingNameUpdatedTimestamp = output.callingNameUpdatedTimestamp @@ -15669,9 +15605,8 @@ public enum GetProxySessionOutputError: Swift.Error, Swift.Equatable { extension GetProxySessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProxySessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxySession = output.proxySession } else { @@ -15775,9 +15710,8 @@ public enum GetRetentionSettingsOutputError: Swift.Error, Swift.Equatable { extension GetRetentionSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRetentionSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.initiateDeletionTimestamp = output.initiateDeletionTimestamp self.retentionSettings = output.retentionSettings @@ -15899,9 +15833,8 @@ public enum GetRoomOutputError: Swift.Error, Swift.Equatable { extension GetRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.room = output.room } else { @@ -16036,9 +15969,8 @@ public enum GetSipMediaApplicationLoggingConfigurationOutputError: Swift.Error, extension GetSipMediaApplicationLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSipMediaApplicationLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationLoggingConfiguration = output.sipMediaApplicationLoggingConfiguration } else { @@ -16111,9 +16043,8 @@ public enum GetSipMediaApplicationOutputError: Swift.Error, Swift.Equatable { extension GetSipMediaApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSipMediaApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplication = output.sipMediaApplication } else { @@ -16217,9 +16148,8 @@ public enum GetSipRuleOutputError: Swift.Error, Swift.Equatable { extension GetSipRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSipRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipRule = output.sipRule } else { @@ -16331,9 +16261,8 @@ public enum GetUserOutputError: Swift.Error, Swift.Equatable { extension GetUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -16445,9 +16374,8 @@ public enum GetUserSettingsOutputError: Swift.Error, Swift.Equatable { extension GetUserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userSettings = output.userSettings } else { @@ -16551,9 +16479,8 @@ public enum GetVoiceConnectorEmergencyCallingConfigurationOutputError: Swift.Err extension GetVoiceConnectorEmergencyCallingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorEmergencyCallingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.emergencyCallingConfiguration = output.emergencyCallingConfiguration } else { @@ -16657,9 +16584,8 @@ public enum GetVoiceConnectorGroupOutputError: Swift.Error, Swift.Equatable { extension GetVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnectorGroup = output.voiceConnectorGroup } else { @@ -16794,9 +16720,8 @@ public enum GetVoiceConnectorLoggingConfigurationOutputError: Swift.Error, Swift extension GetVoiceConnectorLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -16900,9 +16825,8 @@ public enum GetVoiceConnectorOriginationOutputError: Swift.Error, Swift.Equatabl extension GetVoiceConnectorOriginationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorOriginationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.origination = output.origination } else { @@ -16975,9 +16899,8 @@ public enum GetVoiceConnectorOutputError: Swift.Error, Swift.Equatable { extension GetVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnector = output.voiceConnector } else { @@ -17081,9 +17004,8 @@ public enum GetVoiceConnectorProxyOutputError: Swift.Error, Swift.Equatable { extension GetVoiceConnectorProxyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorProxyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxy = output.proxy } else { @@ -17187,9 +17109,8 @@ public enum GetVoiceConnectorStreamingConfigurationOutputError: Swift.Error, Swi extension GetVoiceConnectorStreamingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorStreamingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingConfiguration = output.streamingConfiguration } else { @@ -17293,9 +17214,8 @@ public enum GetVoiceConnectorTerminationHealthOutputError: Swift.Error, Swift.Eq extension GetVoiceConnectorTerminationHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorTerminationHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.terminationHealth = output.terminationHealth } else { @@ -17399,9 +17319,8 @@ public enum GetVoiceConnectorTerminationOutputError: Swift.Error, Swift.Equatabl extension GetVoiceConnectorTerminationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorTerminationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.termination = output.termination } else { @@ -17719,9 +17638,8 @@ public enum InviteUsersOutputError: Swift.Error, Swift.Equatable { extension InviteUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InviteUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invites = output.invites } else { @@ -17910,9 +17828,8 @@ public enum ListAccountsOutputError: Swift.Error, Swift.Equatable { extension ListAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.nextToken = output.nextToken @@ -18068,9 +17985,8 @@ extension ListAppInstanceAdminsOutputResponse: Swift.CustomDebugStringConvertibl extension ListAppInstanceAdminsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInstanceAdminsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceAdmins = output.appInstanceAdmins self.appInstanceArn = output.appInstanceArn @@ -18239,9 +18155,8 @@ extension ListAppInstanceUsersOutputResponse: Swift.CustomDebugStringConvertible extension ListAppInstanceUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInstanceUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceArn = output.appInstanceArn self.appInstanceUsers = output.appInstanceUsers @@ -18399,9 +18314,8 @@ extension ListAppInstancesOutputResponse: Swift.CustomDebugStringConvertible { extension ListAppInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstances = output.appInstances self.nextToken = output.nextToken @@ -18532,9 +18446,8 @@ public enum ListAttendeeTagsOutputError: Swift.Error, Swift.Equatable { extension ListAttendeeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttendeeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -18672,9 +18585,8 @@ public enum ListAttendeesOutputError: Swift.Error, Swift.Equatable { extension ListAttendeesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttendeesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendees = output.attendees self.nextToken = output.nextToken @@ -18822,9 +18734,8 @@ public enum ListBotsOutputError: Swift.Error, Swift.Equatable { extension ListBotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bots = output.bots self.nextToken = output.nextToken @@ -18994,9 +18905,8 @@ extension ListChannelBansOutputResponse: Swift.CustomDebugStringConvertible { extension ListChannelBansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelBansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelBans = output.channelBans @@ -19177,9 +19087,8 @@ extension ListChannelMembershipsForAppInstanceUserOutputResponse: Swift.CustomDe extension ListChannelMembershipsForAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelMembershipsForAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelMemberships = output.channelMemberships self.nextToken = output.nextToken @@ -19357,9 +19266,8 @@ extension ListChannelMembershipsOutputResponse: Swift.CustomDebugStringConvertib extension ListChannelMembershipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelMembershipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelMemberships = output.channelMemberships @@ -19563,9 +19471,8 @@ extension ListChannelMessagesOutputResponse: Swift.CustomDebugStringConvertible extension ListChannelMessagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelMessagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelMessages = output.channelMessages @@ -19745,9 +19652,8 @@ extension ListChannelModeratorsOutputResponse: Swift.CustomDebugStringConvertibl extension ListChannelModeratorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelModeratorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelModerators = output.channelModerators @@ -20014,9 +19920,8 @@ extension ListChannelsModeratedByAppInstanceUserOutputResponse: Swift.CustomDebu extension ListChannelsModeratedByAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsModeratedByAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -20111,9 +20016,8 @@ extension ListChannelsOutputResponse: Swift.CustomDebugStringConvertible { extension ListChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -20251,9 +20155,8 @@ public enum ListMediaCapturePipelinesOutputError: Swift.Error, Swift.Equatable { extension ListMediaCapturePipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMediaCapturePipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaCapturePipelines = output.mediaCapturePipelines self.nextToken = output.nextToken @@ -20376,9 +20279,8 @@ public enum ListMeetingTagsOutputError: Swift.Error, Swift.Equatable { extension ListMeetingTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMeetingTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -20506,9 +20408,8 @@ public enum ListMeetingsOutputError: Swift.Error, Swift.Equatable { extension ListMeetingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMeetingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.meetings = output.meetings self.nextToken = output.nextToken @@ -20646,9 +20547,8 @@ public enum ListPhoneNumberOrdersOutputError: Swift.Error, Swift.Equatable { extension ListPhoneNumberOrdersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPhoneNumberOrdersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumberOrders = output.phoneNumberOrders @@ -20820,9 +20720,8 @@ public enum ListPhoneNumbersOutputError: Swift.Error, Swift.Equatable { extension ListPhoneNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPhoneNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumbers = output.phoneNumbers @@ -20978,9 +20877,8 @@ public enum ListProxySessionsOutputError: Swift.Error, Swift.Equatable { extension ListProxySessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProxySessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proxySessions = output.proxySessions @@ -21136,9 +21034,8 @@ public enum ListRoomMembershipsOutputError: Swift.Error, Swift.Equatable { extension ListRoomMembershipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoomMembershipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.roomMemberships = output.roomMemberships @@ -21294,9 +21191,8 @@ public enum ListRoomsOutputError: Swift.Error, Swift.Equatable { extension ListRoomsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoomsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rooms = output.rooms @@ -21434,9 +21330,8 @@ public enum ListSipMediaApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListSipMediaApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSipMediaApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sipMediaApplications = output.sipMediaApplications @@ -21582,9 +21477,8 @@ public enum ListSipRulesOutputError: Swift.Error, Swift.Equatable { extension ListSipRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSipRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sipRules = output.sipRules @@ -21719,9 +21613,8 @@ public enum ListSupportedPhoneNumberCountriesOutputError: Swift.Error, Swift.Equ extension ListSupportedPhoneNumberCountriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSupportedPhoneNumberCountriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberCountries = output.phoneNumberCountries } else { @@ -21849,9 +21742,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -22010,9 +21902,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.users = output.users @@ -22150,9 +22041,8 @@ public enum ListVoiceConnectorGroupsOutputError: Swift.Error, Swift.Equatable { extension ListVoiceConnectorGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVoiceConnectorGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.voiceConnectorGroups = output.voiceConnectorGroups @@ -22275,9 +22165,8 @@ public enum ListVoiceConnectorTerminationCredentialsOutputError: Swift.Error, Sw extension ListVoiceConnectorTerminationCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVoiceConnectorTerminationCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.usernames = output.usernames } else { @@ -22405,9 +22294,8 @@ public enum ListVoiceConnectorsOutputError: Swift.Error, Swift.Equatable { extension ListVoiceConnectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVoiceConnectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.voiceConnectors = output.voiceConnectors @@ -23297,9 +23185,8 @@ extension ChimeClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -23315,7 +23202,7 @@ extension NotFoundException { } /// One or more of the resources in the request does not exist in the system. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24829,9 +24716,8 @@ public enum PutAppInstanceRetentionSettingsOutputError: Swift.Error, Swift.Equat extension PutAppInstanceRetentionSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAppInstanceRetentionSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceRetentionSettings = output.appInstanceRetentionSettings self.initiateDeletionTimestamp = output.initiateDeletionTimestamp @@ -24982,9 +24868,8 @@ public enum PutAppInstanceStreamingConfigurationsOutputError: Swift.Error, Swift extension PutAppInstanceStreamingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAppInstanceStreamingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceStreamingConfigurations = output.appInstanceStreamingConfigurations } else { @@ -25146,9 +25031,8 @@ public enum PutEventsConfigurationOutputError: Swift.Error, Swift.Equatable { extension PutEventsConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutEventsConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventsConfiguration = output.eventsConfiguration } else { @@ -25279,9 +25163,8 @@ public enum PutRetentionSettingsOutputError: Swift.Error, Swift.Equatable { extension PutRetentionSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRetentionSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.initiateDeletionTimestamp = output.initiateDeletionTimestamp self.retentionSettings = output.retentionSettings @@ -25419,9 +25302,8 @@ public enum PutSipMediaApplicationLoggingConfigurationOutputError: Swift.Error, extension PutSipMediaApplicationLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSipMediaApplicationLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationLoggingConfiguration = output.sipMediaApplicationLoggingConfiguration } else { @@ -25550,9 +25432,8 @@ public enum PutVoiceConnectorEmergencyCallingConfigurationOutputError: Swift.Err extension PutVoiceConnectorEmergencyCallingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorEmergencyCallingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.emergencyCallingConfiguration = output.emergencyCallingConfiguration } else { @@ -25681,9 +25562,8 @@ public enum PutVoiceConnectorLoggingConfigurationOutputError: Swift.Error, Swift extension PutVoiceConnectorLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -25812,9 +25692,8 @@ public enum PutVoiceConnectorOriginationOutputError: Swift.Error, Swift.Equatabl extension PutVoiceConnectorOriginationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorOriginationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.origination = output.origination } else { @@ -25999,9 +25878,8 @@ public enum PutVoiceConnectorProxyOutputError: Swift.Error, Swift.Equatable { extension PutVoiceConnectorProxyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorProxyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxy = output.proxy } else { @@ -26130,9 +26008,8 @@ public enum PutVoiceConnectorStreamingConfigurationOutputError: Swift.Error, Swi extension PutVoiceConnectorStreamingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorStreamingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingConfiguration = output.streamingConfiguration } else { @@ -26384,9 +26261,8 @@ public enum PutVoiceConnectorTerminationOutputError: Swift.Error, Swift.Equatabl extension PutVoiceConnectorTerminationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorTerminationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.termination = output.termination } else { @@ -26520,9 +26396,8 @@ public enum RedactChannelMessageOutputError: Swift.Error, Swift.Equatable { extension RedactChannelMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RedactChannelMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.messageId = output.messageId @@ -26856,9 +26731,8 @@ public enum RegenerateSecurityTokenOutputError: Swift.Error, Swift.Equatable { extension RegenerateSecurityTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegenerateSecurityTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bot = output.bot } else { @@ -27015,9 +26889,8 @@ public enum ResetPersonalPINOutputError: Swift.Error, Swift.Equatable { extension ResetPersonalPINOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetPersonalPINOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -27056,9 +26929,8 @@ extension ResetPersonalPINOutputResponseBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -27074,7 +26946,7 @@ extension ResourceLimitExceededException { } /// The request exceeds the resource limit. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27194,9 +27066,8 @@ public enum RestorePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension RestorePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestorePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumber = output.phoneNumber } else { @@ -27643,9 +27514,8 @@ public enum SearchAvailablePhoneNumbersOutputError: Swift.Error, Swift.Equatable extension SearchAvailablePhoneNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchAvailablePhoneNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.e164PhoneNumbers = output.e164PhoneNumbers self.nextToken = output.nextToken @@ -27932,9 +27802,8 @@ public enum SendChannelMessageOutputError: Swift.Error, Swift.Equatable { extension SendChannelMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendChannelMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.messageId = output.messageId @@ -27983,9 +27852,8 @@ extension SendChannelMessageOutputResponseBody: Swift.Decodable { extension ServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -28001,7 +27869,7 @@ extension ServiceFailureException { } /// The service encountered an unexpected error. -public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -28044,9 +27912,8 @@ extension ServiceFailureExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -28062,7 +27929,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29568,9 +29435,8 @@ extension ChimeClientTypes { extension ThrottledClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottledClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -29586,7 +29452,7 @@ extension ThrottledClientException { } /// The client exceeded its request rate limit. -public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30107,9 +29973,8 @@ extension ChimeClientTypes { extension UnauthorizedClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -30125,7 +29990,7 @@ extension UnauthorizedClientException { } /// The client is not currently authorized to make the request. -public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30168,9 +30033,8 @@ extension UnauthorizedClientExceptionBody: Swift.Decodable { extension UnprocessableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnprocessableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -30186,7 +30050,7 @@ extension UnprocessableEntityException { } /// The request was well-formed but was unable to be followed due to semantic errors. -public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30712,9 +30576,8 @@ public enum UpdateAccountOutputError: Swift.Error, Swift.Equatable { extension UpdateAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.account = output.account } else { @@ -30962,9 +30825,8 @@ public enum UpdateAppInstanceOutputError: Swift.Error, Swift.Equatable { extension UpdateAppInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceArn = output.appInstanceArn } else { @@ -31110,9 +30972,8 @@ public enum UpdateAppInstanceUserOutputError: Swift.Error, Swift.Equatable { extension UpdateAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserArn = output.appInstanceUserArn } else { @@ -31248,9 +31109,8 @@ public enum UpdateBotOutputError: Swift.Error, Swift.Equatable { extension UpdateBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bot = output.bot } else { @@ -31517,9 +31377,8 @@ public enum UpdateChannelMessageOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.messageId = output.messageId @@ -31602,9 +31461,8 @@ public enum UpdateChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn } else { @@ -31722,9 +31580,8 @@ public enum UpdateChannelReadMarkerOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelReadMarkerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelReadMarkerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn } else { @@ -31972,9 +31829,8 @@ public enum UpdatePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension UpdatePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumber = output.phoneNumber } else { @@ -32291,9 +32147,8 @@ public enum UpdateProxySessionOutputError: Swift.Error, Swift.Equatable { extension UpdateProxySessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProxySessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxySession = output.proxySession } else { @@ -32505,9 +32360,8 @@ public enum UpdateRoomMembershipOutputError: Swift.Error, Swift.Equatable { extension UpdateRoomMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRoomMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roomMembership = output.roomMembership } else { @@ -32580,9 +32434,8 @@ public enum UpdateRoomOutputError: Swift.Error, Swift.Equatable { extension UpdateRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.room = output.room } else { @@ -32733,9 +32586,8 @@ public enum UpdateSipMediaApplicationCallOutputError: Swift.Error, Swift.Equatab extension UpdateSipMediaApplicationCallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSipMediaApplicationCallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationCall = output.sipMediaApplicationCall } else { @@ -32889,9 +32741,8 @@ public enum UpdateSipMediaApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateSipMediaApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSipMediaApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplication = output.sipMediaApplication } else { @@ -33060,9 +32911,8 @@ public enum UpdateSipRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateSipRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSipRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipRule = output.sipRule } else { @@ -33222,9 +33072,8 @@ public enum UpdateUserOutputError: Swift.Error, Swift.Equatable { extension UpdateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -33554,9 +33403,8 @@ public enum UpdateVoiceConnectorGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnectorGroup = output.voiceConnectorGroup } else { @@ -33698,9 +33546,8 @@ public enum UpdateVoiceConnectorOutputError: Swift.Error, Swift.Equatable { extension UpdateVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnector = output.voiceConnector } else { @@ -34188,9 +34035,8 @@ public enum ValidateE911AddressOutputError: Swift.Error, Swift.Equatable { extension ValidateE911AddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateE911AddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address self.addressExternalId = output.addressExternalId diff --git a/Sources/Services/AWSChimeSDKIdentity/ChimeSDKIdentityClient.swift b/Sources/Services/AWSChimeSDKIdentity/ChimeSDKIdentityClient.swift index 0e72cf07870..d5f8e82b482 100644 --- a/Sources/Services/AWSChimeSDKIdentity/ChimeSDKIdentityClient.swift +++ b/Sources/Services/AWSChimeSDKIdentity/ChimeSDKIdentityClient.swift @@ -208,6 +208,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -258,6 +259,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppInstanceAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -273,7 +275,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -293,6 +295,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppInstanceBot") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -316,7 +319,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -336,6 +339,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppInstanceUser") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -359,7 +363,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +383,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -391,7 +396,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -411,6 +416,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInstanceAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -423,7 +429,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -443,6 +449,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInstanceBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +462,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +482,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +495,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +515,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterAppInstanceUserEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +528,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +548,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -551,7 +561,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +581,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppInstanceAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -583,7 +594,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -603,6 +614,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppInstanceBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -615,7 +627,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -635,6 +647,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -647,7 +660,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -667,6 +680,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppInstanceUserEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -679,7 +693,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -699,6 +713,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppInstanceRetentionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -711,7 +726,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -731,6 +746,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInstanceAdmins") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +760,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +780,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInstanceBots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -777,7 +794,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -797,6 +814,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInstanceUserEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -810,7 +828,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -830,6 +848,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInstanceUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -843,7 +862,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -863,6 +882,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -876,7 +896,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -896,6 +916,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -909,7 +930,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -929,6 +950,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAppInstanceRetentionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +966,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +986,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAppInstanceUserExpirationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -979,7 +1002,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -999,6 +1022,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerAppInstanceUserEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1022,7 +1046,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1042,6 +1066,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1058,7 +1083,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1078,6 +1103,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1120,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1114,6 +1140,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1129,7 +1156,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1149,6 +1176,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppInstanceBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1164,7 +1192,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1184,6 +1212,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1199,7 +1228,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1219,6 +1248,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppInstanceUserEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1234,7 +1264,7 @@ extension ChimeSDKIdentityClient: ChimeSDKIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSChimeSDKIdentity/models/Models.swift b/Sources/Services/AWSChimeSDKIdentity/models/Models.swift index a96cb6fc668..6fbc3d1349a 100644 --- a/Sources/Services/AWSChimeSDKIdentity/models/Models.swift +++ b/Sources/Services/AWSChimeSDKIdentity/models/Models.swift @@ -864,9 +864,8 @@ extension ChimeSDKIdentityClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -882,7 +881,7 @@ extension BadRequestException { } /// The input parameters don't match the service's restrictions. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -996,9 +995,8 @@ extension ChimeSDKIdentityClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1014,7 +1012,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1149,9 +1147,8 @@ public enum CreateAppInstanceAdminOutputError: Swift.Error, Swift.Equatable { extension CreateAppInstanceAdminOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppInstanceAdminOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceAdmin = output.appInstanceAdmin self.appInstanceArn = output.appInstanceArn @@ -1363,9 +1360,8 @@ public enum CreateAppInstanceBotOutputError: Swift.Error, Swift.Equatable { extension CreateAppInstanceBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppInstanceBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceBotArn = output.appInstanceBotArn } else { @@ -1542,9 +1538,8 @@ public enum CreateAppInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateAppInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceArn = output.appInstanceArn } else { @@ -1759,9 +1754,8 @@ public enum CreateAppInstanceUserOutputError: Swift.Error, Swift.Equatable { extension CreateAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserArn = output.appInstanceUserArn } else { @@ -2271,9 +2265,8 @@ public enum DescribeAppInstanceAdminOutputError: Swift.Error, Swift.Equatable { extension DescribeAppInstanceAdminOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppInstanceAdminOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceAdmin = output.appInstanceAdmin } else { @@ -2377,9 +2370,8 @@ public enum DescribeAppInstanceBotOutputError: Swift.Error, Swift.Equatable { extension DescribeAppInstanceBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppInstanceBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceBot = output.appInstanceBot } else { @@ -2481,9 +2473,8 @@ public enum DescribeAppInstanceOutputError: Swift.Error, Swift.Equatable { extension DescribeAppInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstance = output.appInstance } else { @@ -2598,9 +2589,8 @@ public enum DescribeAppInstanceUserEndpointOutputError: Swift.Error, Swift.Equat extension DescribeAppInstanceUserEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppInstanceUserEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserEndpoint = output.appInstanceUserEndpoint } else { @@ -2702,9 +2692,8 @@ public enum DescribeAppInstanceUserOutputError: Swift.Error, Swift.Equatable { extension DescribeAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUser = output.appInstanceUser } else { @@ -3059,9 +3048,8 @@ extension ChimeSDKIdentityClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3077,7 +3065,7 @@ extension ForbiddenException { } /// The client is permanently forbidden from making the request. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3183,9 +3171,8 @@ public enum GetAppInstanceRetentionSettingsOutputError: Swift.Error, Swift.Equat extension GetAppInstanceRetentionSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppInstanceRetentionSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceRetentionSettings = output.appInstanceRetentionSettings self.initiateDeletionTimestamp = output.initiateDeletionTimestamp @@ -3452,9 +3439,8 @@ extension ListAppInstanceAdminsOutputResponse: Swift.CustomDebugStringConvertibl extension ListAppInstanceAdminsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInstanceAdminsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceAdmins = output.appInstanceAdmins self.appInstanceArn = output.appInstanceArn @@ -3625,9 +3611,8 @@ extension ListAppInstanceBotsOutputResponse: Swift.CustomDebugStringConvertible extension ListAppInstanceBotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInstanceBotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceArn = output.appInstanceArn self.appInstanceBots = output.appInstanceBots @@ -3793,9 +3778,8 @@ extension ListAppInstanceUserEndpointsOutputResponse: Swift.CustomDebugStringCon extension ListAppInstanceUserEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInstanceUserEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserEndpoints = output.appInstanceUserEndpoints self.nextToken = output.nextToken @@ -3954,9 +3938,8 @@ extension ListAppInstanceUsersOutputResponse: Swift.CustomDebugStringConvertible extension ListAppInstanceUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInstanceUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceArn = output.appInstanceArn self.appInstanceUsers = output.appInstanceUsers @@ -4114,9 +4097,8 @@ extension ListAppInstancesOutputResponse: Swift.CustomDebugStringConvertible { extension ListAppInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstances = output.appInstances self.nextToken = output.nextToken @@ -4249,9 +4231,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4299,9 +4280,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4317,7 +4297,7 @@ extension NotFoundException { } /// One or more of the resources in the request does not exist in the system. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4448,9 +4428,8 @@ public enum PutAppInstanceRetentionSettingsOutputError: Swift.Error, Swift.Equat extension PutAppInstanceRetentionSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAppInstanceRetentionSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceRetentionSettings = output.appInstanceRetentionSettings self.initiateDeletionTimestamp = output.initiateDeletionTimestamp @@ -4588,9 +4567,8 @@ public enum PutAppInstanceUserExpirationSettingsOutputError: Swift.Error, Swift. extension PutAppInstanceUserExpirationSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAppInstanceUserExpirationSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserArn = output.appInstanceUserArn self.expirationSettings = output.expirationSettings @@ -4813,9 +4791,8 @@ extension RegisterAppInstanceUserEndpointOutputResponse: Swift.CustomDebugString extension RegisterAppInstanceUserEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterAppInstanceUserEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserArn = output.appInstanceUserArn self.endpointId = output.endpointId @@ -4864,9 +4841,8 @@ extension RegisterAppInstanceUserEndpointOutputResponseBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4882,7 +4858,7 @@ extension ResourceLimitExceededException { } /// The request exceeds the resource limit. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4954,9 +4930,8 @@ extension ChimeSDKIdentityClientTypes { extension ServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4972,7 +4947,7 @@ extension ServiceFailureException { } /// The service encountered an unexpected error. -public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5015,9 +4990,8 @@ extension ServiceFailureExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5033,7 +5007,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5255,9 +5229,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottledClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottledClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5273,7 +5246,7 @@ extension ThrottledClientException { } /// The client exceeded its request rate limit. -public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5316,9 +5289,8 @@ extension ThrottledClientExceptionBody: Swift.Decodable { extension UnauthorizedClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5334,7 +5306,7 @@ extension UnauthorizedClientException { } /// The client is not currently authorized to make the request. -public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5612,9 +5584,8 @@ public enum UpdateAppInstanceBotOutputError: Swift.Error, Swift.Equatable { extension UpdateAppInstanceBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppInstanceBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceBotArn = output.appInstanceBotArn } else { @@ -5761,9 +5732,8 @@ public enum UpdateAppInstanceOutputError: Swift.Error, Swift.Equatable { extension UpdateAppInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceArn = output.appInstanceArn } else { @@ -5921,9 +5891,8 @@ extension UpdateAppInstanceUserEndpointOutputResponse: Swift.CustomDebugStringCo extension UpdateAppInstanceUserEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppInstanceUserEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserArn = output.appInstanceUserArn self.endpointId = output.endpointId @@ -6082,9 +6051,8 @@ public enum UpdateAppInstanceUserOutputError: Swift.Error, Swift.Equatable { extension UpdateAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInstanceUserArn = output.appInstanceUserArn } else { diff --git a/Sources/Services/AWSChimeSDKMediaPipelines/ChimeSDKMediaPipelinesClient.swift b/Sources/Services/AWSChimeSDKMediaPipelines/ChimeSDKMediaPipelinesClient.swift index f8bd9eaef5a..3b8106ac0d3 100644 --- a/Sources/Services/AWSChimeSDKMediaPipelines/ChimeSDKMediaPipelinesClient.swift +++ b/Sources/Services/AWSChimeSDKMediaPipelines/ChimeSDKMediaPipelinesClient.swift @@ -208,6 +208,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMediaCapturePipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMediaConcatenationPipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMediaInsightsPipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMediaInsightsPipelineConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -360,7 +364,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +384,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMediaLiveConnectorPipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -403,7 +408,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -423,6 +428,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMediaCapturePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -435,7 +441,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +461,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMediaInsightsPipelineConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -467,7 +474,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -487,6 +494,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMediaPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +507,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +527,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMediaCapturePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -531,7 +540,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -551,6 +560,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMediaInsightsPipelineConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -563,7 +573,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -583,6 +593,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMediaPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -595,7 +606,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -615,6 +626,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMediaCapturePipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +640,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMediaInsightsPipelineConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -661,7 +674,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -681,6 +694,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMediaPipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -694,7 +708,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -714,6 +728,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -727,7 +742,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -747,6 +762,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -763,7 +779,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -783,6 +799,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -799,7 +816,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -819,6 +836,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMediaInsightsPipelineConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -834,7 +852,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -854,6 +872,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMediaInsightsPipelineStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -869,7 +888,7 @@ extension ChimeSDKMediaPipelinesClient: ChimeSDKMediaPipelinesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSChimeSDKMediaPipelines/models/Models.swift b/Sources/Services/AWSChimeSDKMediaPipelines/models/Models.swift index 2671105791f..e0d190945d1 100644 --- a/Sources/Services/AWSChimeSDKMediaPipelines/models/Models.swift +++ b/Sources/Services/AWSChimeSDKMediaPipelines/models/Models.swift @@ -720,9 +720,8 @@ extension ChimeSDKMediaPipelinesClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -740,7 +739,7 @@ extension BadRequestException { } /// The input parameters don't match the service's restrictions. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1287,9 +1286,8 @@ extension ChimeSDKMediaPipelinesClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1307,7 +1305,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1739,9 +1737,8 @@ public enum CreateMediaCapturePipelineOutputError: Swift.Error, Swift.Equatable extension CreateMediaCapturePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMediaCapturePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaCapturePipeline = output.mediaCapturePipeline } else { @@ -1940,9 +1937,8 @@ public enum CreateMediaConcatenationPipelineOutputError: Swift.Error, Swift.Equa extension CreateMediaConcatenationPipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMediaConcatenationPipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaConcatenationPipeline = output.mediaConcatenationPipeline } else { @@ -2156,9 +2152,8 @@ public enum CreateMediaInsightsPipelineConfigurationOutputError: Swift.Error, Sw extension CreateMediaInsightsPipelineConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMediaInsightsPipelineConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaInsightsPipelineConfiguration = output.mediaInsightsPipelineConfiguration } else { @@ -2382,9 +2377,8 @@ public enum CreateMediaInsightsPipelineOutputError: Swift.Error, Swift.Equatable extension CreateMediaInsightsPipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMediaInsightsPipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaInsightsPipeline = output.mediaInsightsPipeline } else { @@ -2584,9 +2578,8 @@ public enum CreateMediaLiveConnectorPipelineOutputError: Swift.Error, Swift.Equa extension CreateMediaLiveConnectorPipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMediaLiveConnectorPipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaLiveConnectorPipeline = output.mediaLiveConnectorPipeline } else { @@ -2935,9 +2928,8 @@ extension ChimeSDKMediaPipelinesClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2955,7 +2947,7 @@ extension ForbiddenException { } /// The client is permanently forbidden from making the request. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3161,9 +3153,8 @@ public enum GetMediaCapturePipelineOutputError: Swift.Error, Swift.Equatable { extension GetMediaCapturePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMediaCapturePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaCapturePipeline = output.mediaCapturePipeline } else { @@ -3267,9 +3258,8 @@ public enum GetMediaInsightsPipelineConfigurationOutputError: Swift.Error, Swift extension GetMediaInsightsPipelineConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMediaInsightsPipelineConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaInsightsPipelineConfiguration = output.mediaInsightsPipelineConfiguration } else { @@ -3373,9 +3363,8 @@ public enum GetMediaPipelineOutputError: Swift.Error, Swift.Equatable { extension GetMediaPipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMediaPipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaPipeline = output.mediaPipeline } else { @@ -3885,9 +3874,8 @@ public enum ListMediaCapturePipelinesOutputError: Swift.Error, Swift.Equatable { extension ListMediaCapturePipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMediaCapturePipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaCapturePipelines = output.mediaCapturePipelines self.nextToken = output.nextToken @@ -4027,9 +4015,8 @@ public enum ListMediaInsightsPipelineConfigurationsOutputError: Swift.Error, Swi extension ListMediaInsightsPipelineConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMediaInsightsPipelineConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaInsightsPipelineConfigurations = output.mediaInsightsPipelineConfigurations self.nextToken = output.nextToken @@ -4169,9 +4156,8 @@ public enum ListMediaPipelinesOutputError: Swift.Error, Swift.Equatable { extension ListMediaPipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMediaPipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaPipelines = output.mediaPipelines self.nextToken = output.nextToken @@ -4306,9 +4292,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5855,9 +5840,8 @@ extension ChimeSDKMediaPipelinesClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5875,7 +5859,7 @@ extension NotFoundException { } /// One or more of the resources in the request does not exist in the system. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6390,9 +6374,8 @@ extension ChimeSDKMediaPipelinesClientTypes { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -6410,7 +6393,7 @@ extension ResourceLimitExceededException { } /// The request exceeds the resource limit. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6750,9 +6733,8 @@ extension ChimeSDKMediaPipelinesClientTypes { extension ServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -6770,7 +6752,7 @@ extension ServiceFailureException { } /// The service encountered an unexpected error. -public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6821,9 +6803,8 @@ extension ServiceFailureExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -6841,7 +6822,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7296,9 +7277,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottledClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottledClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -7316,7 +7296,7 @@ extension ThrottledClientException { } /// The client exceeded its request rate limit. -public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7450,9 +7430,8 @@ extension ChimeSDKMediaPipelinesClientTypes { extension UnauthorizedClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -7470,7 +7449,7 @@ extension UnauthorizedClientException { } /// The client is not currently authorized to make the request. -public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7782,9 +7761,8 @@ public enum UpdateMediaInsightsPipelineConfigurationOutputError: Swift.Error, Sw extension UpdateMediaInsightsPipelineConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMediaInsightsPipelineConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaInsightsPipelineConfiguration = output.mediaInsightsPipelineConfiguration } else { diff --git a/Sources/Services/AWSChimeSDKMeetings/ChimeSDKMeetingsClient.swift b/Sources/Services/AWSChimeSDKMeetings/ChimeSDKMeetingsClient.swift index a13b2181173..700abcabfed 100644 --- a/Sources/Services/AWSChimeSDKMeetings/ChimeSDKMeetingsClient.swift +++ b/Sources/Services/AWSChimeSDKMeetings/ChimeSDKMeetingsClient.swift @@ -208,6 +208,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -250,6 +251,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateAttendeeCapabilitiesExcept") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -266,7 +268,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -301,7 +304,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -321,6 +324,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMeeting") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -344,7 +348,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -364,6 +368,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMeetingWithAttendees") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -388,7 +393,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -408,6 +413,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +426,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +446,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMeeting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -452,7 +459,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -472,6 +479,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAttendee") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMeeting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -516,7 +525,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -536,6 +545,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttendees") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +559,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +593,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +613,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMeetingTranscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -618,7 +630,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -638,6 +650,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopMeetingTranscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -651,7 +664,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +684,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -687,7 +701,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -715,6 +729,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -731,7 +746,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -757,6 +772,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAttendeeCapabilities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +788,7 @@ extension ChimeSDKMeetingsClient: ChimeSDKMeetingsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSChimeSDKMeetings/models/Models.swift b/Sources/Services/AWSChimeSDKMeetings/models/Models.swift index 556180df8c9..b6a121cfc66 100644 --- a/Sources/Services/AWSChimeSDKMeetings/models/Models.swift +++ b/Sources/Services/AWSChimeSDKMeetings/models/Models.swift @@ -215,9 +215,8 @@ extension ChimeSDKMeetingsClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -235,7 +234,7 @@ extension BadRequestException { } /// The input parameters don't match the service's restrictions. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -402,9 +401,8 @@ public enum BatchCreateAttendeeOutputError: Swift.Error, Swift.Equatable { extension BatchCreateAttendeeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateAttendeeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendees = output.attendees self.errors = output.errors @@ -604,9 +602,8 @@ public struct BatchUpdateAttendeeCapabilitiesExceptOutputResponse: Swift.Equatab extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -624,7 +621,7 @@ extension ConflictException { } /// Multiple instances of the same request have been made simultaneously. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -852,9 +849,8 @@ public enum CreateAttendeeOutputError: Swift.Error, Swift.Equatable { extension CreateAttendeeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAttendeeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendee = output.attendee } else { @@ -1164,9 +1160,8 @@ public enum CreateMeetingOutputError: Swift.Error, Swift.Equatable { extension CreateMeetingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMeetingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.meeting = output.meeting } else { @@ -1449,9 +1444,8 @@ public enum CreateMeetingWithAttendeesOutputError: Swift.Error, Swift.Equatable extension CreateMeetingWithAttendeesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMeetingWithAttendeesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendees = output.attendees self.errors = output.errors @@ -1939,9 +1933,8 @@ extension ChimeSDKMeetingsClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1959,7 +1952,7 @@ extension ForbiddenException { } /// The client is permanently forbidden from making the request. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2083,9 +2076,8 @@ public enum GetAttendeeOutputError: Swift.Error, Swift.Equatable { extension GetAttendeeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAttendeeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendee = output.attendee } else { @@ -2189,9 +2181,8 @@ public enum GetMeetingOutputError: Swift.Error, Swift.Equatable { extension GetMeetingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMeetingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.meeting = output.meeting } else { @@ -2230,9 +2221,8 @@ extension GetMeetingOutputResponseBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2250,7 +2240,7 @@ extension LimitExceededException { } /// The request exceeds the resource limit. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2391,9 +2381,8 @@ public enum ListAttendeesOutputError: Swift.Error, Swift.Equatable { extension ListAttendeesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttendeesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendees = output.attendees self.nextToken = output.nextToken @@ -2516,9 +2505,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2908,9 +2896,8 @@ extension ChimeSDKMeetingsClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2928,7 +2915,7 @@ extension NotFoundException { } /// One or more of the resources in the request does not exist in the system. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3039,9 +3026,8 @@ extension ChimeSDKMeetingsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3061,7 +3047,7 @@ extension ResourceNotFoundException { } /// The resource that you want to tag couldn't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3120,9 +3106,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3140,7 +3125,7 @@ extension ServiceFailureException { } /// The service encountered an unexpected error. -public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3196,9 +3181,8 @@ extension ServiceUnavailableException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3216,7 +3200,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3638,9 +3622,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3658,7 +3641,7 @@ extension ThrottlingException { } /// The number of customer requests exceeds the request rate limit. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3709,9 +3692,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3731,7 +3713,7 @@ extension TooManyTagsException { } /// Too many tags were added to the specified resource. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4271,9 +4253,8 @@ extension ChimeSDKMeetingsClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4291,7 +4272,7 @@ extension UnauthorizedException { } /// The user isn't authorized to request a resource. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4342,9 +4323,8 @@ extension UnauthorizedExceptionBody: Swift.Decodable { extension UnprocessableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnprocessableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4362,7 +4342,7 @@ extension UnprocessableEntityException { } /// The request was well-formed but was unable to be followed due to semantic errors. -public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4626,9 +4606,8 @@ public enum UpdateAttendeeCapabilitiesOutputError: Swift.Error, Swift.Equatable extension UpdateAttendeeCapabilitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAttendeeCapabilitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attendee = output.attendee } else { diff --git a/Sources/Services/AWSChimeSDKMessaging/ChimeSDKMessagingClient.swift b/Sources/Services/AWSChimeSDKMessaging/ChimeSDKMessagingClient.swift index 23addcfd7d3..292f52662c9 100644 --- a/Sources/Services/AWSChimeSDKMessaging/ChimeSDKMessagingClient.swift +++ b/Sources/Services/AWSChimeSDKMessaging/ChimeSDKMessagingClient.swift @@ -208,6 +208,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateChannelFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateChannelMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -261,7 +263,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -287,6 +289,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "channelFlowCallback") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -311,7 +314,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -331,6 +334,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -355,7 +359,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -375,6 +379,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannelBan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -391,7 +396,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -420,6 +425,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannelFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -435,7 +441,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +481,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannelMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -491,7 +498,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -524,6 +531,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannelModerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -540,7 +548,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -560,6 +568,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -574,7 +583,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -594,6 +603,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelBan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -607,7 +617,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -627,6 +637,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +650,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +670,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -673,7 +685,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -693,6 +705,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -707,7 +720,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -727,6 +740,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelModerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -740,7 +754,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -760,6 +774,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMessagingStreamingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +787,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +807,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -805,7 +821,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -825,6 +841,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelBan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -838,7 +855,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -858,6 +875,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -870,7 +888,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -890,6 +908,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -904,7 +923,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -924,6 +943,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelMembershipForAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -938,7 +958,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -958,6 +978,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelModeratedByAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -972,7 +993,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -992,6 +1013,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannelModerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1005,7 +1027,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1025,6 +1047,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateChannelFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1038,7 +1061,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1058,6 +1081,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannelMembershipPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1071,7 +1095,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1091,6 +1115,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannelMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1105,7 +1130,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1131,6 +1156,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannelMessageStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1145,7 +1171,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1165,6 +1191,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMessagingSessionEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1177,7 +1204,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1197,6 +1224,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMessagingStreamingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1209,7 +1237,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1229,6 +1257,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelBans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1243,7 +1272,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1263,6 +1292,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelFlows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1276,7 +1306,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1296,6 +1326,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelMemberships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1310,7 +1341,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1330,6 +1361,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelMembershipsForAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1344,7 +1376,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1364,6 +1396,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1378,7 +1411,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1398,6 +1431,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelModerators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1439,6 +1473,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1453,7 +1488,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1473,6 +1508,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelsAssociatedWithChannelFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1486,7 +1522,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1506,6 +1542,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannelsModeratedByAppInstanceUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1554,7 +1592,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1574,6 +1612,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1587,7 +1626,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1613,6 +1652,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putChannelExpirationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1629,7 +1669,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1649,6 +1689,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putChannelMembershipPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1665,7 +1706,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1685,6 +1726,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMessagingStreamingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "redactChannelMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1737,7 +1780,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1757,6 +1800,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1774,7 +1818,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1794,6 +1838,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendChannelMessage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1818,7 +1863,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1838,6 +1883,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1854,7 +1900,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1874,6 +1920,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1890,7 +1937,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1910,6 +1957,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1926,7 +1974,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1946,6 +1994,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannelFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1961,7 +2010,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1981,6 +2030,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannelMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1997,7 +2047,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2017,6 +2067,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannelReadMarker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2033,7 +2084,7 @@ extension ChimeSDKMessagingClient: ChimeSDKMessagingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSChimeSDKMessaging/models/Models.swift b/Sources/Services/AWSChimeSDKMessaging/models/Models.swift index 26656508916..d48f1f4513d 100644 --- a/Sources/Services/AWSChimeSDKMessaging/models/Models.swift +++ b/Sources/Services/AWSChimeSDKMessaging/models/Models.swift @@ -211,9 +211,8 @@ public struct AssociateChannelFlowOutputResponse: Swift.Equatable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -229,7 +228,7 @@ extension BadRequestException { } /// The input parameters don't match the service's restrictions. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -567,9 +566,8 @@ public enum BatchCreateChannelMembershipOutputError: Swift.Error, Swift.Equatabl extension BatchCreateChannelMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateChannelMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchChannelMemberships = output.batchChannelMemberships self.errors = output.errors @@ -1174,9 +1172,8 @@ public enum ChannelFlowCallbackOutputError: Swift.Error, Swift.Equatable { extension ChannelFlowCallbackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelFlowCallbackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.callbackId = output.callbackId self.channelArn = output.channelArn @@ -2442,9 +2439,8 @@ extension ChimeSDKMessagingClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2460,7 +2456,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2610,9 +2606,8 @@ public enum CreateChannelBanOutputError: Swift.Error, Swift.Equatable { extension CreateChannelBanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelBanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.member = output.member @@ -2825,9 +2820,8 @@ public enum CreateChannelFlowOutputError: Swift.Error, Swift.Equatable { extension CreateChannelFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelFlowArn = output.channelFlowArn } else { @@ -3238,9 +3232,8 @@ public enum CreateChannelMembershipOutputError: Swift.Error, Swift.Equatable { extension CreateChannelMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.member = output.member @@ -3406,9 +3399,8 @@ public enum CreateChannelModeratorOutputError: Swift.Error, Swift.Equatable { extension CreateChannelModeratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelModeratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelModerator = output.channelModerator @@ -3493,9 +3485,8 @@ public enum CreateChannelOutputError: Swift.Error, Swift.Equatable { extension CreateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn } else { @@ -4293,9 +4284,8 @@ public enum DescribeChannelBanOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelBanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelBanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelBan = output.channelBan } else { @@ -4397,9 +4387,8 @@ public enum DescribeChannelFlowOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelFlow = output.channelFlow } else { @@ -4583,9 +4572,8 @@ public enum DescribeChannelMembershipForAppInstanceUserOutputError: Swift.Error, extension DescribeChannelMembershipForAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelMembershipForAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelMembership = output.channelMembership } else { @@ -4729,9 +4717,8 @@ public enum DescribeChannelMembershipOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelMembership = output.channelMembership } else { @@ -4869,9 +4856,8 @@ public enum DescribeChannelModeratedByAppInstanceUserOutputError: Swift.Error, S extension DescribeChannelModeratedByAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelModeratedByAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -4998,9 +4984,8 @@ public enum DescribeChannelModeratorOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelModeratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelModeratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelModerator = output.channelModerator } else { @@ -5071,9 +5056,8 @@ public enum DescribeChannelOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -5452,9 +5436,8 @@ extension ChimeSDKMessagingClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5470,7 +5453,7 @@ extension ForbiddenException { } /// The client is permanently forbidden from making the request. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5599,9 +5582,8 @@ public enum GetChannelMembershipPreferencesOutputError: Swift.Error, Swift.Equat extension GetChannelMembershipPreferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChannelMembershipPreferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.member = output.member @@ -5765,9 +5747,8 @@ public enum GetChannelMessageOutputError: Swift.Error, Swift.Equatable { extension GetChannelMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChannelMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelMessage = output.channelMessage } else { @@ -5910,9 +5891,8 @@ public enum GetChannelMessageStatusOutputError: Swift.Error, Swift.Equatable { extension GetChannelMessageStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChannelMessageStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -6001,9 +5981,8 @@ public enum GetMessagingSessionEndpointOutputError: Swift.Error, Swift.Equatable extension GetMessagingSessionEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMessagingSessionEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -6107,9 +6086,8 @@ public enum GetMessagingStreamingConfigurationsOutputError: Swift.Error, Swift.E extension GetMessagingStreamingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMessagingStreamingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingConfigurations = output.streamingConfigurations } else { @@ -6396,9 +6374,8 @@ extension ListChannelBansOutputResponse: Swift.CustomDebugStringConvertible { extension ListChannelBansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelBansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelBans = output.channelBans @@ -6567,9 +6544,8 @@ extension ListChannelFlowsOutputResponse: Swift.CustomDebugStringConvertible { extension ListChannelFlowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelFlowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelFlows = output.channelFlows self.nextToken = output.nextToken @@ -6741,9 +6717,8 @@ extension ListChannelMembershipsForAppInstanceUserOutputResponse: Swift.CustomDe extension ListChannelMembershipsForAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelMembershipsForAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelMemberships = output.channelMemberships self.nextToken = output.nextToken @@ -6930,9 +6905,8 @@ extension ListChannelMembershipsOutputResponse: Swift.CustomDebugStringConvertib extension ListChannelMembershipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelMembershipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelMemberships = output.channelMemberships @@ -7145,9 +7119,8 @@ extension ListChannelMessagesOutputResponse: Swift.CustomDebugStringConvertible extension ListChannelMessagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelMessagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelMessages = output.channelMessages @@ -7338,9 +7311,8 @@ extension ListChannelModeratorsOutputResponse: Swift.CustomDebugStringConvertibl extension ListChannelModeratorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelModeratorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelModerators = output.channelModerators @@ -7510,9 +7482,8 @@ extension ListChannelsAssociatedWithChannelFlowOutputResponse: Swift.CustomDebug extension ListChannelsAssociatedWithChannelFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsAssociatedWithChannelFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -7771,9 +7742,8 @@ extension ListChannelsModeratedByAppInstanceUserOutputResponse: Swift.CustomDebu extension ListChannelsModeratedByAppInstanceUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsModeratedByAppInstanceUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -7868,9 +7838,8 @@ extension ListChannelsOutputResponse: Swift.CustomDebugStringConvertible { extension ListChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -8041,9 +8010,8 @@ extension ListSubChannelsOutputResponse: Swift.CustomDebugStringConvertible { extension ListSubChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.nextToken = output.nextToken @@ -8186,9 +8154,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8350,9 +8317,8 @@ extension ChimeSDKMessagingClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -8368,7 +8334,7 @@ extension NotFoundException { } /// One or more of the resources in the request does not exist in the system. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8767,9 +8733,8 @@ public enum PutChannelExpirationSettingsOutputError: Swift.Error, Swift.Equatabl extension PutChannelExpirationSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutChannelExpirationSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.expirationSettings = output.expirationSettings @@ -8931,9 +8896,8 @@ public enum PutChannelMembershipPreferencesOutputError: Swift.Error, Swift.Equat extension PutChannelMembershipPreferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutChannelMembershipPreferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.member = output.member @@ -9096,9 +9060,8 @@ public enum PutMessagingStreamingConfigurationsOutputError: Swift.Error, Swift.E extension PutMessagingStreamingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutMessagingStreamingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingConfigurations = output.streamingConfigurations } else { @@ -9268,9 +9231,8 @@ public enum RedactChannelMessageOutputError: Swift.Error, Swift.Equatable { extension RedactChannelMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RedactChannelMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.messageId = output.messageId @@ -9329,9 +9291,8 @@ extension RedactChannelMessageOutputResponseBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -9347,7 +9308,7 @@ extension ResourceLimitExceededException { } /// The request exceeds the resource limit. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9532,9 +9493,8 @@ extension SearchChannelsOutputResponse: Swift.CustomDebugStringConvertible { extension SearchChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -9944,9 +9904,8 @@ public enum SendChannelMessageOutputError: Swift.Error, Swift.Equatable { extension SendChannelMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendChannelMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.messageId = output.messageId @@ -10015,9 +9974,8 @@ extension SendChannelMessageOutputResponseBody: Swift.Decodable { extension ServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -10033,7 +9991,7 @@ extension ServiceFailureException { } /// The service encountered an unexpected error. -public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10076,9 +10034,8 @@ extension ServiceFailureExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -10094,7 +10051,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10440,9 +10397,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottledClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottledClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -10458,7 +10414,7 @@ extension ThrottledClientException { } /// The client exceeded its request rate limit. -public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10501,9 +10457,8 @@ extension ThrottledClientExceptionBody: Swift.Decodable { extension UnauthorizedClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -10519,7 +10474,7 @@ extension UnauthorizedClientException { } /// The client is not currently authorized to make the request. -public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10807,9 +10762,8 @@ public enum UpdateChannelFlowOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelFlowArn = output.channelFlowArn } else { @@ -11101,9 +11055,8 @@ public enum UpdateChannelMessageOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.messageId = output.messageId @@ -11206,9 +11159,8 @@ public enum UpdateChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn } else { @@ -11351,9 +11303,8 @@ public enum UpdateChannelReadMarkerOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelReadMarkerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelReadMarkerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.subChannelId = output.subChannelId diff --git a/Sources/Services/AWSChimeSDKVoice/ChimeSDKVoiceClient.swift b/Sources/Services/AWSChimeSDKVoice/ChimeSDKVoiceClient.swift index 75695f79a23..a404b04f9f3 100644 --- a/Sources/Services/AWSChimeSDKVoice/ChimeSDKVoiceClient.swift +++ b/Sources/Services/AWSChimeSDKVoice/ChimeSDKVoiceClient.swift @@ -208,6 +208,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePhoneNumbersWithVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePhoneNumbersWithVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeletePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdatePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPhoneNumberOrder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -367,7 +372,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -387,6 +392,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProxySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -402,7 +408,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -422,6 +428,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSipMediaApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -437,7 +444,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -457,6 +464,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSipMediaApplicationCall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -472,7 +480,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -492,6 +500,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSipRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -507,7 +516,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -527,6 +536,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -542,7 +552,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -562,6 +572,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -577,7 +588,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -597,6 +608,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVoiceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -612,7 +624,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -632,6 +644,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVoiceProfileDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -647,7 +660,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -667,6 +680,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -679,7 +693,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -699,6 +713,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProxySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -711,7 +726,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -731,6 +746,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSipMediaApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -743,7 +759,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -763,6 +779,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSipRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -775,7 +792,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -795,6 +812,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -807,7 +825,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -827,6 +845,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorEmergencyCallingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -839,7 +858,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +878,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -871,7 +891,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -891,6 +911,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorOrigination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -903,7 +924,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -923,6 +944,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -935,7 +957,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -955,6 +977,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorStreamingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -967,7 +990,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -987,6 +1010,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorTermination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -999,7 +1023,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1019,6 +1043,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceConnectorTerminationCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1035,7 +1060,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1055,6 +1080,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1067,7 +1093,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1113,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceProfileDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1099,7 +1126,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1119,6 +1146,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePhoneNumbersFromVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1135,7 +1163,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1155,6 +1183,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePhoneNumbersFromVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1171,7 +1200,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1191,6 +1220,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGlobalSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1203,7 +1233,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1223,6 +1253,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1235,7 +1266,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1255,6 +1286,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPhoneNumberOrder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1267,7 +1299,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1287,6 +1319,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPhoneNumberSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1299,7 +1332,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1319,6 +1352,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProxySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1331,7 +1365,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1351,6 +1385,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSipMediaApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1363,7 +1398,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1383,6 +1418,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSipMediaApplicationAlexaSkillConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1395,7 +1431,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1415,6 +1451,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSipMediaApplicationLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1427,7 +1464,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1447,6 +1484,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSipRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1459,7 +1497,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1479,6 +1517,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSpeakerSearchTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1491,7 +1530,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1511,6 +1550,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1523,7 +1563,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1543,6 +1583,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorEmergencyCallingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1555,7 +1596,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1575,6 +1616,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1587,7 +1629,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1607,6 +1649,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1619,7 +1662,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1639,6 +1682,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorOrigination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1651,7 +1695,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1671,6 +1715,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1683,7 +1728,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1703,6 +1748,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorStreamingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1715,7 +1761,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1735,6 +1781,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorTermination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1747,7 +1794,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1767,6 +1814,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceConnectorTerminationHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1779,7 +1827,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1799,6 +1847,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1811,7 +1860,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1831,6 +1880,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceProfileDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1843,7 +1893,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1863,6 +1913,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceToneAnalysisTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1876,7 +1927,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1896,6 +1947,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailableVoiceConnectorRegions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1908,7 +1960,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1928,6 +1980,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPhoneNumberOrders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1941,7 +1994,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1961,6 +2014,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPhoneNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1974,7 +2028,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1994,6 +2048,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProxySessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2007,7 +2062,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2027,6 +2082,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSipMediaApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2040,7 +2096,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2060,6 +2116,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSipRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2073,7 +2130,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2093,6 +2150,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSupportedPhoneNumberCountries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2106,7 +2164,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2126,6 +2184,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2139,7 +2198,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2159,6 +2218,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVoiceConnectorGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2172,7 +2232,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2192,6 +2252,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVoiceConnectorTerminationCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2204,7 +2265,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2224,6 +2285,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVoiceConnectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2237,7 +2299,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2257,6 +2319,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVoiceProfileDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2270,7 +2333,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2290,6 +2353,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVoiceProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2303,7 +2367,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2323,6 +2387,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSipMediaApplicationAlexaSkillConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2338,7 +2403,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2358,6 +2423,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSipMediaApplicationLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2373,7 +2439,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2393,6 +2459,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorEmergencyCallingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2408,7 +2475,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2428,6 +2495,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2443,7 +2511,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2463,6 +2531,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorOrigination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2478,7 +2547,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2498,6 +2567,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2513,7 +2583,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2533,6 +2603,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorStreamingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2548,7 +2619,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2568,6 +2639,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorTermination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2583,7 +2655,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2603,6 +2675,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVoiceConnectorTerminationCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2619,7 +2692,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2639,6 +2712,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restorePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2652,7 +2726,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2672,6 +2746,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchAvailablePhoneNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2685,7 +2760,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2705,6 +2780,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSpeakerSearchTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2720,7 +2796,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2740,6 +2816,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startVoiceToneAnalysisTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2755,7 +2832,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2775,6 +2852,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopSpeakerSearchTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2788,7 +2866,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2808,6 +2886,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopVoiceToneAnalysisTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2821,7 +2900,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2841,6 +2920,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2857,7 +2937,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2877,6 +2957,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2893,7 +2974,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2913,6 +2994,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGlobalSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2928,7 +3010,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2948,6 +3030,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2963,7 +3046,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2983,6 +3066,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePhoneNumberSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2998,7 +3082,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3018,6 +3102,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProxySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3033,7 +3118,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3053,6 +3138,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSipMediaApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3068,7 +3154,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3088,6 +3174,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSipMediaApplicationCall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3103,7 +3190,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3123,6 +3210,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSipRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3138,7 +3226,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3158,6 +3246,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVoiceConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3173,7 +3262,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3193,6 +3282,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVoiceConnectorGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3208,7 +3298,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3228,6 +3318,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVoiceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3243,7 +3334,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3263,6 +3354,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVoiceProfileDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3278,7 +3370,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3298,6 +3390,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "chime") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateE911Address") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3313,7 +3406,7 @@ extension ChimeSDKVoiceClient: ChimeSDKVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSChimeSDKVoice/models/Models.swift b/Sources/Services/AWSChimeSDKVoice/models/Models.swift index a3838ca2ea4..cc6c3b39137 100644 --- a/Sources/Services/AWSChimeSDKVoice/models/Models.swift +++ b/Sources/Services/AWSChimeSDKVoice/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You don't have the permissions needed to run this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -353,9 +352,8 @@ public enum AssociatePhoneNumbersWithVoiceConnectorGroupOutputError: Swift.Error extension AssociatePhoneNumbersWithVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatePhoneNumbersWithVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -529,9 +527,8 @@ public enum AssociatePhoneNumbersWithVoiceConnectorOutputError: Swift.Error, Swi extension AssociatePhoneNumbersWithVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatePhoneNumbersWithVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -579,9 +576,8 @@ extension AssociatePhoneNumbersWithVoiceConnectorOutputResponseBody: Swift.Decod extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -597,7 +593,7 @@ extension BadRequestException { } /// The input parameters don't match the service's restrictions. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -744,9 +740,8 @@ public enum BatchDeletePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension BatchDeletePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeletePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -898,9 +893,8 @@ public enum BatchUpdatePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension BatchUpdatePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdatePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -1173,9 +1167,8 @@ extension ChimeSDKVoiceClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1191,7 +1184,7 @@ extension ConflictException { } /// Multiple instances of the same request were made simultaneously. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1343,9 +1336,8 @@ public enum CreatePhoneNumberOrderOutputError: Swift.Error, Swift.Equatable { extension CreatePhoneNumberOrderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePhoneNumberOrderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberOrder = output.phoneNumberOrder } else { @@ -1576,9 +1568,8 @@ public enum CreateProxySessionOutputError: Swift.Error, Swift.Equatable { extension CreateProxySessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProxySessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxySession = output.proxySession } else { @@ -1775,9 +1766,8 @@ public enum CreateSipMediaApplicationCallOutputError: Swift.Error, Swift.Equatab extension CreateSipMediaApplicationCallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSipMediaApplicationCallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationCall = output.sipMediaApplicationCall } else { @@ -1964,9 +1954,8 @@ public enum CreateSipMediaApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateSipMediaApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSipMediaApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplication = output.sipMediaApplication } else { @@ -2153,9 +2142,8 @@ public enum CreateSipRuleOutputError: Swift.Error, Swift.Equatable { extension CreateSipRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSipRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipRule = output.sipRule } else { @@ -2302,9 +2290,8 @@ public enum CreateVoiceConnectorGroupOutputError: Swift.Error, Swift.Equatable { extension CreateVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnectorGroup = output.voiceConnectorGroup } else { @@ -2476,9 +2463,8 @@ public enum CreateVoiceConnectorOutputError: Swift.Error, Swift.Equatable { extension CreateVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnector = output.voiceConnector } else { @@ -2664,9 +2650,8 @@ public enum CreateVoiceProfileDomainOutputError: Swift.Error, Swift.Equatable { extension CreateVoiceProfileDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVoiceProfileDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceProfileDomain = output.voiceProfileDomain } else { @@ -2795,9 +2780,8 @@ public enum CreateVoiceProfileOutputError: Swift.Error, Swift.Equatable { extension CreateVoiceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVoiceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceProfile = output.voiceProfile } else { @@ -4186,9 +4170,8 @@ public enum DisassociatePhoneNumbersFromVoiceConnectorGroupOutputError: Swift.Er extension DisassociatePhoneNumbersFromVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociatePhoneNumbersFromVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -4348,9 +4331,8 @@ public enum DisassociatePhoneNumbersFromVoiceConnectorOutputError: Swift.Error, extension DisassociatePhoneNumbersFromVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociatePhoneNumbersFromVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberErrors = output.phoneNumberErrors } else { @@ -4519,9 +4501,8 @@ extension ChimeSDKVoiceClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4537,7 +4518,7 @@ extension ForbiddenException { } /// The client is permanently forbidden from making the request. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4711,9 +4692,8 @@ public enum GetGlobalSettingsOutputError: Swift.Error, Swift.Equatable { extension GetGlobalSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGlobalSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnector = output.voiceConnector } else { @@ -4853,9 +4833,8 @@ public enum GetPhoneNumberOrderOutputError: Swift.Error, Swift.Equatable { extension GetPhoneNumberOrderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPhoneNumberOrderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberOrder = output.phoneNumberOrder } else { @@ -4928,9 +4907,8 @@ public enum GetPhoneNumberOutputError: Swift.Error, Swift.Equatable { extension GetPhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumber = output.phoneNumber } else { @@ -5026,9 +5004,8 @@ extension GetPhoneNumberSettingsOutputResponse: Swift.CustomDebugStringConvertib extension GetPhoneNumberSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPhoneNumberSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.callingName = output.callingName self.callingNameUpdatedTimestamp = output.callingNameUpdatedTimestamp @@ -5150,9 +5127,8 @@ public enum GetProxySessionOutputError: Swift.Error, Swift.Equatable { extension GetProxySessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProxySessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxySession = output.proxySession } else { @@ -5256,9 +5232,8 @@ public enum GetSipMediaApplicationAlexaSkillConfigurationOutputError: Swift.Erro extension GetSipMediaApplicationAlexaSkillConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSipMediaApplicationAlexaSkillConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationAlexaSkillConfiguration = output.sipMediaApplicationAlexaSkillConfiguration } else { @@ -5393,9 +5368,8 @@ public enum GetSipMediaApplicationLoggingConfigurationOutputError: Swift.Error, extension GetSipMediaApplicationLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSipMediaApplicationLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationLoggingConfiguration = output.sipMediaApplicationLoggingConfiguration } else { @@ -5468,9 +5442,8 @@ public enum GetSipMediaApplicationOutputError: Swift.Error, Swift.Equatable { extension GetSipMediaApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSipMediaApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplication = output.sipMediaApplication } else { @@ -5574,9 +5547,8 @@ public enum GetSipRuleOutputError: Swift.Error, Swift.Equatable { extension GetSipRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSipRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipRule = output.sipRule } else { @@ -5692,9 +5664,8 @@ public enum GetSpeakerSearchTaskOutputError: Swift.Error, Swift.Equatable { extension GetSpeakerSearchTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSpeakerSearchTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.speakerSearchTask = output.speakerSearchTask } else { @@ -5798,9 +5769,8 @@ public enum GetVoiceConnectorEmergencyCallingConfigurationOutputError: Swift.Err extension GetVoiceConnectorEmergencyCallingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorEmergencyCallingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.emergencyCallingConfiguration = output.emergencyCallingConfiguration } else { @@ -5904,9 +5874,8 @@ public enum GetVoiceConnectorGroupOutputError: Swift.Error, Swift.Equatable { extension GetVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnectorGroup = output.voiceConnectorGroup } else { @@ -6041,9 +6010,8 @@ public enum GetVoiceConnectorLoggingConfigurationOutputError: Swift.Error, Swift extension GetVoiceConnectorLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -6147,9 +6115,8 @@ public enum GetVoiceConnectorOriginationOutputError: Swift.Error, Swift.Equatabl extension GetVoiceConnectorOriginationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorOriginationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.origination = output.origination } else { @@ -6222,9 +6189,8 @@ public enum GetVoiceConnectorOutputError: Swift.Error, Swift.Equatable { extension GetVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnector = output.voiceConnector } else { @@ -6328,9 +6294,8 @@ public enum GetVoiceConnectorProxyOutputError: Swift.Error, Swift.Equatable { extension GetVoiceConnectorProxyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorProxyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxy = output.proxy } else { @@ -6434,9 +6399,8 @@ public enum GetVoiceConnectorStreamingConfigurationOutputError: Swift.Error, Swi extension GetVoiceConnectorStreamingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorStreamingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingConfiguration = output.streamingConfiguration } else { @@ -6540,9 +6504,8 @@ public enum GetVoiceConnectorTerminationHealthOutputError: Swift.Error, Swift.Eq extension GetVoiceConnectorTerminationHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorTerminationHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.terminationHealth = output.terminationHealth } else { @@ -6646,9 +6609,8 @@ public enum GetVoiceConnectorTerminationOutputError: Swift.Error, Swift.Equatabl extension GetVoiceConnectorTerminationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceConnectorTerminationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.termination = output.termination } else { @@ -6754,9 +6716,8 @@ public enum GetVoiceProfileDomainOutputError: Swift.Error, Swift.Equatable { extension GetVoiceProfileDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceProfileDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceProfileDomain = output.voiceProfileDomain } else { @@ -6862,9 +6823,8 @@ public enum GetVoiceProfileOutputError: Swift.Error, Swift.Equatable { extension GetVoiceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceProfile = output.voiceProfile } else { @@ -7000,9 +6960,8 @@ public enum GetVoiceToneAnalysisTaskOutputError: Swift.Error, Swift.Equatable { extension GetVoiceToneAnalysisTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVoiceToneAnalysisTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceToneAnalysisTask = output.voiceToneAnalysisTask } else { @@ -7041,9 +7000,8 @@ extension GetVoiceToneAnalysisTaskOutputResponseBody: Swift.Decodable { extension GoneException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GoneExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -7059,7 +7017,7 @@ extension GoneException { } /// Access to the target resource is no longer available at the origin server. This condition is likely to be permanent. -public struct GoneException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GoneException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7183,9 +7141,8 @@ public enum ListAvailableVoiceConnectorRegionsOutputError: Swift.Error, Swift.Eq extension ListAvailableVoiceConnectorRegionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailableVoiceConnectorRegionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnectorRegions = output.voiceConnectorRegions } else { @@ -7313,9 +7270,8 @@ public enum ListPhoneNumberOrdersOutputError: Swift.Error, Swift.Equatable { extension ListPhoneNumberOrdersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPhoneNumberOrdersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumberOrders = output.phoneNumberOrders @@ -7487,9 +7443,8 @@ public enum ListPhoneNumbersOutputError: Swift.Error, Swift.Equatable { extension ListPhoneNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPhoneNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumbers = output.phoneNumbers @@ -7645,9 +7600,8 @@ public enum ListProxySessionsOutputError: Swift.Error, Swift.Equatable { extension ListProxySessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProxySessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proxySessions = output.proxySessions @@ -7785,9 +7739,8 @@ public enum ListSipMediaApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListSipMediaApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSipMediaApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sipMediaApplications = output.sipMediaApplications @@ -7933,9 +7886,8 @@ public enum ListSipRulesOutputError: Swift.Error, Swift.Equatable { extension ListSipRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSipRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sipRules = output.sipRules @@ -8070,9 +8022,8 @@ public enum ListSupportedPhoneNumberCountriesOutputError: Swift.Error, Swift.Equ extension ListSupportedPhoneNumberCountriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSupportedPhoneNumberCountriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberCountries = output.phoneNumberCountries } else { @@ -8200,9 +8151,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8330,9 +8280,8 @@ public enum ListVoiceConnectorGroupsOutputError: Swift.Error, Swift.Equatable { extension ListVoiceConnectorGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVoiceConnectorGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.voiceConnectorGroups = output.voiceConnectorGroups @@ -8455,9 +8404,8 @@ public enum ListVoiceConnectorTerminationCredentialsOutputError: Swift.Error, Sw extension ListVoiceConnectorTerminationCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVoiceConnectorTerminationCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.usernames = output.usernames } else { @@ -8585,9 +8533,8 @@ public enum ListVoiceConnectorsOutputError: Swift.Error, Swift.Equatable { extension ListVoiceConnectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVoiceConnectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.voiceConnectors = output.voiceConnectors @@ -8727,9 +8674,8 @@ public enum ListVoiceProfileDomainsOutputError: Swift.Error, Swift.Equatable { extension ListVoiceProfileDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVoiceProfileDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.voiceProfileDomains = output.voiceProfileDomains @@ -8880,9 +8826,8 @@ public enum ListVoiceProfilesOutputError: Swift.Error, Swift.Equatable { extension ListVoiceProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVoiceProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.voiceProfiles = output.voiceProfiles @@ -9035,9 +8980,8 @@ extension ChimeSDKVoiceClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -9053,7 +8997,7 @@ extension NotFoundException { } /// The requested resource couldn't be found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10642,9 +10586,8 @@ public enum PutSipMediaApplicationAlexaSkillConfigurationOutputError: Swift.Erro extension PutSipMediaApplicationAlexaSkillConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSipMediaApplicationAlexaSkillConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationAlexaSkillConfiguration = output.sipMediaApplicationAlexaSkillConfiguration } else { @@ -10772,9 +10715,8 @@ public enum PutSipMediaApplicationLoggingConfigurationOutputError: Swift.Error, extension PutSipMediaApplicationLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSipMediaApplicationLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationLoggingConfiguration = output.sipMediaApplicationLoggingConfiguration } else { @@ -10903,9 +10845,8 @@ public enum PutVoiceConnectorEmergencyCallingConfigurationOutputError: Swift.Err extension PutVoiceConnectorEmergencyCallingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorEmergencyCallingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.emergencyCallingConfiguration = output.emergencyCallingConfiguration } else { @@ -11034,9 +10975,8 @@ public enum PutVoiceConnectorLoggingConfigurationOutputError: Swift.Error, Swift extension PutVoiceConnectorLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -11165,9 +11105,8 @@ public enum PutVoiceConnectorOriginationOutputError: Swift.Error, Swift.Equatabl extension PutVoiceConnectorOriginationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorOriginationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.origination = output.origination } else { @@ -11352,9 +11291,8 @@ public enum PutVoiceConnectorProxyOutputError: Swift.Error, Swift.Equatable { extension PutVoiceConnectorProxyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorProxyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxy = output.proxy } else { @@ -11483,9 +11421,8 @@ public enum PutVoiceConnectorStreamingConfigurationOutputError: Swift.Error, Swi extension PutVoiceConnectorStreamingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorStreamingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingConfiguration = output.streamingConfiguration } else { @@ -11737,9 +11674,8 @@ public enum PutVoiceConnectorTerminationOutputError: Swift.Error, Swift.Equatabl extension PutVoiceConnectorTerminationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutVoiceConnectorTerminationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.termination = output.termination } else { @@ -11778,9 +11714,8 @@ extension PutVoiceConnectorTerminationOutputResponseBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -11796,7 +11731,7 @@ extension ResourceLimitExceededException { } /// The request exceeds the resource limit. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11921,9 +11856,8 @@ public enum RestorePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension RestorePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestorePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumber = output.phoneNumber } else { @@ -12093,9 +12027,8 @@ public enum SearchAvailablePhoneNumbersOutputError: Swift.Error, Swift.Equatable extension SearchAvailablePhoneNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchAvailablePhoneNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.e164PhoneNumbers = output.e164PhoneNumbers self.nextToken = output.nextToken @@ -12194,9 +12127,8 @@ extension ChimeSDKVoiceClientTypes { extension ServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -12212,7 +12144,7 @@ extension ServiceFailureException { } /// The service encountered an unexpected error. -public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12255,9 +12187,8 @@ extension ServiceFailureExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -12273,7 +12204,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13128,9 +13059,8 @@ public enum StartSpeakerSearchTaskOutputError: Swift.Error, Swift.Equatable { extension StartSpeakerSearchTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSpeakerSearchTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.speakerSearchTask = output.speakerSearchTask } else { @@ -13294,9 +13224,8 @@ public enum StartVoiceToneAnalysisTaskOutputError: Swift.Error, Swift.Equatable extension StartVoiceToneAnalysisTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartVoiceToneAnalysisTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceToneAnalysisTask = output.voiceToneAnalysisTask } else { @@ -13980,9 +13909,8 @@ extension ChimeSDKVoiceClientTypes { extension ThrottledClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottledClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -13998,7 +13926,7 @@ extension ThrottledClientException { } /// The number of customer requests exceeds the request rate limit. -public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14041,9 +13969,8 @@ extension ThrottledClientExceptionBody: Swift.Decodable { extension UnauthorizedClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedClientExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -14059,7 +13986,7 @@ extension UnauthorizedClientException { } /// The client isn't authorized to request a resource. -public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14102,9 +14029,8 @@ extension UnauthorizedClientExceptionBody: Swift.Decodable { extension UnprocessableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnprocessableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -14120,7 +14046,7 @@ extension UnprocessableEntityException { } /// A well-formed request couldn't be followed due to semantic errors. -public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14490,9 +14416,8 @@ public enum UpdatePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension UpdatePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumber = output.phoneNumber } else { @@ -14809,9 +14734,8 @@ public enum UpdateProxySessionOutputError: Swift.Error, Swift.Equatable { extension UpdateProxySessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProxySessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proxySession = output.proxySession } else { @@ -14962,9 +14886,8 @@ public enum UpdateSipMediaApplicationCallOutputError: Swift.Error, Swift.Equatab extension UpdateSipMediaApplicationCallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSipMediaApplicationCallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplicationCall = output.sipMediaApplicationCall } else { @@ -15118,9 +15041,8 @@ public enum UpdateSipMediaApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateSipMediaApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSipMediaApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipMediaApplication = output.sipMediaApplication } else { @@ -15289,9 +15211,8 @@ public enum UpdateSipRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateSipRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSipRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sipRule = output.sipRule } else { @@ -15447,9 +15368,8 @@ public enum UpdateVoiceConnectorGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateVoiceConnectorGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVoiceConnectorGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnectorGroup = output.voiceConnectorGroup } else { @@ -15591,9 +15511,8 @@ public enum UpdateVoiceConnectorOutputError: Swift.Error, Swift.Equatable { extension UpdateVoiceConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVoiceConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceConnector = output.voiceConnector } else { @@ -15735,9 +15654,8 @@ public enum UpdateVoiceProfileDomainOutputError: Swift.Error, Swift.Equatable { extension UpdateVoiceProfileDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVoiceProfileDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceProfileDomain = output.voiceProfileDomain } else { @@ -15872,9 +15790,8 @@ public enum UpdateVoiceProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateVoiceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVoiceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.voiceProfile = output.voiceProfile } else { @@ -16078,9 +15995,8 @@ public enum ValidateE911AddressOutputError: Swift.Error, Swift.Equatable { extension ValidateE911AddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateE911AddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address self.addressExternalId = output.addressExternalId diff --git a/Sources/Services/AWSCleanRooms/CleanRoomsClient.swift b/Sources/Services/AWSCleanRooms/CleanRoomsClient.swift index 3767c252281..b8e19db5564 100644 --- a/Sources/Services/AWSCleanRooms/CleanRoomsClient.swift +++ b/Sources/Services/AWSCleanRooms/CleanRoomsClient.swift @@ -208,6 +208,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCollaboration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfiguredTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfiguredTableAnalysisRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfiguredTableAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCollaboration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfiguredTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +470,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -482,6 +490,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfiguredTableAnalysisRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -494,7 +503,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -514,6 +523,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfiguredTableAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -526,7 +536,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -546,6 +556,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -558,7 +569,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -578,6 +589,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -590,7 +602,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -610,6 +622,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCollaboration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -622,7 +635,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -642,6 +655,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfiguredTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -654,7 +668,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -674,6 +688,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfiguredTableAnalysisRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -686,7 +701,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -706,6 +721,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfiguredTableAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -718,7 +734,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -738,6 +754,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +767,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +787,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProtectedQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -782,7 +800,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -802,6 +820,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +833,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +853,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchemaAnalysisRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -846,7 +866,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -866,6 +886,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCollaborations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +900,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +920,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfiguredTableAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +934,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +954,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfiguredTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -945,7 +968,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -965,6 +988,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -978,7 +1002,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1022,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMemberships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1011,7 +1036,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1031,6 +1056,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProtectedQueries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1044,7 +1070,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1064,6 +1090,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1077,7 +1104,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1097,6 +1124,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1109,7 +1137,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1129,6 +1157,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startProtectedQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1144,7 +1173,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1164,6 +1193,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1179,7 +1209,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1199,6 +1229,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1212,7 +1243,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1232,6 +1263,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCollaboration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1247,7 +1279,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1267,6 +1299,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfiguredTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1282,7 +1315,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1302,6 +1335,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfiguredTableAnalysisRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1317,7 +1351,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1337,6 +1371,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfiguredTableAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1352,7 +1387,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1372,6 +1407,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1387,7 +1423,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1407,6 +1443,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cleanrooms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProtectedQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1422,7 +1459,7 @@ extension CleanRoomsClient: CleanRoomsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCleanRooms/models/Models.swift b/Sources/Services/AWSCleanRooms/models/Models.swift index 584085c5db2..f4f4bd6bfff 100644 --- a/Sources/Services/AWSCleanRooms/models/Models.swift +++ b/Sources/Services/AWSCleanRooms/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// Caller does not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -895,9 +894,8 @@ public enum BatchGetSchemaOutputError: Swift.Error, Swift.Equatable { extension BatchGetSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.schemas = output.schemas @@ -2079,9 +2077,8 @@ extension CleanRoomsClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -2101,7 +2098,7 @@ extension ConflictException { } /// Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2399,9 +2396,8 @@ public enum CreateCollaborationOutputError: Swift.Error, Swift.Equatable { extension CreateCollaborationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCollaborationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collaboration = output.collaboration } else { @@ -2542,9 +2538,8 @@ public enum CreateConfiguredTableAnalysisRuleOutputError: Swift.Error, Swift.Equ extension CreateConfiguredTableAnalysisRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfiguredTableAnalysisRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisRule = output.analysisRule } else { @@ -2736,9 +2731,8 @@ public enum CreateConfiguredTableAssociationOutputError: Swift.Error, Swift.Equa extension CreateConfiguredTableAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfiguredTableAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuredTableAssociation = output.configuredTableAssociation } else { @@ -2947,9 +2941,8 @@ public enum CreateConfiguredTableOutputError: Swift.Error, Swift.Equatable { extension CreateConfiguredTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfiguredTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuredTable = output.configuredTable } else { @@ -3108,9 +3101,8 @@ public enum CreateMembershipOutputError: Swift.Error, Swift.Equatable { extension CreateMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.membership = output.membership } else { @@ -3770,9 +3762,8 @@ public enum GetCollaborationOutputError: Swift.Error, Swift.Equatable { extension GetCollaborationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCollaborationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collaboration = output.collaboration } else { @@ -3881,9 +3872,8 @@ public enum GetConfiguredTableAnalysisRuleOutputError: Swift.Error, Swift.Equata extension GetConfiguredTableAnalysisRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfiguredTableAnalysisRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisRule = output.analysisRule } else { @@ -3992,9 +3982,8 @@ public enum GetConfiguredTableAssociationOutputError: Swift.Error, Swift.Equatab extension GetConfiguredTableAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfiguredTableAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuredTableAssociation = output.configuredTableAssociation } else { @@ -4095,9 +4084,8 @@ public enum GetConfiguredTableOutputError: Swift.Error, Swift.Equatable { extension GetConfiguredTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfiguredTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuredTable = output.configuredTable } else { @@ -4198,9 +4186,8 @@ public enum GetMembershipOutputError: Swift.Error, Swift.Equatable { extension GetMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.membership = output.membership } else { @@ -4309,9 +4296,8 @@ public enum GetProtectedQueryOutputError: Swift.Error, Swift.Equatable { extension GetProtectedQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProtectedQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protectedQuery = output.protectedQuery } else { @@ -4428,9 +4414,8 @@ public enum GetSchemaAnalysisRuleOutputError: Swift.Error, Swift.Equatable { extension GetSchemaAnalysisRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSchemaAnalysisRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisRule = output.analysisRule } else { @@ -4539,9 +4524,8 @@ public enum GetSchemaOutputError: Swift.Error, Swift.Equatable { extension GetSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schema = output.schema } else { @@ -4628,9 +4612,8 @@ extension CleanRoomsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4644,7 +4627,7 @@ extension InternalServerException { } /// Unexpected error during processing of request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4793,9 +4776,8 @@ public enum ListCollaborationsOutputError: Swift.Error, Swift.Equatable { extension ListCollaborationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCollaborationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collaborationList = output.collaborationList self.nextToken = output.nextToken @@ -4940,9 +4922,8 @@ public enum ListConfiguredTableAssociationsOutputError: Swift.Error, Swift.Equat extension ListConfiguredTableAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfiguredTableAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuredTableAssociationSummaries = output.configuredTableAssociationSummaries self.nextToken = output.nextToken @@ -5077,9 +5058,8 @@ public enum ListConfiguredTablesOutputError: Swift.Error, Swift.Equatable { extension ListConfiguredTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfiguredTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuredTableSummaries = output.configuredTableSummaries self.nextToken = output.nextToken @@ -5224,9 +5204,8 @@ public enum ListMembersOutputError: Swift.Error, Swift.Equatable { extension ListMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberSummaries = output.memberSummaries self.nextToken = output.nextToken @@ -5369,9 +5348,8 @@ public enum ListMembershipsOutputError: Swift.Error, Swift.Equatable { extension ListMembershipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMembershipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.membershipSummaries = output.membershipSummaries self.nextToken = output.nextToken @@ -5524,9 +5502,8 @@ public enum ListProtectedQueriesOutputError: Swift.Error, Swift.Equatable { extension ListProtectedQueriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProtectedQueriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.protectedQueries = output.protectedQueries @@ -5679,9 +5656,8 @@ public enum ListSchemasOutputError: Swift.Error, Swift.Equatable { extension ListSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemaSummaries = output.schemaSummaries @@ -5795,9 +5771,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7159,9 +7134,8 @@ extension CleanRoomsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -7179,7 +7153,7 @@ extension ResourceNotFoundException { } /// Request references a resource which does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7725,9 +7699,8 @@ extension CleanRoomsClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaName = output.quotaName @@ -7745,7 +7718,7 @@ extension ServiceQuotaExceededException { } /// Request denied because service quota has been exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7919,9 +7892,8 @@ public enum StartProtectedQueryOutputError: Swift.Error, Swift.Equatable { extension StartProtectedQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartProtectedQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protectedQuery = output.protectedQuery } else { @@ -8129,9 +8101,8 @@ extension CleanRoomsClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8145,7 +8116,7 @@ extension ThrottlingException { } /// Request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8363,9 +8334,8 @@ public enum UpdateCollaborationOutputError: Swift.Error, Swift.Equatable { extension UpdateCollaborationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCollaborationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collaboration = output.collaboration } else { @@ -8501,9 +8471,8 @@ public enum UpdateConfiguredTableAnalysisRuleOutputError: Swift.Error, Swift.Equ extension UpdateConfiguredTableAnalysisRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConfiguredTableAnalysisRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisRule = output.analysisRule } else { @@ -8650,9 +8619,8 @@ public enum UpdateConfiguredTableAssociationOutputError: Swift.Error, Swift.Equa extension UpdateConfiguredTableAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConfiguredTableAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuredTableAssociation = output.configuredTableAssociation } else { @@ -8791,9 +8759,8 @@ public enum UpdateConfiguredTableOutputError: Swift.Error, Swift.Equatable { extension UpdateConfiguredTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConfiguredTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuredTable = output.configuredTable } else { @@ -8920,9 +8887,8 @@ public enum UpdateMembershipOutputError: Swift.Error, Swift.Equatable { extension UpdateMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.membership = output.membership } else { @@ -9058,9 +9024,8 @@ public enum UpdateProtectedQueryOutputError: Swift.Error, Swift.Equatable { extension UpdateProtectedQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProtectedQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protectedQuery = output.protectedQuery } else { @@ -9100,9 +9065,8 @@ extension UpdateProtectedQueryOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -9120,7 +9084,7 @@ extension ValidationException { } /// The input fails to satisfy the specified constraints. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCloud9/Cloud9Client.swift b/Sources/Services/AWSCloud9/Cloud9Client.swift index b3c468d7c46..dd04c591c02 100644 --- a/Sources/Services/AWSCloud9/Cloud9Client.swift +++ b/Sources/Services/AWSCloud9/Cloud9Client.swift @@ -208,6 +208,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironmentEC2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironmentMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironmentMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEnvironmentMemberships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEnvironmentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension Cloud9Client: Cloud9ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloud9") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironmentMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension Cloud9Client: Cloud9ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloud9/models/Models.swift b/Sources/Services/AWSCloud9/models/Models.swift index 4a1ae5e7a1a..a6e7aafe0b7 100644 --- a/Sources/Services/AWSCloud9/models/Models.swift +++ b/Sources/Services/AWSCloud9/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.className = output.className self.code = output.code @@ -24,7 +23,7 @@ extension BadRequestException { } /// The target request is invalid. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -74,9 +73,8 @@ extension BadRequestExceptionBody: Swift.Decodable { extension ConcurrentAccessException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentAccessExceptionBody = try responseDecoder.decode(responseBody: data) self.className = output.className self.code = output.code @@ -94,7 +92,7 @@ extension ConcurrentAccessException { } /// A concurrent access issue occurred. -public struct ConcurrentAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -144,9 +142,8 @@ extension ConcurrentAccessExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.className = output.className self.code = output.code @@ -164,7 +161,7 @@ extension ConflictException { } /// A conflict occurred. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -481,9 +478,8 @@ public enum CreateEnvironmentEC2OutputError: Swift.Error, Swift.Equatable { extension CreateEnvironmentEC2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentEC2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentId = output.environmentId } else { @@ -634,9 +630,8 @@ public enum CreateEnvironmentMembershipOutputError: Swift.Error, Swift.Equatable extension CreateEnvironmentMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.membership = output.membership } else { @@ -1023,9 +1018,8 @@ public enum DescribeEnvironmentMembershipsOutputError: Swift.Error, Swift.Equata extension DescribeEnvironmentMembershipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEnvironmentMembershipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberships = output.memberships self.nextToken = output.nextToken @@ -1165,9 +1159,8 @@ public enum DescribeEnvironmentStatusOutputError: Swift.Error, Swift.Equatable { extension DescribeEnvironmentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEnvironmentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.status = output.status @@ -1326,9 +1319,8 @@ public enum DescribeEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension DescribeEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environments = output.environments } else { @@ -1793,9 +1785,8 @@ extension Cloud9ClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.className = output.className self.code = output.code @@ -1813,7 +1804,7 @@ extension ForbiddenException { } /// An access permissions issue occurred. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1863,9 +1854,8 @@ extension ForbiddenExceptionBody: Swift.Decodable { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.className = output.className self.code = output.code @@ -1883,7 +1873,7 @@ extension InternalServerErrorException { } /// An internal server error occurred. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1933,9 +1923,8 @@ extension InternalServerErrorExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.className = output.className self.code = output.code @@ -1953,7 +1942,7 @@ extension LimitExceededException { } /// A service limit was exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2096,9 +2085,8 @@ public enum ListEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentIds = output.environmentIds self.nextToken = output.nextToken @@ -2235,9 +2223,8 @@ extension ListTagsForResourceOutputResponse: Swift.CustomDebugStringConvertible extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2408,9 +2395,8 @@ extension Cloud9ClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.className = output.className self.code = output.code @@ -2428,7 +2414,7 @@ extension NotFoundException { } /// The target resource cannot be found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2682,9 +2668,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.className = output.className self.code = output.code @@ -2702,7 +2687,7 @@ extension TooManyRequestsException { } /// Too many service requests were made over the given time period. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3076,9 +3061,8 @@ public enum UpdateEnvironmentMembershipOutputError: Swift.Error, Swift.Equatable extension UpdateEnvironmentMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.membership = output.membership } else { diff --git a/Sources/Services/AWSCloudControl/CloudControlClient.swift b/Sources/Services/AWSCloudControl/CloudControlClient.swift index 0f995e07e62..526be906891 100644 --- a/Sources/Services/AWSCloudControl/CloudControlClient.swift +++ b/Sources/Services/AWSCloudControl/CloudControlClient.swift @@ -208,6 +208,7 @@ extension CloudControlClient: CloudControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudcontrolapi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelResourceRequest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CloudControlClient: CloudControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CloudControlClient: CloudControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudcontrolapi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResource") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -268,7 +270,7 @@ extension CloudControlClient: CloudControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension CloudControlClient: CloudControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudcontrolapi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResource") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -312,7 +315,7 @@ extension CloudControlClient: CloudControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -332,6 +335,7 @@ extension CloudControlClient: CloudControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudcontrolapi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -348,7 +352,7 @@ extension CloudControlClient: CloudControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +372,7 @@ extension CloudControlClient: CloudControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudcontrolapi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceRequestStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +389,7 @@ extension CloudControlClient: CloudControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +409,7 @@ extension CloudControlClient: CloudControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudcontrolapi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +426,7 @@ extension CloudControlClient: CloudControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +446,7 @@ extension CloudControlClient: CloudControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudcontrolapi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +463,7 @@ extension CloudControlClient: CloudControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +483,7 @@ extension CloudControlClient: CloudControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudcontrolapi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResource") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -500,7 +508,7 @@ extension CloudControlClient: CloudControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudControl/models/Models.swift b/Sources/Services/AWSCloudControl/models/Models.swift index 11db366682b..a98b420d5b5 100644 --- a/Sources/Services/AWSCloudControl/models/Models.swift +++ b/Sources/Services/AWSCloudControl/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AlreadyExistsException { } /// The resource with the name requested already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -128,9 +127,8 @@ public enum CancelResourceRequestOutputError: Swift.Error, Swift.Equatable { extension CancelResourceRequestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelResourceRequestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.progressEvent = output.progressEvent } else { @@ -169,9 +167,8 @@ extension CancelResourceRequestOutputResponseBody: Swift.Decodable { extension ClientTokenConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientTokenConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -185,7 +182,7 @@ extension ClientTokenConflictException { } /// The specified client token has already been used in another resource request. It's best practice for client tokens to be unique for each resource operation request. However, client token expire after 36 hours. -public struct ClientTokenConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientTokenConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -221,9 +218,8 @@ extension ClientTokenConflictExceptionBody: Swift.Decodable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -237,7 +233,7 @@ extension ConcurrentModificationException { } /// The resource is currently being modified by another operation. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -273,9 +269,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConcurrentOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -289,7 +284,7 @@ extension ConcurrentOperationException { } /// Another resource operation is currently being performed on this resource. -public struct ConcurrentOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -492,9 +487,8 @@ public enum CreateResourceOutputError: Swift.Error, Swift.Equatable { extension CreateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.progressEvent = output.progressEvent } else { @@ -688,9 +682,8 @@ public enum DeleteResourceOutputError: Swift.Error, Swift.Equatable { extension DeleteResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.progressEvent = output.progressEvent } else { @@ -729,9 +722,8 @@ extension DeleteResourceOutputResponseBody: Swift.Decodable { extension GeneralServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GeneralServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -745,7 +737,7 @@ extension GeneralServiceException { } /// The resource handler has returned that the downstream service generated an error that doesn't map to any other handler error code. -public struct GeneralServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GeneralServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -920,9 +912,8 @@ public enum GetResourceOutputError: Swift.Error, Swift.Equatable { extension GetResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceDescription = output.resourceDescription self.typeName = output.typeName @@ -1041,9 +1032,8 @@ public enum GetResourceRequestStatusOutputError: Swift.Error, Swift.Equatable { extension GetResourceRequestStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceRequestStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.progressEvent = output.progressEvent } else { @@ -1153,9 +1143,8 @@ extension CloudControlClientTypes { extension HandlerFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HandlerFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1169,7 +1158,7 @@ extension HandlerFailureException { } /// The resource handler has failed without a returning a more specific error code. This can include timeouts. -public struct HandlerFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HandlerFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1205,9 +1194,8 @@ extension HandlerFailureExceptionBody: Swift.Decodable { extension HandlerInternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HandlerInternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1221,7 +1209,7 @@ extension HandlerInternalFailureException { } /// The resource handler has returned that an unexpected error occurred within the resource handler. -public struct HandlerInternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HandlerInternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1257,9 +1245,8 @@ extension HandlerInternalFailureExceptionBody: Swift.Decodable { extension InvalidCredentialsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCredentialsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1273,7 +1260,7 @@ extension InvalidCredentialsException { } /// The resource handler has returned that the credentials provided by the user are invalid. -public struct InvalidCredentialsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCredentialsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1309,9 +1296,8 @@ extension InvalidCredentialsExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1325,7 +1311,7 @@ extension InvalidRequestException { } /// The resource handler has returned that invalid input from the user has generated a generic exception. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1452,9 +1438,8 @@ public enum ListResourceRequestsOutputError: Swift.Error, Swift.Equatable { extension ListResourceRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceRequestStatusSummaries = output.resourceRequestStatusSummaries @@ -1679,9 +1664,8 @@ public enum ListResourcesOutputError: Swift.Error, Swift.Equatable { extension ListResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceDescriptions = output.resourceDescriptions @@ -1749,9 +1733,8 @@ extension ListResourcesOutputResponseBody: Swift.Decodable { extension NetworkFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NetworkFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1765,7 +1748,7 @@ extension NetworkFailureException { } /// The resource handler has returned that the request couldn't be completed due to networking issues, such as a failure to receive a response from the server. -public struct NetworkFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NetworkFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1801,9 +1784,8 @@ extension NetworkFailureExceptionBody: Swift.Decodable { extension NotStabilizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotStabilizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1817,7 +1799,7 @@ extension NotStabilizedException { } /// The resource handler has returned that the downstream resource failed to complete all of its ready-state checks. -public struct NotStabilizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotStabilizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1853,9 +1835,8 @@ extension NotStabilizedExceptionBody: Swift.Decodable { extension NotUpdatableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotUpdatableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1869,7 +1850,7 @@ extension NotUpdatableException { } /// One or more properties included in this resource operation are defined as create-only, and therefore can't be updated. -public struct NotUpdatableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotUpdatableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1984,9 +1965,8 @@ extension CloudControlClientTypes { extension PrivateTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PrivateTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2000,7 +1980,7 @@ extension PrivateTypeException { } /// Cloud Control API hasn't received a valid response from the resource handler, due to a configuration error. This includes issues such as the resource handler returning an invalid response, or timing out. -public struct PrivateTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PrivateTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2178,9 +2158,8 @@ extension CloudControlClientTypes { extension RequestTokenNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestTokenNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2194,7 +2173,7 @@ extension RequestTokenNotFoundException { } /// A resource operation with the specified request token can't be found. -public struct RequestTokenNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestTokenNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2230,9 +2209,8 @@ extension RequestTokenNotFoundExceptionBody: Swift.Decodable { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2246,7 +2224,7 @@ extension ResourceConflictException { } /// The resource is temporarily unavailable to be acted upon. For example, if the resource is currently undergoing an operation and can't be acted upon until that operation is finished. -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2332,9 +2310,8 @@ extension CloudControlClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2348,7 +2325,7 @@ extension ResourceNotFoundException { } /// A resource with the specified identifier can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2465,9 +2442,8 @@ extension CloudControlClientTypes { extension ServiceInternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceInternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2481,7 +2457,7 @@ extension ServiceInternalErrorException { } /// The resource handler has returned that the downstream service returned an internal error, typically with a 5XX HTTP status code. -public struct ServiceInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2517,9 +2493,8 @@ extension ServiceInternalErrorExceptionBody: Swift.Decodable { extension ServiceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2533,7 +2508,7 @@ extension ServiceLimitExceededException { } /// The resource handler has returned that a non-transient resource limit was reached on the service side. -public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2569,9 +2544,8 @@ extension ServiceLimitExceededExceptionBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2585,7 +2559,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2621,9 +2595,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TypeNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TypeNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2637,7 +2610,7 @@ extension TypeNotFoundException { } /// The specified extension doesn't exist in the CloudFormation registry. -public struct TypeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TypeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2673,9 +2646,8 @@ extension TypeNotFoundExceptionBody: Swift.Decodable { extension UnsupportedActionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedActionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2689,7 +2661,7 @@ extension UnsupportedActionException { } /// The specified resource doesn't support this resource operation. -public struct UnsupportedActionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedActionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2898,9 +2870,8 @@ public enum UpdateResourceOutputError: Swift.Error, Swift.Equatable { extension UpdateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.progressEvent = output.progressEvent } else { diff --git a/Sources/Services/AWSCloudDirectory/CloudDirectoryClient.swift b/Sources/Services/AWSCloudDirectory/CloudDirectoryClient.swift index 8cf57e68081..cb2517f2fad 100644 --- a/Sources/Services/AWSCloudDirectory/CloudDirectoryClient.swift +++ b/Sources/Services/AWSCloudDirectory/CloudDirectoryClient.swift @@ -208,6 +208,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addFacetToObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applySchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -284,6 +286,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -300,7 +303,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -320,6 +323,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +360,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachToIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -372,7 +377,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -392,6 +397,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachTypedLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -408,7 +414,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -428,6 +434,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchRead") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -444,7 +451,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +471,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchWrite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -480,7 +488,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -500,6 +508,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -516,7 +525,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -536,6 +545,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFacet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -552,7 +562,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -572,6 +582,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +599,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +619,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -624,7 +636,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -650,6 +662,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -665,7 +678,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -685,6 +698,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTypedLinkFacet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -701,7 +715,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -721,6 +735,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -734,7 +749,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -754,6 +769,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFacet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -770,7 +786,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -790,6 +806,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -806,7 +823,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -826,6 +843,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -839,7 +857,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +877,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTypedLinkFacet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -875,7 +894,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -895,6 +914,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachFromIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -911,7 +931,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -931,6 +951,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -947,7 +968,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +988,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -983,7 +1005,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1003,6 +1025,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachTypedLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1019,7 +1042,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1039,6 +1062,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1085,7 +1110,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1105,6 +1130,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppliedSchemaVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1120,7 +1146,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1140,6 +1166,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1153,7 +1180,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1173,6 +1200,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFacet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1189,7 +1217,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1209,6 +1237,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLinkAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1225,7 +1254,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1245,6 +1274,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1261,7 +1291,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1281,6 +1311,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1297,7 +1328,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1317,6 +1348,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchemaAsJson") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1330,7 +1362,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1350,6 +1382,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTypedLinkFacetInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1366,7 +1399,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1386,6 +1419,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppliedSchemaArns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1401,7 +1435,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1421,6 +1455,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttachedIndices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1437,7 +1472,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1457,6 +1492,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevelopmentSchemaArns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1472,7 +1508,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1492,6 +1528,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDirectories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1507,7 +1544,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1527,6 +1564,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFacetAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1543,7 +1581,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1563,6 +1601,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFacetNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1579,7 +1618,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1599,6 +1638,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIncomingTypedLinks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1615,7 +1655,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1635,6 +1675,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1651,7 +1692,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1671,6 +1712,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listManagedSchemaArns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1686,7 +1728,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1706,6 +1748,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjectAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1722,7 +1765,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1742,6 +1785,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjectChildren") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1758,7 +1802,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1778,6 +1822,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjectParentPaths") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1794,7 +1839,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1814,6 +1859,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjectParents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1830,7 +1876,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1850,6 +1896,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjectPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1866,7 +1913,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1886,6 +1933,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOutgoingTypedLinks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1902,7 +1950,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1922,6 +1970,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicyAttachments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1938,7 +1987,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1958,6 +2007,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPublishedSchemaArns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1973,7 +2023,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1993,6 +2043,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2008,7 +2059,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2028,6 +2079,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTypedLinkFacetAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2044,7 +2096,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2064,6 +2116,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTypedLinkFacetNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2080,7 +2133,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2100,6 +2153,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "lookupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2116,7 +2170,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2136,6 +2190,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2152,7 +2207,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2172,6 +2227,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSchemaFromJson") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2188,7 +2244,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2208,6 +2264,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeFacetFromObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2224,7 +2281,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2244,6 +2301,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2259,7 +2317,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2279,6 +2337,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2294,7 +2353,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2320,6 +2379,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFacet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2336,7 +2396,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2356,6 +2416,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLinkAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2372,7 +2433,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2392,6 +2453,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateObjectAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2408,7 +2470,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2428,6 +2490,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2444,7 +2507,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2464,6 +2527,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTypedLinkFacet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2480,7 +2544,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2500,6 +2564,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "upgradeAppliedSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2515,7 +2580,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2535,6 +2600,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "clouddirectory") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "upgradePublishedSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2550,7 +2616,7 @@ extension CloudDirectoryClient: CloudDirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudDirectory/models/Models.swift b/Sources/Services/AWSCloudDirectory/models/Models.swift index bcfcf9fef1d..adf0b0027dc 100644 --- a/Sources/Services/AWSCloudDirectory/models/Models.swift +++ b/Sources/Services/AWSCloudDirectory/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access denied or directory not found. Either you don't have permissions for this directory or the directory does not exist. Try calling [ListDirectories] and check your permissions. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -305,9 +304,8 @@ public enum ApplySchemaOutputError: Swift.Error, Swift.Equatable { extension ApplySchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplySchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appliedSchemaArn = output.appliedSchemaArn self.directoryArn = output.directoryArn @@ -487,9 +485,8 @@ public enum AttachObjectOutputError: Swift.Error, Swift.Equatable { extension AttachObjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachObjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachedObjectIdentifier = output.attachedObjectIdentifier } else { @@ -772,9 +769,8 @@ public enum AttachToIndexOutputError: Swift.Error, Swift.Equatable { extension AttachToIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachToIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachedObjectIdentifier = output.attachedObjectIdentifier } else { @@ -967,9 +963,8 @@ public enum AttachTypedLinkOutputError: Swift.Error, Swift.Equatable { extension AttachTypedLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachTypedLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.typedLinkSpecifier = output.typedLinkSpecifier } else { @@ -4312,9 +4307,8 @@ public enum BatchReadOutputError: Swift.Error, Swift.Equatable { extension BatchReadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchReadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.responses = output.responses } else { @@ -4767,9 +4761,8 @@ extension CloudDirectoryClientTypes { extension BatchWriteException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchWriteExceptionBody = try responseDecoder.decode(responseBody: data) self.index = output.index self.message = output.message @@ -4787,7 +4780,7 @@ extension BatchWriteException { } /// A BatchWrite exception has occurred. -public struct BatchWriteException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchWriteException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5378,9 +5371,8 @@ public enum BatchWriteOutputError: Swift.Error, Swift.Equatable { extension BatchWriteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchWriteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.responses = output.responses } else { @@ -5428,9 +5420,8 @@ extension BatchWriteOutputResponseBody: Swift.Decodable { extension CannotListParentOfRootException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CannotListParentOfRootExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5444,7 +5435,7 @@ extension CannotListParentOfRootException { } /// Cannot list the parents of a [Directory] root. -public struct CannotListParentOfRootException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CannotListParentOfRootException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5611,9 +5602,8 @@ public enum CreateDirectoryOutputError: Swift.Error, Swift.Equatable { extension CreateDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appliedSchemaArn = output.appliedSchemaArn self.directoryArn = output.directoryArn @@ -6018,9 +6008,8 @@ public enum CreateIndexOutputError: Swift.Error, Swift.Equatable { extension CreateIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.objectIdentifier = output.objectIdentifier } else { @@ -6224,9 +6213,8 @@ public enum CreateObjectOutputError: Swift.Error, Swift.Equatable { extension CreateObjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateObjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.objectIdentifier = output.objectIdentifier } else { @@ -6347,9 +6335,8 @@ public enum CreateSchemaOutputError: Swift.Error, Swift.Equatable { extension CreateSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schemaArn = output.schemaArn } else { @@ -6577,9 +6564,8 @@ public enum DeleteDirectoryOutputError: Swift.Error, Swift.Equatable { extension DeleteDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryArn = output.directoryArn } else { @@ -6915,9 +6901,8 @@ public enum DeleteSchemaOutputError: Swift.Error, Swift.Equatable { extension DeleteSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schemaArn = output.schemaArn } else { @@ -7181,9 +7166,8 @@ public enum DetachFromIndexOutputError: Swift.Error, Swift.Equatable { extension DetachFromIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachFromIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detachedObjectIdentifier = output.detachedObjectIdentifier } else { @@ -7336,9 +7320,8 @@ public enum DetachObjectOutputError: Swift.Error, Swift.Equatable { extension DetachObjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachObjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detachedObjectIdentifier = output.detachedObjectIdentifier } else { @@ -7677,9 +7660,8 @@ extension CloudDirectoryClientTypes { extension DirectoryAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7693,7 +7675,7 @@ extension DirectoryAlreadyExistsException { } /// Indicates that a [Directory] could not be created due to a naming conflict. Choose a different name and try again. -public struct DirectoryAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7729,9 +7711,8 @@ extension DirectoryAlreadyExistsExceptionBody: Swift.Decodable { extension DirectoryDeletedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryDeletedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7745,7 +7726,7 @@ extension DirectoryDeletedException { } /// A directory that has been deleted and to which access has been attempted. Note: The requested resource will eventually cease to exist. -public struct DirectoryDeletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryDeletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7781,9 +7762,8 @@ extension DirectoryDeletedExceptionBody: Swift.Decodable { extension DirectoryNotDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryNotDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7797,7 +7777,7 @@ extension DirectoryNotDisabledException { } /// An operation can only operate on a disabled directory. -public struct DirectoryNotDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryNotDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7833,9 +7813,8 @@ extension DirectoryNotDisabledExceptionBody: Swift.Decodable { extension DirectoryNotEnabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryNotEnabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7849,7 +7828,7 @@ extension DirectoryNotEnabledException { } /// Operations are only permitted on enabled directories. -public struct DirectoryNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7994,9 +7973,8 @@ public enum DisableDirectoryOutputError: Swift.Error, Swift.Equatable { extension DisableDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryArn = output.directoryArn } else { @@ -8110,9 +8088,8 @@ public enum EnableDirectoryOutputError: Swift.Error, Swift.Equatable { extension EnableDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryArn = output.directoryArn } else { @@ -8207,9 +8184,8 @@ extension CloudDirectoryClientTypes { extension FacetAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FacetAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8223,7 +8199,7 @@ extension FacetAlreadyExistsException { } /// A facet with the same name already exists. -public struct FacetAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FacetAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8539,9 +8515,8 @@ extension CloudDirectoryClientTypes { extension FacetInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FacetInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8555,7 +8530,7 @@ extension FacetInUseException { } /// Occurs when deleting a facet that contains an attribute that is a target to an attribute reference in a different facet. -public struct FacetInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FacetInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8591,9 +8566,8 @@ extension FacetInUseExceptionBody: Swift.Decodable { extension FacetNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FacetNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8607,7 +8581,7 @@ extension FacetNotFoundException { } /// The specified [Facet] could not be found. -public struct FacetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FacetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8675,9 +8649,8 @@ extension CloudDirectoryClientTypes { extension FacetValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FacetValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8691,7 +8664,7 @@ extension FacetValidationException { } /// The [Facet] that you provided was not well formed or could not be validated with the schema. -public struct FacetValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FacetValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8809,9 +8782,8 @@ public enum GetAppliedSchemaVersionOutputError: Swift.Error, Swift.Equatable { extension GetAppliedSchemaVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppliedSchemaVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appliedSchemaArn = output.appliedSchemaArn } else { @@ -8920,9 +8892,8 @@ public enum GetDirectoryOutputError: Swift.Error, Swift.Equatable { extension GetDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directory = output.directory } else { @@ -9061,9 +9032,8 @@ public enum GetFacetOutputError: Swift.Error, Swift.Equatable { extension GetFacetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFacetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.facet = output.facet } else { @@ -9240,9 +9210,8 @@ public enum GetLinkAttributesOutputError: Swift.Error, Swift.Equatable { extension GetLinkAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLinkAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -9436,9 +9405,8 @@ public enum GetObjectAttributesOutputError: Swift.Error, Swift.Equatable { extension GetObjectAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetObjectAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -9592,9 +9560,8 @@ public enum GetObjectInformationOutputError: Swift.Error, Swift.Equatable { extension GetObjectInformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetObjectInformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.objectIdentifier = output.objectIdentifier self.schemaFacets = output.schemaFacets @@ -9724,9 +9691,8 @@ public enum GetSchemaAsJsonOutputError: Swift.Error, Swift.Equatable { extension GetSchemaAsJsonOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSchemaAsJsonOutputResponseBody = try responseDecoder.decode(responseBody: data) self.document = output.document self.name = output.name @@ -9876,9 +9842,8 @@ public enum GetTypedLinkFacetInformationOutputError: Swift.Error, Swift.Equatabl extension GetTypedLinkFacetInformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTypedLinkFacetInformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityAttributeOrder = output.identityAttributeOrder } else { @@ -9926,9 +9891,8 @@ extension GetTypedLinkFacetInformationOutputResponseBody: Swift.Decodable { extension IncompatibleSchemaException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncompatibleSchemaExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9942,7 +9906,7 @@ extension IncompatibleSchemaException { } /// Indicates a failure occurred while performing a check for backward compatibility between the specified schema and the schema that is currently applied to the directory. -public struct IncompatibleSchemaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleSchemaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10035,9 +9999,8 @@ extension CloudDirectoryClientTypes { extension IndexedAttributeMissingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IndexedAttributeMissingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10051,7 +10014,7 @@ extension IndexedAttributeMissingException { } /// An object has been attempted to be attached to an object that does not have the appropriate attribute value. -public struct IndexedAttributeMissingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IndexedAttributeMissingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10087,9 +10050,8 @@ extension IndexedAttributeMissingExceptionBody: Swift.Decodable { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10103,7 +10065,7 @@ extension InternalServiceException { } /// Indicates a problem that must be resolved by Amazon Web Services. This might be a transient error in which case you can retry your request until it succeeds. Otherwise, go to the [AWS Service Health Dashboard](http://status.aws.amazon.com/) site to see if there are any operational issues with the service. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10139,9 +10101,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10155,7 +10116,7 @@ extension InvalidArnException { } /// Indicates that the provided ARN value is not valid. -public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10191,9 +10152,8 @@ extension InvalidArnExceptionBody: Swift.Decodable { extension InvalidAttachmentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAttachmentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10207,7 +10167,7 @@ extension InvalidAttachmentException { } /// Indicates that an attempt to make an attachment was invalid. For example, attaching two nodes with a link type that is not applicable to the nodes or attempting to apply a schema to a directory a second time. -public struct InvalidAttachmentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAttachmentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10243,9 +10203,8 @@ extension InvalidAttachmentExceptionBody: Swift.Decodable { extension InvalidFacetUpdateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFacetUpdateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10259,7 +10218,7 @@ extension InvalidFacetUpdateException { } /// An attempt to modify a [Facet] resulted in an invalid schema exception. -public struct InvalidFacetUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFacetUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10295,9 +10254,8 @@ extension InvalidFacetUpdateExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10311,7 +10269,7 @@ extension InvalidNextTokenException { } /// Indicates that the NextToken value is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10347,9 +10305,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidRuleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRuleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10363,7 +10320,7 @@ extension InvalidRuleException { } /// Occurs when any of the rule parameter keys or values are invalid. -public struct InvalidRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10399,9 +10356,8 @@ extension InvalidRuleExceptionBody: Swift.Decodable { extension InvalidSchemaDocException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSchemaDocExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10415,7 +10371,7 @@ extension InvalidSchemaDocException { } /// Indicates that the provided SchemaDoc value is not valid. -public struct InvalidSchemaDocException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSchemaDocException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10451,9 +10407,8 @@ extension InvalidSchemaDocExceptionBody: Swift.Decodable { extension InvalidTaggingRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTaggingRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10467,7 +10422,7 @@ extension InvalidTaggingRequestException { } /// Can occur for multiple reasons such as when you tag a resource that doesn’t exist or if you specify a higher number of tags for a resource than the allowed limit. Allowed limit is 50 tags per resource. -public struct InvalidTaggingRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTaggingRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10503,9 +10458,8 @@ extension InvalidTaggingRequestExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10519,7 +10473,7 @@ extension LimitExceededException { } /// Indicates that limits are exceeded. See [Limits](https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) for more information. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10645,9 +10599,8 @@ extension CloudDirectoryClientTypes { extension LinkNameAlreadyInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LinkNameAlreadyInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10661,7 +10614,7 @@ extension LinkNameAlreadyInUseException { } /// Indicates that a link could not be created due to a naming conflict. Choose a different name and then try again. -public struct LinkNameAlreadyInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LinkNameAlreadyInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10817,9 +10770,8 @@ public enum ListAppliedSchemaArnsOutputError: Swift.Error, Swift.Equatable { extension ListAppliedSchemaArnsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppliedSchemaArnsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemaArns = output.schemaArns @@ -11007,9 +10959,8 @@ public enum ListAttachedIndicesOutputError: Swift.Error, Swift.Equatable { extension ListAttachedIndicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttachedIndicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexAttachments = output.indexAttachments self.nextToken = output.nextToken @@ -11162,9 +11113,8 @@ public enum ListDevelopmentSchemaArnsOutputError: Swift.Error, Swift.Equatable { extension ListDevelopmentSchemaArnsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevelopmentSchemaArnsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemaArns = output.schemaArns @@ -11327,9 +11277,8 @@ public enum ListDirectoriesOutputError: Swift.Error, Swift.Equatable { extension ListDirectoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDirectoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directories = output.directories self.nextToken = output.nextToken @@ -11513,9 +11462,8 @@ public enum ListFacetAttributesOutputError: Swift.Error, Swift.Equatable { extension ListFacetAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFacetAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.nextToken = output.nextToken @@ -11683,9 +11631,8 @@ public enum ListFacetNamesOutputError: Swift.Error, Swift.Equatable { extension ListFacetNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFacetNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.facetNames = output.facetNames self.nextToken = output.nextToken @@ -11918,9 +11865,8 @@ public enum ListIncomingTypedLinksOutputError: Swift.Error, Swift.Equatable { extension ListIncomingTypedLinksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIncomingTypedLinksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.linkSpecifiers = output.linkSpecifiers self.nextToken = output.nextToken @@ -12138,9 +12084,8 @@ public enum ListIndexOutputError: Swift.Error, Swift.Equatable { extension ListIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexAttachments = output.indexAttachments self.nextToken = output.nextToken @@ -12301,9 +12246,8 @@ public enum ListManagedSchemaArnsOutputError: Swift.Error, Swift.Equatable { extension ListManagedSchemaArnsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListManagedSchemaArnsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemaArns = output.schemaArns @@ -12507,9 +12451,8 @@ public enum ListObjectAttributesOutputError: Swift.Error, Swift.Equatable { extension ListObjectAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.nextToken = output.nextToken @@ -12701,9 +12644,8 @@ public enum ListObjectChildrenOutputError: Swift.Error, Swift.Equatable { extension ListObjectChildrenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectChildrenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.children = output.children self.nextToken = output.nextToken @@ -12886,9 +12828,8 @@ public enum ListObjectParentPathsOutputError: Swift.Error, Swift.Equatable { extension ListObjectParentPathsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectParentPathsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pathToObjectIdentifiersList = output.pathToObjectIdentifiersList @@ -13092,9 +13033,8 @@ public enum ListObjectParentsOutputError: Swift.Error, Swift.Equatable { extension ListObjectParentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectParentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parentLinks = output.parentLinks @@ -13303,9 +13243,8 @@ public enum ListObjectPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListObjectPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachedPolicyIds = output.attachedPolicyIds self.nextToken = output.nextToken @@ -13538,9 +13477,8 @@ public enum ListOutgoingTypedLinksOutputError: Swift.Error, Swift.Equatable { extension ListOutgoingTypedLinksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOutgoingTypedLinksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.typedLinkSpecifiers = output.typedLinkSpecifiers @@ -13732,9 +13670,8 @@ public enum ListPolicyAttachmentsOutputError: Swift.Error, Swift.Equatable { extension ListPolicyAttachmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPolicyAttachmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.objectIdentifiers = output.objectIdentifiers @@ -13899,9 +13836,8 @@ public enum ListPublishedSchemaArnsOutputError: Swift.Error, Swift.Equatable { extension ListPublishedSchemaArnsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPublishedSchemaArnsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemaArns = output.schemaArns @@ -14067,9 +14003,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -14252,9 +14187,8 @@ public enum ListTypedLinkFacetAttributesOutputError: Swift.Error, Swift.Equatabl extension ListTypedLinkFacetAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTypedLinkFacetAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.nextToken = output.nextToken @@ -14422,9 +14356,8 @@ public enum ListTypedLinkFacetNamesOutputError: Swift.Error, Swift.Equatable { extension ListTypedLinkFacetNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTypedLinkFacetNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.facetNames = output.facetNames self.nextToken = output.nextToken @@ -14607,9 +14540,8 @@ public enum LookupPolicyOutputError: Swift.Error, Swift.Equatable { extension LookupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LookupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.policyToPathList = output.policyToPathList @@ -14667,9 +14599,8 @@ extension LookupPolicyOutputResponseBody: Swift.Decodable { extension NotIndexException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotIndexExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14683,7 +14614,7 @@ extension NotIndexException { } /// Indicates that the requested operation can only operate on index objects. -public struct NotIndexException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotIndexException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14719,9 +14650,8 @@ extension NotIndexExceptionBody: Swift.Decodable { extension NotNodeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotNodeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14735,7 +14665,7 @@ extension NotNodeException { } /// Occurs when any invalid operations are performed on an object that is not a node, such as calling ListObjectChildren for a leaf node object. -public struct NotNodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotNodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14771,9 +14701,8 @@ extension NotNodeExceptionBody: Swift.Decodable { extension NotPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14787,7 +14716,7 @@ extension NotPolicyException { } /// Indicates that the requested operation can only operate on policy objects. -public struct NotPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14823,9 +14752,8 @@ extension NotPolicyExceptionBody: Swift.Decodable { extension ObjectAlreadyDetachedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ObjectAlreadyDetachedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14839,7 +14767,7 @@ extension ObjectAlreadyDetachedException { } /// Indicates that the object is not attached to the index. -public struct ObjectAlreadyDetachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ObjectAlreadyDetachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15055,9 +14983,8 @@ extension CloudDirectoryClientTypes { extension ObjectNotDetachedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ObjectNotDetachedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15071,7 +14998,7 @@ extension ObjectNotDetachedException { } /// Indicates that the requested operation cannot be completed because the object has not been detached from the tree. -public struct ObjectNotDetachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ObjectNotDetachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15478,9 +15405,8 @@ public enum PublishSchemaOutputError: Swift.Error, Swift.Equatable { extension PublishSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.publishedSchemaArn = output.publishedSchemaArn } else { @@ -15618,9 +15544,8 @@ public enum PutSchemaFromJsonOutputError: Swift.Error, Swift.Equatable { extension PutSchemaFromJsonOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSchemaFromJsonOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -15856,9 +15781,8 @@ extension CloudDirectoryClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15872,7 +15796,7 @@ extension ResourceNotFoundException { } /// The specified resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15908,9 +15832,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension RetryableConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryableConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15924,7 +15847,7 @@ extension RetryableConflictException { } /// Occurs when a conflict with a previous successful write is detected. For example, if a write operation occurs on an object and then an attempt is made to read the object using “SERIALIZABLE” consistency, this exception may result. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception. -public struct RetryableConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RetryableConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16055,9 +15978,8 @@ extension CloudDirectoryClientTypes { extension SchemaAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SchemaAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16071,7 +15993,7 @@ extension SchemaAlreadyExistsException { } /// Indicates that a schema could not be created due to a naming conflict. Please select a different name and then try again. -public struct SchemaAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SchemaAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16107,9 +16029,8 @@ extension SchemaAlreadyExistsExceptionBody: Swift.Decodable { extension SchemaAlreadyPublishedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SchemaAlreadyPublishedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16123,7 +16044,7 @@ extension SchemaAlreadyPublishedException { } /// Indicates that a schema is already published. -public struct SchemaAlreadyPublishedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SchemaAlreadyPublishedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16204,9 +16125,8 @@ extension CloudDirectoryClientTypes { extension StillContainsLinksException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StillContainsLinksExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16220,7 +16140,7 @@ extension StillContainsLinksException { } /// The object could not be deleted because links still exist. Remove the links and then try the operation again. -public struct StillContainsLinksException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StillContainsLinksException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16967,9 +16887,8 @@ extension CloudDirectoryClientTypes { extension UnsupportedIndexTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedIndexTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16983,7 +16902,7 @@ extension UnsupportedIndexTypeException { } /// Indicates that the requested index type is not supported. -public struct UnsupportedIndexTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedIndexTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17585,9 +17504,8 @@ public enum UpdateObjectAttributesOutputError: Swift.Error, Swift.Equatable { extension UpdateObjectAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateObjectAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.objectIdentifier = output.objectIdentifier } else { @@ -17723,9 +17641,8 @@ public enum UpdateSchemaOutputError: Swift.Error, Swift.Equatable { extension UpdateSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schemaArn = output.schemaArn } else { @@ -18040,9 +17957,8 @@ public enum UpgradeAppliedSchemaOutputError: Swift.Error, Swift.Equatable { extension UpgradeAppliedSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpgradeAppliedSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryArn = output.directoryArn self.upgradedSchemaArn = output.upgradedSchemaArn @@ -18215,9 +18131,8 @@ public enum UpgradePublishedSchemaOutputError: Swift.Error, Swift.Equatable { extension UpgradePublishedSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpgradePublishedSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.upgradedSchemaArn = output.upgradedSchemaArn } else { @@ -18256,9 +18171,8 @@ extension UpgradePublishedSchemaOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18272,7 +18186,7 @@ extension ValidationException { } /// Indicates that your request is malformed in some manner. See the exception message. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCloudFormation/CloudFormationClient.swift b/Sources/Services/AWSCloudFormation/CloudFormationClient.swift index fd5e27682a4..201a01b4645 100644 --- a/Sources/Services/AWSCloudFormation/CloudFormationClient.swift +++ b/Sources/Services/AWSCloudFormation/CloudFormationClient.swift @@ -204,6 +204,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDescribeTypeConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelUpdateStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "continueUpdateRollback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStackInstances") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -437,7 +444,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -457,6 +464,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStackSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -480,7 +488,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -500,6 +508,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -515,7 +524,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -535,6 +544,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -550,7 +560,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -570,6 +580,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +596,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +616,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStackInstances") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -628,7 +640,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStackSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -663,7 +676,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -683,6 +696,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -698,7 +712,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -718,6 +732,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -733,7 +748,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -753,6 +768,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +784,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +804,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChangeSetHooks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -803,7 +820,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -827,6 +844,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePublisher") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -842,7 +860,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -862,6 +880,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackDriftDetectionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -877,7 +896,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -897,6 +916,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +932,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +952,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -947,7 +968,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +988,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -982,7 +1004,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1002,6 +1024,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackResourceDrifts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1017,7 +1040,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1037,6 +1060,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1087,7 +1112,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1107,6 +1132,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackSetOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1122,7 +1148,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1142,6 +1168,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1184,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1177,6 +1204,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1192,7 +1220,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1212,6 +1240,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTypeRegistration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1227,7 +1256,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1247,6 +1276,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectStackDrift") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1262,7 +1292,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1282,6 +1312,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectStackResourceDrift") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1297,7 +1328,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1326,6 +1357,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectStackSetDrift") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1349,7 +1381,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1369,6 +1401,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "estimateTemplateCost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1384,7 +1417,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1404,6 +1437,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1419,7 +1453,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1439,6 +1473,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStackPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1454,7 +1489,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1474,6 +1509,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1489,7 +1525,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1509,6 +1545,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplateSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1524,7 +1561,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1544,6 +1581,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importStacksToStackSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1567,7 +1605,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1587,6 +1625,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChangeSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1602,7 +1641,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1622,6 +1661,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1637,7 +1677,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1657,6 +1697,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1672,7 +1713,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1692,6 +1733,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStackInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1707,7 +1749,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1727,6 +1769,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStackResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1742,7 +1785,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1762,6 +1805,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStackSetOperationResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1777,7 +1821,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1797,6 +1841,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStackSetOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1812,7 +1857,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1838,6 +1883,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStackSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1853,7 +1899,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1873,6 +1919,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1888,7 +1935,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1908,6 +1955,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTypeRegistrations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1923,7 +1971,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1943,6 +1991,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTypeVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1958,7 +2007,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1978,6 +2027,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1993,7 +2043,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2013,6 +2063,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2028,7 +2079,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2048,6 +2099,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "recordHandlerProgress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2063,7 +2115,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2083,6 +2135,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerPublisher") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2098,7 +2151,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2127,6 +2180,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2142,7 +2196,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2172,6 +2226,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rollbackStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2187,7 +2242,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2207,6 +2262,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setStackPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2222,7 +2278,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2242,6 +2298,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setTypeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2257,7 +2314,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2277,6 +2334,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setTypeDefaultVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2292,7 +2350,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2312,6 +2370,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "signalResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2327,7 +2386,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2347,6 +2406,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopStackSetOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2362,7 +2422,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2389,6 +2449,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2404,7 +2465,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2424,6 +2485,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2439,7 +2501,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2459,6 +2521,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStackInstances") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2482,7 +2545,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2502,6 +2565,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStackSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2525,7 +2589,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2545,6 +2609,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTerminationProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2560,7 +2625,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2580,6 +2645,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2595,7 +2661,7 @@ extension CloudFormationClient: CloudFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudFormation/models/Models.swift b/Sources/Services/AWSCloudFormation/models/Models.swift index 5c254fc34aa..e3b17b2c4fe 100644 --- a/Sources/Services/AWSCloudFormation/models/Models.swift +++ b/Sources/Services/AWSCloudFormation/models/Models.swift @@ -359,9 +359,8 @@ public enum ActivateTypeOutputError: Swift.Error, Swift.Equatable { extension ActivateTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivateTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -401,7 +400,7 @@ extension ActivateTypeOutputResponseBody: Swift.Decodable { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -416,7 +415,7 @@ extension AlreadyExistsException { } /// The resource with the name requested already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -647,9 +646,8 @@ public enum BatchDescribeTypeConfigurationsOutputError: Swift.Error, Swift.Equat extension BatchDescribeTypeConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDescribeTypeConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.typeConfigurations = output.typeConfigurations @@ -760,7 +758,7 @@ extension BatchDescribeTypeConfigurationsOutputResponseBody: Swift.Decodable { extension CFNRegistryException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -775,7 +773,7 @@ extension CFNRegistryException { } /// An error occurred during a CloudFormation registry operation. -public struct CFNRegistryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CFNRegistryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1339,7 +1337,7 @@ extension CloudFormationClientTypes { extension ChangeSetNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1354,7 +1352,7 @@ extension ChangeSetNotFoundException { } /// The specified change set name or ID doesn't exit. To view valid change sets for a stack, use the ListChangeSets operation. -public struct ChangeSetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChangeSetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2263,9 +2261,8 @@ public enum CreateChangeSetOutputError: Swift.Error, Swift.Equatable { extension CreateChangeSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChangeSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.stackId = output.stackId @@ -2947,9 +2944,8 @@ public enum CreateStackInstancesOutputError: Swift.Error, Swift.Equatable { extension CreateStackInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStackInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -3016,9 +3012,8 @@ public enum CreateStackOutputError: Swift.Error, Swift.Equatable { extension CreateStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackId = output.stackId } else { @@ -3403,9 +3398,8 @@ public enum CreateStackSetOutputError: Swift.Error, Swift.Equatable { extension CreateStackSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStackSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackSetId = output.stackSetId } else { @@ -3445,7 +3439,7 @@ extension CreateStackSetOutputResponseBody: Swift.Decodable { extension CreatedButModifiedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3460,7 +3454,7 @@ extension CreatedButModifiedException { } /// The specified resource exists, but has been changed. -public struct CreatedButModifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CreatedButModifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4002,9 +3996,8 @@ public enum DeleteStackInstancesOutputError: Swift.Error, Swift.Equatable { extension DeleteStackInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteStackInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -4502,9 +4495,8 @@ public enum DescribeAccountLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountLimits = output.accountLimits self.nextToken = output.nextToken @@ -4672,9 +4664,8 @@ public enum DescribeChangeSetHooksOutputError: Swift.Error, Swift.Equatable { extension DescribeChangeSetHooksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChangeSetHooksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeSetId = output.changeSetId self.changeSetName = output.changeSetName @@ -4893,9 +4884,8 @@ public enum DescribeChangeSetOutputError: Swift.Error, Swift.Equatable { extension DescribeChangeSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChangeSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capabilities = output.capabilities self.changeSetId = output.changeSetId @@ -5267,9 +5257,8 @@ public enum DescribePublisherOutputError: Swift.Error, Swift.Equatable { extension DescribePublisherOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePublisherOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProvider = output.identityProvider self.publisherId = output.publisherId @@ -5404,9 +5393,8 @@ public enum DescribeStackDriftDetectionStatusOutputError: Swift.Error, Swift.Equ extension DescribeStackDriftDetectionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackDriftDetectionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectionStatus = output.detectionStatus self.detectionStatusReason = output.detectionStatusReason @@ -5607,9 +5595,8 @@ public enum DescribeStackEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeStackEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stackEvents = output.stackEvents @@ -5785,9 +5772,8 @@ public enum DescribeStackInstanceOutputError: Swift.Error, Swift.Equatable { extension DescribeStackInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackInstance = output.stackInstance } else { @@ -5959,9 +5945,8 @@ public enum DescribeStackResourceDriftsOutputError: Swift.Error, Swift.Equatable extension DescribeStackResourceDriftsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackResourceDriftsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stackResourceDrifts = output.stackResourceDrifts @@ -6114,9 +6099,8 @@ public enum DescribeStackResourceOutputError: Swift.Error, Swift.Equatable { extension DescribeStackResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackResourceDetail = output.stackResourceDetail } else { @@ -6251,9 +6235,8 @@ public enum DescribeStackResourcesOutputError: Swift.Error, Swift.Equatable { extension DescribeStackResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackResources = output.stackResources } else { @@ -6468,9 +6451,8 @@ public enum DescribeStackSetOperationOutputError: Swift.Error, Swift.Equatable { extension DescribeStackSetOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackSetOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackSetOperation = output.stackSetOperation } else { @@ -6531,9 +6513,8 @@ public enum DescribeStackSetOutputError: Swift.Error, Swift.Equatable { extension DescribeStackSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackSet = output.stackSet } else { @@ -6667,9 +6648,8 @@ public enum DescribeStacksOutputError: Swift.Error, Swift.Equatable { extension DescribeStacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stacks = output.stacks @@ -6860,9 +6840,8 @@ public enum DescribeTypeOutputError: Swift.Error, Swift.Equatable { extension DescribeTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.autoUpdate = output.autoUpdate @@ -7281,9 +7260,8 @@ public enum DescribeTypeRegistrationOutputError: Swift.Error, Swift.Equatable { extension DescribeTypeRegistrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTypeRegistrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.progressStatus = output.progressStatus @@ -7455,9 +7433,8 @@ public enum DetectStackDriftOutputError: Swift.Error, Swift.Equatable { extension DetectStackDriftOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectStackDriftOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackDriftDetectionId = output.stackDriftDetectionId } else { @@ -7575,9 +7552,8 @@ public enum DetectStackResourceDriftOutputError: Swift.Error, Swift.Equatable { extension DetectStackResourceDriftOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectStackResourceDriftOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackResourceDrift = output.stackResourceDrift } else { @@ -7726,9 +7702,8 @@ public enum DetectStackSetDriftOutputError: Swift.Error, Swift.Equatable { extension DetectStackSetDriftOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectStackSetDriftOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -7916,9 +7891,8 @@ public enum EstimateTemplateCostOutputError: Swift.Error, Swift.Equatable { extension EstimateTemplateCostOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EstimateTemplateCostOutputResponseBody = try responseDecoder.decode(responseBody: data) self.url = output.url } else { @@ -8274,9 +8248,8 @@ public enum GetStackPolicyOutputError: Swift.Error, Swift.Equatable { extension GetStackPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStackPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackPolicyBody = output.stackPolicyBody } else { @@ -8413,9 +8386,8 @@ public enum GetTemplateOutputError: Swift.Error, Swift.Equatable { extension GetTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stagesAvailable = output.stagesAvailable self.templateBody = output.templateBody @@ -8598,9 +8570,8 @@ public enum GetTemplateSummaryOutputError: Swift.Error, Swift.Equatable { extension GetTemplateSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capabilities = output.capabilities self.capabilitiesReason = output.capabilitiesReason @@ -9253,9 +9224,8 @@ public enum ImportStacksToStackSetOutputError: Swift.Error, Swift.Equatable { extension ImportStacksToStackSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportStacksToStackSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -9295,7 +9265,7 @@ extension ImportStacksToStackSetOutputResponseBody: Swift.Decodable { extension InsufficientCapabilitiesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9310,7 +9280,7 @@ extension InsufficientCapabilitiesException { } /// The template contains resources with capabilities that weren't specified in the Capabilities parameter. -public struct InsufficientCapabilitiesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientCapabilitiesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9346,7 +9316,7 @@ extension InsufficientCapabilitiesExceptionBody: Swift.Decodable { extension InvalidChangeSetStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9361,7 +9331,7 @@ extension InvalidChangeSetStatusException { } /// The specified change set can't be used to update the stack. For example, the change set status might be CREATE_IN_PROGRESS, or the stack status might be UPDATE_IN_PROGRESS. -public struct InvalidChangeSetStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidChangeSetStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9397,7 +9367,7 @@ extension InvalidChangeSetStatusExceptionBody: Swift.Decodable { extension InvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9412,7 +9382,7 @@ extension InvalidOperationException { } /// The specified operation isn't valid. -public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9448,7 +9418,7 @@ extension InvalidOperationExceptionBody: Swift.Decodable { extension InvalidStateTransitionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9463,7 +9433,7 @@ extension InvalidStateTransitionException { } /// Error reserved for use by the [CloudFormation CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). CloudFormation doesn't return this error to users. -public struct InvalidStateTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9499,7 +9469,7 @@ extension InvalidStateTransitionExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9514,7 +9484,7 @@ extension LimitExceededException { } /// The quota for the resource has already been reached. For information about resource and stack limitations, see [CloudFormation quotas](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) in the CloudFormation User Guide. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9627,9 +9597,8 @@ public enum ListChangeSetsOutputError: Swift.Error, Swift.Equatable { extension ListChangeSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChangeSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -9761,9 +9730,8 @@ public enum ListExportsOutputError: Swift.Error, Swift.Equatable { extension ListExportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exports = output.exports self.nextToken = output.nextToken @@ -9906,9 +9874,8 @@ public enum ListImportsOutputError: Swift.Error, Swift.Equatable { extension ListImportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imports = output.imports self.nextToken = output.nextToken @@ -10138,9 +10105,8 @@ public enum ListStackInstancesOutputError: Swift.Error, Swift.Equatable { extension ListStackInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStackInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -10291,9 +10257,8 @@ public enum ListStackResourcesOutputError: Swift.Error, Swift.Equatable { extension ListStackResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStackResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stackResourceSummaries = output.stackResourceSummaries @@ -10516,9 +10481,8 @@ public enum ListStackSetOperationResultsOutputError: Swift.Error, Swift.Equatabl extension ListStackSetOperationResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStackSetOperationResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -10689,9 +10653,8 @@ public enum ListStackSetOperationsOutputError: Swift.Error, Swift.Equatable { extension ListStackSetOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStackSetOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -10859,9 +10822,8 @@ public enum ListStackSetsOutputError: Swift.Error, Swift.Equatable { extension ListStackSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStackSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -11030,9 +10992,8 @@ public enum ListStacksOutputError: Swift.Error, Swift.Equatable { extension ListStacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stackSummaries = output.stackSummaries @@ -11221,9 +11182,8 @@ public enum ListTypeRegistrationsOutputError: Swift.Error, Swift.Equatable { extension ListTypeRegistrationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTypeRegistrationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.registrationTokenList = output.registrationTokenList @@ -11429,9 +11389,8 @@ public enum ListTypeVersionsOutputError: Swift.Error, Swift.Equatable { extension ListTypeVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTypeVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.typeVersionSummaries = output.typeVersionSummaries @@ -11657,9 +11616,8 @@ public enum ListTypesOutputError: Swift.Error, Swift.Equatable { extension ListTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.typeSummaries = output.typeSummaries @@ -11853,7 +11811,7 @@ extension CloudFormationClientTypes { extension NameAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11868,7 +11826,7 @@ extension NameAlreadyExistsException { } /// The specified name is already in use. -public struct NameAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NameAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11939,7 +11897,7 @@ extension CloudFormationClientTypes { extension OperationIdAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11954,7 +11912,7 @@ extension OperationIdAlreadyExistsException { } /// The specified operation ID already exists. -public struct OperationIdAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationIdAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11990,7 +11948,7 @@ extension OperationIdAlreadyExistsExceptionBody: Swift.Decodable { extension OperationInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12005,7 +11963,7 @@ extension OperationInProgressException { } /// Another operation is currently in progress for this stack set. Only one operation can be performed for a stack set at a given time. -public struct OperationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12041,7 +11999,7 @@ extension OperationInProgressExceptionBody: Swift.Decodable { extension OperationNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12056,7 +12014,7 @@ extension OperationNotFoundException { } /// The specified ID refers to an operation that doesn't exist. -public struct OperationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12204,7 +12162,7 @@ extension CloudFormationClientTypes { extension OperationStatusCheckFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12219,7 +12177,7 @@ extension OperationStatusCheckFailedException { } /// Error reserved for use by the [CloudFormation CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). CloudFormation doesn't return this error to users. -public struct OperationStatusCheckFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationStatusCheckFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12821,9 +12779,8 @@ public enum PublishTypeOutputError: Swift.Error, Swift.Equatable { extension PublishTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.publicTypeArn = output.publicTypeArn } else { @@ -13150,9 +13107,8 @@ public enum RegisterPublisherOutputError: Swift.Error, Swift.Equatable { extension RegisterPublisherOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterPublisherOutputResponseBody = try responseDecoder.decode(responseBody: data) self.publisherId = output.publisherId } else { @@ -13336,9 +13292,8 @@ public enum RegisterTypeOutputError: Swift.Error, Swift.Equatable { extension RegisterTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registrationToken = output.registrationToken } else { @@ -14434,9 +14389,8 @@ public enum RollbackStackOutputError: Swift.Error, Swift.Equatable { extension RollbackStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RollbackStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackId = output.stackId } else { @@ -14734,9 +14688,8 @@ public enum SetTypeConfigurationOutputError: Swift.Error, Swift.Equatable { extension SetTypeConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetTypeConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationArn = output.configurationArn } else { @@ -16113,7 +16066,7 @@ extension CloudFormationClientTypes { extension StackInstanceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16128,7 +16081,7 @@ extension StackInstanceNotFoundException { } /// The specified stack instance doesn't exist. -public struct StackInstanceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StackInstanceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16355,7 +16308,7 @@ extension CloudFormationClientTypes { extension StackNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16370,7 +16323,7 @@ extension StackNotFoundException { } /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the ARN in input. -public struct StackNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StackNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17682,7 +17635,7 @@ extension CloudFormationClientTypes { extension StackSetNotEmptyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17697,7 +17650,7 @@ extension StackSetNotEmptyException { } /// You can't yet delete this stack set, because it still contains one or more stack instances. Delete all stack instances from the stack set before deleting the stack set. -public struct StackSetNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StackSetNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17733,7 +17686,7 @@ extension StackSetNotEmptyExceptionBody: Swift.Decodable { extension StackSetNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17748,7 +17701,7 @@ extension StackSetNotFoundException { } /// The specified stack set doesn't exist. -public struct StackSetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StackSetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18834,7 +18787,7 @@ extension CloudFormationClientTypes { extension StaleRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18849,7 +18802,7 @@ extension StaleRequestException { } /// Another operation has been performed on this stack set since the specified operation was performed. -public struct StaleRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StaleRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19256,9 +19209,8 @@ public enum TestTypeOutputError: Swift.Error, Swift.Equatable { extension TestTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.typeVersionArn = output.typeVersionArn } else { @@ -19333,7 +19285,7 @@ extension CloudFormationClientTypes { extension TokenAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19348,7 +19300,7 @@ extension TokenAlreadyExistsException { } /// A client request token already exists. -public struct TokenAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TokenAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19554,7 +19506,7 @@ extension CloudFormationClientTypes { extension TypeConfigurationNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19569,7 +19521,7 @@ extension TypeConfigurationNotFoundException { } /// The specified extension configuration can't be found. -public struct TypeConfigurationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TypeConfigurationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19675,7 +19627,7 @@ extension CloudFormationClientTypes { extension TypeNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19690,7 +19642,7 @@ extension TypeNotFoundException { } /// The specified extension doesn't exist in the CloudFormation registry. -public struct TypeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TypeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20662,9 +20614,8 @@ public enum UpdateStackInstancesOutputError: Swift.Error, Swift.Equatable { extension UpdateStackInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStackInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -20727,9 +20678,8 @@ public enum UpdateStackOutputError: Swift.Error, Swift.Equatable { extension UpdateStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackId = output.stackId } else { @@ -21222,9 +21172,8 @@ public enum UpdateStackSetOutputError: Swift.Error, Swift.Equatable { extension UpdateStackSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStackSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -21341,9 +21290,8 @@ public enum UpdateTerminationProtectionOutputError: Swift.Error, Swift.Equatable extension UpdateTerminationProtectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTerminationProtectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackId = output.stackId } else { @@ -21459,9 +21407,8 @@ public enum ValidateTemplateOutputError: Swift.Error, Swift.Equatable { extension ValidateTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capabilities = output.capabilities self.capabilitiesReason = output.capabilitiesReason diff --git a/Sources/Services/AWSCloudFront/CloudFrontClient.swift b/Sources/Services/AWSCloudFront/CloudFrontClient.swift index 65af3e858fe..aadc0dd23b8 100644 --- a/Sources/Services/AWSCloudFront/CloudFrontClient.swift +++ b/Sources/Services/AWSCloudFront/CloudFrontClient.swift @@ -210,6 +210,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -259,7 +261,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCachePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -301,7 +304,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -321,6 +324,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCloudFrontOriginAccessIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +360,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContinuousDeploymentPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +376,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -391,6 +396,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -406,7 +412,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -426,6 +432,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDistributionWithTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -442,7 +449,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -462,6 +469,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFieldLevelEncryptionConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +485,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +505,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFieldLevelEncryptionProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -547,7 +557,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -567,6 +577,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInvalidation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +593,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +613,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKeyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -617,7 +629,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -637,6 +649,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMonitoringSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -652,7 +665,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -672,6 +685,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOriginAccessControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -687,7 +701,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -716,6 +730,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOriginRequestPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -731,7 +746,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -751,6 +766,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -766,7 +782,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -786,6 +802,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRealtimeLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -801,7 +818,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -821,6 +838,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResponseHeadersPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStreamingDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -871,7 +890,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -891,6 +910,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStreamingDistributionWithTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -907,7 +927,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -927,6 +947,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCachePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -940,7 +961,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -960,6 +981,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCloudFrontOriginAccessIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -973,7 +995,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -993,6 +1015,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContinuousDeploymentPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1006,7 +1029,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1026,6 +1049,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1039,7 +1063,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1059,6 +1083,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFieldLevelEncryptionConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1072,7 +1097,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1092,6 +1117,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFieldLevelEncryptionProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1105,7 +1131,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1125,6 +1151,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1138,7 +1165,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1158,6 +1185,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKeyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1171,7 +1199,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1191,6 +1219,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMonitoringSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1203,7 +1232,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1223,6 +1252,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOriginAccessControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1236,7 +1266,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1256,6 +1286,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOriginRequestPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1269,7 +1300,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1289,6 +1320,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1302,7 +1334,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1322,6 +1354,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRealtimeLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1337,7 +1370,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1357,6 +1390,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResponseHeadersPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1370,7 +1404,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1409,6 +1443,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStreamingDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1422,7 +1457,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1442,6 +1477,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1455,7 +1491,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1482,6 +1518,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCachePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1494,7 +1531,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1514,6 +1551,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCachePolicyConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1526,7 +1564,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1546,6 +1584,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCloudFrontOriginAccessIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1558,7 +1597,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1578,6 +1617,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCloudFrontOriginAccessIdentityConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1590,7 +1630,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1610,6 +1650,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContinuousDeploymentPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1622,7 +1663,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1642,6 +1683,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContinuousDeploymentPolicyConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1654,7 +1696,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1674,6 +1716,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1686,7 +1729,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1706,6 +1749,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDistributionConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1718,7 +1762,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1738,6 +1782,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFieldLevelEncryption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1750,7 +1795,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1770,6 +1815,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFieldLevelEncryptionConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1782,7 +1828,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1802,6 +1848,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFieldLevelEncryptionProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1814,7 +1861,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1834,6 +1881,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFieldLevelEncryptionProfileConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1846,7 +1894,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1866,6 +1914,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1879,7 +1928,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1899,6 +1948,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInvalidation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1911,7 +1961,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1931,6 +1981,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKeyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1943,7 +1994,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1963,6 +2014,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKeyGroupConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1975,7 +2027,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1995,6 +2047,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMonitoringSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2007,7 +2060,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2027,6 +2080,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOriginAccessControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2039,7 +2093,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2059,6 +2113,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOriginAccessControlConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2071,7 +2126,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2098,6 +2153,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOriginRequestPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2110,7 +2166,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2130,6 +2186,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOriginRequestPolicyConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2142,7 +2199,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2162,6 +2219,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2174,7 +2232,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2194,6 +2252,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPublicKeyConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2206,7 +2265,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2226,6 +2285,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRealtimeLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2241,7 +2301,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2261,6 +2321,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResponseHeadersPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2273,7 +2334,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2293,6 +2354,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResponseHeadersPolicyConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2305,7 +2367,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2325,6 +2387,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStreamingDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2337,7 +2400,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2357,6 +2420,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStreamingDistributionConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2369,7 +2433,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2389,6 +2453,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCachePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2402,7 +2467,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2422,6 +2487,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCloudFrontOriginAccessIdentities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2435,7 +2501,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2455,6 +2521,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConflictingAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2468,7 +2535,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2488,6 +2555,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContinuousDeploymentPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2501,7 +2569,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2521,6 +2589,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2534,7 +2603,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2554,6 +2623,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributionsByCachePolicyId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2567,7 +2637,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2587,6 +2657,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributionsByKeyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2600,7 +2671,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2620,6 +2691,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributionsByOriginRequestPolicyId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2633,7 +2705,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2653,6 +2725,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributionsByRealtimeLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2668,7 +2741,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2688,6 +2761,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributionsByResponseHeadersPolicyId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2701,7 +2775,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2721,6 +2795,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributionsByWebACLId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2734,7 +2809,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2754,6 +2829,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFieldLevelEncryptionConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2767,7 +2843,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2787,6 +2863,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFieldLevelEncryptionProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2800,7 +2877,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2820,6 +2897,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFunctions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2833,7 +2911,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2853,6 +2931,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInvalidations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2866,7 +2945,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2886,6 +2965,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKeyGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2899,7 +2979,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2919,6 +2999,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOriginAccessControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2932,7 +3013,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2952,6 +3033,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOriginRequestPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2965,7 +3047,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2985,6 +3067,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPublicKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2998,7 +3081,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3018,6 +3101,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRealtimeLogConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3031,7 +3115,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3051,6 +3135,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResponseHeadersPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3064,7 +3149,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3084,6 +3169,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreamingDistributions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3097,7 +3183,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3117,6 +3203,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3130,7 +3217,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3150,6 +3237,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3163,7 +3251,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3183,6 +3271,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3199,7 +3288,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3219,6 +3308,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3235,7 +3325,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3255,6 +3345,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3271,7 +3362,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3297,6 +3388,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCachePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3313,7 +3405,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3333,6 +3425,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCloudFrontOriginAccessIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3349,7 +3442,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3375,6 +3468,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContinuousDeploymentPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3391,7 +3485,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3424,6 +3518,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3440,7 +3535,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3460,6 +3555,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDistributionWithStagingConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3474,7 +3570,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3494,6 +3590,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFieldLevelEncryptionConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3510,7 +3607,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3530,6 +3627,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFieldLevelEncryptionProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3546,7 +3644,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3566,6 +3664,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3582,7 +3681,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3608,6 +3707,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateKeyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3624,7 +3724,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3644,6 +3744,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOriginAccessControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3660,7 +3761,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3686,6 +3787,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOriginRequestPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3702,7 +3804,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3722,6 +3824,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3738,7 +3841,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3767,6 +3870,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRealtimeLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3782,7 +3886,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3808,6 +3912,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResponseHeadersPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3824,7 +3929,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3844,6 +3949,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudfront") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStreamingDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3860,7 +3966,7 @@ extension CloudFrontClient: CloudFrontClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudFront/models/Models.swift b/Sources/Services/AWSCloudFront/models/Models.swift index 3a5bd22b482..ec3e1464e4d 100644 --- a/Sources/Services/AWSCloudFront/models/Models.swift +++ b/Sources/Services/AWSCloudFront/models/Models.swift @@ -4,7 +4,7 @@ import ClientRuntime extension AccessDenied { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19,7 +19,7 @@ extension AccessDenied { } /// Access denied. -public struct AccessDenied: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDenied: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -594,7 +594,7 @@ public struct AssociateAliasOutputResponse: Swift.Equatable { extension BatchTooLarge { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -609,7 +609,7 @@ extension BatchTooLarge { } /// Invalidation batch specified is too large. -public struct BatchTooLarge: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchTooLarge: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -645,7 +645,7 @@ extension BatchTooLargeBody: Swift.Decodable { extension CNAMEAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -660,7 +660,7 @@ extension CNAMEAlreadyExists { } /// The CNAME specified is already defined for CloudFront. -public struct CNAMEAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CNAMEAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1118,7 +1118,7 @@ extension CloudFrontClientTypes { extension CachePolicyAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1133,7 +1133,7 @@ extension CachePolicyAlreadyExists { } /// A cache policy with this name already exists. You must provide a unique name. To modify an existing cache policy, use UpdateCachePolicy. -public struct CachePolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CachePolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1488,7 +1488,7 @@ extension CloudFrontClientTypes { extension CachePolicyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1503,7 +1503,7 @@ extension CachePolicyInUse { } /// Cannot delete the cache policy because it is attached to one or more cache behaviors. -public struct CachePolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CachePolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1939,7 +1939,7 @@ extension CloudFrontClientTypes { extension CannotChangeImmutablePublicKeyFields { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1954,7 +1954,7 @@ extension CannotChangeImmutablePublicKeyFields { } /// You can't change the value of a public key. -public struct CannotChangeImmutablePublicKeyFields: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CannotChangeImmutablePublicKeyFields: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2099,7 +2099,7 @@ extension CloudFrontClientTypes { extension CloudFrontOriginAccessIdentityAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2114,7 +2114,7 @@ extension CloudFrontOriginAccessIdentityAlreadyExists { } /// If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error. -public struct CloudFrontOriginAccessIdentityAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudFrontOriginAccessIdentityAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2214,7 +2214,7 @@ extension CloudFrontClientTypes { extension CloudFrontOriginAccessIdentityInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2229,7 +2229,7 @@ extension CloudFrontOriginAccessIdentityInUse { } /// The Origin Access Identity specified is already in use. -public struct CloudFrontOriginAccessIdentityInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudFrontOriginAccessIdentityInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2935,7 +2935,7 @@ extension CloudFrontClientTypes { extension ContinuousDeploymentPolicyAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2950,7 +2950,7 @@ extension ContinuousDeploymentPolicyAlreadyExists { } /// A continuous deployment policy with this configuration already exists. -public struct ContinuousDeploymentPolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ContinuousDeploymentPolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3060,7 +3060,7 @@ extension CloudFrontClientTypes { extension ContinuousDeploymentPolicyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3075,7 +3075,7 @@ extension ContinuousDeploymentPolicyInUse { } /// You cannot delete a continuous deployment policy that is associated with a primary distribution. -public struct ContinuousDeploymentPolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ContinuousDeploymentPolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3822,13 +3822,9 @@ extension CopyDistributionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) - self.distribution = output - } else { - self.distribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) + self.distribution = output } else { self.distribution = nil } @@ -3888,15 +3884,15 @@ public struct CreateCachePolicyInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let cachePolicyConfig = input.operationInput.cachePolicyConfig { let xmlEncoder = encoder as! XMLEncoder - let cachePolicyConfigdata = try xmlEncoder.encode(cachePolicyConfig, withRootKey: "CachePolicyConfig") - let cachePolicyConfigbody = ClientRuntime.HttpBody.data(cachePolicyConfigdata) - input.builder.withBody(cachePolicyConfigbody) + let cachePolicyConfigData = try xmlEncoder.encode(cachePolicyConfig, withRootKey: "CachePolicyConfig") + let cachePolicyConfigBody = ClientRuntime.HttpBody.data(cachePolicyConfigData) + input.builder.withBody(cachePolicyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let cachePolicyConfigdata = "{}".data(using: .utf8)! - let cachePolicyConfigbody = ClientRuntime.HttpBody.data(cachePolicyConfigdata) - input.builder.withBody(cachePolicyConfigbody) + let cachePolicyConfigData = "{}".data(using: .utf8)! + let cachePolicyConfigBody = ClientRuntime.HttpBody.data(cachePolicyConfigData) + input.builder.withBody(cachePolicyConfigBody) } } } catch let err { @@ -4022,13 +4018,9 @@ extension CreateCachePolicyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CachePolicy = try responseDecoder.decode(responseBody: data) - self.cachePolicy = output - } else { - self.cachePolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CachePolicy = try responseDecoder.decode(responseBody: data) + self.cachePolicy = output } else { self.cachePolicy = nil } @@ -4088,15 +4080,15 @@ public struct CreateCloudFrontOriginAccessIdentityInputBodyMiddleware: ClientRun let encoder = context.getEncoder() if let cloudFrontOriginAccessIdentityConfig = input.operationInput.cloudFrontOriginAccessIdentityConfig { let xmlEncoder = encoder as! XMLEncoder - let cloudFrontOriginAccessIdentityConfigdata = try xmlEncoder.encode(cloudFrontOriginAccessIdentityConfig, withRootKey: "CloudFrontOriginAccessIdentityConfig") - let cloudFrontOriginAccessIdentityConfigbody = ClientRuntime.HttpBody.data(cloudFrontOriginAccessIdentityConfigdata) - input.builder.withBody(cloudFrontOriginAccessIdentityConfigbody) + let cloudFrontOriginAccessIdentityConfigData = try xmlEncoder.encode(cloudFrontOriginAccessIdentityConfig, withRootKey: "CloudFrontOriginAccessIdentityConfig") + let cloudFrontOriginAccessIdentityConfigBody = ClientRuntime.HttpBody.data(cloudFrontOriginAccessIdentityConfigData) + input.builder.withBody(cloudFrontOriginAccessIdentityConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let cloudFrontOriginAccessIdentityConfigdata = "{}".data(using: .utf8)! - let cloudFrontOriginAccessIdentityConfigbody = ClientRuntime.HttpBody.data(cloudFrontOriginAccessIdentityConfigdata) - input.builder.withBody(cloudFrontOriginAccessIdentityConfigbody) + let cloudFrontOriginAccessIdentityConfigData = "{}".data(using: .utf8)! + let cloudFrontOriginAccessIdentityConfigBody = ClientRuntime.HttpBody.data(cloudFrontOriginAccessIdentityConfigData) + input.builder.withBody(cloudFrontOriginAccessIdentityConfigBody) } } } catch let err { @@ -4217,13 +4209,9 @@ extension CreateCloudFrontOriginAccessIdentityOutputResponse: ClientRuntime.Http } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentity = try responseDecoder.decode(responseBody: data) - self.cloudFrontOriginAccessIdentity = output - } else { - self.cloudFrontOriginAccessIdentity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentity = try responseDecoder.decode(responseBody: data) + self.cloudFrontOriginAccessIdentity = output } else { self.cloudFrontOriginAccessIdentity = nil } @@ -4284,15 +4272,15 @@ public struct CreateContinuousDeploymentPolicyInputBodyMiddleware: ClientRuntime let encoder = context.getEncoder() if let continuousDeploymentPolicyConfig = input.operationInput.continuousDeploymentPolicyConfig { let xmlEncoder = encoder as! XMLEncoder - let continuousDeploymentPolicyConfigdata = try xmlEncoder.encode(continuousDeploymentPolicyConfig, withRootKey: "ContinuousDeploymentPolicyConfig") - let continuousDeploymentPolicyConfigbody = ClientRuntime.HttpBody.data(continuousDeploymentPolicyConfigdata) - input.builder.withBody(continuousDeploymentPolicyConfigbody) + let continuousDeploymentPolicyConfigData = try xmlEncoder.encode(continuousDeploymentPolicyConfig, withRootKey: "ContinuousDeploymentPolicyConfig") + let continuousDeploymentPolicyConfigBody = ClientRuntime.HttpBody.data(continuousDeploymentPolicyConfigData) + input.builder.withBody(continuousDeploymentPolicyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let continuousDeploymentPolicyConfigdata = "{}".data(using: .utf8)! - let continuousDeploymentPolicyConfigbody = ClientRuntime.HttpBody.data(continuousDeploymentPolicyConfigdata) - input.builder.withBody(continuousDeploymentPolicyConfigbody) + let continuousDeploymentPolicyConfigData = "{}".data(using: .utf8)! + let continuousDeploymentPolicyConfigBody = ClientRuntime.HttpBody.data(continuousDeploymentPolicyConfigData) + input.builder.withBody(continuousDeploymentPolicyConfigBody) } } } catch let err { @@ -4414,13 +4402,9 @@ extension CreateContinuousDeploymentPolicyOutputResponse: ClientRuntime.HttpResp } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ContinuousDeploymentPolicy = try responseDecoder.decode(responseBody: data) - self.continuousDeploymentPolicy = output - } else { - self.continuousDeploymentPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ContinuousDeploymentPolicy = try responseDecoder.decode(responseBody: data) + self.continuousDeploymentPolicy = output } else { self.continuousDeploymentPolicy = nil } @@ -4480,15 +4464,15 @@ public struct CreateDistributionInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let distributionConfig = input.operationInput.distributionConfig { let xmlEncoder = encoder as! XMLEncoder - let distributionConfigdata = try xmlEncoder.encode(distributionConfig, withRootKey: "DistributionConfig") - let distributionConfigbody = ClientRuntime.HttpBody.data(distributionConfigdata) - input.builder.withBody(distributionConfigbody) + let distributionConfigData = try xmlEncoder.encode(distributionConfig, withRootKey: "DistributionConfig") + let distributionConfigBody = ClientRuntime.HttpBody.data(distributionConfigData) + input.builder.withBody(distributionConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let distributionConfigdata = "{}".data(using: .utf8)! - let distributionConfigbody = ClientRuntime.HttpBody.data(distributionConfigdata) - input.builder.withBody(distributionConfigbody) + let distributionConfigData = "{}".data(using: .utf8)! + let distributionConfigBody = ClientRuntime.HttpBody.data(distributionConfigData) + input.builder.withBody(distributionConfigBody) } } } catch let err { @@ -4729,13 +4713,9 @@ extension CreateDistributionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) - self.distribution = output - } else { - self.distribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) + self.distribution = output } else { self.distribution = nil } @@ -4796,15 +4776,15 @@ public struct CreateDistributionWithTagsInputBodyMiddleware: ClientRuntime.Middl let encoder = context.getEncoder() if let distributionConfigWithTags = input.operationInput.distributionConfigWithTags { let xmlEncoder = encoder as! XMLEncoder - let distributionConfigWithTagsdata = try xmlEncoder.encode(distributionConfigWithTags, withRootKey: "DistributionConfigWithTags") - let distributionConfigWithTagsbody = ClientRuntime.HttpBody.data(distributionConfigWithTagsdata) - input.builder.withBody(distributionConfigWithTagsbody) + let distributionConfigWithTagsData = try xmlEncoder.encode(distributionConfigWithTags, withRootKey: "DistributionConfigWithTags") + let distributionConfigWithTagsBody = ClientRuntime.HttpBody.data(distributionConfigWithTagsData) + input.builder.withBody(distributionConfigWithTagsBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let distributionConfigWithTagsdata = "{}".data(using: .utf8)! - let distributionConfigWithTagsbody = ClientRuntime.HttpBody.data(distributionConfigWithTagsdata) - input.builder.withBody(distributionConfigWithTagsbody) + let distributionConfigWithTagsData = "{}".data(using: .utf8)! + let distributionConfigWithTagsBody = ClientRuntime.HttpBody.data(distributionConfigWithTagsData) + input.builder.withBody(distributionConfigWithTagsBody) } } } catch let err { @@ -5053,13 +5033,9 @@ extension CreateDistributionWithTagsOutputResponse: ClientRuntime.HttpResponseBi } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) - self.distribution = output - } else { - self.distribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) + self.distribution = output } else { self.distribution = nil } @@ -5120,15 +5096,15 @@ public struct CreateFieldLevelEncryptionConfigInputBodyMiddleware: ClientRuntime let encoder = context.getEncoder() if let fieldLevelEncryptionConfig = input.operationInput.fieldLevelEncryptionConfig { let xmlEncoder = encoder as! XMLEncoder - let fieldLevelEncryptionConfigdata = try xmlEncoder.encode(fieldLevelEncryptionConfig, withRootKey: "FieldLevelEncryptionConfig") - let fieldLevelEncryptionConfigbody = ClientRuntime.HttpBody.data(fieldLevelEncryptionConfigdata) - input.builder.withBody(fieldLevelEncryptionConfigbody) + let fieldLevelEncryptionConfigData = try xmlEncoder.encode(fieldLevelEncryptionConfig, withRootKey: "FieldLevelEncryptionConfig") + let fieldLevelEncryptionConfigBody = ClientRuntime.HttpBody.data(fieldLevelEncryptionConfigData) + input.builder.withBody(fieldLevelEncryptionConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let fieldLevelEncryptionConfigdata = "{}".data(using: .utf8)! - let fieldLevelEncryptionConfigbody = ClientRuntime.HttpBody.data(fieldLevelEncryptionConfigdata) - input.builder.withBody(fieldLevelEncryptionConfigbody) + let fieldLevelEncryptionConfigData = "{}".data(using: .utf8)! + let fieldLevelEncryptionConfigBody = ClientRuntime.HttpBody.data(fieldLevelEncryptionConfigData) + input.builder.withBody(fieldLevelEncryptionConfigBody) } } } catch let err { @@ -5254,13 +5230,9 @@ extension CreateFieldLevelEncryptionConfigOutputResponse: ClientRuntime.HttpResp } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryption = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryption = output - } else { - self.fieldLevelEncryption = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryption = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryption = output } else { self.fieldLevelEncryption = nil } @@ -5320,15 +5292,15 @@ public struct CreateFieldLevelEncryptionProfileInputBodyMiddleware: ClientRuntim let encoder = context.getEncoder() if let fieldLevelEncryptionProfileConfig = input.operationInput.fieldLevelEncryptionProfileConfig { let xmlEncoder = encoder as! XMLEncoder - let fieldLevelEncryptionProfileConfigdata = try xmlEncoder.encode(fieldLevelEncryptionProfileConfig, withRootKey: "FieldLevelEncryptionProfileConfig") - let fieldLevelEncryptionProfileConfigbody = ClientRuntime.HttpBody.data(fieldLevelEncryptionProfileConfigdata) - input.builder.withBody(fieldLevelEncryptionProfileConfigbody) + let fieldLevelEncryptionProfileConfigData = try xmlEncoder.encode(fieldLevelEncryptionProfileConfig, withRootKey: "FieldLevelEncryptionProfileConfig") + let fieldLevelEncryptionProfileConfigBody = ClientRuntime.HttpBody.data(fieldLevelEncryptionProfileConfigData) + input.builder.withBody(fieldLevelEncryptionProfileConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let fieldLevelEncryptionProfileConfigdata = "{}".data(using: .utf8)! - let fieldLevelEncryptionProfileConfigbody = ClientRuntime.HttpBody.data(fieldLevelEncryptionProfileConfigdata) - input.builder.withBody(fieldLevelEncryptionProfileConfigbody) + let fieldLevelEncryptionProfileConfigData = "{}".data(using: .utf8)! + let fieldLevelEncryptionProfileConfigBody = ClientRuntime.HttpBody.data(fieldLevelEncryptionProfileConfigData) + input.builder.withBody(fieldLevelEncryptionProfileConfigBody) } } } catch let err { @@ -5454,13 +5426,9 @@ extension CreateFieldLevelEncryptionProfileOutputResponse: ClientRuntime.HttpRes } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryptionProfile = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryptionProfile = output - } else { - self.fieldLevelEncryptionProfile = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryptionProfile = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryptionProfile = output } else { self.fieldLevelEncryptionProfile = nil } @@ -5648,13 +5616,9 @@ extension CreateFunctionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FunctionSummary = try responseDecoder.decode(responseBody: data) - self.functionSummary = output - } else { - self.functionSummary = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FunctionSummary = try responseDecoder.decode(responseBody: data) + self.functionSummary = output } else { self.functionSummary = nil } @@ -5714,15 +5678,15 @@ public struct CreateInvalidationInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let invalidationBatch = input.operationInput.invalidationBatch { let xmlEncoder = encoder as! XMLEncoder - let invalidationBatchdata = try xmlEncoder.encode(invalidationBatch, withRootKey: "InvalidationBatch") - let invalidationBatchbody = ClientRuntime.HttpBody.data(invalidationBatchdata) - input.builder.withBody(invalidationBatchbody) + let invalidationBatchData = try xmlEncoder.encode(invalidationBatch, withRootKey: "InvalidationBatch") + let invalidationBatchBody = ClientRuntime.HttpBody.data(invalidationBatchData) + input.builder.withBody(invalidationBatchBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let invalidationBatchdata = "{}".data(using: .utf8)! - let invalidationBatchbody = ClientRuntime.HttpBody.data(invalidationBatchdata) - input.builder.withBody(invalidationBatchbody) + let invalidationBatchData = "{}".data(using: .utf8)! + let invalidationBatchBody = ClientRuntime.HttpBody.data(invalidationBatchData) + input.builder.withBody(invalidationBatchBody) } } } catch let err { @@ -5850,13 +5814,9 @@ extension CreateInvalidationOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Invalidation = try responseDecoder.decode(responseBody: data) - self.invalidation = output - } else { - self.invalidation = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Invalidation = try responseDecoder.decode(responseBody: data) + self.invalidation = output } else { self.invalidation = nil } @@ -5913,15 +5873,15 @@ public struct CreateKeyGroupInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let keyGroupConfig = input.operationInput.keyGroupConfig { let xmlEncoder = encoder as! XMLEncoder - let keyGroupConfigdata = try xmlEncoder.encode(keyGroupConfig, withRootKey: "KeyGroupConfig") - let keyGroupConfigbody = ClientRuntime.HttpBody.data(keyGroupConfigdata) - input.builder.withBody(keyGroupConfigbody) + let keyGroupConfigData = try xmlEncoder.encode(keyGroupConfig, withRootKey: "KeyGroupConfig") + let keyGroupConfigBody = ClientRuntime.HttpBody.data(keyGroupConfigData) + input.builder.withBody(keyGroupConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let keyGroupConfigdata = "{}".data(using: .utf8)! - let keyGroupConfigbody = ClientRuntime.HttpBody.data(keyGroupConfigdata) - input.builder.withBody(keyGroupConfigbody) + let keyGroupConfigData = "{}".data(using: .utf8)! + let keyGroupConfigBody = ClientRuntime.HttpBody.data(keyGroupConfigData) + input.builder.withBody(keyGroupConfigBody) } } } catch let err { @@ -6039,13 +5999,9 @@ extension CreateKeyGroupOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.KeyGroup = try responseDecoder.decode(responseBody: data) - self.keyGroup = output - } else { - self.keyGroup = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.KeyGroup = try responseDecoder.decode(responseBody: data) + self.keyGroup = output } else { self.keyGroup = nil } @@ -6105,15 +6061,15 @@ public struct CreateMonitoringSubscriptionInputBodyMiddleware: ClientRuntime.Mid let encoder = context.getEncoder() if let monitoringSubscription = input.operationInput.monitoringSubscription { let xmlEncoder = encoder as! XMLEncoder - let monitoringSubscriptiondata = try xmlEncoder.encode(monitoringSubscription, withRootKey: "MonitoringSubscription") - let monitoringSubscriptionbody = ClientRuntime.HttpBody.data(monitoringSubscriptiondata) - input.builder.withBody(monitoringSubscriptionbody) + let monitoringSubscriptionData = try xmlEncoder.encode(monitoringSubscription, withRootKey: "MonitoringSubscription") + let monitoringSubscriptionBody = ClientRuntime.HttpBody.data(monitoringSubscriptionData) + input.builder.withBody(monitoringSubscriptionBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let monitoringSubscriptiondata = "{}".data(using: .utf8)! - let monitoringSubscriptionbody = ClientRuntime.HttpBody.data(monitoringSubscriptiondata) - input.builder.withBody(monitoringSubscriptionbody) + let monitoringSubscriptionData = "{}".data(using: .utf8)! + let monitoringSubscriptionBody = ClientRuntime.HttpBody.data(monitoringSubscriptionData) + input.builder.withBody(monitoringSubscriptionBody) } } } catch let err { @@ -6229,13 +6185,9 @@ public enum CreateMonitoringSubscriptionOutputError: Swift.Error, Swift.Equatabl extension CreateMonitoringSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.MonitoringSubscription = try responseDecoder.decode(responseBody: data) - self.monitoringSubscription = output - } else { - self.monitoringSubscription = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.MonitoringSubscription = try responseDecoder.decode(responseBody: data) + self.monitoringSubscription = output } else { self.monitoringSubscription = nil } @@ -6287,15 +6239,15 @@ public struct CreateOriginAccessControlInputBodyMiddleware: ClientRuntime.Middle let encoder = context.getEncoder() if let originAccessControlConfig = input.operationInput.originAccessControlConfig { let xmlEncoder = encoder as! XMLEncoder - let originAccessControlConfigdata = try xmlEncoder.encode(originAccessControlConfig, withRootKey: "OriginAccessControlConfig") - let originAccessControlConfigbody = ClientRuntime.HttpBody.data(originAccessControlConfigdata) - input.builder.withBody(originAccessControlConfigbody) + let originAccessControlConfigData = try xmlEncoder.encode(originAccessControlConfig, withRootKey: "OriginAccessControlConfig") + let originAccessControlConfigBody = ClientRuntime.HttpBody.data(originAccessControlConfigData) + input.builder.withBody(originAccessControlConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let originAccessControlConfigdata = "{}".data(using: .utf8)! - let originAccessControlConfigbody = ClientRuntime.HttpBody.data(originAccessControlConfigdata) - input.builder.withBody(originAccessControlConfigbody) + let originAccessControlConfigData = "{}".data(using: .utf8)! + let originAccessControlConfigBody = ClientRuntime.HttpBody.data(originAccessControlConfigData) + input.builder.withBody(originAccessControlConfigBody) } } } catch let err { @@ -6411,13 +6363,9 @@ extension CreateOriginAccessControlOutputResponse: ClientRuntime.HttpResponseBin } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginAccessControl = try responseDecoder.decode(responseBody: data) - self.originAccessControl = output - } else { - self.originAccessControl = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginAccessControl = try responseDecoder.decode(responseBody: data) + self.originAccessControl = output } else { self.originAccessControl = nil } @@ -6477,15 +6425,15 @@ public struct CreateOriginRequestPolicyInputBodyMiddleware: ClientRuntime.Middle let encoder = context.getEncoder() if let originRequestPolicyConfig = input.operationInput.originRequestPolicyConfig { let xmlEncoder = encoder as! XMLEncoder - let originRequestPolicyConfigdata = try xmlEncoder.encode(originRequestPolicyConfig, withRootKey: "OriginRequestPolicyConfig") - let originRequestPolicyConfigbody = ClientRuntime.HttpBody.data(originRequestPolicyConfigdata) - input.builder.withBody(originRequestPolicyConfigbody) + let originRequestPolicyConfigData = try xmlEncoder.encode(originRequestPolicyConfig, withRootKey: "OriginRequestPolicyConfig") + let originRequestPolicyConfigBody = ClientRuntime.HttpBody.data(originRequestPolicyConfigData) + input.builder.withBody(originRequestPolicyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let originRequestPolicyConfigdata = "{}".data(using: .utf8)! - let originRequestPolicyConfigbody = ClientRuntime.HttpBody.data(originRequestPolicyConfigdata) - input.builder.withBody(originRequestPolicyConfigbody) + let originRequestPolicyConfigData = "{}".data(using: .utf8)! + let originRequestPolicyConfigBody = ClientRuntime.HttpBody.data(originRequestPolicyConfigData) + input.builder.withBody(originRequestPolicyConfigBody) } } } catch let err { @@ -6611,13 +6559,9 @@ extension CreateOriginRequestPolicyOutputResponse: ClientRuntime.HttpResponseBin } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginRequestPolicy = try responseDecoder.decode(responseBody: data) - self.originRequestPolicy = output - } else { - self.originRequestPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginRequestPolicy = try responseDecoder.decode(responseBody: data) + self.originRequestPolicy = output } else { self.originRequestPolicy = nil } @@ -6677,15 +6621,15 @@ public struct CreatePublicKeyInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let publicKeyConfig = input.operationInput.publicKeyConfig { let xmlEncoder = encoder as! XMLEncoder - let publicKeyConfigdata = try xmlEncoder.encode(publicKeyConfig, withRootKey: "PublicKeyConfig") - let publicKeyConfigbody = ClientRuntime.HttpBody.data(publicKeyConfigdata) - input.builder.withBody(publicKeyConfigbody) + let publicKeyConfigData = try xmlEncoder.encode(publicKeyConfig, withRootKey: "PublicKeyConfig") + let publicKeyConfigBody = ClientRuntime.HttpBody.data(publicKeyConfigData) + input.builder.withBody(publicKeyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let publicKeyConfigdata = "{}".data(using: .utf8)! - let publicKeyConfigbody = ClientRuntime.HttpBody.data(publicKeyConfigdata) - input.builder.withBody(publicKeyConfigbody) + let publicKeyConfigData = "{}".data(using: .utf8)! + let publicKeyConfigBody = ClientRuntime.HttpBody.data(publicKeyConfigData) + input.builder.withBody(publicKeyConfigBody) } } } catch let err { @@ -6801,13 +6745,9 @@ extension CreatePublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.PublicKey = try responseDecoder.decode(responseBody: data) - self.publicKey = output - } else { - self.publicKey = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.PublicKey = try responseDecoder.decode(responseBody: data) + self.publicKey = output } else { self.publicKey = nil } @@ -7023,9 +6963,8 @@ public enum CreateRealtimeLogConfigOutputError: Swift.Error, Swift.Equatable { extension CreateRealtimeLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRealtimeLogConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.realtimeLogConfig = output.realtimeLogConfig } else { @@ -7079,15 +7018,15 @@ public struct CreateResponseHeadersPolicyInputBodyMiddleware: ClientRuntime.Midd let encoder = context.getEncoder() if let responseHeadersPolicyConfig = input.operationInput.responseHeadersPolicyConfig { let xmlEncoder = encoder as! XMLEncoder - let responseHeadersPolicyConfigdata = try xmlEncoder.encode(responseHeadersPolicyConfig, withRootKey: "ResponseHeadersPolicyConfig") - let responseHeadersPolicyConfigbody = ClientRuntime.HttpBody.data(responseHeadersPolicyConfigdata) - input.builder.withBody(responseHeadersPolicyConfigbody) + let responseHeadersPolicyConfigData = try xmlEncoder.encode(responseHeadersPolicyConfig, withRootKey: "ResponseHeadersPolicyConfig") + let responseHeadersPolicyConfigBody = ClientRuntime.HttpBody.data(responseHeadersPolicyConfigData) + input.builder.withBody(responseHeadersPolicyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let responseHeadersPolicyConfigdata = "{}".data(using: .utf8)! - let responseHeadersPolicyConfigbody = ClientRuntime.HttpBody.data(responseHeadersPolicyConfigdata) - input.builder.withBody(responseHeadersPolicyConfigbody) + let responseHeadersPolicyConfigData = "{}".data(using: .utf8)! + let responseHeadersPolicyConfigBody = ClientRuntime.HttpBody.data(responseHeadersPolicyConfigData) + input.builder.withBody(responseHeadersPolicyConfigBody) } } } catch let err { @@ -7213,13 +7152,9 @@ extension CreateResponseHeadersPolicyOutputResponse: ClientRuntime.HttpResponseB } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ResponseHeadersPolicy = try responseDecoder.decode(responseBody: data) - self.responseHeadersPolicy = output - } else { - self.responseHeadersPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ResponseHeadersPolicy = try responseDecoder.decode(responseBody: data) + self.responseHeadersPolicy = output } else { self.responseHeadersPolicy = nil } @@ -7279,15 +7214,15 @@ public struct CreateStreamingDistributionInputBodyMiddleware: ClientRuntime.Midd let encoder = context.getEncoder() if let streamingDistributionConfig = input.operationInput.streamingDistributionConfig { let xmlEncoder = encoder as! XMLEncoder - let streamingDistributionConfigdata = try xmlEncoder.encode(streamingDistributionConfig, withRootKey: "StreamingDistributionConfig") - let streamingDistributionConfigbody = ClientRuntime.HttpBody.data(streamingDistributionConfigdata) - input.builder.withBody(streamingDistributionConfigbody) + let streamingDistributionConfigData = try xmlEncoder.encode(streamingDistributionConfig, withRootKey: "StreamingDistributionConfig") + let streamingDistributionConfigBody = ClientRuntime.HttpBody.data(streamingDistributionConfigData) + input.builder.withBody(streamingDistributionConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let streamingDistributionConfigdata = "{}".data(using: .utf8)! - let streamingDistributionConfigbody = ClientRuntime.HttpBody.data(streamingDistributionConfigdata) - input.builder.withBody(streamingDistributionConfigbody) + let streamingDistributionConfigData = "{}".data(using: .utf8)! + let streamingDistributionConfigBody = ClientRuntime.HttpBody.data(streamingDistributionConfigData) + input.builder.withBody(streamingDistributionConfigBody) } } } catch let err { @@ -7424,13 +7359,9 @@ extension CreateStreamingDistributionOutputResponse: ClientRuntime.HttpResponseB } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.StreamingDistribution = try responseDecoder.decode(responseBody: data) - self.streamingDistribution = output - } else { - self.streamingDistribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.StreamingDistribution = try responseDecoder.decode(responseBody: data) + self.streamingDistribution = output } else { self.streamingDistribution = nil } @@ -7491,15 +7422,15 @@ public struct CreateStreamingDistributionWithTagsInputBodyMiddleware: ClientRunt let encoder = context.getEncoder() if let streamingDistributionConfigWithTags = input.operationInput.streamingDistributionConfigWithTags { let xmlEncoder = encoder as! XMLEncoder - let streamingDistributionConfigWithTagsdata = try xmlEncoder.encode(streamingDistributionConfigWithTags, withRootKey: "StreamingDistributionConfigWithTags") - let streamingDistributionConfigWithTagsbody = ClientRuntime.HttpBody.data(streamingDistributionConfigWithTagsdata) - input.builder.withBody(streamingDistributionConfigWithTagsbody) + let streamingDistributionConfigWithTagsData = try xmlEncoder.encode(streamingDistributionConfigWithTags, withRootKey: "StreamingDistributionConfigWithTags") + let streamingDistributionConfigWithTagsBody = ClientRuntime.HttpBody.data(streamingDistributionConfigWithTagsData) + input.builder.withBody(streamingDistributionConfigWithTagsBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let streamingDistributionConfigWithTagsdata = "{}".data(using: .utf8)! - let streamingDistributionConfigWithTagsbody = ClientRuntime.HttpBody.data(streamingDistributionConfigWithTagsdata) - input.builder.withBody(streamingDistributionConfigWithTagsbody) + let streamingDistributionConfigWithTagsData = "{}".data(using: .utf8)! + let streamingDistributionConfigWithTagsBody = ClientRuntime.HttpBody.data(streamingDistributionConfigWithTagsData) + input.builder.withBody(streamingDistributionConfigWithTagsBody) } } } catch let err { @@ -7648,13 +7579,9 @@ extension CreateStreamingDistributionWithTagsOutputResponse: ClientRuntime.HttpR } else { self.location = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.StreamingDistribution = try responseDecoder.decode(responseBody: data) - self.streamingDistribution = output - } else { - self.streamingDistribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.StreamingDistribution = try responseDecoder.decode(responseBody: data) + self.streamingDistribution = output } else { self.streamingDistribution = nil } @@ -9714,13 +9641,9 @@ extension DescribeFunctionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FunctionSummary = try responseDecoder.decode(responseBody: data) - self.functionSummary = output - } else { - self.functionSummary = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FunctionSummary = try responseDecoder.decode(responseBody: data) + self.functionSummary = output } else { self.functionSummary = nil } @@ -9930,7 +9853,7 @@ extension CloudFrontClientTypes { extension DistributionAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9945,7 +9868,7 @@ extension DistributionAlreadyExists { } /// The caller reference you attempted to create the distribution with is associated with another distribution. -public struct DistributionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DistributionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10553,7 +10476,7 @@ extension CloudFrontClientTypes { extension DistributionNotDisabled { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10568,7 +10491,7 @@ extension DistributionNotDisabled { } /// The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it. -public struct DistributionNotDisabled: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DistributionNotDisabled: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11312,7 +11235,7 @@ extension CloudFrontClientTypes { extension FieldLevelEncryptionConfigAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11327,7 +11250,7 @@ extension FieldLevelEncryptionConfigAlreadyExists { } /// The specified configuration for field-level encryption already exists. -public struct FieldLevelEncryptionConfigAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FieldLevelEncryptionConfigAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11363,7 +11286,7 @@ extension FieldLevelEncryptionConfigAlreadyExistsBody: Swift.Decodable { extension FieldLevelEncryptionConfigInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11378,7 +11301,7 @@ extension FieldLevelEncryptionConfigInUse { } /// The specified configuration for field-level encryption is in use. -public struct FieldLevelEncryptionConfigInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FieldLevelEncryptionConfigInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11593,7 +11516,7 @@ extension CloudFrontClientTypes { extension FieldLevelEncryptionProfileAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11608,7 +11531,7 @@ extension FieldLevelEncryptionProfileAlreadyExists { } /// The specified profile for field-level encryption already exists. -public struct FieldLevelEncryptionProfileAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FieldLevelEncryptionProfileAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11729,7 +11652,7 @@ extension CloudFrontClientTypes { extension FieldLevelEncryptionProfileInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11744,7 +11667,7 @@ extension FieldLevelEncryptionProfileInUse { } /// The specified profile for field-level encryption is in use. -public struct FieldLevelEncryptionProfileInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FieldLevelEncryptionProfileInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11884,7 +11807,7 @@ extension CloudFrontClientTypes { extension FieldLevelEncryptionProfileSizeExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11899,7 +11822,7 @@ extension FieldLevelEncryptionProfileSizeExceeded { } /// The maximum size of a profile for field-level encryption was exceeded. -public struct FieldLevelEncryptionProfileSizeExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FieldLevelEncryptionProfileSizeExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12353,7 +12276,7 @@ extension CloudFrontClientTypes { extension FunctionAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12368,7 +12291,7 @@ extension FunctionAlreadyExists { } /// A function with the same name already exists in this Amazon Web Services account. To create a function, you must provide a unique name. To update an existing function, use UpdateFunction. -public struct FunctionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FunctionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12615,7 +12538,7 @@ extension CloudFrontClientTypes { extension FunctionInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12630,7 +12553,7 @@ extension FunctionInUse { } /// Cannot delete the function because it's attached to one or more cache behaviors. -public struct FunctionInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FunctionInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12883,7 +12806,7 @@ extension CloudFrontClientTypes { extension FunctionSizeLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12898,7 +12821,7 @@ extension FunctionSizeLimitExceeded { } /// The function is too large. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct FunctionSizeLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FunctionSizeLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13245,13 +13168,9 @@ extension GetCachePolicyConfigOutputResponse: ClientRuntime.HttpResponseBinding } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CachePolicyConfig = try responseDecoder.decode(responseBody: data) - self.cachePolicyConfig = output - } else { - self.cachePolicyConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CachePolicyConfig = try responseDecoder.decode(responseBody: data) + self.cachePolicyConfig = output } else { self.cachePolicyConfig = nil } @@ -13351,13 +13270,9 @@ extension GetCachePolicyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CachePolicy = try responseDecoder.decode(responseBody: data) - self.cachePolicy = output - } else { - self.cachePolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CachePolicy = try responseDecoder.decode(responseBody: data) + self.cachePolicy = output } else { self.cachePolicy = nil } @@ -13458,13 +13373,9 @@ extension GetCloudFrontOriginAccessIdentityConfigOutputResponse: ClientRuntime.H } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentityConfig = try responseDecoder.decode(responseBody: data) - self.cloudFrontOriginAccessIdentityConfig = output - } else { - self.cloudFrontOriginAccessIdentityConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentityConfig = try responseDecoder.decode(responseBody: data) + self.cloudFrontOriginAccessIdentityConfig = output } else { self.cloudFrontOriginAccessIdentityConfig = nil } @@ -13566,13 +13477,9 @@ extension GetCloudFrontOriginAccessIdentityOutputResponse: ClientRuntime.HttpRes } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentity = try responseDecoder.decode(responseBody: data) - self.cloudFrontOriginAccessIdentity = output - } else { - self.cloudFrontOriginAccessIdentity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentity = try responseDecoder.decode(responseBody: data) + self.cloudFrontOriginAccessIdentity = output } else { self.cloudFrontOriginAccessIdentity = nil } @@ -13673,13 +13580,9 @@ extension GetContinuousDeploymentPolicyConfigOutputResponse: ClientRuntime.HttpR } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ContinuousDeploymentPolicyConfig = try responseDecoder.decode(responseBody: data) - self.continuousDeploymentPolicyConfig = output - } else { - self.continuousDeploymentPolicyConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ContinuousDeploymentPolicyConfig = try responseDecoder.decode(responseBody: data) + self.continuousDeploymentPolicyConfig = output } else { self.continuousDeploymentPolicyConfig = nil } @@ -13779,13 +13682,9 @@ extension GetContinuousDeploymentPolicyOutputResponse: ClientRuntime.HttpRespons } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ContinuousDeploymentPolicy = try responseDecoder.decode(responseBody: data) - self.continuousDeploymentPolicy = output - } else { - self.continuousDeploymentPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ContinuousDeploymentPolicy = try responseDecoder.decode(responseBody: data) + self.continuousDeploymentPolicy = output } else { self.continuousDeploymentPolicy = nil } @@ -13886,13 +13785,9 @@ extension GetDistributionConfigOutputResponse: ClientRuntime.HttpResponseBinding } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.DistributionConfig = try responseDecoder.decode(responseBody: data) - self.distributionConfig = output - } else { - self.distributionConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.DistributionConfig = try responseDecoder.decode(responseBody: data) + self.distributionConfig = output } else { self.distributionConfig = nil } @@ -13994,13 +13889,9 @@ extension GetDistributionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) - self.distribution = output - } else { - self.distribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) + self.distribution = output } else { self.distribution = nil } @@ -14101,13 +13992,9 @@ extension GetFieldLevelEncryptionConfigOutputResponse: ClientRuntime.HttpRespons } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryptionConfig = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryptionConfig = output - } else { - self.fieldLevelEncryptionConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryptionConfig = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryptionConfig = output } else { self.fieldLevelEncryptionConfig = nil } @@ -14207,13 +14094,9 @@ extension GetFieldLevelEncryptionOutputResponse: ClientRuntime.HttpResponseBindi } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryption = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryption = output - } else { - self.fieldLevelEncryption = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryption = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryption = output } else { self.fieldLevelEncryption = nil } @@ -14313,13 +14196,9 @@ extension GetFieldLevelEncryptionProfileConfigOutputResponse: ClientRuntime.Http } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryptionProfileConfig = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryptionProfileConfig = output - } else { - self.fieldLevelEncryptionProfileConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryptionProfileConfig = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryptionProfileConfig = output } else { self.fieldLevelEncryptionProfileConfig = nil } @@ -14419,13 +14298,9 @@ extension GetFieldLevelEncryptionProfileOutputResponse: ClientRuntime.HttpRespon } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryptionProfile = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryptionProfile = output - } else { - self.fieldLevelEncryptionProfile = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryptionProfile = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryptionProfile = output } else { self.fieldLevelEncryptionProfile = nil } @@ -14552,9 +14427,12 @@ extension GetFunctionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.functionCode = data - } else { + case .stream(let stream): + self.functionCode = try stream.readToEnd() + case .none: self.functionCode = nil } } @@ -14671,13 +14549,9 @@ public enum GetInvalidationOutputError: Swift.Error, Swift.Equatable { extension GetInvalidationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Invalidation = try responseDecoder.decode(responseBody: data) - self.invalidation = output - } else { - self.invalidation = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Invalidation = try responseDecoder.decode(responseBody: data) + self.invalidation = output } else { self.invalidation = nil } @@ -14772,13 +14646,9 @@ extension GetKeyGroupConfigOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.KeyGroupConfig = try responseDecoder.decode(responseBody: data) - self.keyGroupConfig = output - } else { - self.keyGroupConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.KeyGroupConfig = try responseDecoder.decode(responseBody: data) + self.keyGroupConfig = output } else { self.keyGroupConfig = nil } @@ -14876,13 +14746,9 @@ extension GetKeyGroupOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.KeyGroup = try responseDecoder.decode(responseBody: data) - self.keyGroup = output - } else { - self.keyGroup = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.KeyGroup = try responseDecoder.decode(responseBody: data) + self.keyGroup = output } else { self.keyGroup = nil } @@ -14981,13 +14847,9 @@ public enum GetMonitoringSubscriptionOutputError: Swift.Error, Swift.Equatable { extension GetMonitoringSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.MonitoringSubscription = try responseDecoder.decode(responseBody: data) - self.monitoringSubscription = output - } else { - self.monitoringSubscription = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.MonitoringSubscription = try responseDecoder.decode(responseBody: data) + self.monitoringSubscription = output } else { self.monitoringSubscription = nil } @@ -15083,13 +14945,9 @@ extension GetOriginAccessControlConfigOutputResponse: ClientRuntime.HttpResponse } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginAccessControlConfig = try responseDecoder.decode(responseBody: data) - self.originAccessControlConfig = output - } else { - self.originAccessControlConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginAccessControlConfig = try responseDecoder.decode(responseBody: data) + self.originAccessControlConfig = output } else { self.originAccessControlConfig = nil } @@ -15189,13 +15047,9 @@ extension GetOriginAccessControlOutputResponse: ClientRuntime.HttpResponseBindin } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginAccessControl = try responseDecoder.decode(responseBody: data) - self.originAccessControl = output - } else { - self.originAccessControl = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginAccessControl = try responseDecoder.decode(responseBody: data) + self.originAccessControl = output } else { self.originAccessControl = nil } @@ -15295,13 +15149,9 @@ extension GetOriginRequestPolicyConfigOutputResponse: ClientRuntime.HttpResponse } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginRequestPolicyConfig = try responseDecoder.decode(responseBody: data) - self.originRequestPolicyConfig = output - } else { - self.originRequestPolicyConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginRequestPolicyConfig = try responseDecoder.decode(responseBody: data) + self.originRequestPolicyConfig = output } else { self.originRequestPolicyConfig = nil } @@ -15401,13 +15251,9 @@ extension GetOriginRequestPolicyOutputResponse: ClientRuntime.HttpResponseBindin } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginRequestPolicy = try responseDecoder.decode(responseBody: data) - self.originRequestPolicy = output - } else { - self.originRequestPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginRequestPolicy = try responseDecoder.decode(responseBody: data) + self.originRequestPolicy = output } else { self.originRequestPolicy = nil } @@ -15507,13 +15353,9 @@ extension GetPublicKeyConfigOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.PublicKeyConfig = try responseDecoder.decode(responseBody: data) - self.publicKeyConfig = output - } else { - self.publicKeyConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.PublicKeyConfig = try responseDecoder.decode(responseBody: data) + self.publicKeyConfig = output } else { self.publicKeyConfig = nil } @@ -15613,13 +15455,9 @@ extension GetPublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.PublicKey = try responseDecoder.decode(responseBody: data) - self.publicKey = output - } else { - self.publicKey = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.PublicKey = try responseDecoder.decode(responseBody: data) + self.publicKey = output } else { self.publicKey = nil } @@ -15761,9 +15599,8 @@ public enum GetRealtimeLogConfigOutputError: Swift.Error, Swift.Equatable { extension GetRealtimeLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRealtimeLogConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.realtimeLogConfig = output.realtimeLogConfig } else { @@ -15861,13 +15698,9 @@ extension GetResponseHeadersPolicyConfigOutputResponse: ClientRuntime.HttpRespon } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ResponseHeadersPolicyConfig = try responseDecoder.decode(responseBody: data) - self.responseHeadersPolicyConfig = output - } else { - self.responseHeadersPolicyConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ResponseHeadersPolicyConfig = try responseDecoder.decode(responseBody: data) + self.responseHeadersPolicyConfig = output } else { self.responseHeadersPolicyConfig = nil } @@ -15967,13 +15800,9 @@ extension GetResponseHeadersPolicyOutputResponse: ClientRuntime.HttpResponseBind } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ResponseHeadersPolicy = try responseDecoder.decode(responseBody: data) - self.responseHeadersPolicy = output - } else { - self.responseHeadersPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ResponseHeadersPolicy = try responseDecoder.decode(responseBody: data) + self.responseHeadersPolicy = output } else { self.responseHeadersPolicy = nil } @@ -16074,13 +15903,9 @@ extension GetStreamingDistributionConfigOutputResponse: ClientRuntime.HttpRespon } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.StreamingDistributionConfig = try responseDecoder.decode(responseBody: data) - self.streamingDistributionConfig = output - } else { - self.streamingDistributionConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.StreamingDistributionConfig = try responseDecoder.decode(responseBody: data) + self.streamingDistributionConfig = output } else { self.streamingDistributionConfig = nil } @@ -16182,13 +16007,9 @@ extension GetStreamingDistributionOutputResponse: ClientRuntime.HttpResponseBind } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.StreamingDistribution = try responseDecoder.decode(responseBody: data) - self.streamingDistribution = output - } else { - self.streamingDistribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.StreamingDistribution = try responseDecoder.decode(responseBody: data) + self.streamingDistribution = output } else { self.streamingDistribution = nil } @@ -16386,7 +16207,7 @@ extension CloudFrontClientTypes { extension IllegalDelete { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16401,7 +16222,7 @@ extension IllegalDelete { } /// You cannot delete a managed policy. -public struct IllegalDelete: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalDelete: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16437,7 +16258,7 @@ extension IllegalDeleteBody: Swift.Decodable { extension IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16452,7 +16273,7 @@ extension IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior { } /// The specified configuration for field-level encryption can't be associated with the specified cache behavior. -public struct IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16488,7 +16309,7 @@ extension IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorBody: Swi extension IllegalOriginAccessConfiguration { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16503,7 +16324,7 @@ extension IllegalOriginAccessConfiguration { } /// An origin cannot contain both an origin access control (OAC) and an origin access identity (OAI). -public struct IllegalOriginAccessConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalOriginAccessConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16539,7 +16360,7 @@ extension IllegalOriginAccessConfigurationBody: Swift.Decodable { extension IllegalUpdate { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16554,7 +16375,7 @@ extension IllegalUpdate { } /// The update contains modifications that are not allowed. -public struct IllegalUpdate: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalUpdate: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16590,7 +16411,7 @@ extension IllegalUpdateBody: Swift.Decodable { extension InconsistentQuantities { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16605,7 +16426,7 @@ extension InconsistentQuantities { } /// The value of Quantity and the size of Items don't match. -public struct InconsistentQuantities: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InconsistentQuantities: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16641,7 +16462,7 @@ extension InconsistentQuantitiesBody: Swift.Decodable { extension InvalidArgument { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16656,7 +16477,7 @@ extension InvalidArgument { } /// An argument is invalid. -public struct InvalidArgument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16692,7 +16513,7 @@ extension InvalidArgumentBody: Swift.Decodable { extension InvalidDefaultRootObject { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16707,7 +16528,7 @@ extension InvalidDefaultRootObject { } /// The default root object file name is too big or contains an invalid character. -public struct InvalidDefaultRootObject: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDefaultRootObject: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16743,7 +16564,7 @@ extension InvalidDefaultRootObjectBody: Swift.Decodable { extension InvalidDomainNameForOriginAccessControl { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16758,7 +16579,7 @@ extension InvalidDomainNameForOriginAccessControl { } /// An origin access control is associated with an origin whose domain name is not supported. -public struct InvalidDomainNameForOriginAccessControl: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDomainNameForOriginAccessControl: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16794,7 +16615,7 @@ extension InvalidDomainNameForOriginAccessControlBody: Swift.Decodable { extension InvalidErrorCode { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16809,7 +16630,7 @@ extension InvalidErrorCode { } /// An invalid error code was specified. -public struct InvalidErrorCode: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidErrorCode: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16845,7 +16666,7 @@ extension InvalidErrorCodeBody: Swift.Decodable { extension InvalidForwardCookies { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16860,7 +16681,7 @@ extension InvalidForwardCookies { } /// Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected. -public struct InvalidForwardCookies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidForwardCookies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16896,7 +16717,7 @@ extension InvalidForwardCookiesBody: Swift.Decodable { extension InvalidFunctionAssociation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16911,7 +16732,7 @@ extension InvalidFunctionAssociation { } /// A CloudFront function association is invalid. -public struct InvalidFunctionAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFunctionAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16947,7 +16768,7 @@ extension InvalidFunctionAssociationBody: Swift.Decodable { extension InvalidGeoRestrictionParameter { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16962,7 +16783,7 @@ extension InvalidGeoRestrictionParameter { } /// The specified geo restriction parameter is not valid. -public struct InvalidGeoRestrictionParameter: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGeoRestrictionParameter: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16998,7 +16819,7 @@ extension InvalidGeoRestrictionParameterBody: Swift.Decodable { extension InvalidHeadersForS3Origin { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17013,7 +16834,7 @@ extension InvalidHeadersForS3Origin { } /// The headers specified are not valid for an Amazon S3 origin. -public struct InvalidHeadersForS3Origin: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidHeadersForS3Origin: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17049,7 +16870,7 @@ extension InvalidHeadersForS3OriginBody: Swift.Decodable { extension InvalidIfMatchVersion { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17064,7 +16885,7 @@ extension InvalidIfMatchVersion { } /// The If-Match version is missing or not valid. -public struct InvalidIfMatchVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidIfMatchVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17100,7 +16921,7 @@ extension InvalidIfMatchVersionBody: Swift.Decodable { extension InvalidLambdaFunctionAssociation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17115,7 +16936,7 @@ extension InvalidLambdaFunctionAssociation { } /// The specified Lambda@Edge function association is invalid. -public struct InvalidLambdaFunctionAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLambdaFunctionAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17151,7 +16972,7 @@ extension InvalidLambdaFunctionAssociationBody: Swift.Decodable { extension InvalidLocationCode { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17166,7 +16987,7 @@ extension InvalidLocationCode { } /// The location code specified is not valid. -public struct InvalidLocationCode: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLocationCode: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17202,7 +17023,7 @@ extension InvalidLocationCodeBody: Swift.Decodable { extension InvalidMinimumProtocolVersion { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17217,7 +17038,7 @@ extension InvalidMinimumProtocolVersion { } /// The minimum protocol version specified is not valid. -public struct InvalidMinimumProtocolVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMinimumProtocolVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17253,7 +17074,7 @@ extension InvalidMinimumProtocolVersionBody: Swift.Decodable { extension InvalidOrigin { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17268,7 +17089,7 @@ extension InvalidOrigin { } /// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. -public struct InvalidOrigin: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOrigin: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17288,7 +17109,7 @@ public struct InvalidOrigin: AWSClientRuntime.AWSHttpServiceError, Swift.Equatab extension InvalidOriginAccessControl { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17303,7 +17124,7 @@ extension InvalidOriginAccessControl { } /// The origin access control is not valid. -public struct InvalidOriginAccessControl: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOriginAccessControl: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17339,7 +17160,7 @@ extension InvalidOriginAccessControlBody: Swift.Decodable { extension InvalidOriginAccessIdentity { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17354,7 +17175,7 @@ extension InvalidOriginAccessIdentity { } /// The origin access identity is not valid or doesn't exist. -public struct InvalidOriginAccessIdentity: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOriginAccessIdentity: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17406,7 +17227,7 @@ extension InvalidOriginBody: Swift.Decodable { extension InvalidOriginKeepaliveTimeout { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17421,7 +17242,7 @@ extension InvalidOriginKeepaliveTimeout { } /// The keep alive timeout specified for the origin is not valid. -public struct InvalidOriginKeepaliveTimeout: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOriginKeepaliveTimeout: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17457,7 +17278,7 @@ extension InvalidOriginKeepaliveTimeoutBody: Swift.Decodable { extension InvalidOriginReadTimeout { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17472,7 +17293,7 @@ extension InvalidOriginReadTimeout { } /// The read timeout specified for the origin is not valid. -public struct InvalidOriginReadTimeout: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOriginReadTimeout: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17508,7 +17329,7 @@ extension InvalidOriginReadTimeoutBody: Swift.Decodable { extension InvalidProtocolSettings { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17523,7 +17344,7 @@ extension InvalidProtocolSettings { } /// You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that support Server Name Indication (SNI). -public struct InvalidProtocolSettings: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidProtocolSettings: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17559,7 +17380,7 @@ extension InvalidProtocolSettingsBody: Swift.Decodable { extension InvalidQueryStringParameters { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17574,7 +17395,7 @@ extension InvalidQueryStringParameters { } /// The query string parameters specified are not valid. -public struct InvalidQueryStringParameters: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidQueryStringParameters: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17610,7 +17431,7 @@ extension InvalidQueryStringParametersBody: Swift.Decodable { extension InvalidRelativePath { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17625,7 +17446,7 @@ extension InvalidRelativePath { } /// The relative path is too big, is not URL-encoded, or does not begin with a slash (/). -public struct InvalidRelativePath: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRelativePath: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17661,7 +17482,7 @@ extension InvalidRelativePathBody: Swift.Decodable { extension InvalidRequiredProtocol { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17676,7 +17497,7 @@ extension InvalidRequiredProtocol { } /// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration. -public struct InvalidRequiredProtocol: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequiredProtocol: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17712,7 +17533,7 @@ extension InvalidRequiredProtocolBody: Swift.Decodable { extension InvalidResponseCode { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17727,7 +17548,7 @@ extension InvalidResponseCode { } /// A response code is not valid. -public struct InvalidResponseCode: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResponseCode: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17763,7 +17584,7 @@ extension InvalidResponseCodeBody: Swift.Decodable { extension InvalidTTLOrder { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17778,7 +17599,7 @@ extension InvalidTTLOrder { } /// The TTL order specified is not valid. -public struct InvalidTTLOrder: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTTLOrder: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17814,7 +17635,7 @@ extension InvalidTTLOrderBody: Swift.Decodable { extension InvalidTagging { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17829,7 +17650,7 @@ extension InvalidTagging { } /// The tagging specified is not valid. -public struct InvalidTagging: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagging: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17865,7 +17686,7 @@ extension InvalidTaggingBody: Swift.Decodable { extension InvalidViewerCertificate { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17880,7 +17701,7 @@ extension InvalidViewerCertificate { } /// A viewer certificate specified is not valid. -public struct InvalidViewerCertificate: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidViewerCertificate: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17916,7 +17737,7 @@ extension InvalidViewerCertificateBody: Swift.Decodable { extension InvalidWebACLId { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17931,7 +17752,7 @@ extension InvalidWebACLId { } /// A web ACL ID specified is not valid. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using WAF Classic, use the ACL ID, for example 473e64fd-f30b-4765-81a0-62ad96dd167a. -public struct InvalidWebACLId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidWebACLId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18490,7 +18311,7 @@ extension CloudFrontClientTypes { extension KeyGroupAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18505,7 +18326,7 @@ extension KeyGroupAlreadyExists { } /// A key group with this name already exists. You must provide a unique name. To modify an existing key group, use UpdateKeyGroup. -public struct KeyGroupAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KeyGroupAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19189,13 +19010,9 @@ public enum ListCachePoliciesOutputError: Swift.Error, Swift.Equatable { extension ListCachePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CachePolicyList = try responseDecoder.decode(responseBody: data) - self.cachePolicyList = output - } else { - self.cachePolicyList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CachePolicyList = try responseDecoder.decode(responseBody: data) + self.cachePolicyList = output } else { self.cachePolicyList = nil } @@ -19302,13 +19119,9 @@ public enum ListCloudFrontOriginAccessIdentitiesOutputError: Swift.Error, Swift. extension ListCloudFrontOriginAccessIdentitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentityList = try responseDecoder.decode(responseBody: data) - self.cloudFrontOriginAccessIdentityList = output - } else { - self.cloudFrontOriginAccessIdentityList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentityList = try responseDecoder.decode(responseBody: data) + self.cloudFrontOriginAccessIdentityList = output } else { self.cloudFrontOriginAccessIdentityList = nil } @@ -19439,13 +19252,9 @@ public enum ListConflictingAliasesOutputError: Swift.Error, Swift.Equatable { extension ListConflictingAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ConflictingAliasesList = try responseDecoder.decode(responseBody: data) - self.conflictingAliasesList = output - } else { - self.conflictingAliasesList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ConflictingAliasesList = try responseDecoder.decode(responseBody: data) + self.conflictingAliasesList = output } else { self.conflictingAliasesList = nil } @@ -19555,13 +19364,9 @@ public enum ListContinuousDeploymentPoliciesOutputError: Swift.Error, Swift.Equa extension ListContinuousDeploymentPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ContinuousDeploymentPolicyList = try responseDecoder.decode(responseBody: data) - self.continuousDeploymentPolicyList = output - } else { - self.continuousDeploymentPolicyList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ContinuousDeploymentPolicyList = try responseDecoder.decode(responseBody: data) + self.continuousDeploymentPolicyList = output } else { self.continuousDeploymentPolicyList = nil } @@ -19679,13 +19484,9 @@ public enum ListDistributionsByCachePolicyIdOutputError: Swift.Error, Swift.Equa extension ListDistributionsByCachePolicyIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.DistributionIdList = try responseDecoder.decode(responseBody: data) - self.distributionIdList = output - } else { - self.distributionIdList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.DistributionIdList = try responseDecoder.decode(responseBody: data) + self.distributionIdList = output } else { self.distributionIdList = nil } @@ -19801,13 +19602,9 @@ public enum ListDistributionsByKeyGroupOutputError: Swift.Error, Swift.Equatable extension ListDistributionsByKeyGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.DistributionIdList = try responseDecoder.decode(responseBody: data) - self.distributionIdList = output - } else { - self.distributionIdList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.DistributionIdList = try responseDecoder.decode(responseBody: data) + self.distributionIdList = output } else { self.distributionIdList = nil } @@ -19925,13 +19722,9 @@ public enum ListDistributionsByOriginRequestPolicyIdOutputError: Swift.Error, Sw extension ListDistributionsByOriginRequestPolicyIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.DistributionIdList = try responseDecoder.decode(responseBody: data) - self.distributionIdList = output - } else { - self.distributionIdList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.DistributionIdList = try responseDecoder.decode(responseBody: data) + self.distributionIdList = output } else { self.distributionIdList = nil } @@ -20089,13 +19882,9 @@ public enum ListDistributionsByRealtimeLogConfigOutputError: Swift.Error, Swift. extension ListDistributionsByRealtimeLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.DistributionList = try responseDecoder.decode(responseBody: data) - self.distributionList = output - } else { - self.distributionList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.DistributionList = try responseDecoder.decode(responseBody: data) + self.distributionList = output } else { self.distributionList = nil } @@ -20213,13 +20002,9 @@ public enum ListDistributionsByResponseHeadersPolicyIdOutputError: Swift.Error, extension ListDistributionsByResponseHeadersPolicyIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.DistributionIdList = try responseDecoder.decode(responseBody: data) - self.distributionIdList = output - } else { - self.distributionIdList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.DistributionIdList = try responseDecoder.decode(responseBody: data) + self.distributionIdList = output } else { self.distributionIdList = nil } @@ -20336,13 +20121,9 @@ public enum ListDistributionsByWebACLIdOutputError: Swift.Error, Swift.Equatable extension ListDistributionsByWebACLIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.DistributionList = try responseDecoder.decode(responseBody: data) - self.distributionList = output - } else { - self.distributionList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.DistributionList = try responseDecoder.decode(responseBody: data) + self.distributionList = output } else { self.distributionList = nil } @@ -20450,13 +20231,9 @@ public enum ListDistributionsOutputError: Swift.Error, Swift.Equatable { extension ListDistributionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.DistributionList = try responseDecoder.decode(responseBody: data) - self.distributionList = output - } else { - self.distributionList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.DistributionList = try responseDecoder.decode(responseBody: data) + self.distributionList = output } else { self.distributionList = nil } @@ -20563,13 +20340,9 @@ public enum ListFieldLevelEncryptionConfigsOutputError: Swift.Error, Swift.Equat extension ListFieldLevelEncryptionConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryptionList = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryptionList = output - } else { - self.fieldLevelEncryptionList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryptionList = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryptionList = output } else { self.fieldLevelEncryptionList = nil } @@ -20675,13 +20448,9 @@ public enum ListFieldLevelEncryptionProfilesOutputError: Swift.Error, Swift.Equa extension ListFieldLevelEncryptionProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryptionProfileList = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryptionProfileList = output - } else { - self.fieldLevelEncryptionProfileList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryptionProfileList = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryptionProfileList = output } else { self.fieldLevelEncryptionProfileList = nil } @@ -20797,13 +20566,9 @@ public enum ListFunctionsOutputError: Swift.Error, Swift.Equatable { extension ListFunctionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FunctionList = try responseDecoder.decode(responseBody: data) - self.functionList = output - } else { - self.functionList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FunctionList = try responseDecoder.decode(responseBody: data) + self.functionList = output } else { self.functionList = nil } @@ -20922,13 +20687,9 @@ public enum ListInvalidationsOutputError: Swift.Error, Swift.Equatable { extension ListInvalidationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.InvalidationList = try responseDecoder.decode(responseBody: data) - self.invalidationList = output - } else { - self.invalidationList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.InvalidationList = try responseDecoder.decode(responseBody: data) + self.invalidationList = output } else { self.invalidationList = nil } @@ -21035,13 +20796,9 @@ public enum ListKeyGroupsOutputError: Swift.Error, Swift.Equatable { extension ListKeyGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.KeyGroupList = try responseDecoder.decode(responseBody: data) - self.keyGroupList = output - } else { - self.keyGroupList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.KeyGroupList = try responseDecoder.decode(responseBody: data) + self.keyGroupList = output } else { self.keyGroupList = nil } @@ -21147,13 +20904,9 @@ public enum ListOriginAccessControlsOutputError: Swift.Error, Swift.Equatable { extension ListOriginAccessControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginAccessControlList = try responseDecoder.decode(responseBody: data) - self.originAccessControlList = output - } else { - self.originAccessControlList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginAccessControlList = try responseDecoder.decode(responseBody: data) + self.originAccessControlList = output } else { self.originAccessControlList = nil } @@ -21275,13 +21028,9 @@ public enum ListOriginRequestPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListOriginRequestPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginRequestPolicyList = try responseDecoder.decode(responseBody: data) - self.originRequestPolicyList = output - } else { - self.originRequestPolicyList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginRequestPolicyList = try responseDecoder.decode(responseBody: data) + self.originRequestPolicyList = output } else { self.originRequestPolicyList = nil } @@ -21387,13 +21136,9 @@ public enum ListPublicKeysOutputError: Swift.Error, Swift.Equatable { extension ListPublicKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.PublicKeyList = try responseDecoder.decode(responseBody: data) - self.publicKeyList = output - } else { - self.publicKeyList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.PublicKeyList = try responseDecoder.decode(responseBody: data) + self.publicKeyList = output } else { self.publicKeyList = nil } @@ -21503,13 +21248,9 @@ public enum ListRealtimeLogConfigsOutputError: Swift.Error, Swift.Equatable { extension ListRealtimeLogConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.RealtimeLogConfigs = try responseDecoder.decode(responseBody: data) - self.realtimeLogConfigs = output - } else { - self.realtimeLogConfigs = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.RealtimeLogConfigs = try responseDecoder.decode(responseBody: data) + self.realtimeLogConfigs = output } else { self.realtimeLogConfigs = nil } @@ -21631,13 +21372,9 @@ public enum ListResponseHeadersPoliciesOutputError: Swift.Error, Swift.Equatable extension ListResponseHeadersPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ResponseHeadersPolicyList = try responseDecoder.decode(responseBody: data) - self.responseHeadersPolicyList = output - } else { - self.responseHeadersPolicyList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ResponseHeadersPolicyList = try responseDecoder.decode(responseBody: data) + self.responseHeadersPolicyList = output } else { self.responseHeadersPolicyList = nil } @@ -21744,13 +21481,9 @@ public enum ListStreamingDistributionsOutputError: Swift.Error, Swift.Equatable extension ListStreamingDistributionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.StreamingDistributionList = try responseDecoder.decode(responseBody: data) - self.streamingDistributionList = output - } else { - self.streamingDistributionList = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.StreamingDistributionList = try responseDecoder.decode(responseBody: data) + self.streamingDistributionList = output } else { self.streamingDistributionList = nil } @@ -21859,13 +21592,9 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Tags = try responseDecoder.decode(responseBody: data) - self.tags = output - } else { - self.tags = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Tags = try responseDecoder.decode(responseBody: data) + self.tags = output } else { self.tags = nil } @@ -22084,7 +21813,7 @@ extension CloudFrontClientTypes { extension MissingBody { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22099,7 +21828,7 @@ extension MissingBody { } /// This operation requires a body. Ensure that the body is present and the Content-Type header is set. -public struct MissingBody: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingBody: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22187,7 +21916,7 @@ extension CloudFrontClientTypes { extension MonitoringSubscriptionAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22202,7 +21931,7 @@ extension MonitoringSubscriptionAlreadyExists { } /// A monitoring subscription already exists for the specified distribution. -public struct MonitoringSubscriptionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MonitoringSubscriptionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22238,7 +21967,7 @@ extension MonitoringSubscriptionAlreadyExistsBody: Swift.Decodable { extension NoSuchCachePolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22253,7 +21982,7 @@ extension NoSuchCachePolicy { } /// The cache policy does not exist. -public struct NoSuchCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22289,7 +22018,7 @@ extension NoSuchCachePolicyBody: Swift.Decodable { extension NoSuchCloudFrontOriginAccessIdentity { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22304,7 +22033,7 @@ extension NoSuchCloudFrontOriginAccessIdentity { } /// The specified origin access identity does not exist. -public struct NoSuchCloudFrontOriginAccessIdentity: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchCloudFrontOriginAccessIdentity: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22340,7 +22069,7 @@ extension NoSuchCloudFrontOriginAccessIdentityBody: Swift.Decodable { extension NoSuchContinuousDeploymentPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22355,7 +22084,7 @@ extension NoSuchContinuousDeploymentPolicy { } /// The continuous deployment policy doesn't exist. -public struct NoSuchContinuousDeploymentPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchContinuousDeploymentPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22391,7 +22120,7 @@ extension NoSuchContinuousDeploymentPolicyBody: Swift.Decodable { extension NoSuchDistribution { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22406,7 +22135,7 @@ extension NoSuchDistribution { } /// The specified distribution does not exist. -public struct NoSuchDistribution: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchDistribution: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22442,7 +22171,7 @@ extension NoSuchDistributionBody: Swift.Decodable { extension NoSuchFieldLevelEncryptionConfig { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22457,7 +22186,7 @@ extension NoSuchFieldLevelEncryptionConfig { } /// The specified configuration for field-level encryption doesn't exist. -public struct NoSuchFieldLevelEncryptionConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchFieldLevelEncryptionConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22493,7 +22222,7 @@ extension NoSuchFieldLevelEncryptionConfigBody: Swift.Decodable { extension NoSuchFieldLevelEncryptionProfile { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22508,7 +22237,7 @@ extension NoSuchFieldLevelEncryptionProfile { } /// The specified profile for field-level encryption doesn't exist. -public struct NoSuchFieldLevelEncryptionProfile: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchFieldLevelEncryptionProfile: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22544,7 +22273,7 @@ extension NoSuchFieldLevelEncryptionProfileBody: Swift.Decodable { extension NoSuchFunctionExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22559,7 +22288,7 @@ extension NoSuchFunctionExists { } /// The function does not exist. -public struct NoSuchFunctionExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchFunctionExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22595,7 +22324,7 @@ extension NoSuchFunctionExistsBody: Swift.Decodable { extension NoSuchInvalidation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22610,7 +22339,7 @@ extension NoSuchInvalidation { } /// The specified invalidation does not exist. -public struct NoSuchInvalidation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchInvalidation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22646,7 +22375,7 @@ extension NoSuchInvalidationBody: Swift.Decodable { extension NoSuchMonitoringSubscription { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22661,7 +22390,7 @@ extension NoSuchMonitoringSubscription { } /// A monitoring subscription does not exist for the specified distribution. -public struct NoSuchMonitoringSubscription: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchMonitoringSubscription: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22697,7 +22426,7 @@ extension NoSuchMonitoringSubscriptionBody: Swift.Decodable { extension NoSuchOrigin { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22712,7 +22441,7 @@ extension NoSuchOrigin { } /// No origin exists with the specified Origin Id. -public struct NoSuchOrigin: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchOrigin: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22732,7 +22461,7 @@ public struct NoSuchOrigin: AWSClientRuntime.AWSHttpServiceError, Swift.Equatabl extension NoSuchOriginAccessControl { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22747,7 +22476,7 @@ extension NoSuchOriginAccessControl { } /// The origin access control does not exist. -public struct NoSuchOriginAccessControl: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchOriginAccessControl: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22799,7 +22528,7 @@ extension NoSuchOriginBody: Swift.Decodable { extension NoSuchOriginRequestPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22814,7 +22543,7 @@ extension NoSuchOriginRequestPolicy { } /// The origin request policy does not exist. -public struct NoSuchOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22850,7 +22579,7 @@ extension NoSuchOriginRequestPolicyBody: Swift.Decodable { extension NoSuchPublicKey { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22865,7 +22594,7 @@ extension NoSuchPublicKey { } /// The specified public key doesn't exist. -public struct NoSuchPublicKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchPublicKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22901,7 +22630,7 @@ extension NoSuchPublicKeyBody: Swift.Decodable { extension NoSuchRealtimeLogConfig { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22916,7 +22645,7 @@ extension NoSuchRealtimeLogConfig { } /// The real-time log configuration does not exist. -public struct NoSuchRealtimeLogConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchRealtimeLogConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22952,7 +22681,7 @@ extension NoSuchRealtimeLogConfigBody: Swift.Decodable { extension NoSuchResource { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22967,7 +22696,7 @@ extension NoSuchResource { } /// A resource that was specified is not valid. -public struct NoSuchResource: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchResource: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23003,7 +22732,7 @@ extension NoSuchResourceBody: Swift.Decodable { extension NoSuchResponseHeadersPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23018,7 +22747,7 @@ extension NoSuchResponseHeadersPolicy { } /// The response headers policy does not exist. -public struct NoSuchResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23054,7 +22783,7 @@ extension NoSuchResponseHeadersPolicyBody: Swift.Decodable { extension NoSuchStreamingDistribution { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23069,7 +22798,7 @@ extension NoSuchStreamingDistribution { } /// The specified streaming distribution does not exist. -public struct NoSuchStreamingDistribution: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchStreamingDistribution: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23332,7 +23061,7 @@ extension CloudFrontClientTypes { extension OriginAccessControlAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23347,7 +23076,7 @@ extension OriginAccessControlAlreadyExists { } /// An origin access control with the specified parameters already exists. -public struct OriginAccessControlAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OriginAccessControlAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23485,7 +23214,7 @@ extension CloudFrontClientTypes { extension OriginAccessControlInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23500,7 +23229,7 @@ extension OriginAccessControlInUse { } /// Cannot delete the origin access control because it's in use by one or more distributions. -public struct OriginAccessControlInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OriginAccessControlInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24408,7 +24137,7 @@ extension CloudFrontClientTypes { extension OriginRequestPolicyAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24423,7 +24152,7 @@ extension OriginRequestPolicyAlreadyExists { } /// An origin request policy with this name already exists. You must provide a unique name. To modify an existing origin request policy, use UpdateOriginRequestPolicy. -public struct OriginRequestPolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OriginRequestPolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24787,7 +24516,7 @@ extension CloudFrontClientTypes { extension OriginRequestPolicyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24802,7 +24531,7 @@ extension OriginRequestPolicyInUse { } /// Cannot delete the origin request policy because it is attached to one or more cache behaviors. -public struct OriginRequestPolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OriginRequestPolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25575,7 +25304,7 @@ extension CloudFrontClientTypes { extension PreconditionFailed { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -25590,7 +25319,7 @@ extension PreconditionFailed { } /// The precondition in one or more of the request fields evaluated to false. -public struct PreconditionFailed: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionFailed: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25736,7 +25465,7 @@ extension CloudFrontClientTypes { extension PublicKeyAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -25751,7 +25480,7 @@ extension PublicKeyAlreadyExists { } /// The specified public key already exists. -public struct PublicKeyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PublicKeyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25872,7 +25601,7 @@ extension CloudFrontClientTypes { extension PublicKeyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -25887,7 +25616,7 @@ extension PublicKeyInUse { } /// The specified public key is in use. -public struct PublicKeyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PublicKeyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26198,13 +25927,9 @@ public enum PublishFunctionOutputError: Swift.Error, Swift.Equatable { extension PublishFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FunctionSummary = try responseDecoder.decode(responseBody: data) - self.functionSummary = output - } else { - self.functionSummary = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FunctionSummary = try responseDecoder.decode(responseBody: data) + self.functionSummary = output } else { self.functionSummary = nil } @@ -26368,7 +26093,7 @@ extension CloudFrontClientTypes { extension QueryArgProfileEmpty { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -26383,7 +26108,7 @@ extension QueryArgProfileEmpty { } /// No profile specified for the field-level encryption query argument. -public struct QueryArgProfileEmpty: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QueryArgProfileEmpty: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26805,7 +26530,7 @@ extension CloudFrontClientTypes { extension RealtimeLogConfigAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -26820,7 +26545,7 @@ extension RealtimeLogConfigAlreadyExists { } /// A real-time log configuration with this name already exists. You must provide a unique name. To modify an existing real-time log configuration, use UpdateRealtimeLogConfig. -public struct RealtimeLogConfigAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RealtimeLogConfigAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26856,7 +26581,7 @@ extension RealtimeLogConfigAlreadyExistsBody: Swift.Decodable { extension RealtimeLogConfigInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -26871,7 +26596,7 @@ extension RealtimeLogConfigInUse { } /// Cannot delete the real-time log configuration because it is attached to one or more cache behaviors. -public struct RealtimeLogConfigInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RealtimeLogConfigInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26907,7 +26632,7 @@ extension RealtimeLogConfigInUseBody: Swift.Decodable { extension RealtimeLogConfigOwnerMismatch { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -26922,7 +26647,7 @@ extension RealtimeLogConfigOwnerMismatch { } /// The specified real-time log configuration belongs to a different Amazon Web Services account. -public struct RealtimeLogConfigOwnerMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RealtimeLogConfigOwnerMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27208,7 +26933,7 @@ extension CloudFrontClientTypes { extension ResourceInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -27223,7 +26948,7 @@ extension ResourceInUse { } /// Cannot delete this resource because it is in use. -public struct ResourceInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27738,7 +27463,7 @@ extension CloudFrontClientTypes { extension ResponseHeadersPolicyAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -27753,7 +27478,7 @@ extension ResponseHeadersPolicyAlreadyExists { } /// A response headers policy with this name already exists. You must provide a unique name. To modify an existing response headers policy, use UpdateResponseHeadersPolicy. -public struct ResponseHeadersPolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResponseHeadersPolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -28358,7 +28083,7 @@ extension CloudFrontClientTypes { extension ResponseHeadersPolicyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -28373,7 +28098,7 @@ extension ResponseHeadersPolicyInUse { } /// Cannot delete the response headers policy because it is attached to one or more cache behaviors in a CloudFront distribution. -public struct ResponseHeadersPolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResponseHeadersPolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29613,7 +29338,7 @@ extension CloudFrontClientTypes { extension StagingDistributionInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -29628,7 +29353,7 @@ extension StagingDistributionInUse { } /// A continuous deployment policy for this staging distribution already exists. -public struct StagingDistributionInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StagingDistributionInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29866,7 +29591,7 @@ extension CloudFrontClientTypes { extension StreamingDistributionAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -29881,7 +29606,7 @@ extension StreamingDistributionAlreadyExists { } /// The caller reference you attempted to create the streaming distribution with is associated with another distribution -public struct StreamingDistributionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StreamingDistributionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30234,7 +29959,7 @@ extension CloudFrontClientTypes { extension StreamingDistributionNotDisabled { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30249,7 +29974,7 @@ extension StreamingDistributionNotDisabled { } /// The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it. -public struct StreamingDistributionNotDisabled: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StreamingDistributionNotDisabled: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30673,15 +30398,15 @@ public struct TagResourceInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let tags = input.operationInput.tags { let xmlEncoder = encoder as! XMLEncoder - let tagsdata = try xmlEncoder.encode(tags, withRootKey: "Tags") - let tagsbody = ClientRuntime.HttpBody.data(tagsdata) - input.builder.withBody(tagsbody) + let tagsData = try xmlEncoder.encode(tags, withRootKey: "Tags") + let tagsBody = ClientRuntime.HttpBody.data(tagsData) + input.builder.withBody(tagsBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let tagsdata = "{}".data(using: .utf8)! - let tagsbody = ClientRuntime.HttpBody.data(tagsdata) - input.builder.withBody(tagsbody) + let tagsData = "{}".data(using: .utf8)! + let tagsBody = ClientRuntime.HttpBody.data(tagsData) + input.builder.withBody(tagsBody) } } } catch let err { @@ -30893,7 +30618,7 @@ extension CloudFrontClientTypes { extension TestFunctionFailed { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30908,7 +30633,7 @@ extension TestFunctionFailed { } /// The CloudFront function failed. -public struct TestFunctionFailed: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TestFunctionFailed: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31086,13 +30811,9 @@ public enum TestFunctionOutputError: Swift.Error, Swift.Equatable { extension TestFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.TestResult = try responseDecoder.decode(responseBody: data) - self.testResult = output - } else { - self.testResult = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.TestResult = try responseDecoder.decode(responseBody: data) + self.testResult = output } else { self.testResult = nil } @@ -31246,7 +30967,7 @@ extension CloudFrontClientTypes { extension TooLongCSPInResponseHeadersPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31261,7 +30982,7 @@ extension TooLongCSPInResponseHeadersPolicy { } /// The length of the Content-Security-Policy header value in the response headers policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooLongCSPInResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooLongCSPInResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31297,7 +31018,7 @@ extension TooLongCSPInResponseHeadersPolicyBody: Swift.Decodable { extension TooManyCacheBehaviors { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31312,7 +31033,7 @@ extension TooManyCacheBehaviors { } /// You cannot create more cache behaviors for the distribution. -public struct TooManyCacheBehaviors: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCacheBehaviors: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31348,7 +31069,7 @@ extension TooManyCacheBehaviorsBody: Swift.Decodable { extension TooManyCachePolicies { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31363,7 +31084,7 @@ extension TooManyCachePolicies { } /// You have reached the maximum number of cache policies for this Amazon Web Services account. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyCachePolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCachePolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31399,7 +31120,7 @@ extension TooManyCachePoliciesBody: Swift.Decodable { extension TooManyCertificates { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31414,7 +31135,7 @@ extension TooManyCertificates { } /// You cannot create anymore custom SSL/TLS certificates. -public struct TooManyCertificates: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCertificates: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31450,7 +31171,7 @@ extension TooManyCertificatesBody: Swift.Decodable { extension TooManyCloudFrontOriginAccessIdentities { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31465,7 +31186,7 @@ extension TooManyCloudFrontOriginAccessIdentities { } /// Processing your request would cause you to exceed the maximum number of origin access identities allowed. -public struct TooManyCloudFrontOriginAccessIdentities: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCloudFrontOriginAccessIdentities: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31501,7 +31222,7 @@ extension TooManyCloudFrontOriginAccessIdentitiesBody: Swift.Decodable { extension TooManyContinuousDeploymentPolicies { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31516,7 +31237,7 @@ extension TooManyContinuousDeploymentPolicies { } /// You have reached the maximum number of continuous deployment policies for this Amazon Web Services account. -public struct TooManyContinuousDeploymentPolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyContinuousDeploymentPolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31552,7 +31273,7 @@ extension TooManyContinuousDeploymentPoliciesBody: Swift.Decodable { extension TooManyCookieNamesInWhiteList { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31567,7 +31288,7 @@ extension TooManyCookieNamesInWhiteList { } /// Your request contains more cookie names in the whitelist than are allowed per cache behavior. -public struct TooManyCookieNamesInWhiteList: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCookieNamesInWhiteList: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31603,7 +31324,7 @@ extension TooManyCookieNamesInWhiteListBody: Swift.Decodable { extension TooManyCookiesInCachePolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31618,7 +31339,7 @@ extension TooManyCookiesInCachePolicy { } /// The number of cookies in the cache policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyCookiesInCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCookiesInCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31654,7 +31375,7 @@ extension TooManyCookiesInCachePolicyBody: Swift.Decodable { extension TooManyCookiesInOriginRequestPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31669,7 +31390,7 @@ extension TooManyCookiesInOriginRequestPolicy { } /// The number of cookies in the origin request policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyCookiesInOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCookiesInOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31705,7 +31426,7 @@ extension TooManyCookiesInOriginRequestPolicyBody: Swift.Decodable { extension TooManyCustomHeadersInResponseHeadersPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31720,7 +31441,7 @@ extension TooManyCustomHeadersInResponseHeadersPolicy { } /// The number of custom headers in the response headers policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyCustomHeadersInResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCustomHeadersInResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31756,7 +31477,7 @@ extension TooManyCustomHeadersInResponseHeadersPolicyBody: Swift.Decodable { extension TooManyDistributionCNAMEs { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31771,7 +31492,7 @@ extension TooManyDistributionCNAMEs { } /// Your request contains more CNAMEs than are allowed per distribution. -public struct TooManyDistributionCNAMEs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionCNAMEs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31807,7 +31528,7 @@ extension TooManyDistributionCNAMEsBody: Swift.Decodable { extension TooManyDistributions { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31822,7 +31543,7 @@ extension TooManyDistributions { } /// Processing your request would cause you to exceed the maximum number of distributions allowed. -public struct TooManyDistributions: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributions: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31842,7 +31563,7 @@ public struct TooManyDistributions: AWSClientRuntime.AWSHttpServiceError, Swift. extension TooManyDistributionsAssociatedToCachePolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31857,7 +31578,7 @@ extension TooManyDistributionsAssociatedToCachePolicy { } /// The maximum number of distributions have been associated with the specified cache policy. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyDistributionsAssociatedToCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsAssociatedToCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31893,7 +31614,7 @@ extension TooManyDistributionsAssociatedToCachePolicyBody: Swift.Decodable { extension TooManyDistributionsAssociatedToFieldLevelEncryptionConfig { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31908,7 +31629,7 @@ extension TooManyDistributionsAssociatedToFieldLevelEncryptionConfig { } /// The maximum number of distributions have been associated with the specified configuration for field-level encryption. -public struct TooManyDistributionsAssociatedToFieldLevelEncryptionConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsAssociatedToFieldLevelEncryptionConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31944,7 +31665,7 @@ extension TooManyDistributionsAssociatedToFieldLevelEncryptionConfigBody: Swift. extension TooManyDistributionsAssociatedToKeyGroup { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31959,7 +31680,7 @@ extension TooManyDistributionsAssociatedToKeyGroup { } /// The number of distributions that reference this key group is more than the maximum allowed. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyDistributionsAssociatedToKeyGroup: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsAssociatedToKeyGroup: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31995,7 +31716,7 @@ extension TooManyDistributionsAssociatedToKeyGroupBody: Swift.Decodable { extension TooManyDistributionsAssociatedToOriginAccessControl { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32010,7 +31731,7 @@ extension TooManyDistributionsAssociatedToOriginAccessControl { } /// The maximum number of distributions have been associated with the specified origin access control. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyDistributionsAssociatedToOriginAccessControl: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsAssociatedToOriginAccessControl: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32046,7 +31767,7 @@ extension TooManyDistributionsAssociatedToOriginAccessControlBody: Swift.Decodab extension TooManyDistributionsAssociatedToOriginRequestPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32061,7 +31782,7 @@ extension TooManyDistributionsAssociatedToOriginRequestPolicy { } /// The maximum number of distributions have been associated with the specified origin request policy. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyDistributionsAssociatedToOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsAssociatedToOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32097,7 +31818,7 @@ extension TooManyDistributionsAssociatedToOriginRequestPolicyBody: Swift.Decodab extension TooManyDistributionsAssociatedToResponseHeadersPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32112,7 +31833,7 @@ extension TooManyDistributionsAssociatedToResponseHeadersPolicy { } /// The maximum number of distributions have been associated with the specified response headers policy. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyDistributionsAssociatedToResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsAssociatedToResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32164,7 +31885,7 @@ extension TooManyDistributionsBody: Swift.Decodable { extension TooManyDistributionsWithFunctionAssociations { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32179,7 +31900,7 @@ extension TooManyDistributionsWithFunctionAssociations { } /// You have reached the maximum number of distributions that are associated with a CloudFront function. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyDistributionsWithFunctionAssociations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsWithFunctionAssociations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32215,7 +31936,7 @@ extension TooManyDistributionsWithFunctionAssociationsBody: Swift.Decodable { extension TooManyDistributionsWithLambdaAssociations { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32230,7 +31951,7 @@ extension TooManyDistributionsWithLambdaAssociations { } /// Processing your request would cause the maximum number of distributions with Lambda@Edge function associations per owner to be exceeded. -public struct TooManyDistributionsWithLambdaAssociations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsWithLambdaAssociations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32266,7 +31987,7 @@ extension TooManyDistributionsWithLambdaAssociationsBody: Swift.Decodable { extension TooManyDistributionsWithSingleFunctionARN { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32281,7 +32002,7 @@ extension TooManyDistributionsWithSingleFunctionARN { } /// The maximum number of distributions have been associated with the specified Lambda@Edge function. -public struct TooManyDistributionsWithSingleFunctionARN: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyDistributionsWithSingleFunctionARN: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32317,7 +32038,7 @@ extension TooManyDistributionsWithSingleFunctionARNBody: Swift.Decodable { extension TooManyFieldLevelEncryptionConfigs { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32332,7 +32053,7 @@ extension TooManyFieldLevelEncryptionConfigs { } /// The maximum number of configurations for field-level encryption have been created. -public struct TooManyFieldLevelEncryptionConfigs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFieldLevelEncryptionConfigs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32368,7 +32089,7 @@ extension TooManyFieldLevelEncryptionConfigsBody: Swift.Decodable { extension TooManyFieldLevelEncryptionContentTypeProfiles { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32383,7 +32104,7 @@ extension TooManyFieldLevelEncryptionContentTypeProfiles { } /// The maximum number of content type profiles for field-level encryption have been created. -public struct TooManyFieldLevelEncryptionContentTypeProfiles: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFieldLevelEncryptionContentTypeProfiles: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32419,7 +32140,7 @@ extension TooManyFieldLevelEncryptionContentTypeProfilesBody: Swift.Decodable { extension TooManyFieldLevelEncryptionEncryptionEntities { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32434,7 +32155,7 @@ extension TooManyFieldLevelEncryptionEncryptionEntities { } /// The maximum number of encryption entities for field-level encryption have been created. -public struct TooManyFieldLevelEncryptionEncryptionEntities: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFieldLevelEncryptionEncryptionEntities: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32470,7 +32191,7 @@ extension TooManyFieldLevelEncryptionEncryptionEntitiesBody: Swift.Decodable { extension TooManyFieldLevelEncryptionFieldPatterns { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32485,7 +32206,7 @@ extension TooManyFieldLevelEncryptionFieldPatterns { } /// The maximum number of field patterns for field-level encryption have been created. -public struct TooManyFieldLevelEncryptionFieldPatterns: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFieldLevelEncryptionFieldPatterns: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32521,7 +32242,7 @@ extension TooManyFieldLevelEncryptionFieldPatternsBody: Swift.Decodable { extension TooManyFieldLevelEncryptionProfiles { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32536,7 +32257,7 @@ extension TooManyFieldLevelEncryptionProfiles { } /// The maximum number of profiles for field-level encryption have been created. -public struct TooManyFieldLevelEncryptionProfiles: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFieldLevelEncryptionProfiles: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32572,7 +32293,7 @@ extension TooManyFieldLevelEncryptionProfilesBody: Swift.Decodable { extension TooManyFieldLevelEncryptionQueryArgProfiles { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32587,7 +32308,7 @@ extension TooManyFieldLevelEncryptionQueryArgProfiles { } /// The maximum number of query arg profiles for field-level encryption have been created. -public struct TooManyFieldLevelEncryptionQueryArgProfiles: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFieldLevelEncryptionQueryArgProfiles: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32623,7 +32344,7 @@ extension TooManyFieldLevelEncryptionQueryArgProfilesBody: Swift.Decodable { extension TooManyFunctionAssociations { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32638,7 +32359,7 @@ extension TooManyFunctionAssociations { } /// You have reached the maximum number of CloudFront function associations for this distribution. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyFunctionAssociations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFunctionAssociations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32674,7 +32395,7 @@ extension TooManyFunctionAssociationsBody: Swift.Decodable { extension TooManyFunctions { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32689,7 +32410,7 @@ extension TooManyFunctions { } /// You have reached the maximum number of CloudFront functions for this Amazon Web Services account. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyFunctions: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFunctions: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32725,7 +32446,7 @@ extension TooManyFunctionsBody: Swift.Decodable { extension TooManyHeadersInCachePolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32740,7 +32461,7 @@ extension TooManyHeadersInCachePolicy { } /// The number of headers in the cache policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyHeadersInCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyHeadersInCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32776,7 +32497,7 @@ extension TooManyHeadersInCachePolicyBody: Swift.Decodable { extension TooManyHeadersInForwardedValues { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32791,7 +32512,7 @@ extension TooManyHeadersInForwardedValues { } /// Your request contains too many headers in forwarded values. -public struct TooManyHeadersInForwardedValues: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyHeadersInForwardedValues: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32827,7 +32548,7 @@ extension TooManyHeadersInForwardedValuesBody: Swift.Decodable { extension TooManyHeadersInOriginRequestPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32842,7 +32563,7 @@ extension TooManyHeadersInOriginRequestPolicy { } /// The number of headers in the origin request policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyHeadersInOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyHeadersInOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32878,7 +32599,7 @@ extension TooManyHeadersInOriginRequestPolicyBody: Swift.Decodable { extension TooManyInvalidationsInProgress { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32893,7 +32614,7 @@ extension TooManyInvalidationsInProgress { } /// You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects. -public struct TooManyInvalidationsInProgress: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyInvalidationsInProgress: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32929,7 +32650,7 @@ extension TooManyInvalidationsInProgressBody: Swift.Decodable { extension TooManyKeyGroups { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32944,7 +32665,7 @@ extension TooManyKeyGroups { } /// You have reached the maximum number of key groups for this Amazon Web Services account. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyKeyGroups: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyKeyGroups: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32964,7 +32685,7 @@ public struct TooManyKeyGroups: AWSClientRuntime.AWSHttpServiceError, Swift.Equa extension TooManyKeyGroupsAssociatedToDistribution { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32979,7 +32700,7 @@ extension TooManyKeyGroupsAssociatedToDistribution { } /// The number of key groups referenced by this distribution is more than the maximum allowed. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyKeyGroupsAssociatedToDistribution: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyKeyGroupsAssociatedToDistribution: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33031,7 +32752,7 @@ extension TooManyKeyGroupsBody: Swift.Decodable { extension TooManyLambdaFunctionAssociations { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33046,7 +32767,7 @@ extension TooManyLambdaFunctionAssociations { } /// Your request contains more Lambda@Edge function associations than are allowed per distribution. -public struct TooManyLambdaFunctionAssociations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyLambdaFunctionAssociations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33082,7 +32803,7 @@ extension TooManyLambdaFunctionAssociationsBody: Swift.Decodable { extension TooManyOriginAccessControls { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33097,7 +32818,7 @@ extension TooManyOriginAccessControls { } /// The number of origin access controls in your Amazon Web Services account exceeds the maximum allowed. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyOriginAccessControls: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyOriginAccessControls: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33133,7 +32854,7 @@ extension TooManyOriginAccessControlsBody: Swift.Decodable { extension TooManyOriginCustomHeaders { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33148,7 +32869,7 @@ extension TooManyOriginCustomHeaders { } /// Your request contains too many origin custom headers. -public struct TooManyOriginCustomHeaders: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyOriginCustomHeaders: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33184,7 +32905,7 @@ extension TooManyOriginCustomHeadersBody: Swift.Decodable { extension TooManyOriginGroupsPerDistribution { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33199,7 +32920,7 @@ extension TooManyOriginGroupsPerDistribution { } /// Processing your request would cause you to exceed the maximum number of origin groups allowed. -public struct TooManyOriginGroupsPerDistribution: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyOriginGroupsPerDistribution: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33235,7 +32956,7 @@ extension TooManyOriginGroupsPerDistributionBody: Swift.Decodable { extension TooManyOriginRequestPolicies { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33250,7 +32971,7 @@ extension TooManyOriginRequestPolicies { } /// You have reached the maximum number of origin request policies for this Amazon Web Services account. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyOriginRequestPolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyOriginRequestPolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33286,7 +33007,7 @@ extension TooManyOriginRequestPoliciesBody: Swift.Decodable { extension TooManyOrigins { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33301,7 +33022,7 @@ extension TooManyOrigins { } /// You cannot create more origins for the distribution. -public struct TooManyOrigins: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyOrigins: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33337,7 +33058,7 @@ extension TooManyOriginsBody: Swift.Decodable { extension TooManyPublicKeys { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33352,7 +33073,7 @@ extension TooManyPublicKeys { } /// The maximum number of public keys for field-level encryption have been created. To create a new public key, delete one of the existing keys. -public struct TooManyPublicKeys: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyPublicKeys: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33388,7 +33109,7 @@ extension TooManyPublicKeysBody: Swift.Decodable { extension TooManyPublicKeysInKeyGroup { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33403,7 +33124,7 @@ extension TooManyPublicKeysInKeyGroup { } /// The number of public keys in this key group is more than the maximum allowed. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyPublicKeysInKeyGroup: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyPublicKeysInKeyGroup: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33439,7 +33160,7 @@ extension TooManyPublicKeysInKeyGroupBody: Swift.Decodable { extension TooManyQueryStringParameters { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33454,7 +33175,7 @@ extension TooManyQueryStringParameters { } /// Your request contains too many query string parameters. -public struct TooManyQueryStringParameters: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyQueryStringParameters: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33490,7 +33211,7 @@ extension TooManyQueryStringParametersBody: Swift.Decodable { extension TooManyQueryStringsInCachePolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33505,7 +33226,7 @@ extension TooManyQueryStringsInCachePolicy { } /// The number of query strings in the cache policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyQueryStringsInCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyQueryStringsInCachePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33541,7 +33262,7 @@ extension TooManyQueryStringsInCachePolicyBody: Swift.Decodable { extension TooManyQueryStringsInOriginRequestPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33556,7 +33277,7 @@ extension TooManyQueryStringsInOriginRequestPolicy { } /// The number of query strings in the origin request policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyQueryStringsInOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyQueryStringsInOriginRequestPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33592,7 +33313,7 @@ extension TooManyQueryStringsInOriginRequestPolicyBody: Swift.Decodable { extension TooManyRealtimeLogConfigs { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33607,7 +33328,7 @@ extension TooManyRealtimeLogConfigs { } /// You have reached the maximum number of real-time log configurations for this Amazon Web Services account. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyRealtimeLogConfigs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRealtimeLogConfigs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33643,7 +33364,7 @@ extension TooManyRealtimeLogConfigsBody: Swift.Decodable { extension TooManyRemoveHeadersInResponseHeadersPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33658,7 +33379,7 @@ extension TooManyRemoveHeadersInResponseHeadersPolicy { } /// The number of headers in RemoveHeadersConfig in the response headers policy exceeds the maximum. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyRemoveHeadersInResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRemoveHeadersInResponseHeadersPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33694,7 +33415,7 @@ extension TooManyRemoveHeadersInResponseHeadersPolicyBody: Swift.Decodable { extension TooManyResponseHeadersPolicies { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33709,7 +33430,7 @@ extension TooManyResponseHeadersPolicies { } /// You have reached the maximum number of response headers policies for this Amazon Web Services account. For more information, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) (formerly known as limits) in the Amazon CloudFront Developer Guide. -public struct TooManyResponseHeadersPolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyResponseHeadersPolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33745,7 +33466,7 @@ extension TooManyResponseHeadersPoliciesBody: Swift.Decodable { extension TooManyStreamingDistributionCNAMEs { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33760,7 +33481,7 @@ extension TooManyStreamingDistributionCNAMEs { } /// Your request contains more CNAMEs than are allowed per distribution. -public struct TooManyStreamingDistributionCNAMEs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyStreamingDistributionCNAMEs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33796,7 +33517,7 @@ extension TooManyStreamingDistributionCNAMEsBody: Swift.Decodable { extension TooManyStreamingDistributions { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33811,7 +33532,7 @@ extension TooManyStreamingDistributions { } /// Processing your request would cause you to exceed the maximum number of streaming distributions allowed. -public struct TooManyStreamingDistributions: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyStreamingDistributions: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33847,7 +33568,7 @@ extension TooManyStreamingDistributionsBody: Swift.Decodable { extension TooManyTrustedSigners { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33862,7 +33583,7 @@ extension TooManyTrustedSigners { } /// Your request contains more trusted signers than are allowed per distribution. -public struct TooManyTrustedSigners: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTrustedSigners: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33971,7 +33692,7 @@ extension CloudFrontClientTypes { extension TrustedKeyGroupDoesNotExist { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33986,7 +33707,7 @@ extension TrustedKeyGroupDoesNotExist { } /// The specified key group does not exist. -public struct TrustedKeyGroupDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrustedKeyGroupDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34116,7 +33837,7 @@ extension CloudFrontClientTypes { extension TrustedSignerDoesNotExist { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34131,7 +33852,7 @@ extension TrustedSignerDoesNotExist { } /// One or more of your trusted signers don't exist. -public struct TrustedSignerDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrustedSignerDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34261,7 +33982,7 @@ extension CloudFrontClientTypes { extension UnsupportedOperation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34276,7 +33997,7 @@ extension UnsupportedOperation { } /// This operation is not supported in this region. -public struct UnsupportedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34327,15 +34048,15 @@ public struct UntagResourceInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let tagKeys = input.operationInput.tagKeys { let xmlEncoder = encoder as! XMLEncoder - let tagKeysdata = try xmlEncoder.encode(tagKeys, withRootKey: "TagKeys") - let tagKeysbody = ClientRuntime.HttpBody.data(tagKeysdata) - input.builder.withBody(tagKeysbody) + let tagKeysData = try xmlEncoder.encode(tagKeys, withRootKey: "TagKeys") + let tagKeysBody = ClientRuntime.HttpBody.data(tagKeysData) + input.builder.withBody(tagKeysBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let tagKeysdata = "{}".data(using: .utf8)! - let tagKeysbody = ClientRuntime.HttpBody.data(tagKeysdata) - input.builder.withBody(tagKeysbody) + let tagKeysData = "{}".data(using: .utf8)! + let tagKeysBody = ClientRuntime.HttpBody.data(tagKeysData) + input.builder.withBody(tagKeysBody) } } } catch let err { @@ -34490,15 +34211,15 @@ public struct UpdateCachePolicyInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let cachePolicyConfig = input.operationInput.cachePolicyConfig { let xmlEncoder = encoder as! XMLEncoder - let cachePolicyConfigdata = try xmlEncoder.encode(cachePolicyConfig, withRootKey: "CachePolicyConfig") - let cachePolicyConfigbody = ClientRuntime.HttpBody.data(cachePolicyConfigdata) - input.builder.withBody(cachePolicyConfigbody) + let cachePolicyConfigData = try xmlEncoder.encode(cachePolicyConfig, withRootKey: "CachePolicyConfig") + let cachePolicyConfigBody = ClientRuntime.HttpBody.data(cachePolicyConfigData) + input.builder.withBody(cachePolicyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let cachePolicyConfigdata = "{}".data(using: .utf8)! - let cachePolicyConfigbody = ClientRuntime.HttpBody.data(cachePolicyConfigdata) - input.builder.withBody(cachePolicyConfigbody) + let cachePolicyConfigData = "{}".data(using: .utf8)! + let cachePolicyConfigBody = ClientRuntime.HttpBody.data(cachePolicyConfigData) + input.builder.withBody(cachePolicyConfigBody) } } } catch let err { @@ -34647,13 +34368,9 @@ extension UpdateCachePolicyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CachePolicy = try responseDecoder.decode(responseBody: data) - self.cachePolicy = output - } else { - self.cachePolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CachePolicy = try responseDecoder.decode(responseBody: data) + self.cachePolicy = output } else { self.cachePolicy = nil } @@ -34709,15 +34426,15 @@ public struct UpdateCloudFrontOriginAccessIdentityInputBodyMiddleware: ClientRun let encoder = context.getEncoder() if let cloudFrontOriginAccessIdentityConfig = input.operationInput.cloudFrontOriginAccessIdentityConfig { let xmlEncoder = encoder as! XMLEncoder - let cloudFrontOriginAccessIdentityConfigdata = try xmlEncoder.encode(cloudFrontOriginAccessIdentityConfig, withRootKey: "CloudFrontOriginAccessIdentityConfig") - let cloudFrontOriginAccessIdentityConfigbody = ClientRuntime.HttpBody.data(cloudFrontOriginAccessIdentityConfigdata) - input.builder.withBody(cloudFrontOriginAccessIdentityConfigbody) + let cloudFrontOriginAccessIdentityConfigData = try xmlEncoder.encode(cloudFrontOriginAccessIdentityConfig, withRootKey: "CloudFrontOriginAccessIdentityConfig") + let cloudFrontOriginAccessIdentityConfigBody = ClientRuntime.HttpBody.data(cloudFrontOriginAccessIdentityConfigData) + input.builder.withBody(cloudFrontOriginAccessIdentityConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let cloudFrontOriginAccessIdentityConfigdata = "{}".data(using: .utf8)! - let cloudFrontOriginAccessIdentityConfigbody = ClientRuntime.HttpBody.data(cloudFrontOriginAccessIdentityConfigdata) - input.builder.withBody(cloudFrontOriginAccessIdentityConfigbody) + let cloudFrontOriginAccessIdentityConfigData = "{}".data(using: .utf8)! + let cloudFrontOriginAccessIdentityConfigBody = ClientRuntime.HttpBody.data(cloudFrontOriginAccessIdentityConfigData) + input.builder.withBody(cloudFrontOriginAccessIdentityConfigBody) } } } catch let err { @@ -34861,13 +34578,9 @@ extension UpdateCloudFrontOriginAccessIdentityOutputResponse: ClientRuntime.Http } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentity = try responseDecoder.decode(responseBody: data) - self.cloudFrontOriginAccessIdentity = output - } else { - self.cloudFrontOriginAccessIdentity = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.CloudFrontOriginAccessIdentity = try responseDecoder.decode(responseBody: data) + self.cloudFrontOriginAccessIdentity = output } else { self.cloudFrontOriginAccessIdentity = nil } @@ -34924,15 +34637,15 @@ public struct UpdateContinuousDeploymentPolicyInputBodyMiddleware: ClientRuntime let encoder = context.getEncoder() if let continuousDeploymentPolicyConfig = input.operationInput.continuousDeploymentPolicyConfig { let xmlEncoder = encoder as! XMLEncoder - let continuousDeploymentPolicyConfigdata = try xmlEncoder.encode(continuousDeploymentPolicyConfig, withRootKey: "ContinuousDeploymentPolicyConfig") - let continuousDeploymentPolicyConfigbody = ClientRuntime.HttpBody.data(continuousDeploymentPolicyConfigdata) - input.builder.withBody(continuousDeploymentPolicyConfigbody) + let continuousDeploymentPolicyConfigData = try xmlEncoder.encode(continuousDeploymentPolicyConfig, withRootKey: "ContinuousDeploymentPolicyConfig") + let continuousDeploymentPolicyConfigBody = ClientRuntime.HttpBody.data(continuousDeploymentPolicyConfigData) + input.builder.withBody(continuousDeploymentPolicyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let continuousDeploymentPolicyConfigdata = "{}".data(using: .utf8)! - let continuousDeploymentPolicyConfigbody = ClientRuntime.HttpBody.data(continuousDeploymentPolicyConfigdata) - input.builder.withBody(continuousDeploymentPolicyConfigbody) + let continuousDeploymentPolicyConfigData = "{}".data(using: .utf8)! + let continuousDeploymentPolicyConfigBody = ClientRuntime.HttpBody.data(continuousDeploymentPolicyConfigData) + input.builder.withBody(continuousDeploymentPolicyConfigBody) } } } catch let err { @@ -35073,13 +34786,9 @@ extension UpdateContinuousDeploymentPolicyOutputResponse: ClientRuntime.HttpResp } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ContinuousDeploymentPolicy = try responseDecoder.decode(responseBody: data) - self.continuousDeploymentPolicy = output - } else { - self.continuousDeploymentPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ContinuousDeploymentPolicy = try responseDecoder.decode(responseBody: data) + self.continuousDeploymentPolicy = output } else { self.continuousDeploymentPolicy = nil } @@ -35135,15 +34844,15 @@ public struct UpdateDistributionInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let distributionConfig = input.operationInput.distributionConfig { let xmlEncoder = encoder as! XMLEncoder - let distributionConfigdata = try xmlEncoder.encode(distributionConfig, withRootKey: "DistributionConfig") - let distributionConfigbody = ClientRuntime.HttpBody.data(distributionConfigdata) - input.builder.withBody(distributionConfigbody) + let distributionConfigData = try xmlEncoder.encode(distributionConfig, withRootKey: "DistributionConfig") + let distributionConfigBody = ClientRuntime.HttpBody.data(distributionConfigData) + input.builder.withBody(distributionConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let distributionConfigdata = "{}".data(using: .utf8)! - let distributionConfigbody = ClientRuntime.HttpBody.data(distributionConfigdata) - input.builder.withBody(distributionConfigbody) + let distributionConfigData = "{}".data(using: .utf8)! + let distributionConfigBody = ClientRuntime.HttpBody.data(distributionConfigData) + input.builder.withBody(distributionConfigBody) } } } catch let err { @@ -35401,13 +35110,9 @@ extension UpdateDistributionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) - self.distribution = output - } else { - self.distribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) + self.distribution = output } else { self.distribution = nil } @@ -35655,13 +35360,9 @@ extension UpdateDistributionWithStagingConfigOutputResponse: ClientRuntime.HttpR } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) - self.distribution = output - } else { - self.distribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.Distribution = try responseDecoder.decode(responseBody: data) + self.distribution = output } else { self.distribution = nil } @@ -35717,15 +35418,15 @@ public struct UpdateFieldLevelEncryptionConfigInputBodyMiddleware: ClientRuntime let encoder = context.getEncoder() if let fieldLevelEncryptionConfig = input.operationInput.fieldLevelEncryptionConfig { let xmlEncoder = encoder as! XMLEncoder - let fieldLevelEncryptionConfigdata = try xmlEncoder.encode(fieldLevelEncryptionConfig, withRootKey: "FieldLevelEncryptionConfig") - let fieldLevelEncryptionConfigbody = ClientRuntime.HttpBody.data(fieldLevelEncryptionConfigdata) - input.builder.withBody(fieldLevelEncryptionConfigbody) + let fieldLevelEncryptionConfigData = try xmlEncoder.encode(fieldLevelEncryptionConfig, withRootKey: "FieldLevelEncryptionConfig") + let fieldLevelEncryptionConfigBody = ClientRuntime.HttpBody.data(fieldLevelEncryptionConfigData) + input.builder.withBody(fieldLevelEncryptionConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let fieldLevelEncryptionConfigdata = "{}".data(using: .utf8)! - let fieldLevelEncryptionConfigbody = ClientRuntime.HttpBody.data(fieldLevelEncryptionConfigdata) - input.builder.withBody(fieldLevelEncryptionConfigbody) + let fieldLevelEncryptionConfigData = "{}".data(using: .utf8)! + let fieldLevelEncryptionConfigBody = ClientRuntime.HttpBody.data(fieldLevelEncryptionConfigData) + input.builder.withBody(fieldLevelEncryptionConfigBody) } } } catch let err { @@ -35874,13 +35575,9 @@ extension UpdateFieldLevelEncryptionConfigOutputResponse: ClientRuntime.HttpResp } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryption = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryption = output - } else { - self.fieldLevelEncryption = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryption = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryption = output } else { self.fieldLevelEncryption = nil } @@ -35936,15 +35633,15 @@ public struct UpdateFieldLevelEncryptionProfileInputBodyMiddleware: ClientRuntim let encoder = context.getEncoder() if let fieldLevelEncryptionProfileConfig = input.operationInput.fieldLevelEncryptionProfileConfig { let xmlEncoder = encoder as! XMLEncoder - let fieldLevelEncryptionProfileConfigdata = try xmlEncoder.encode(fieldLevelEncryptionProfileConfig, withRootKey: "FieldLevelEncryptionProfileConfig") - let fieldLevelEncryptionProfileConfigbody = ClientRuntime.HttpBody.data(fieldLevelEncryptionProfileConfigdata) - input.builder.withBody(fieldLevelEncryptionProfileConfigbody) + let fieldLevelEncryptionProfileConfigData = try xmlEncoder.encode(fieldLevelEncryptionProfileConfig, withRootKey: "FieldLevelEncryptionProfileConfig") + let fieldLevelEncryptionProfileConfigBody = ClientRuntime.HttpBody.data(fieldLevelEncryptionProfileConfigData) + input.builder.withBody(fieldLevelEncryptionProfileConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let fieldLevelEncryptionProfileConfigdata = "{}".data(using: .utf8)! - let fieldLevelEncryptionProfileConfigbody = ClientRuntime.HttpBody.data(fieldLevelEncryptionProfileConfigdata) - input.builder.withBody(fieldLevelEncryptionProfileConfigbody) + let fieldLevelEncryptionProfileConfigData = "{}".data(using: .utf8)! + let fieldLevelEncryptionProfileConfigBody = ClientRuntime.HttpBody.data(fieldLevelEncryptionProfileConfigData) + input.builder.withBody(fieldLevelEncryptionProfileConfigBody) } } } catch let err { @@ -36095,13 +35792,9 @@ extension UpdateFieldLevelEncryptionProfileOutputResponse: ClientRuntime.HttpRes } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FieldLevelEncryptionProfile = try responseDecoder.decode(responseBody: data) - self.fieldLevelEncryptionProfile = output - } else { - self.fieldLevelEncryptionProfile = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FieldLevelEncryptionProfile = try responseDecoder.decode(responseBody: data) + self.fieldLevelEncryptionProfile = output } else { self.fieldLevelEncryptionProfile = nil } @@ -36292,13 +35985,9 @@ extension UpdateFunctionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.FunctionSummary = try responseDecoder.decode(responseBody: data) - self.functionSummary = output - } else { - self.functionSummary = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.FunctionSummary = try responseDecoder.decode(responseBody: data) + self.functionSummary = output } else { self.functionSummary = nil } @@ -36354,15 +36043,15 @@ public struct UpdateKeyGroupInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let keyGroupConfig = input.operationInput.keyGroupConfig { let xmlEncoder = encoder as! XMLEncoder - let keyGroupConfigdata = try xmlEncoder.encode(keyGroupConfig, withRootKey: "KeyGroupConfig") - let keyGroupConfigbody = ClientRuntime.HttpBody.data(keyGroupConfigdata) - input.builder.withBody(keyGroupConfigbody) + let keyGroupConfigData = try xmlEncoder.encode(keyGroupConfig, withRootKey: "KeyGroupConfig") + let keyGroupConfigBody = ClientRuntime.HttpBody.data(keyGroupConfigData) + input.builder.withBody(keyGroupConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let keyGroupConfigdata = "{}".data(using: .utf8)! - let keyGroupConfigbody = ClientRuntime.HttpBody.data(keyGroupConfigdata) - input.builder.withBody(keyGroupConfigbody) + let keyGroupConfigData = "{}".data(using: .utf8)! + let keyGroupConfigBody = ClientRuntime.HttpBody.data(keyGroupConfigData) + input.builder.withBody(keyGroupConfigBody) } } } catch let err { @@ -36501,13 +36190,9 @@ extension UpdateKeyGroupOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.KeyGroup = try responseDecoder.decode(responseBody: data) - self.keyGroup = output - } else { - self.keyGroup = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.KeyGroup = try responseDecoder.decode(responseBody: data) + self.keyGroup = output } else { self.keyGroup = nil } @@ -36563,15 +36248,15 @@ public struct UpdateOriginAccessControlInputBodyMiddleware: ClientRuntime.Middle let encoder = context.getEncoder() if let originAccessControlConfig = input.operationInput.originAccessControlConfig { let xmlEncoder = encoder as! XMLEncoder - let originAccessControlConfigdata = try xmlEncoder.encode(originAccessControlConfig, withRootKey: "OriginAccessControlConfig") - let originAccessControlConfigbody = ClientRuntime.HttpBody.data(originAccessControlConfigdata) - input.builder.withBody(originAccessControlConfigbody) + let originAccessControlConfigData = try xmlEncoder.encode(originAccessControlConfig, withRootKey: "OriginAccessControlConfig") + let originAccessControlConfigBody = ClientRuntime.HttpBody.data(originAccessControlConfigData) + input.builder.withBody(originAccessControlConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let originAccessControlConfigdata = "{}".data(using: .utf8)! - let originAccessControlConfigbody = ClientRuntime.HttpBody.data(originAccessControlConfigdata) - input.builder.withBody(originAccessControlConfigbody) + let originAccessControlConfigData = "{}".data(using: .utf8)! + let originAccessControlConfigBody = ClientRuntime.HttpBody.data(originAccessControlConfigData) + input.builder.withBody(originAccessControlConfigBody) } } } catch let err { @@ -36712,13 +36397,9 @@ extension UpdateOriginAccessControlOutputResponse: ClientRuntime.HttpResponseBin } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginAccessControl = try responseDecoder.decode(responseBody: data) - self.originAccessControl = output - } else { - self.originAccessControl = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginAccessControl = try responseDecoder.decode(responseBody: data) + self.originAccessControl = output } else { self.originAccessControl = nil } @@ -36774,15 +36455,15 @@ public struct UpdateOriginRequestPolicyInputBodyMiddleware: ClientRuntime.Middle let encoder = context.getEncoder() if let originRequestPolicyConfig = input.operationInput.originRequestPolicyConfig { let xmlEncoder = encoder as! XMLEncoder - let originRequestPolicyConfigdata = try xmlEncoder.encode(originRequestPolicyConfig, withRootKey: "OriginRequestPolicyConfig") - let originRequestPolicyConfigbody = ClientRuntime.HttpBody.data(originRequestPolicyConfigdata) - input.builder.withBody(originRequestPolicyConfigbody) + let originRequestPolicyConfigData = try xmlEncoder.encode(originRequestPolicyConfig, withRootKey: "OriginRequestPolicyConfig") + let originRequestPolicyConfigBody = ClientRuntime.HttpBody.data(originRequestPolicyConfigData) + input.builder.withBody(originRequestPolicyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let originRequestPolicyConfigdata = "{}".data(using: .utf8)! - let originRequestPolicyConfigbody = ClientRuntime.HttpBody.data(originRequestPolicyConfigdata) - input.builder.withBody(originRequestPolicyConfigbody) + let originRequestPolicyConfigData = "{}".data(using: .utf8)! + let originRequestPolicyConfigBody = ClientRuntime.HttpBody.data(originRequestPolicyConfigData) + input.builder.withBody(originRequestPolicyConfigBody) } } } catch let err { @@ -36931,13 +36612,9 @@ extension UpdateOriginRequestPolicyOutputResponse: ClientRuntime.HttpResponseBin } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.OriginRequestPolicy = try responseDecoder.decode(responseBody: data) - self.originRequestPolicy = output - } else { - self.originRequestPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.OriginRequestPolicy = try responseDecoder.decode(responseBody: data) + self.originRequestPolicy = output } else { self.originRequestPolicy = nil } @@ -36993,15 +36670,15 @@ public struct UpdatePublicKeyInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let publicKeyConfig = input.operationInput.publicKeyConfig { let xmlEncoder = encoder as! XMLEncoder - let publicKeyConfigdata = try xmlEncoder.encode(publicKeyConfig, withRootKey: "PublicKeyConfig") - let publicKeyConfigbody = ClientRuntime.HttpBody.data(publicKeyConfigdata) - input.builder.withBody(publicKeyConfigbody) + let publicKeyConfigData = try xmlEncoder.encode(publicKeyConfig, withRootKey: "PublicKeyConfig") + let publicKeyConfigBody = ClientRuntime.HttpBody.data(publicKeyConfigData) + input.builder.withBody(publicKeyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let publicKeyConfigdata = "{}".data(using: .utf8)! - let publicKeyConfigbody = ClientRuntime.HttpBody.data(publicKeyConfigdata) - input.builder.withBody(publicKeyConfigbody) + let publicKeyConfigData = "{}".data(using: .utf8)! + let publicKeyConfigBody = ClientRuntime.HttpBody.data(publicKeyConfigData) + input.builder.withBody(publicKeyConfigBody) } } } catch let err { @@ -37142,13 +36819,9 @@ extension UpdatePublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.PublicKey = try responseDecoder.decode(responseBody: data) - self.publicKey = output - } else { - self.publicKey = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.PublicKey = try responseDecoder.decode(responseBody: data) + self.publicKey = output } else { self.publicKey = nil } @@ -37366,9 +37039,8 @@ public enum UpdateRealtimeLogConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateRealtimeLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRealtimeLogConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.realtimeLogConfig = output.realtimeLogConfig } else { @@ -37422,15 +37094,15 @@ public struct UpdateResponseHeadersPolicyInputBodyMiddleware: ClientRuntime.Midd let encoder = context.getEncoder() if let responseHeadersPolicyConfig = input.operationInput.responseHeadersPolicyConfig { let xmlEncoder = encoder as! XMLEncoder - let responseHeadersPolicyConfigdata = try xmlEncoder.encode(responseHeadersPolicyConfig, withRootKey: "ResponseHeadersPolicyConfig") - let responseHeadersPolicyConfigbody = ClientRuntime.HttpBody.data(responseHeadersPolicyConfigdata) - input.builder.withBody(responseHeadersPolicyConfigbody) + let responseHeadersPolicyConfigData = try xmlEncoder.encode(responseHeadersPolicyConfig, withRootKey: "ResponseHeadersPolicyConfig") + let responseHeadersPolicyConfigBody = ClientRuntime.HttpBody.data(responseHeadersPolicyConfigData) + input.builder.withBody(responseHeadersPolicyConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let responseHeadersPolicyConfigdata = "{}".data(using: .utf8)! - let responseHeadersPolicyConfigbody = ClientRuntime.HttpBody.data(responseHeadersPolicyConfigdata) - input.builder.withBody(responseHeadersPolicyConfigbody) + let responseHeadersPolicyConfigData = "{}".data(using: .utf8)! + let responseHeadersPolicyConfigBody = ClientRuntime.HttpBody.data(responseHeadersPolicyConfigData) + input.builder.withBody(responseHeadersPolicyConfigBody) } } } catch let err { @@ -37579,13 +37251,9 @@ extension UpdateResponseHeadersPolicyOutputResponse: ClientRuntime.HttpResponseB } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.ResponseHeadersPolicy = try responseDecoder.decode(responseBody: data) - self.responseHeadersPolicy = output - } else { - self.responseHeadersPolicy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.ResponseHeadersPolicy = try responseDecoder.decode(responseBody: data) + self.responseHeadersPolicy = output } else { self.responseHeadersPolicy = nil } @@ -37641,15 +37309,15 @@ public struct UpdateStreamingDistributionInputBodyMiddleware: ClientRuntime.Midd let encoder = context.getEncoder() if let streamingDistributionConfig = input.operationInput.streamingDistributionConfig { let xmlEncoder = encoder as! XMLEncoder - let streamingDistributionConfigdata = try xmlEncoder.encode(streamingDistributionConfig, withRootKey: "StreamingDistributionConfig") - let streamingDistributionConfigbody = ClientRuntime.HttpBody.data(streamingDistributionConfigdata) - input.builder.withBody(streamingDistributionConfigbody) + let streamingDistributionConfigData = try xmlEncoder.encode(streamingDistributionConfig, withRootKey: "StreamingDistributionConfig") + let streamingDistributionConfigBody = ClientRuntime.HttpBody.data(streamingDistributionConfigData) + input.builder.withBody(streamingDistributionConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let streamingDistributionConfigdata = "{}".data(using: .utf8)! - let streamingDistributionConfigbody = ClientRuntime.HttpBody.data(streamingDistributionConfigdata) - input.builder.withBody(streamingDistributionConfigbody) + let streamingDistributionConfigData = "{}".data(using: .utf8)! + let streamingDistributionConfigBody = ClientRuntime.HttpBody.data(streamingDistributionConfigData) + input.builder.withBody(streamingDistributionConfigBody) } } } catch let err { @@ -37805,13 +37473,9 @@ extension UpdateStreamingDistributionOutputResponse: ClientRuntime.HttpResponseB } else { self.eTag = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CloudFrontClientTypes.StreamingDistribution = try responseDecoder.decode(responseBody: data) - self.streamingDistribution = output - } else { - self.streamingDistribution = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CloudFrontClientTypes.StreamingDistribution = try responseDecoder.decode(responseBody: data) + self.streamingDistribution = output } else { self.streamingDistribution = nil } diff --git a/Sources/Services/AWSCloudHSM/CloudHSMClient.swift b/Sources/Services/AWSCloudHSM/CloudHSMClient.swift index 3a6f37df131..53e1f79699c 100644 --- a/Sources/Services/AWSCloudHSM/CloudHSMClient.swift +++ b/Sources/Services/AWSCloudHSM/CloudHSMClient.swift @@ -208,6 +208,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHapg") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHsm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLunaClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHapg") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHsm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLunaClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHapg") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHsm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLunaClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailableZones") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHapgs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHsms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLunaClients") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyHapg") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyHsm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyLunaClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension CloudHSMClient: CloudHSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudHSM/models/Models.swift b/Sources/Services/AWSCloudHSM/models/Models.swift index 0126168da6f..2c1095b2ae0 100644 --- a/Sources/Services/AWSCloudHSM/models/Models.swift +++ b/Sources/Services/AWSCloudHSM/models/Models.swift @@ -103,9 +103,8 @@ public enum AddTagsToResourceOutputError: Swift.Error, Swift.Equatable { extension AddTagsToResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddTagsToResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -177,9 +176,8 @@ extension CloudHSMClientTypes { extension CloudHsmInternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmInternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.retryable = output.retryable @@ -195,7 +193,7 @@ extension CloudHsmInternalException { } /// Indicates that an internal error occurred. -public struct CloudHsmInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -275,9 +273,8 @@ extension CloudHSMClientTypes { extension CloudHsmServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.retryable = output.retryable @@ -293,7 +290,7 @@ extension CloudHsmServiceException { } /// Indicates that an exception occurred in the AWS CloudHSM service. -public struct CloudHsmServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -413,9 +410,8 @@ public enum CreateHapgOutputError: Swift.Error, Swift.Equatable { extension CreateHapgOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHapgOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hapgArn = output.hapgArn } else { @@ -621,9 +617,8 @@ public enum CreateHsmOutputError: Swift.Error, Swift.Equatable { extension CreateHsmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHsmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsmArn = output.hsmArn } else { @@ -750,9 +745,8 @@ public enum CreateLunaClientOutputError: Swift.Error, Swift.Equatable { extension CreateLunaClientOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLunaClientOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientArn = output.clientArn } else { @@ -867,9 +861,8 @@ public enum DeleteHapgOutputError: Swift.Error, Swift.Equatable { extension DeleteHapgOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteHapgOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -985,9 +978,8 @@ public enum DeleteHsmOutputError: Swift.Error, Swift.Equatable { extension DeleteHsmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteHsmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -1102,9 +1094,8 @@ public enum DeleteLunaClientOutputError: Swift.Error, Swift.Equatable { extension DeleteLunaClientOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLunaClientOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -1219,9 +1210,8 @@ public enum DescribeHapgOutputError: Swift.Error, Swift.Equatable { extension DescribeHapgOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHapgOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hapgArn = output.hapgArn self.hapgSerial = output.hapgSerial @@ -1463,9 +1453,8 @@ public enum DescribeHsmOutputError: Swift.Error, Swift.Equatable { extension DescribeHsmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHsmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityZone = output.availabilityZone self.eniId = output.eniId @@ -1803,9 +1792,8 @@ public enum DescribeLunaClientOutputError: Swift.Error, Swift.Equatable { extension DescribeLunaClientOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLunaClientOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate self.certificateFingerprint = output.certificateFingerprint @@ -1996,9 +1984,8 @@ public enum GetConfigOutputError: Swift.Error, Swift.Equatable { extension GetConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configCred = output.configCred self.configFile = output.configFile @@ -2104,9 +2091,8 @@ extension CloudHSMClientTypes { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.retryable = output.retryable @@ -2122,7 +2108,7 @@ extension InvalidRequestException { } /// Indicates that one or more of the request parameters are not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2222,9 +2208,8 @@ public enum ListAvailableZonesOutputError: Swift.Error, Swift.Equatable { extension ListAvailableZonesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailableZonesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.azList = output.azList } else { @@ -2345,9 +2330,8 @@ public enum ListHapgsOutputError: Swift.Error, Swift.Equatable { extension ListHapgsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHapgsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hapgList = output.hapgList self.nextToken = output.nextToken @@ -2479,9 +2463,8 @@ public enum ListHsmsOutputError: Swift.Error, Swift.Equatable { extension ListHsmsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHsmsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsmList = output.hsmList self.nextToken = output.nextToken @@ -2613,9 +2596,8 @@ public enum ListLunaClientsOutputError: Swift.Error, Swift.Equatable { extension ListLunaClientsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLunaClientsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientList = output.clientList self.nextToken = output.nextToken @@ -2748,9 +2730,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -2909,9 +2890,8 @@ public enum ModifyHapgOutputError: Swift.Error, Swift.Equatable { extension ModifyHapgOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyHapgOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hapgArn = output.hapgArn } else { @@ -3085,9 +3065,8 @@ public enum ModifyHsmOutputError: Swift.Error, Swift.Equatable { extension ModifyHsmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyHsmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsmArn = output.hsmArn } else { @@ -3210,9 +3189,8 @@ public enum ModifyLunaClientOutputError: Swift.Error, Swift.Equatable { extension ModifyLunaClientOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyLunaClientOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientArn = output.clientArn } else { @@ -3350,9 +3328,8 @@ public enum RemoveTagsFromResourceOutputError: Swift.Error, Swift.Equatable { extension RemoveTagsFromResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveTagsFromResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { diff --git a/Sources/Services/AWSCloudHSMV2/CloudHSMV2Client.swift b/Sources/Services/AWSCloudHSMV2/CloudHSMV2Client.swift index d921a0a6850..0c80cd0e026 100644 --- a/Sources/Services/AWSCloudHSMV2/CloudHSMV2Client.swift +++ b/Sources/Services/AWSCloudHSMV2/CloudHSMV2Client.swift @@ -208,6 +208,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyBackupToRegion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHsm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHsm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBackups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initializeCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyBackupAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudhsm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension CloudHSMV2Client: CloudHSMV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudHSMV2/models/Models.swift b/Sources/Services/AWSCloudHSMV2/models/Models.swift index c0ed54750fb..1eb4cb92713 100644 --- a/Sources/Services/AWSCloudHSMV2/models/Models.swift +++ b/Sources/Services/AWSCloudHSMV2/models/Models.swift @@ -368,9 +368,8 @@ extension CloudHSMV2ClientTypes { extension CloudHsmAccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmAccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -384,7 +383,7 @@ extension CloudHsmAccessDeniedException { } /// The request was rejected because the requester does not have permission to perform the requested operation. -public struct CloudHsmAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -420,9 +419,8 @@ extension CloudHsmAccessDeniedExceptionBody: Swift.Decodable { extension CloudHsmInternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmInternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -436,7 +434,7 @@ extension CloudHsmInternalFailureException { } /// The request was rejected because of an AWS CloudHSM internal failure. The request can be retried. -public struct CloudHsmInternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmInternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -472,9 +470,8 @@ extension CloudHsmInternalFailureExceptionBody: Swift.Decodable { extension CloudHsmInvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmInvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -488,7 +485,7 @@ extension CloudHsmInvalidRequestException { } /// The request was rejected because it is not a valid request. -public struct CloudHsmInvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmInvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -524,9 +521,8 @@ extension CloudHsmInvalidRequestExceptionBody: Swift.Decodable { extension CloudHsmResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -540,7 +536,7 @@ extension CloudHsmResourceNotFoundException { } /// The request was rejected because it refers to a resource that cannot be found. -public struct CloudHsmResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -576,9 +572,8 @@ extension CloudHsmResourceNotFoundExceptionBody: Swift.Decodable { extension CloudHsmServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -592,7 +587,7 @@ extension CloudHsmServiceException { } /// The request was rejected because an error occurred. -public struct CloudHsmServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -628,9 +623,8 @@ extension CloudHsmServiceExceptionBody: Swift.Decodable { extension CloudHsmTagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmTagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -644,7 +638,7 @@ extension CloudHsmTagException { } /// The request was rejected because of a tagging failure. Verify the tag conditions in all applicable policies, and then retry the request. -public struct CloudHsmTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1061,9 +1055,8 @@ public enum CopyBackupToRegionOutputError: Swift.Error, Swift.Equatable { extension CopyBackupToRegionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyBackupToRegionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationBackup = output.destinationBackup } else { @@ -1259,9 +1252,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -1403,9 +1395,8 @@ public enum CreateHsmOutputError: Swift.Error, Swift.Equatable { extension CreateHsmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHsmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsm = output.hsm } else { @@ -1522,9 +1513,8 @@ public enum DeleteBackupOutputError: Swift.Error, Swift.Equatable { extension DeleteBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backup = output.backup } else { @@ -1643,9 +1633,8 @@ public enum DeleteClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -1798,9 +1787,8 @@ public enum DeleteHsmOutputError: Swift.Error, Swift.Equatable { extension DeleteHsmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteHsmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsmId = output.hsmId } else { @@ -1976,9 +1964,8 @@ public enum DescribeBackupsOutputError: Swift.Error, Swift.Equatable { extension DescribeBackupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBackupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backups = output.backups self.nextToken = output.nextToken @@ -2159,9 +2146,8 @@ public enum DescribeClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.nextToken = output.nextToken @@ -2535,9 +2521,8 @@ public enum InitializeClusterOutputError: Swift.Error, Swift.Equatable { extension InitializeClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InitializeClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state self.stateMessage = output.stateMessage @@ -2690,9 +2675,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tagList = output.tagList @@ -2842,9 +2826,8 @@ public enum ModifyBackupAttributesOutputError: Swift.Error, Swift.Equatable { extension ModifyBackupAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyBackupAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backup = output.backup } else { @@ -2974,9 +2957,8 @@ public enum ModifyClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -3093,9 +3075,8 @@ public enum RestoreBackupOutputError: Swift.Error, Swift.Equatable { extension RestoreBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backup = output.backup } else { diff --git a/Sources/Services/AWSCloudSearch/CloudSearchClient.swift b/Sources/Services/AWSCloudSearch/CloudSearchClient.swift index 95585f84df6..66ec2648a15 100644 --- a/Sources/Services/AWSCloudSearch/CloudSearchClient.swift +++ b/Sources/Services/AWSCloudSearch/CloudSearchClient.swift @@ -204,6 +204,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "buildSuggesters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "defineAnalysisScheme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "defineExpression") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "defineIndexField") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "defineSuggester") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAnalysisScheme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExpression") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIndexField") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSuggester") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +580,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +600,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAnalysisSchemes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +616,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +636,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAvailabilityOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomainEndpointOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +688,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +724,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +744,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExpressions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +760,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +780,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIndexFields") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -779,7 +796,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -799,6 +816,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalingParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +832,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +852,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServiceAccessPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +868,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +888,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSuggesters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +904,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +924,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "indexDocuments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -919,7 +940,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -939,6 +960,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +976,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +996,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAvailabilityOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1012,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1032,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainEndpointOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1048,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1068,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateScalingParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1084,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1104,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceAccessPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1120,7 @@ extension CloudSearchClient: CloudSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudSearch/models/Models.swift b/Sources/Services/AWSCloudSearch/models/Models.swift index d579b4bb55c..926e5670864 100644 --- a/Sources/Services/AWSCloudSearch/models/Models.swift +++ b/Sources/Services/AWSCloudSearch/models/Models.swift @@ -447,7 +447,7 @@ extension CloudSearchClientTypes { extension BaseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.code = output.error.code @@ -464,7 +464,7 @@ extension BaseException { } /// An error occurred while processing the request. -public struct BaseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BaseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -583,9 +583,8 @@ public enum BuildSuggestersOutputError: Swift.Error, Swift.Equatable { extension BuildSuggestersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BuildSuggestersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fieldNames = output.fieldNames } else { @@ -719,9 +718,8 @@ public enum CreateDomainOutputError: Swift.Error, Swift.Equatable { extension CreateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatus = output.domainStatus } else { @@ -1012,9 +1010,8 @@ public enum DefineAnalysisSchemeOutputError: Swift.Error, Swift.Equatable { extension DefineAnalysisSchemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DefineAnalysisSchemeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisScheme = output.analysisScheme } else { @@ -1146,9 +1143,8 @@ public enum DefineExpressionOutputError: Swift.Error, Swift.Equatable { extension DefineExpressionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DefineExpressionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expression = output.expression } else { @@ -1280,9 +1276,8 @@ public enum DefineIndexFieldOutputError: Swift.Error, Swift.Equatable { extension DefineIndexFieldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DefineIndexFieldOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexField = output.indexField } else { @@ -1414,9 +1409,8 @@ public enum DefineSuggesterOutputError: Swift.Error, Swift.Equatable { extension DefineSuggesterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DefineSuggesterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.suggester = output.suggester } else { @@ -1546,9 +1540,8 @@ public enum DeleteAnalysisSchemeOutputError: Swift.Error, Swift.Equatable { extension DeleteAnalysisSchemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAnalysisSchemeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisScheme = output.analysisScheme } else { @@ -1660,9 +1653,8 @@ public enum DeleteDomainOutputError: Swift.Error, Swift.Equatable { extension DeleteDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatus = output.domainStatus } else { @@ -1791,9 +1783,8 @@ public enum DeleteExpressionOutputError: Swift.Error, Swift.Equatable { extension DeleteExpressionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteExpressionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expression = output.expression } else { @@ -1923,9 +1914,8 @@ public enum DeleteIndexFieldOutputError: Swift.Error, Swift.Equatable { extension DeleteIndexFieldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIndexFieldOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexField = output.indexField } else { @@ -2055,9 +2045,8 @@ public enum DeleteSuggesterOutputError: Swift.Error, Swift.Equatable { extension DeleteSuggesterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSuggesterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.suggester = output.suggester } else { @@ -2219,9 +2208,8 @@ public enum DescribeAnalysisSchemesOutputError: Swift.Error, Swift.Equatable { extension DescribeAnalysisSchemesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAnalysisSchemesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisSchemes = output.analysisSchemes } else { @@ -2369,9 +2357,8 @@ public enum DescribeAvailabilityOptionsOutputError: Swift.Error, Swift.Equatable extension DescribeAvailabilityOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAvailabilityOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityOptions = output.availabilityOptions } else { @@ -2499,9 +2486,8 @@ public enum DescribeDomainEndpointOptionsOutputError: Swift.Error, Swift.Equatab extension DescribeDomainEndpointOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainEndpointOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainEndpointOptions = output.domainEndpointOptions } else { @@ -2637,9 +2623,8 @@ public enum DescribeDomainsOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatusList = output.domainStatusList } else { @@ -2818,9 +2803,8 @@ public enum DescribeExpressionsOutputError: Swift.Error, Swift.Equatable { extension DescribeExpressionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExpressionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expressions = output.expressions } else { @@ -2999,9 +2983,8 @@ public enum DescribeIndexFieldsOutputError: Swift.Error, Swift.Equatable { extension DescribeIndexFieldsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIndexFieldsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexFields = output.indexFields } else { @@ -3132,9 +3115,8 @@ public enum DescribeScalingParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeScalingParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalingParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scalingParameters = output.scalingParameters } else { @@ -3259,9 +3241,8 @@ public enum DescribeServiceAccessPoliciesOutputError: Swift.Error, Swift.Equatab extension DescribeServiceAccessPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServiceAccessPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicies = output.accessPolicies } else { @@ -3423,9 +3404,8 @@ public enum DescribeSuggestersOutputError: Swift.Error, Swift.Equatable { extension DescribeSuggestersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSuggestersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.suggesters = output.suggesters } else { @@ -3484,7 +3464,7 @@ extension DescribeSuggestersOutputResponseBody: Swift.Decodable { extension DisabledOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.code = output.error.code @@ -3501,7 +3481,7 @@ extension DisabledOperationException { } /// The request was rejected because it attempted an operation which is not enabled. -public struct DisabledOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DisabledOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4179,9 +4159,8 @@ public enum IndexDocumentsOutputError: Swift.Error, Swift.Equatable { extension IndexDocumentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IndexDocumentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fieldNames = output.fieldNames } else { @@ -4663,7 +4642,7 @@ extension CloudSearchClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.code = output.error.code @@ -4680,7 +4659,7 @@ extension InternalException { } /// An internal error occurred while processing the request. If this problem persists, report an issue from the [Service Health Dashboard](http://status.aws.amazon.com/). -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4725,7 +4704,7 @@ extension InternalExceptionBody: Swift.Decodable { extension InvalidTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.code = output.error.code @@ -4742,7 +4721,7 @@ extension InvalidTypeException { } /// The request was rejected because it specified an invalid type definition. -public struct InvalidTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4872,7 +4851,7 @@ extension CloudSearchClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.code = output.error.code @@ -4889,7 +4868,7 @@ extension LimitExceededException { } /// The request was rejected because a resource limit has already been met. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5018,9 +4997,8 @@ public enum ListDomainNamesOutputError: Swift.Error, Swift.Equatable { extension ListDomainNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainNames = output.domainNames } else { @@ -5449,7 +5427,7 @@ extension CloudSearchClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.code = output.error.code @@ -5466,7 +5444,7 @@ extension ResourceAlreadyExistsException { } /// The request was rejected because it attempted to create a resource that already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5511,7 +5489,7 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.code = output.error.code @@ -5528,7 +5506,7 @@ extension ResourceNotFoundException { } /// The request was rejected because it attempted to reference a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6124,9 +6102,8 @@ public enum UpdateAvailabilityOptionsOutputError: Swift.Error, Swift.Equatable { extension UpdateAvailabilityOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAvailabilityOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityOptions = output.availabilityOptions } else { @@ -6259,9 +6236,8 @@ public enum UpdateDomainEndpointOptionsOutputError: Swift.Error, Swift.Equatable extension UpdateDomainEndpointOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainEndpointOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainEndpointOptions = output.domainEndpointOptions } else { @@ -6392,9 +6368,8 @@ public enum UpdateScalingParametersOutputError: Swift.Error, Swift.Equatable { extension UpdateScalingParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateScalingParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scalingParameters = output.scalingParameters } else { @@ -6526,9 +6501,8 @@ public enum UpdateServiceAccessPoliciesOutputError: Swift.Error, Swift.Equatable extension UpdateServiceAccessPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceAccessPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicies = output.accessPolicies } else { @@ -6570,7 +6544,7 @@ extension UpdateServiceAccessPoliciesOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.code = output.error.code @@ -6587,7 +6561,7 @@ extension ValidationException { } /// The request was rejected because it has invalid parameters. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCloudSearchDomain/CloudSearchDomainClient.swift b/Sources/Services/AWSCloudSearchDomain/CloudSearchDomainClient.swift index a065537d682..c1fba0ac1a1 100644 --- a/Sources/Services/AWSCloudSearchDomain/CloudSearchDomainClient.swift +++ b/Sources/Services/AWSCloudSearchDomain/CloudSearchDomainClient.swift @@ -219,6 +219,7 @@ extension CloudSearchDomainClient: CloudSearchDomainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "search") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -232,7 +233,7 @@ extension CloudSearchDomainClient: CloudSearchDomainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension CloudSearchDomainClient: CloudSearchDomainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "suggest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -265,7 +267,7 @@ extension CloudSearchDomainClient: CloudSearchDomainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -285,6 +287,7 @@ extension CloudSearchDomainClient: CloudSearchDomainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudsearch") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadDocuments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -302,7 +305,7 @@ extension CloudSearchDomainClient: CloudSearchDomainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudSearchDomain/models/Models.swift b/Sources/Services/AWSCloudSearchDomain/models/Models.swift index 89bca31ad80..c11e2b003d0 100644 --- a/Sources/Services/AWSCloudSearchDomain/models/Models.swift +++ b/Sources/Services/AWSCloudSearchDomain/models/Models.swift @@ -128,9 +128,8 @@ extension CloudSearchDomainClientTypes { extension DocumentServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DocumentServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.status = output.status @@ -146,7 +145,7 @@ extension DocumentServiceException { } /// Information about any problems encountered while processing an upload request. -public struct DocumentServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DocumentServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -557,9 +556,8 @@ extension CloudSearchDomainClientTypes { extension SearchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -573,7 +571,7 @@ extension SearchException { } /// Information about any problems encountered while processing a search request. -public struct SearchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SearchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -824,9 +822,8 @@ public enum SearchOutputError: Swift.Error, Swift.Equatable { extension SearchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.facets = output.facets self.hits = output.hits @@ -1113,9 +1110,8 @@ public enum SuggestOutputError: Swift.Error, Swift.Equatable { extension SuggestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SuggestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status self.suggest = output.suggest @@ -1277,9 +1273,8 @@ public struct UploadDocumentsInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let documents = input.operationInput.documents { - let documentsdata = documents - let documentsbody = ClientRuntime.HttpBody.stream(documentsdata) - input.builder.withBody(documentsbody) + let documentsBody = ClientRuntime.HttpBody(byteStream: documents) + input.builder.withBody(documentsBody) } return try await next.handle(context: context, input: input) } @@ -1297,7 +1292,7 @@ extension UploadDocumentsInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let documents = self.documents { - try encodeContainer.encode(documents.toBytes().getData(), forKey: .documents) + try encodeContainer.encode(documents, forKey: .documents) } } } @@ -1391,9 +1386,8 @@ public enum UploadDocumentsOutputError: Swift.Error, Swift.Equatable { extension UploadDocumentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadDocumentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adds = output.adds self.deletes = output.deletes diff --git a/Sources/Services/AWSCloudTrail/CloudTrailClient.swift b/Sources/Services/AWSCloudTrail/CloudTrailClient.swift index 9f354b8bee5..1da3189d3d6 100644 --- a/Sources/Services/AWSCloudTrail/CloudTrailClient.swift +++ b/Sources/Services/AWSCloudTrail/CloudTrailClient.swift @@ -208,6 +208,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventDataStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventDataStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterOrganizationDelegatedAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventDataStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -725,6 +739,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventSelectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -741,7 +756,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -761,6 +776,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -777,7 +793,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -797,6 +813,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsightSelectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -813,7 +830,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -833,6 +850,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueryResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +867,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +887,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -885,7 +904,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -905,6 +924,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -921,7 +941,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -941,6 +961,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrailStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -957,7 +978,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -977,6 +998,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -993,7 +1015,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1013,6 +1035,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventDataStores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1029,7 +1052,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1049,6 +1072,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImportFailures") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1065,7 +1089,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1085,6 +1109,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1101,7 +1126,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1121,6 +1146,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPublicKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1163,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1183,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1173,7 +1200,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1193,6 +1220,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1209,7 +1237,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1229,6 +1257,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1245,7 +1274,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1293,6 +1322,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "lookupEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1309,7 +1339,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1342,6 +1372,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEventSelectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1358,7 +1389,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1378,6 +1409,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putInsightSelectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1394,7 +1426,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1414,6 +1446,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1430,7 +1463,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1450,6 +1483,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerOrganizationDelegatedAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1466,7 +1500,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1486,6 +1520,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1502,7 +1537,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1522,6 +1557,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreEventDataStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1538,7 +1574,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1558,6 +1594,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1574,7 +1611,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1594,6 +1631,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startLogging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1610,7 +1648,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1630,6 +1668,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1646,7 +1685,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1666,6 +1705,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1682,7 +1722,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1702,6 +1742,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopLogging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1718,7 +1759,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1738,6 +1779,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1754,7 +1796,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1774,6 +1816,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventDataStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1790,7 +1833,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1810,6 +1853,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1826,7 +1870,7 @@ extension CloudTrailClient: CloudTrailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudTrail/models/Models.swift b/Sources/Services/AWSCloudTrail/models/Models.swift index 437be68705f..360477a0256 100644 --- a/Sources/Services/AWSCloudTrail/models/Models.swift +++ b/Sources/Services/AWSCloudTrail/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccountHasOngoingImportException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountHasOngoingImportExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccountHasOngoingImportException { } /// This exception is thrown when you start a new import and a previous import is still in progress. -public struct AccountHasOngoingImportException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountHasOngoingImportException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -57,9 +56,8 @@ extension AccountHasOngoingImportExceptionBody: Swift.Decodable { extension AccountNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -73,7 +71,7 @@ extension AccountNotFoundException { } /// This exception is thrown when the specified account is not found or not part of an organization. -public struct AccountNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -110,9 +108,8 @@ extension AccountNotFoundExceptionBody: Swift.Decodable { extension AccountNotRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountNotRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -126,7 +123,7 @@ extension AccountNotRegisteredException { } /// This exception is thrown when the specified account is not registered as the CloudTrail delegated administrator. -public struct AccountNotRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountNotRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -163,9 +160,8 @@ extension AccountNotRegisteredExceptionBody: Swift.Decodable { extension AccountRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -179,7 +175,7 @@ extension AccountRegisteredException { } /// This exception is thrown when the account is already registered as the CloudTrail delegated administrator. -public struct AccountRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -816,9 +812,8 @@ public enum CancelQueryOutputError: Swift.Error, Swift.Equatable { extension CancelQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryId = output.queryId self.queryStatus = output.queryStatus @@ -869,9 +864,8 @@ extension CancelQueryOutputResponseBody: Swift.Decodable { extension CannotDelegateManagementAccountException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CannotDelegateManagementAccountExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -885,7 +879,7 @@ extension CannotDelegateManagementAccountException { } /// This exception is thrown when the management account of an organization is registered as the CloudTrail delegated administrator. -public struct CannotDelegateManagementAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CannotDelegateManagementAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -967,9 +961,8 @@ extension CloudTrailClientTypes { extension ChannelARNInvalidException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelARNInvalidExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -983,7 +976,7 @@ extension ChannelARNInvalidException { } /// This exception is thrown when the specified value of ChannelARN is not valid. -public struct ChannelARNInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelARNInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1020,9 +1013,8 @@ extension ChannelARNInvalidExceptionBody: Swift.Decodable { extension ChannelAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1036,7 +1028,7 @@ extension ChannelAlreadyExistsException { } /// This exception is thrown when the provided channel already exists. -public struct ChannelAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1073,9 +1065,8 @@ extension ChannelAlreadyExistsExceptionBody: Swift.Decodable { extension ChannelExistsForEDSException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelExistsForEDSExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1089,7 +1080,7 @@ extension ChannelExistsForEDSException { } /// This exception is thrown when the specified event data store cannot yet be deleted because it is in use by a channel. -public struct ChannelExistsForEDSException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelExistsForEDSException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1126,9 +1117,8 @@ extension ChannelExistsForEDSExceptionBody: Swift.Decodable { extension ChannelMaxLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelMaxLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1142,7 +1132,7 @@ extension ChannelMaxLimitExceededException { } /// This exception is thrown when the maximum number of channels limit is exceeded. -public struct ChannelMaxLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelMaxLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1179,9 +1169,8 @@ extension ChannelMaxLimitExceededExceptionBody: Swift.Decodable { extension ChannelNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1195,7 +1184,7 @@ extension ChannelNotFoundException { } /// This exception is thrown when CloudTrail cannot find the specified channel. -public struct ChannelNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1232,9 +1221,8 @@ extension ChannelNotFoundExceptionBody: Swift.Decodable { extension CloudTrailARNInvalidException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudTrailARNInvalidExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1248,7 +1236,7 @@ extension CloudTrailARNInvalidException { } /// This exception is thrown when an operation is called with a trail ARN that is not valid. The following is the format of a trail ARN. arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail This exception is also thrown when you call AddTags or RemoveTags on a trail, event data store, or channel with a resource ARN that is not valid. The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 -public struct CloudTrailARNInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudTrailARNInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1285,9 +1273,8 @@ extension CloudTrailARNInvalidExceptionBody: Swift.Decodable { extension CloudTrailAccessNotEnabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudTrailAccessNotEnabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1301,7 +1288,7 @@ extension CloudTrailAccessNotEnabledException { } /// This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information, see [Enabling Trusted Access with Other Amazon Web Services Services](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) and [Prepare For Creating a Trail For Your Organization](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). -public struct CloudTrailAccessNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudTrailAccessNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1338,9 +1325,8 @@ extension CloudTrailAccessNotEnabledExceptionBody: Swift.Decodable { extension CloudTrailInvalidClientTokenIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudTrailInvalidClientTokenIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1354,7 +1340,7 @@ extension CloudTrailInvalidClientTokenIdException { } /// This exception is thrown when a call results in the InvalidClientTokenId error code. This can occur when you are creating or updating a trail to send notifications to an Amazon SNS topic that is in a suspended Amazon Web Services account. -public struct CloudTrailInvalidClientTokenIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudTrailInvalidClientTokenIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1391,9 +1377,8 @@ extension CloudTrailInvalidClientTokenIdExceptionBody: Swift.Decodable { extension CloudWatchLogsDeliveryUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudWatchLogsDeliveryUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1407,7 +1392,7 @@ extension CloudWatchLogsDeliveryUnavailableException { } /// Cannot set a CloudWatch Logs delivery for this region. -public struct CloudWatchLogsDeliveryUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudWatchLogsDeliveryUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1444,9 +1429,8 @@ extension CloudWatchLogsDeliveryUnavailableExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1460,7 +1444,7 @@ extension ConflictException { } /// This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource, or because another operation is modifying the resource. If this exception occurs, wait a few minutes, and then try the operation again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1651,9 +1635,8 @@ public enum CreateChannelOutputError: Swift.Error, Swift.Equatable { extension CreateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.destinations = output.destinations @@ -1970,9 +1953,8 @@ public enum CreateEventDataStoreOutputError: Swift.Error, Swift.Equatable { extension CreateEventDataStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventDataStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedEventSelectors = output.advancedEventSelectors self.createdTimestamp = output.createdTimestamp @@ -2433,9 +2415,8 @@ public enum CreateTrailOutputError: Swift.Error, Swift.Equatable { extension CreateTrailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudWatchLogsLogGroupArn = output.cloudWatchLogsLogGroupArn self.cloudWatchLogsRoleArn = output.cloudWatchLogsRoleArn @@ -2713,9 +2694,8 @@ extension CloudTrailClientTypes { extension DelegatedAdminAccountLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DelegatedAdminAccountLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2729,7 +2709,7 @@ extension DelegatedAdminAccountLimitExceededException { } /// This exception is thrown when the maximum number of CloudTrail delegated administrators is reached. -public struct DelegatedAdminAccountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DelegatedAdminAccountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3396,9 +3376,8 @@ public enum DescribeQueryOutputError: Swift.Error, Swift.Equatable { extension DescribeQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliveryS3Uri = output.deliveryS3Uri self.deliveryStatus = output.deliveryStatus @@ -3604,9 +3583,8 @@ public enum DescribeTrailsOutputError: Swift.Error, Swift.Equatable { extension DescribeTrailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trailList = output.trailList } else { @@ -4035,9 +4013,8 @@ extension CloudTrailClientTypes { extension EventDataStoreARNInvalidException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EventDataStoreARNInvalidExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4051,7 +4028,7 @@ extension EventDataStoreARNInvalidException { } /// The specified event data store ARN is not valid or does not map to an event data store in your account. -public struct EventDataStoreARNInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventDataStoreARNInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4088,9 +4065,8 @@ extension EventDataStoreARNInvalidExceptionBody: Swift.Decodable { extension EventDataStoreAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EventDataStoreAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4104,7 +4080,7 @@ extension EventDataStoreAlreadyExistsException { } /// An event data store with that name already exists. -public struct EventDataStoreAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventDataStoreAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4141,9 +4117,8 @@ extension EventDataStoreAlreadyExistsExceptionBody: Swift.Decodable { extension EventDataStoreHasOngoingImportException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EventDataStoreHasOngoingImportExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4157,7 +4132,7 @@ extension EventDataStoreHasOngoingImportException { } /// This exception is thrown when you try to update or delete an event data store that currently has an import in progress. -public struct EventDataStoreHasOngoingImportException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventDataStoreHasOngoingImportException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4194,9 +4169,8 @@ extension EventDataStoreHasOngoingImportExceptionBody: Swift.Decodable { extension EventDataStoreMaxLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EventDataStoreMaxLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4210,7 +4184,7 @@ extension EventDataStoreMaxLimitExceededException { } /// Your account has used the maximum number of event data stores. -public struct EventDataStoreMaxLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventDataStoreMaxLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4247,9 +4221,8 @@ extension EventDataStoreMaxLimitExceededExceptionBody: Swift.Decodable { extension EventDataStoreNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EventDataStoreNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4263,7 +4236,7 @@ extension EventDataStoreNotFoundException { } /// The specified event data store was not found. -public struct EventDataStoreNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventDataStoreNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4335,9 +4308,8 @@ extension CloudTrailClientTypes { extension EventDataStoreTerminationProtectedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EventDataStoreTerminationProtectedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4351,7 +4323,7 @@ extension EventDataStoreTerminationProtectedException { } /// The event data store cannot be deleted because termination protection is enabled for it. -public struct EventDataStoreTerminationProtectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventDataStoreTerminationProtectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4553,9 +4525,8 @@ public enum GetChannelOutputError: Swift.Error, Swift.Equatable { extension GetChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.destinations = output.destinations @@ -4733,9 +4704,8 @@ public enum GetEventDataStoreOutputError: Swift.Error, Swift.Equatable { extension GetEventDataStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventDataStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedEventSelectors = output.advancedEventSelectors self.createdTimestamp = output.createdTimestamp @@ -4976,9 +4946,8 @@ public enum GetEventSelectorsOutputError: Swift.Error, Swift.Equatable { extension GetEventSelectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventSelectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedEventSelectors = output.advancedEventSelectors self.eventSelectors = output.eventSelectors @@ -5131,9 +5100,8 @@ public enum GetImportOutputError: Swift.Error, Swift.Equatable { extension GetImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.destinations = output.destinations @@ -5356,9 +5324,8 @@ public enum GetInsightSelectorsOutputError: Swift.Error, Swift.Equatable { extension GetInsightSelectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightSelectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightSelectors = output.insightSelectors self.trailARN = output.trailARN @@ -5543,9 +5510,8 @@ public enum GetQueryResultsOutputError: Swift.Error, Swift.Equatable { extension GetQueryResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueryResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorMessage = output.errorMessage self.nextToken = output.nextToken @@ -5731,9 +5697,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.resourcePolicy = output.resourcePolicy @@ -5860,9 +5825,8 @@ public enum GetTrailOutputError: Swift.Error, Swift.Equatable { extension GetTrailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trail = output.trail } else { @@ -5980,9 +5944,8 @@ public enum GetTrailStatusOutputError: Swift.Error, Swift.Equatable { extension GetTrailStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrailStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isLogging = output.isLogging self.latestCloudWatchLogsDeliveryError = output.latestCloudWatchLogsDeliveryError @@ -6292,9 +6255,8 @@ extension CloudTrailClientTypes { extension ImportNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6308,7 +6270,7 @@ extension ImportNotFoundException { } /// The specified import was not found. -public struct ImportNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImportNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6584,9 +6546,8 @@ extension CloudTrailClientTypes { extension InactiveEventDataStoreException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InactiveEventDataStoreExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6600,7 +6561,7 @@ extension InactiveEventDataStoreException { } /// The event data store is inactive. -public struct InactiveEventDataStoreException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InactiveEventDataStoreException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6637,9 +6598,8 @@ extension InactiveEventDataStoreExceptionBody: Swift.Decodable { extension InactiveQueryException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InactiveQueryExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6653,7 +6613,7 @@ extension InactiveQueryException { } /// The specified query cannot be canceled because it is in the FINISHED, FAILED, TIMED_OUT, or CANCELLED state. -public struct InactiveQueryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InactiveQueryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6765,9 +6725,8 @@ extension CloudTrailClientTypes { extension InsightNotEnabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsightNotEnabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6781,7 +6740,7 @@ extension InsightNotEnabledException { } /// If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException. -public struct InsightNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsightNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6885,9 +6844,8 @@ extension CloudTrailClientTypes { extension InsufficientDependencyServiceAccessPermissionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientDependencyServiceAccessPermissionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6901,7 +6859,7 @@ extension InsufficientDependencyServiceAccessPermissionException { } /// This exception is thrown when the IAM user or role that is used to create the organization resource lacks one or more required permissions for creating an organization resource in a required service. -public struct InsufficientDependencyServiceAccessPermissionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientDependencyServiceAccessPermissionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6938,9 +6896,8 @@ extension InsufficientDependencyServiceAccessPermissionExceptionBody: Swift.Deco extension InsufficientEncryptionPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientEncryptionPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6954,7 +6911,7 @@ extension InsufficientEncryptionPolicyException { } /// This exception is thrown when the policy on the S3 bucket or KMS key does not have sufficient permissions for the operation. -public struct InsufficientEncryptionPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientEncryptionPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6991,9 +6948,8 @@ extension InsufficientEncryptionPolicyExceptionBody: Swift.Decodable { extension InsufficientS3BucketPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientS3BucketPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7007,7 +6963,7 @@ extension InsufficientS3BucketPolicyException { } /// This exception is thrown when the policy on the S3 bucket is not sufficient. -public struct InsufficientS3BucketPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientS3BucketPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7044,9 +7000,8 @@ extension InsufficientS3BucketPolicyExceptionBody: Swift.Decodable { extension InsufficientSnsTopicPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientSnsTopicPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7060,7 +7015,7 @@ extension InsufficientSnsTopicPolicyException { } /// This exception is thrown when the policy on the Amazon SNS topic is not sufficient. -public struct InsufficientSnsTopicPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientSnsTopicPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7097,9 +7052,8 @@ extension InsufficientSnsTopicPolicyExceptionBody: Swift.Decodable { extension InvalidCloudWatchLogsLogGroupArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCloudWatchLogsLogGroupArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7113,7 +7067,7 @@ extension InvalidCloudWatchLogsLogGroupArnException { } /// This exception is thrown when the provided CloudWatch Logs log group is not valid. -public struct InvalidCloudWatchLogsLogGroupArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCloudWatchLogsLogGroupArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7150,9 +7104,8 @@ extension InvalidCloudWatchLogsLogGroupArnExceptionBody: Swift.Decodable { extension InvalidCloudWatchLogsRoleArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCloudWatchLogsRoleArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7166,7 +7119,7 @@ extension InvalidCloudWatchLogsRoleArnException { } /// This exception is thrown when the provided role is not valid. -public struct InvalidCloudWatchLogsRoleArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCloudWatchLogsRoleArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7203,9 +7156,8 @@ extension InvalidCloudWatchLogsRoleArnExceptionBody: Swift.Decodable { extension InvalidDateRangeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDateRangeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7219,7 +7171,7 @@ extension InvalidDateRangeException { } /// A date range for the query was specified that is not valid. Be sure that the start time is chronologically before the end time. For more information about writing a query, see [Create or edit a query](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html) in the CloudTrail User Guide. -public struct InvalidDateRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDateRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7256,9 +7208,8 @@ extension InvalidDateRangeExceptionBody: Swift.Decodable { extension InvalidEventCategoryException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEventCategoryExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7272,7 +7223,7 @@ extension InvalidEventCategoryException { } /// Occurs if an event category that is not valid is specified as a value of EventCategory. -public struct InvalidEventCategoryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventCategoryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7309,9 +7260,8 @@ extension InvalidEventCategoryExceptionBody: Swift.Decodable { extension InvalidEventDataStoreCategoryException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEventDataStoreCategoryExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7325,7 +7275,7 @@ extension InvalidEventDataStoreCategoryException { } /// This exception is thrown when event categories of specified event data stores are not valid. -public struct InvalidEventDataStoreCategoryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventDataStoreCategoryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7362,9 +7312,8 @@ extension InvalidEventDataStoreCategoryExceptionBody: Swift.Decodable { extension InvalidEventDataStoreStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEventDataStoreStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7378,7 +7327,7 @@ extension InvalidEventDataStoreStatusException { } /// The event data store is not in a status that supports the operation. -public struct InvalidEventDataStoreStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventDataStoreStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7415,9 +7364,8 @@ extension InvalidEventDataStoreStatusExceptionBody: Swift.Decodable { extension InvalidEventSelectorsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEventSelectorsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7439,7 +7387,7 @@ extension InvalidEventSelectorsException { /// * Specify up to 500 values for all conditions in all advanced event selectors for a trail. /// /// * Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is not valid. -public struct InvalidEventSelectorsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventSelectorsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7476,9 +7424,8 @@ extension InvalidEventSelectorsExceptionBody: Swift.Decodable { extension InvalidHomeRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidHomeRegionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7492,7 +7439,7 @@ extension InvalidHomeRegionException { } /// This exception is thrown when an operation is called on a trail from a region other than the region in which the trail was created. -public struct InvalidHomeRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidHomeRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7529,9 +7476,8 @@ extension InvalidHomeRegionExceptionBody: Swift.Decodable { extension InvalidImportSourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidImportSourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7545,7 +7491,7 @@ extension InvalidImportSourceException { } /// This exception is thrown when the provided source S3 bucket is not valid for import. -public struct InvalidImportSourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidImportSourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7582,9 +7528,8 @@ extension InvalidImportSourceExceptionBody: Swift.Decodable { extension InvalidInsightSelectorsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInsightSelectorsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7598,7 +7543,7 @@ extension InvalidInsightSelectorsException { } /// The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors or GetInsightSelectors request is not valid, or the specified insight type in the InsightSelectors statement is not a valid insight type. -public struct InvalidInsightSelectorsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInsightSelectorsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7635,9 +7580,8 @@ extension InvalidInsightSelectorsExceptionBody: Swift.Decodable { extension InvalidKmsKeyIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidKmsKeyIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7651,7 +7595,7 @@ extension InvalidKmsKeyIdException { } /// This exception is thrown when the KMS key ARN is not valid. -public struct InvalidKmsKeyIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKmsKeyIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7688,9 +7632,8 @@ extension InvalidKmsKeyIdExceptionBody: Swift.Decodable { extension InvalidLookupAttributesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLookupAttributesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7704,7 +7647,7 @@ extension InvalidLookupAttributesException { } /// Occurs when a lookup attribute is specified that is not valid. -public struct InvalidLookupAttributesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLookupAttributesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7741,9 +7684,8 @@ extension InvalidLookupAttributesExceptionBody: Swift.Decodable { extension InvalidMaxResultsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMaxResultsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7757,7 +7699,7 @@ extension InvalidMaxResultsException { } /// This exception is thrown if the limit specified is not valid. -public struct InvalidMaxResultsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMaxResultsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7794,9 +7736,8 @@ extension InvalidMaxResultsExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7810,7 +7751,7 @@ extension InvalidNextTokenException { } /// A token that is not valid, or a token that was previously used in a request with different parameters. This exception is thrown if the token is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7847,9 +7788,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterCombinationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7863,7 +7803,7 @@ extension InvalidParameterCombinationException { } /// This exception is thrown when the combination of parameters provided is not valid. -public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7900,9 +7840,8 @@ extension InvalidParameterCombinationExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7916,7 +7855,7 @@ extension InvalidParameterException { } /// The request includes a parameter that is not valid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7953,9 +7892,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidQueryStatementException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidQueryStatementExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7969,7 +7907,7 @@ extension InvalidQueryStatementException { } /// The query that was submitted has validation errors, or uses incorrect syntax or unsupported keywords. For more information about writing a query, see [Create or edit a query](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html) in the CloudTrail User Guide. -public struct InvalidQueryStatementException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidQueryStatementException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8006,9 +7944,8 @@ extension InvalidQueryStatementExceptionBody: Swift.Decodable { extension InvalidQueryStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidQueryStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8022,7 +7959,7 @@ extension InvalidQueryStatusException { } /// The query status is not valid for the operation. -public struct InvalidQueryStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidQueryStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8059,9 +7996,8 @@ extension InvalidQueryStatusExceptionBody: Swift.Decodable { extension InvalidS3BucketNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidS3BucketNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8075,7 +8011,7 @@ extension InvalidS3BucketNameException { } /// This exception is thrown when the provided S3 bucket name is not valid. -public struct InvalidS3BucketNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3BucketNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8112,9 +8048,8 @@ extension InvalidS3BucketNameExceptionBody: Swift.Decodable { extension InvalidS3PrefixException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidS3PrefixExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8128,7 +8063,7 @@ extension InvalidS3PrefixException { } /// This exception is thrown when the provided S3 prefix is not valid. -public struct InvalidS3PrefixException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3PrefixException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8165,9 +8100,8 @@ extension InvalidS3PrefixExceptionBody: Swift.Decodable { extension InvalidSnsTopicNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSnsTopicNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8181,7 +8115,7 @@ extension InvalidSnsTopicNameException { } /// This exception is thrown when the provided SNS topic name is not valid. -public struct InvalidSnsTopicNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSnsTopicNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8218,9 +8152,8 @@ extension InvalidSnsTopicNameExceptionBody: Swift.Decodable { extension InvalidSourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8234,7 +8167,7 @@ extension InvalidSourceException { } /// This exception is thrown when the specified value of Source is not valid. -public struct InvalidSourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8271,9 +8204,8 @@ extension InvalidSourceExceptionBody: Swift.Decodable { extension InvalidTagParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8287,7 +8219,7 @@ extension InvalidTagParameterException { } /// This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource. -public struct InvalidTagParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8324,9 +8256,8 @@ extension InvalidTagParameterExceptionBody: Swift.Decodable { extension InvalidTimeRangeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTimeRangeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8340,7 +8271,7 @@ extension InvalidTimeRangeException { } /// Occurs if the timestamp values are not valid. Either the start time occurs after the end time, or the time range is outside the range of possible values. -public struct InvalidTimeRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTimeRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8377,9 +8308,8 @@ extension InvalidTimeRangeExceptionBody: Swift.Decodable { extension InvalidTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8393,7 +8323,7 @@ extension InvalidTokenException { } /// Reserved for future use. -public struct InvalidTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8430,9 +8360,8 @@ extension InvalidTokenExceptionBody: Swift.Decodable { extension InvalidTrailNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTrailNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8456,7 +8385,7 @@ extension InvalidTrailNameException { /// * Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are not valid. /// /// * Not be in IP address format (for example, 192.168.5.4) -public struct InvalidTrailNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTrailNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8493,9 +8422,8 @@ extension InvalidTrailNameExceptionBody: Swift.Decodable { extension KmsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KmsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8509,7 +8437,7 @@ extension KmsException { } /// This exception is thrown when there is an issue with the specified KMS key and the trail or event data store can't be updated. -public struct KmsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KmsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8546,9 +8474,8 @@ extension KmsExceptionBody: Swift.Decodable { extension KmsKeyDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KmsKeyDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8563,7 +8490,7 @@ extension KmsKeyDisabledException { /// This exception is no longer in use. @available(*, deprecated) -public struct KmsKeyDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KmsKeyDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8600,9 +8527,8 @@ extension KmsKeyDisabledExceptionBody: Swift.Decodable { extension KmsKeyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KmsKeyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8616,7 +8542,7 @@ extension KmsKeyNotFoundException { } /// This exception is thrown when the KMS key does not exist, when the S3 bucket and the KMS key are not in the same region, or when the KMS key associated with the Amazon SNS topic either does not exist or is not in the same region. -public struct KmsKeyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KmsKeyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8738,9 +8664,8 @@ public enum ListChannelsOutputError: Swift.Error, Swift.Equatable { extension ListChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -8887,9 +8812,8 @@ public enum ListEventDataStoresOutputError: Swift.Error, Swift.Equatable { extension ListEventDataStoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventDataStoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventDataStores = output.eventDataStores self.nextToken = output.nextToken @@ -9045,9 +8969,8 @@ public enum ListImportFailuresOutputError: Swift.Error, Swift.Equatable { extension ListImportFailuresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportFailuresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.nextToken = output.nextToken @@ -9218,9 +9141,8 @@ public enum ListImportsOutputError: Swift.Error, Swift.Equatable { extension ListImportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imports = output.imports self.nextToken = output.nextToken @@ -9378,9 +9300,8 @@ public enum ListPublicKeysOutputError: Swift.Error, Swift.Equatable { extension ListPublicKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPublicKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.publicKeyList = output.publicKeyList @@ -9589,9 +9510,8 @@ public enum ListQueriesOutputError: Swift.Error, Swift.Equatable { extension ListQueriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queries = output.queries @@ -9762,9 +9682,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceTagList = output.resourceTagList @@ -9894,9 +9813,8 @@ public enum ListTrailsOutputError: Swift.Error, Swift.Equatable { extension ListTrailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trails = output.trails @@ -10205,9 +10123,8 @@ public enum LookupEventsOutputError: Swift.Error, Swift.Equatable { extension LookupEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LookupEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -10266,9 +10183,8 @@ extension LookupEventsOutputResponseBody: Swift.Decodable { extension MaxConcurrentQueriesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxConcurrentQueriesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10282,7 +10198,7 @@ extension MaxConcurrentQueriesException { } /// You are already running the maximum number of concurrent queries. Wait a minute for some queries to finish, and then run the query again. -public struct MaxConcurrentQueriesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxConcurrentQueriesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10319,9 +10235,8 @@ extension MaxConcurrentQueriesExceptionBody: Swift.Decodable { extension MaximumNumberOfTrailsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumNumberOfTrailsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10335,7 +10250,7 @@ extension MaximumNumberOfTrailsExceededException { } /// This exception is thrown when the maximum number of trails is reached. -public struct MaximumNumberOfTrailsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumNumberOfTrailsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10372,9 +10287,8 @@ extension MaximumNumberOfTrailsExceededExceptionBody: Swift.Decodable { extension NoManagementAccountSLRExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoManagementAccountSLRExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10388,7 +10302,7 @@ extension NoManagementAccountSLRExistsException { } /// This exception is thrown when the management account does not have a service-linked role. -public struct NoManagementAccountSLRExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoManagementAccountSLRExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10425,9 +10339,8 @@ extension NoManagementAccountSLRExistsExceptionBody: Swift.Decodable { extension NotOrganizationManagementAccountException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotOrganizationManagementAccountExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10441,7 +10354,7 @@ extension NotOrganizationManagementAccountException { } /// This exception is thrown when the account making the request is not the organization's management account. -public struct NotOrganizationManagementAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotOrganizationManagementAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10478,9 +10391,8 @@ extension NotOrganizationManagementAccountExceptionBody: Swift.Decodable { extension NotOrganizationMasterAccountException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotOrganizationMasterAccountExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10494,7 +10406,7 @@ extension NotOrganizationMasterAccountException { } /// This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail or event data store is not the management account for an organization in Organizations. For more information, see [Prepare For Creating a Trail For Your Organization](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html) or [Create an event data store](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html). -public struct NotOrganizationMasterAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotOrganizationMasterAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10531,9 +10443,8 @@ extension NotOrganizationMasterAccountExceptionBody: Swift.Decodable { extension OperationNotPermittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotPermittedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10547,7 +10458,7 @@ extension OperationNotPermittedException { } /// This exception is thrown when the requested operation is not permitted. -public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10584,9 +10495,8 @@ extension OperationNotPermittedExceptionBody: Swift.Decodable { extension OrganizationNotInAllFeaturesModeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationNotInAllFeaturesModeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10600,7 +10510,7 @@ extension OrganizationNotInAllFeaturesModeException { } /// This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support creating an organization trail or event data store. -public struct OrganizationNotInAllFeaturesModeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationNotInAllFeaturesModeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10637,9 +10547,8 @@ extension OrganizationNotInAllFeaturesModeExceptionBody: Swift.Decodable { extension OrganizationsNotInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationsNotInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10653,7 +10562,7 @@ extension OrganizationsNotInUseException { } /// This exception is thrown when the request is made from an Amazon Web Services account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization. -public struct OrganizationsNotInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationsNotInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10904,9 +10813,8 @@ public enum PutEventSelectorsOutputError: Swift.Error, Swift.Equatable { extension PutEventSelectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutEventSelectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedEventSelectors = output.advancedEventSelectors self.eventSelectors = output.eventSelectors @@ -11102,9 +11010,8 @@ public enum PutInsightSelectorsOutputError: Swift.Error, Swift.Equatable { extension PutInsightSelectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutInsightSelectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightSelectors = output.insightSelectors self.trailARN = output.trailARN @@ -11261,9 +11168,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.resourcePolicy = output.resourcePolicy @@ -11367,9 +11273,8 @@ extension CloudTrailClientTypes { extension QueryIdNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryIdNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11383,7 +11288,7 @@ extension QueryIdNotFoundException { } /// The query ID does not exist or does not map to a query. -public struct QueryIdNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QueryIdNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11909,9 +11814,8 @@ extension CloudTrailClientTypes { extension ResourceARNNotValidException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceARNNotValidExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11925,7 +11829,7 @@ extension ResourceARNNotValidException { } /// This exception is thrown when the provided resource does not exist, or the ARN format of the resource is not valid. The following is the valid format for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. -public struct ResourceARNNotValidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceARNNotValidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11962,9 +11866,8 @@ extension ResourceARNNotValidExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11978,7 +11881,7 @@ extension ResourceNotFoundException { } /// This exception is thrown when the specified resource is not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12015,9 +11918,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourcePolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourcePolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12031,7 +11933,7 @@ extension ResourcePolicyNotFoundException { } /// This exception is thrown when the specified resource policy is not found. -public struct ResourcePolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourcePolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12068,9 +11970,8 @@ extension ResourcePolicyNotFoundExceptionBody: Swift.Decodable { extension ResourcePolicyNotValidException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourcePolicyNotValidExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12090,7 +11991,7 @@ extension ResourcePolicyNotValidException { /// * Contains at least one statement. The policy can have a maximum of 20 statements. /// /// * Each statement contains at least one principal. A statement can have a maximum of 50 principals. -public struct ResourcePolicyNotValidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourcePolicyNotValidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12184,9 +12085,8 @@ extension CloudTrailClientTypes { extension ResourceTypeNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceTypeNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12200,7 +12100,7 @@ extension ResourceTypeNotSupportedException { } /// This exception is thrown when the specified resource type is not supported by CloudTrail. -public struct ResourceTypeNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceTypeNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12331,9 +12231,8 @@ public enum RestoreEventDataStoreOutputError: Swift.Error, Swift.Equatable { extension RestoreEventDataStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreEventDataStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedEventSelectors = output.advancedEventSelectors self.createdTimestamp = output.createdTimestamp @@ -12481,9 +12380,8 @@ extension RestoreEventDataStoreOutputResponseBody: Swift.Decodable { extension S3BucketDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: S3BucketDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12497,7 +12395,7 @@ extension S3BucketDoesNotExistException { } /// This exception is thrown when the specified S3 bucket does not exist. -public struct S3BucketDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct S3BucketDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12800,9 +12698,8 @@ public enum StartImportOutputError: Swift.Error, Swift.Equatable { extension StartImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.destinations = output.destinations @@ -13128,9 +13025,8 @@ public enum StartQueryOutputError: Swift.Error, Swift.Equatable { extension StartQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryId = output.queryId } else { @@ -13245,9 +13141,8 @@ public enum StopImportOutputError: Swift.Error, Swift.Equatable { extension StopImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.destinations = output.destinations @@ -13521,9 +13416,8 @@ extension CloudTrailClientTypes { extension TagsLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagsLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13537,7 +13431,7 @@ extension TagsLimitExceededException { } /// The number of tags per trail, event data store, or channel has exceeded the permitted amount. Currently, the limit is 50. -public struct TagsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13760,9 +13654,8 @@ extension CloudTrailClientTypes { extension TrailAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TrailAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13776,7 +13669,7 @@ extension TrailAlreadyExistsException { } /// This exception is thrown when the specified trail already exists. -public struct TrailAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrailAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13868,9 +13761,8 @@ extension CloudTrailClientTypes { extension TrailNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TrailNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13884,7 +13776,7 @@ extension TrailNotFoundException { } /// This exception is thrown when the trail with the given name is not found. -public struct TrailNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrailNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13921,9 +13813,8 @@ extension TrailNotFoundExceptionBody: Swift.Decodable { extension TrailNotProvidedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TrailNotProvidedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13937,7 +13828,7 @@ extension TrailNotProvidedException { } /// This exception is no longer in use. -public struct TrailNotProvidedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrailNotProvidedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13974,9 +13865,8 @@ extension TrailNotProvidedExceptionBody: Swift.Decodable { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13990,7 +13880,7 @@ extension UnsupportedOperationException { } /// This exception is thrown when the requested operation is not supported. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14151,9 +14041,8 @@ public enum UpdateChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.destinations = output.destinations @@ -14439,9 +14328,8 @@ public enum UpdateEventDataStoreOutputError: Swift.Error, Swift.Equatable { extension UpdateEventDataStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEventDataStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedEventSelectors = output.advancedEventSelectors self.createdTimestamp = output.createdTimestamp @@ -14863,9 +14751,8 @@ public enum UpdateTrailOutputError: Swift.Error, Swift.Equatable { extension UpdateTrailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudWatchLogsLogGroupArn = output.cloudWatchLogsLogGroupArn self.cloudWatchLogsRoleArn = output.cloudWatchLogsRoleArn diff --git a/Sources/Services/AWSCloudTrailData/CloudTrailDataClient.swift b/Sources/Services/AWSCloudTrailData/CloudTrailDataClient.swift index b709093721a..deae31ed8c9 100644 --- a/Sources/Services/AWSCloudTrailData/CloudTrailDataClient.swift +++ b/Sources/Services/AWSCloudTrailData/CloudTrailDataClient.swift @@ -208,6 +208,7 @@ extension CloudTrailDataClient: CloudTrailDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cloudtrail-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAuditEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CloudTrailDataClient: CloudTrailDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudTrailData/models/Models.swift b/Sources/Services/AWSCloudTrailData/models/Models.swift index d1009de24f4..efde13b44c0 100644 --- a/Sources/Services/AWSCloudTrailData/models/Models.swift +++ b/Sources/Services/AWSCloudTrailData/models/Models.swift @@ -108,9 +108,8 @@ extension CloudTrailDataClientTypes { extension ChannelInsufficientPermission { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelInsufficientPermissionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -124,7 +123,7 @@ extension ChannelInsufficientPermission { } /// The caller's account ID must be the same as the channel owner's account ID. -public struct ChannelInsufficientPermission: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelInsufficientPermission: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -160,9 +159,8 @@ extension ChannelInsufficientPermissionBody: Swift.Decodable { extension ChannelNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -176,7 +174,7 @@ extension ChannelNotFound { } /// The channel could not be found. -public struct ChannelNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -212,9 +210,8 @@ extension ChannelNotFoundBody: Swift.Decodable { extension ChannelUnsupportedSchema { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelUnsupportedSchemaBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -228,7 +225,7 @@ extension ChannelUnsupportedSchema { } /// The schema type of the event is not supported. -public struct ChannelUnsupportedSchema: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelUnsupportedSchema: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -264,9 +261,8 @@ extension ChannelUnsupportedSchemaBody: Swift.Decodable { extension DuplicatedAuditEventId { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicatedAuditEventIdBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -280,7 +276,7 @@ extension DuplicatedAuditEventId { } /// Two or more entries in the request have the same event ID. -public struct DuplicatedAuditEventId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicatedAuditEventId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -316,9 +312,8 @@ extension DuplicatedAuditEventIdBody: Swift.Decodable { extension InvalidChannelARN { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidChannelARNBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -332,7 +327,7 @@ extension InvalidChannelARN { } /// The specified channel ARN is not a valid channel ARN. -public struct InvalidChannelARN: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidChannelARN: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -488,9 +483,8 @@ public enum PutAuditEventsOutputError: Swift.Error, Swift.Equatable { extension PutAuditEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAuditEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -617,9 +611,8 @@ extension CloudTrailDataClientTypes { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -633,7 +626,7 @@ extension UnsupportedOperationException { } /// The operation requested is not supported in this region or account. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCloudWatch/CloudWatchClient.swift b/Sources/Services/AWSCloudWatch/CloudWatchClient.swift index d7597471eca..e2f35f88192 100644 --- a/Sources/Services/AWSCloudWatch/CloudWatchClient.swift +++ b/Sources/Services/AWSCloudWatch/CloudWatchClient.swift @@ -204,6 +204,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlarms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDashboards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInsightRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMetricStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlarmHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlarms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlarmsForMetric") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAnomalyDetectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInsightRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableAlarmActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +580,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +600,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableInsightRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +616,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +636,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableAlarmActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableInsightRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +688,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDashboard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +724,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -743,6 +758,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsightRuleReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -758,7 +774,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -789,6 +805,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +821,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -842,6 +859,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMetricStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -857,7 +875,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -877,6 +895,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMetricStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -892,7 +911,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -916,6 +935,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMetricWidgetImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -931,7 +951,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -951,6 +971,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDashboards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -966,7 +987,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -986,6 +1007,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listManagedInsightRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1001,7 +1023,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1021,6 +1043,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMetricStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1036,7 +1059,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1056,6 +1079,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1071,7 +1095,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1091,6 +1115,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1106,7 +1131,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1126,6 +1151,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1141,7 +1167,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1161,6 +1187,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putCompositeAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1203,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1223,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDashboard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1211,7 +1239,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1231,6 +1259,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putInsightRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1246,7 +1275,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1266,6 +1295,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putManagedInsightRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1281,7 +1311,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1312,6 +1342,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMetricAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1327,7 +1358,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1351,6 +1382,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1366,7 +1398,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1395,6 +1427,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMetricStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1410,7 +1443,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1430,6 +1463,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setAlarmState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1445,7 +1479,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1465,6 +1499,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMetricStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1480,7 +1515,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1500,6 +1535,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopMetricStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1515,7 +1551,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1535,6 +1571,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1550,7 +1587,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1570,6 +1607,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "monitoring") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1585,7 +1623,7 @@ extension CloudWatchClient: CloudWatchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudWatch/models/Models.swift b/Sources/Services/AWSCloudWatch/models/Models.swift index b8feff5ee89..1f006c4ea7b 100644 --- a/Sources/Services/AWSCloudWatch/models/Models.swift +++ b/Sources/Services/AWSCloudWatch/models/Models.swift @@ -769,7 +769,7 @@ extension CloudWatchClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -784,7 +784,7 @@ extension ConcurrentModificationException { } /// More than one process tried to modify a resource at the same time. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -885,7 +885,7 @@ extension CloudWatchClientTypes { extension DashboardInvalidInputError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.dashboardValidationMessages = output.error.dashboardValidationMessages @@ -902,7 +902,7 @@ extension DashboardInvalidInputError { } /// Some part of the dashboard data is invalid. -public struct DashboardInvalidInputError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DashboardInvalidInputError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -962,7 +962,7 @@ extension DashboardInvalidInputErrorBody: Swift.Decodable { extension DashboardNotFoundError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -977,7 +977,7 @@ extension DashboardNotFoundError { } /// The specified dashboard does not exist. -public struct DashboardNotFoundError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DashboardNotFoundError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1689,9 +1689,8 @@ public enum DeleteInsightRulesOutputError: Swift.Error, Swift.Equatable { extension DeleteInsightRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInsightRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures } else { @@ -1998,9 +1997,8 @@ public enum DescribeAlarmHistoryOutputError: Swift.Error, Swift.Equatable { extension DescribeAlarmHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlarmHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmHistoryItems = output.alarmHistoryItems self.nextToken = output.nextToken @@ -2225,9 +2223,8 @@ public enum DescribeAlarmsForMetricOutputError: Swift.Error, Swift.Equatable { extension DescribeAlarmsForMetricOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlarmsForMetricOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricAlarms = output.metricAlarms } else { @@ -2490,9 +2487,8 @@ public enum DescribeAlarmsOutputError: Swift.Error, Swift.Equatable { extension DescribeAlarmsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlarmsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compositeAlarms = output.compositeAlarms self.metricAlarms = output.metricAlarms @@ -2765,9 +2761,8 @@ public enum DescribeAnomalyDetectorsOutputError: Swift.Error, Swift.Equatable { extension DescribeAnomalyDetectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAnomalyDetectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyDetectors = output.anomalyDetectors self.nextToken = output.nextToken @@ -2911,9 +2906,8 @@ public enum DescribeInsightRulesOutputError: Swift.Error, Swift.Equatable { extension DescribeInsightRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInsightRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightRules = output.insightRules self.nextToken = output.nextToken @@ -3269,9 +3263,8 @@ public enum DisableInsightRulesOutputError: Swift.Error, Swift.Equatable { extension DisableInsightRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableInsightRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures } else { @@ -3526,9 +3519,8 @@ public enum EnableInsightRulesOutputError: Swift.Error, Swift.Equatable { extension EnableInsightRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableInsightRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures } else { @@ -3685,9 +3677,8 @@ public enum GetDashboardOutputError: Swift.Error, Swift.Equatable { extension GetDashboardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDashboardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardArn = output.dashboardArn self.dashboardBody = output.dashboardBody @@ -3927,9 +3918,8 @@ public enum GetInsightRuleReportOutputError: Swift.Error, Swift.Equatable { extension GetInsightRuleReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightRuleReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregateValue = output.aggregateValue self.aggregationStatistic = output.aggregationStatistic @@ -4240,9 +4230,8 @@ public enum GetMetricDataOutputError: Swift.Error, Swift.Equatable { extension GetMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messages = output.messages self.metricDataResults = output.metricDataResults @@ -4594,9 +4583,8 @@ public enum GetMetricStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetMetricStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMetricStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datapoints = output.datapoints self.label = output.label @@ -4738,9 +4726,8 @@ public enum GetMetricStreamOutputError: Swift.Error, Swift.Equatable { extension GetMetricStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMetricStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDate = output.creationDate @@ -5041,9 +5028,8 @@ public enum GetMetricWidgetImageOutputError: Swift.Error, Swift.Equatable { extension GetMetricWidgetImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMetricWidgetImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricWidgetImage = output.metricWidgetImage } else { @@ -5468,7 +5454,7 @@ extension CloudWatchClientTypes { extension InternalServiceFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5483,7 +5469,7 @@ extension InternalServiceFault { } /// Request processing has failed due to some unknown error, exception, or failure. -public struct InternalServiceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5520,7 +5506,7 @@ extension InternalServiceFaultBody: Swift.Decodable { extension InvalidFormatFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5535,7 +5521,7 @@ extension InvalidFormatFault { } /// Data was not syntactically valid JSON. -public struct InvalidFormatFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFormatFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5572,7 +5558,7 @@ extension InvalidFormatFaultBody: Swift.Decodable { extension InvalidNextToken { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5587,7 +5573,7 @@ extension InvalidNextToken { } /// The next token specified is invalid. -public struct InvalidNextToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5624,7 +5610,7 @@ extension InvalidNextTokenBody: Swift.Decodable { extension InvalidParameterCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5639,7 +5625,7 @@ extension InvalidParameterCombinationException { } /// Parameters were used together that cannot be used together. -public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5676,7 +5662,7 @@ extension InvalidParameterCombinationExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5691,7 +5677,7 @@ extension InvalidParameterValueException { } /// The value of an input parameter is bad or out-of-range. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5763,7 +5749,7 @@ extension CloudWatchClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5778,7 +5764,7 @@ extension LimitExceededException { } /// The operation exceeded one or more limits. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5814,7 +5800,7 @@ extension LimitExceededExceptionBody: Swift.Decodable { extension LimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5829,7 +5815,7 @@ extension LimitExceededFault { } /// The quota for alarms for this customer has already been reached. -public struct LimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5945,9 +5931,8 @@ public enum ListDashboardsOutputError: Swift.Error, Swift.Equatable { extension ListDashboardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDashboardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardEntries = output.dashboardEntries self.nextToken = output.nextToken @@ -6107,9 +6092,8 @@ public enum ListManagedInsightRulesOutputError: Swift.Error, Swift.Equatable { extension ListManagedInsightRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListManagedInsightRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedRules = output.managedRules self.nextToken = output.nextToken @@ -6259,9 +6243,8 @@ public enum ListMetricStreamsOutputError: Swift.Error, Swift.Equatable { extension ListMetricStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMetricStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -6488,9 +6471,8 @@ public enum ListMetricsOutputError: Swift.Error, Swift.Equatable { extension ListMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metrics = output.metrics self.nextToken = output.nextToken @@ -6655,9 +6637,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8366,7 +8347,7 @@ extension CloudWatchClientTypes { extension MissingRequiredParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8381,7 +8362,7 @@ extension MissingRequiredParameterException { } /// An input parameter that is required is missing. -public struct MissingRequiredParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingRequiredParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9084,9 +9065,8 @@ public enum PutDashboardOutputError: Swift.Error, Swift.Equatable { extension PutDashboardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutDashboardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardValidationMessages = output.dashboardValidationMessages } else { @@ -9379,9 +9359,8 @@ public enum PutManagedInsightRulesOutputError: Swift.Error, Swift.Equatable { extension PutManagedInsightRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutManagedInsightRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures } else { @@ -10398,9 +10377,8 @@ public enum PutMetricStreamOutputError: Swift.Error, Swift.Equatable { extension PutMetricStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutMetricStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -10516,7 +10494,7 @@ extension CloudWatchClientTypes { extension ResourceNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10531,7 +10509,7 @@ extension ResourceNotFound { } /// The named resource does not exist. -public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10568,7 +10546,7 @@ extension ResourceNotFoundBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10587,7 +10565,7 @@ extension ResourceNotFoundException { } /// The named resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCloudWatchEvents/CloudWatchEventsClient.swift b/Sources/Services/AWSCloudWatchEvents/CloudWatchEventsClient.swift index 54daa9e817a..1b8a1a70ffe 100644 --- a/Sources/Services/AWSCloudWatchEvents/CloudWatchEventsClient.swift +++ b/Sources/Services/AWSCloudWatchEvents/CloudWatchEventsClient.swift @@ -208,6 +208,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelReplay") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApiDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventBus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPartnerEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deauthorizeConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApiDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventBus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePartnerEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApiDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventBus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePartnerEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplay") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApiDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listArchives") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventBuses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPartnerEventSourceAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPartnerEventSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReplays") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuleNamesByTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargetsByRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPartnerEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1746,6 +1787,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1762,7 +1804,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1782,6 +1824,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1798,7 +1841,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1818,6 +1861,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1834,7 +1878,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1854,6 +1898,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReplay") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1870,7 +1915,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1890,6 +1935,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1906,7 +1952,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1926,6 +1972,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testEventPattern") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1942,7 +1989,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1962,6 +2009,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1978,7 +2026,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1998,6 +2046,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApiDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2014,7 +2063,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2034,6 +2083,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2050,7 +2100,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2070,6 +2120,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2086,7 +2137,7 @@ extension CloudWatchEventsClient: CloudWatchEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudWatchEvents/models/Models.swift b/Sources/Services/AWSCloudWatchEvents/models/Models.swift index 51fec7f205b..6185b18a367 100644 --- a/Sources/Services/AWSCloudWatchEvents/models/Models.swift +++ b/Sources/Services/AWSCloudWatchEvents/models/Models.swift @@ -760,9 +760,8 @@ public enum CancelReplayOutputError: Swift.Error, Swift.Equatable { extension CancelReplayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelReplayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replayArn = output.replayArn self.state = output.state @@ -877,9 +876,8 @@ extension CloudWatchEventsClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -893,7 +891,7 @@ extension ConcurrentModificationException { } /// There is concurrent modification on a rule, target, archive, or replay. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1839,9 +1837,8 @@ public enum CreateApiDestinationOutputError: Swift.Error, Swift.Equatable { extension CreateApiDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApiDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiDestinationArn = output.apiDestinationArn self.apiDestinationState = output.apiDestinationState @@ -2039,9 +2036,8 @@ public enum CreateArchiveOutputError: Swift.Error, Swift.Equatable { extension CreateArchiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateArchiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveArn = output.archiveArn self.creationTime = output.creationTime @@ -2496,9 +2492,8 @@ public enum CreateConnectionOutputError: Swift.Error, Swift.Equatable { extension CreateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.connectionState = output.connectionState @@ -2685,9 +2680,8 @@ public enum CreateEventBusOutputError: Swift.Error, Swift.Equatable { extension CreateEventBusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventBusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventBusArn = output.eventBusArn } else { @@ -2817,9 +2811,8 @@ public enum CreatePartnerEventSourceOutputError: Swift.Error, Swift.Equatable { extension CreatePartnerEventSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePartnerEventSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSourceArn = output.eventSourceArn } else { @@ -3055,9 +3048,8 @@ public enum DeauthorizeConnectionOutputError: Swift.Error, Swift.Equatable { extension DeauthorizeConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeauthorizeConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.connectionState = output.connectionState @@ -3378,9 +3370,8 @@ public enum DeleteConnectionOutputError: Swift.Error, Swift.Equatable { extension DeleteConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.connectionState = output.connectionState @@ -3820,9 +3811,8 @@ public enum DescribeApiDestinationOutputError: Swift.Error, Swift.Equatable { extension DescribeApiDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApiDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiDestinationArn = output.apiDestinationArn self.apiDestinationState = output.apiDestinationState @@ -4025,9 +4015,8 @@ public enum DescribeArchiveOutputError: Swift.Error, Swift.Equatable { extension DescribeArchiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeArchiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveArn = output.archiveArn self.archiveName = output.archiveName @@ -4238,9 +4227,8 @@ public enum DescribeConnectionOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authParameters = output.authParameters self.authorizationType = output.authorizationType @@ -4450,9 +4438,8 @@ public enum DescribeEventBusOutputError: Swift.Error, Swift.Equatable { extension DescribeEventBusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventBusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -4585,9 +4572,8 @@ public enum DescribeEventSourceOutputError: Swift.Error, Swift.Equatable { extension DescribeEventSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdBy = output.createdBy @@ -4750,9 +4736,8 @@ public enum DescribePartnerEventSourceOutputError: Swift.Error, Swift.Equatable extension DescribePartnerEventSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePartnerEventSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -4873,9 +4858,8 @@ public enum DescribeReplayOutputError: Swift.Error, Swift.Equatable { extension DescribeReplayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.destination = output.destination @@ -5108,9 +5092,8 @@ public enum DescribeRuleOutputError: Swift.Error, Swift.Equatable { extension DescribeRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdBy = output.createdBy @@ -5915,9 +5898,8 @@ extension CloudWatchEventsClientTypes { extension IllegalStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5931,7 +5913,7 @@ extension IllegalStatusException { } /// An error occurred because a replay can be canceled only when the state is Running or Starting. -public struct IllegalStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6058,9 +6040,8 @@ extension CloudWatchEventsClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6074,7 +6055,7 @@ extension InternalException { } /// This exception occurs due to unexpected causes. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6110,9 +6091,8 @@ extension InternalExceptionBody: Swift.Decodable { extension InvalidEventPatternException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEventPatternExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6126,7 +6106,7 @@ extension InvalidEventPatternException { } /// The event pattern is not valid. -public struct InvalidEventPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6162,9 +6142,8 @@ extension InvalidEventPatternExceptionBody: Swift.Decodable { extension InvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6178,7 +6157,7 @@ extension InvalidStateException { } /// The specified state is not a valid state for an event source. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6285,9 +6264,8 @@ extension CloudWatchEventsClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6301,7 +6279,7 @@ extension LimitExceededException { } /// The request failed because it attempted to create resource beyond the allowed service quota. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6442,9 +6420,8 @@ public enum ListApiDestinationsOutputError: Swift.Error, Swift.Equatable { extension ListApiDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApiDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiDestinations = output.apiDestinations self.nextToken = output.nextToken @@ -6621,9 +6598,8 @@ public enum ListArchivesOutputError: Swift.Error, Swift.Equatable { extension ListArchivesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListArchivesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archives = output.archives self.nextToken = output.nextToken @@ -6786,9 +6762,8 @@ public enum ListConnectionsOutputError: Swift.Error, Swift.Equatable { extension ListConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections self.nextToken = output.nextToken @@ -6939,9 +6914,8 @@ public enum ListEventBusesOutputError: Swift.Error, Swift.Equatable { extension ListEventBusesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventBusesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventBuses = output.eventBuses self.nextToken = output.nextToken @@ -7094,9 +7068,8 @@ public enum ListEventSourcesOutputError: Swift.Error, Swift.Equatable { extension ListEventSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSources = output.eventSources self.nextToken = output.nextToken @@ -7252,9 +7225,8 @@ public enum ListPartnerEventSourceAccountsOutputError: Swift.Error, Swift.Equata extension ListPartnerEventSourceAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPartnerEventSourceAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.partnerEventSourceAccounts = output.partnerEventSourceAccounts @@ -7408,9 +7380,8 @@ public enum ListPartnerEventSourcesOutputError: Swift.Error, Swift.Equatable { extension ListPartnerEventSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPartnerEventSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.partnerEventSources = output.partnerEventSources @@ -7585,9 +7556,8 @@ public enum ListReplaysOutputError: Swift.Error, Swift.Equatable { extension ListReplaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReplaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.replays = output.replays @@ -7753,9 +7723,8 @@ public enum ListRuleNamesByTargetOutputError: Swift.Error, Swift.Equatable { extension ListRuleNamesByTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRuleNamesByTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.ruleNames = output.ruleNames @@ -7920,9 +7889,8 @@ public enum ListRulesOutputError: Swift.Error, Swift.Equatable { extension ListRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rules = output.rules @@ -8052,9 +8020,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8210,9 +8177,8 @@ public enum ListTargetsByRuleOutputError: Swift.Error, Swift.Equatable { extension ListTargetsByRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetsByRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.targets = output.targets @@ -8270,9 +8236,8 @@ extension ListTargetsByRuleOutputResponseBody: Swift.Decodable { extension ManagedRuleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ManagedRuleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8286,7 +8251,7 @@ extension ManagedRuleException { } /// This rule was created by an Amazon Web Services service on behalf of your account. It is managed by that service. If you see this error in response to DeleteRule or RemoveTargets, you can use the Force parameter in those calls to delete the rule or remove targets from the rule. You cannot modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource, or UntagResource. -public struct ManagedRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ManagedRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8357,9 +8322,8 @@ extension CloudWatchEventsClientTypes { extension OperationDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8373,7 +8337,7 @@ extension OperationDisabledException { } /// The operation you are attempting is not available in this region. -public struct OperationDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8676,9 +8640,8 @@ extension CloudWatchEventsClientTypes { extension PolicyLengthExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyLengthExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8692,7 +8655,7 @@ extension PolicyLengthExceededException { } /// The event bus policy is too long. For more information, see the limits. -public struct PolicyLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8839,9 +8802,8 @@ public enum PutEventsOutputError: Swift.Error, Swift.Equatable { extension PutEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.failedEntryCount = output.failedEntryCount @@ -9145,9 +9107,8 @@ public enum PutPartnerEventsOutputError: Swift.Error, Swift.Equatable { extension PutPartnerEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutPartnerEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.failedEntryCount = output.failedEntryCount @@ -9670,9 +9631,8 @@ public enum PutRuleOutputError: Swift.Error, Swift.Equatable { extension PutRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleArn = output.ruleArn } else { @@ -9826,9 +9786,8 @@ public enum PutTargetsOutputError: Swift.Error, Swift.Equatable { extension PutTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEntries = output.failedEntries self.failedEntryCount = output.failedEntryCount @@ -10262,9 +10221,8 @@ public enum RemoveTargetsOutputError: Swift.Error, Swift.Equatable { extension RemoveTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEntries = output.failedEntries self.failedEntryCount = output.failedEntryCount @@ -10594,9 +10552,8 @@ extension CloudWatchEventsClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10610,7 +10567,7 @@ extension ResourceAlreadyExistsException { } /// The resource you are trying to create already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10646,9 +10603,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10662,7 +10618,7 @@ extension ResourceNotFoundException { } /// An entity that you specified does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11268,9 +11224,8 @@ public enum StartReplayOutputError: Swift.Error, Swift.Equatable { extension StartReplayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReplayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replayArn = output.replayArn self.replayStartTime = output.replayStartTime @@ -11783,9 +11738,8 @@ public enum TestEventPatternOutputError: Swift.Error, Swift.Equatable { extension TestEventPatternOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestEventPatternOutputResponseBody = try responseDecoder.decode(responseBody: data) self.result = output.result } else { @@ -12071,9 +12025,8 @@ public enum UpdateApiDestinationOutputError: Swift.Error, Swift.Equatable { extension UpdateApiDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApiDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiDestinationArn = output.apiDestinationArn self.apiDestinationState = output.apiDestinationState @@ -12256,9 +12209,8 @@ public enum UpdateArchiveOutputError: Swift.Error, Swift.Equatable { extension UpdateArchiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateArchiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveArn = output.archiveArn self.creationTime = output.creationTime @@ -12704,9 +12656,8 @@ public enum UpdateConnectionOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.connectionState = output.connectionState diff --git a/Sources/Services/AWSCloudWatchLogs/CloudWatchLogsClient.swift b/Sources/Services/AWSCloudWatchLogs/CloudWatchLogsClient.swift index c7832436e03..2b7ecf3082e 100644 --- a/Sources/Services/AWSCloudWatchLogs/CloudWatchLogsClient.swift +++ b/Sources/Services/AWSCloudWatchLogs/CloudWatchLogsClient.swift @@ -208,6 +208,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateKmsKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelExportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -325,6 +328,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLogGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -341,7 +345,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -367,6 +371,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLogStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -383,7 +388,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -403,6 +408,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataProtectionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -419,7 +425,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -439,6 +445,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +462,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +482,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLogGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -491,7 +499,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -511,6 +519,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLogStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -527,7 +536,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -547,6 +556,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMetricFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -563,7 +573,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -583,6 +593,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQueryDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +610,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -619,6 +630,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -635,7 +647,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -655,6 +667,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRetentionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -671,7 +684,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -691,6 +704,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubscriptionFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -707,7 +721,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -727,6 +741,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -743,7 +758,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -763,6 +778,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExportTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -779,7 +795,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -799,6 +815,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLogGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -815,7 +832,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -835,6 +852,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLogStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -851,7 +869,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -871,6 +889,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMetricFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -887,7 +906,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -907,6 +926,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeQueries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -923,7 +943,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +963,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeQueryDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +980,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +1000,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourcePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -995,7 +1017,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1015,6 +1037,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSubscriptionFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1031,7 +1054,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1051,6 +1074,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateKmsKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1067,7 +1091,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1111,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "filterLogEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1103,7 +1128,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1123,6 +1148,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataProtectionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1139,7 +1165,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1159,6 +1185,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLogEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1175,7 +1202,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1195,6 +1222,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLogGroupFields") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1211,7 +1239,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1231,6 +1259,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLogRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1247,7 +1276,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1267,6 +1296,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueryResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1283,7 +1313,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1303,6 +1333,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1319,7 +1350,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1371,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsLogGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1388,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1408,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDataProtectionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1392,7 +1425,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1412,6 +1445,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1462,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1482,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDestinationPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1464,7 +1499,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1501,6 +1536,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLogEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1517,7 +1553,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1537,6 +1573,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMetricFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1553,7 +1590,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1573,6 +1610,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putQueryDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1589,7 +1627,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1609,6 +1647,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1625,7 +1664,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1645,6 +1684,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRetentionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1661,7 +1701,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1692,6 +1732,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSubscriptionFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1708,7 +1749,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1728,6 +1769,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1744,7 +1786,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1764,6 +1806,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1780,7 +1823,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1801,6 +1844,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagLogGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1817,7 +1861,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1837,6 +1881,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1853,7 +1898,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1873,6 +1918,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testMetricFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1889,7 +1935,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1910,6 +1956,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagLogGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1926,7 +1973,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1946,6 +1993,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "logs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1962,7 +2010,7 @@ extension CloudWatchLogsClient: CloudWatchLogsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCloudWatchLogs/models/Models.swift b/Sources/Services/AWSCloudWatchLogs/models/Models.swift index b29522125ad..07454dd6678 100644 --- a/Sources/Services/AWSCloudWatchLogs/models/Models.swift +++ b/Sources/Services/AWSCloudWatchLogs/models/Models.swift @@ -344,9 +344,8 @@ public enum CreateExportTaskOutputError: Swift.Error, Swift.Equatable { extension CreateExportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskId = output.taskId } else { @@ -608,9 +607,8 @@ public struct CreateLogStreamOutputResponse: Swift.Equatable { extension DataAlreadyAcceptedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DataAlreadyAcceptedExceptionBody = try responseDecoder.decode(responseBody: data) self.expectedSequenceToken = output.expectedSequenceToken self.message = output.message @@ -626,7 +624,7 @@ extension DataAlreadyAcceptedException { } /// The event was already logged. PutLogEvents actions are now always accepted and never return DataAlreadyAcceptedException regardless of whether a given batch of log events has already been accepted. -public struct DataAlreadyAcceptedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DataAlreadyAcceptedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1237,9 +1235,8 @@ public enum DeleteQueryDefinitionOutputError: Swift.Error, Swift.Equatable { extension DeleteQueryDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteQueryDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.success = output.success } else { @@ -1641,9 +1638,8 @@ public enum DescribeDestinationsOutputError: Swift.Error, Swift.Equatable { extension DescribeDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinations = output.destinations self.nextToken = output.nextToken @@ -1808,9 +1804,8 @@ public enum DescribeExportTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeExportTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExportTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportTasks = output.exportTasks self.nextToken = output.nextToken @@ -2011,9 +2006,8 @@ public enum DescribeLogGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeLogGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLogGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logGroups = output.logGroups self.nextToken = output.nextToken @@ -2216,9 +2210,8 @@ public enum DescribeLogStreamsOutputError: Swift.Error, Swift.Equatable { extension DescribeLogStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLogStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logStreams = output.logStreams self.nextToken = output.nextToken @@ -2409,9 +2402,8 @@ public enum DescribeMetricFiltersOutputError: Swift.Error, Swift.Equatable { extension DescribeMetricFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMetricFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricFilters = output.metricFilters self.nextToken = output.nextToken @@ -2578,9 +2570,8 @@ public enum DescribeQueriesOutputError: Swift.Error, Swift.Equatable { extension DescribeQueriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeQueriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queries = output.queries @@ -2733,9 +2724,8 @@ public enum DescribeQueryDefinitionsOutputError: Swift.Error, Swift.Equatable { extension DescribeQueryDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeQueryDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queryDefinitions = output.queryDefinitions @@ -2876,9 +2866,8 @@ public enum DescribeResourcePoliciesOutputError: Swift.Error, Swift.Equatable { extension DescribeResourcePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourcePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourcePolicies = output.resourcePolicies @@ -3046,9 +3035,8 @@ public enum DescribeSubscriptionFiltersOutputError: Swift.Error, Swift.Equatable extension DescribeSubscriptionFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSubscriptionFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscriptionFilters = output.subscriptionFilters @@ -3765,9 +3753,8 @@ public enum FilterLogEventsOutputError: Swift.Error, Swift.Equatable { extension FilterLogEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FilterLogEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -3995,9 +3982,8 @@ public enum GetDataProtectionPolicyOutputError: Swift.Error, Swift.Equatable { extension GetDataProtectionPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataProtectionPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastUpdatedTime = output.lastUpdatedTime self.logGroupIdentifier = output.logGroupIdentifier @@ -4226,9 +4212,8 @@ public enum GetLogEventsOutputError: Swift.Error, Swift.Equatable { extension GetLogEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLogEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextBackwardToken = output.nextBackwardToken @@ -4395,9 +4380,8 @@ public enum GetLogGroupFieldsOutputError: Swift.Error, Swift.Equatable { extension GetLogGroupFieldsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLogGroupFieldsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logGroupFields = output.logGroupFields } else { @@ -4533,9 +4517,8 @@ public enum GetLogRecordOutputError: Swift.Error, Swift.Equatable { extension GetLogRecordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLogRecordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logRecord = output.logRecord } else { @@ -4657,9 +4640,8 @@ public enum GetQueryResultsOutputError: Swift.Error, Swift.Equatable { extension GetQueryResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueryResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.results = output.results self.statistics = output.statistics @@ -4783,9 +4765,8 @@ extension CloudWatchLogsClientTypes { extension InvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4799,7 +4780,7 @@ extension InvalidOperationException { } /// The operation is not valid on the specified resource. -public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4835,9 +4816,8 @@ extension InvalidOperationExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4851,7 +4831,7 @@ extension InvalidParameterException { } /// A parameter is specified incorrectly. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4887,9 +4867,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidSequenceTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSequenceTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.expectedSequenceToken = output.expectedSequenceToken self.message = output.message @@ -4905,7 +4884,7 @@ extension InvalidSequenceTokenException { } /// The sequence token is not valid. You can get the correct sequence token in the expectedSequenceToken field in the InvalidSequenceTokenException message. PutLogEvents actions are now always accepted and never return InvalidSequenceTokenException regardless of receiving an invalid sequence token. -public struct InvalidSequenceTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSequenceTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4948,9 +4927,8 @@ extension InvalidSequenceTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4964,7 +4942,7 @@ extension LimitExceededException { } /// You have reached the maximum number of resources that can be created. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5074,9 +5052,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5197,9 +5174,8 @@ public enum ListTagsLogGroupOutputError: Swift.Error, Swift.Equatable { extension ListTagsLogGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsLogGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5504,9 +5480,8 @@ extension CloudWatchLogsClientTypes { extension MalformedQueryException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedQueryExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.queryCompileError = output.queryCompileError @@ -5522,7 +5497,7 @@ extension MalformedQueryException { } /// The query string is not valid. Details about this error are displayed in a QueryCompileError object. For more information, see [QueryCompileError](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html). For more information about valid query syntax, see [CloudWatch Logs Insights Query Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html). -public struct MalformedQueryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedQueryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5820,9 +5795,8 @@ extension CloudWatchLogsClientTypes { extension OperationAbortedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationAbortedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5836,7 +5810,7 @@ extension OperationAbortedException { } /// Multiple concurrent requests to update the same resource were in conflict. -public struct OperationAbortedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationAbortedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6057,9 +6031,8 @@ public enum PutDataProtectionPolicyOutputError: Swift.Error, Swift.Equatable { extension PutDataProtectionPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutDataProtectionPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastUpdatedTime = output.lastUpdatedTime self.logGroupIdentifier = output.logGroupIdentifier @@ -6242,9 +6215,8 @@ public enum PutDestinationOutputError: Swift.Error, Swift.Equatable { extension PutDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destination = output.destination } else { @@ -6522,9 +6494,8 @@ public enum PutLogEventsOutputError: Swift.Error, Swift.Equatable { extension PutLogEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutLogEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextSequenceToken = output.nextSequenceToken self.rejectedLogEventsInfo = output.rejectedLogEventsInfo @@ -6837,9 +6808,8 @@ public enum PutQueryDefinitionOutputError: Swift.Error, Swift.Equatable { extension PutQueryDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutQueryDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryDefinitionId = output.queryDefinitionId } else { @@ -6963,9 +6933,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePolicy = output.resourcePolicy } else { @@ -7671,9 +7640,8 @@ extension CloudWatchLogsClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7687,7 +7655,7 @@ extension ResourceAlreadyExistsException { } /// The specified resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7723,9 +7691,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7739,7 +7706,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7920,9 +7887,8 @@ extension CloudWatchLogsClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7936,7 +7902,7 @@ extension ServiceUnavailableException { } /// The service cannot complete the request. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8255,9 +8221,8 @@ public enum StartQueryOutputError: Swift.Error, Swift.Equatable { extension StartQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryId = output.queryId } else { @@ -8370,9 +8335,8 @@ public enum StopQueryOutputError: Swift.Error, Swift.Equatable { extension StopQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.success = output.success } else { @@ -8822,9 +8786,8 @@ public enum TestMetricFilterOutputError: Swift.Error, Swift.Equatable { extension TestMetricFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestMetricFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.matches = output.matches } else { @@ -8872,9 +8835,8 @@ extension TestMetricFilterOutputResponseBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -8890,7 +8852,7 @@ extension TooManyTagsException { } /// A resource can have no more than 50 tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8934,9 +8896,8 @@ extension TooManyTagsExceptionBody: Swift.Decodable { extension UnrecognizedClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnrecognizedClientExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8950,7 +8911,7 @@ extension UnrecognizedClientException { } /// The most likely cause is an Amazon Web Services access key ID or secret key that's not valid. -public struct UnrecognizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnrecognizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCodeBuild/CodeBuildClient.swift b/Sources/Services/AWSCodeBuild/CodeBuildClient.swift index 4c1c5f6da4a..8c081f9023c 100644 --- a/Sources/Services/AWSCodeBuild/CodeBuildClient.swift +++ b/Sources/Services/AWSCodeBuild/CodeBuildClient.swift @@ -208,6 +208,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteBuilds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetBuildBatches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetBuilds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetReportGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReportGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBuildBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReportGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSourceCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCodeCoverages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTestCases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReportGroupTrend") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importSourceCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "invalidateProjectCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBuildBatches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBuildBatchesForProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBuilds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBuildsForProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCuratedEnvironmentImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReportGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReportsForReportGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSharedProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSharedReportGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSourceCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retryBuild") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retryBuildBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBuild") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBuildBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopBuild") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopBuildBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1733,6 +1775,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProjectVisibility") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1749,7 +1792,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1769,6 +1812,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReportGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1785,7 +1829,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1805,6 +1849,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codebuild") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1821,7 +1866,7 @@ extension CodeBuildClient: CodeBuildClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeBuild/models/Models.swift b/Sources/Services/AWSCodeBuild/models/Models.swift index fef79286394..ff2eb91e877 100644 --- a/Sources/Services/AWSCodeBuild/models/Models.swift +++ b/Sources/Services/AWSCodeBuild/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccountLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccountLimitExceededException { } /// An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account. -public struct AccountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -272,9 +271,8 @@ public enum BatchDeleteBuildsOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteBuildsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteBuildsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buildsDeleted = output.buildsDeleted self.buildsNotDeleted = output.buildsNotDeleted @@ -423,9 +421,8 @@ public enum BatchGetBuildBatchesOutputError: Swift.Error, Swift.Equatable { extension BatchGetBuildBatchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetBuildBatchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buildBatches = output.buildBatches self.buildBatchesNotFound = output.buildBatchesNotFound @@ -574,9 +571,8 @@ public enum BatchGetBuildsOutputError: Swift.Error, Swift.Equatable { extension BatchGetBuildsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetBuildsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.builds = output.builds self.buildsNotFound = output.buildsNotFound @@ -725,9 +721,8 @@ public enum BatchGetProjectsOutputError: Swift.Error, Swift.Equatable { extension BatchGetProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projects = output.projects self.projectsNotFound = output.projectsNotFound @@ -876,9 +871,8 @@ public enum BatchGetReportGroupsOutputError: Swift.Error, Swift.Equatable { extension BatchGetReportGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetReportGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportGroups = output.reportGroups self.reportGroupsNotFound = output.reportGroupsNotFound @@ -1027,9 +1021,8 @@ public enum BatchGetReportsOutputError: Swift.Error, Swift.Equatable { extension BatchGetReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reports = output.reports self.reportsNotFound = output.reportsNotFound @@ -3586,9 +3579,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -3751,9 +3743,8 @@ public enum CreateReportGroupOutputError: Swift.Error, Swift.Equatable { extension CreateReportGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReportGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportGroup = output.reportGroup } else { @@ -3928,9 +3919,8 @@ public enum CreateWebhookOutputError: Swift.Error, Swift.Equatable { extension CreateWebhookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWebhookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webhook = output.webhook } else { @@ -4113,9 +4103,8 @@ public enum DeleteBuildBatchOutputError: Swift.Error, Swift.Equatable { extension DeleteBuildBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBuildBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buildsDeleted = output.buildsDeleted self.buildsNotDeleted = output.buildsNotDeleted @@ -4596,9 +4585,8 @@ public enum DeleteSourceCredentialsOutputError: Swift.Error, Swift.Equatable { extension DeleteSourceCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSourceCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -4863,9 +4851,8 @@ public enum DescribeCodeCoveragesOutputError: Swift.Error, Swift.Equatable { extension DescribeCodeCoveragesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCodeCoveragesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeCoverages = output.codeCoverages self.nextToken = output.nextToken @@ -5031,9 +5018,8 @@ public enum DescribeTestCasesOutputError: Swift.Error, Swift.Equatable { extension DescribeTestCasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTestCasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.testCases = output.testCases @@ -5582,9 +5568,8 @@ public enum GetReportGroupTrendOutputError: Swift.Error, Swift.Equatable { extension GetReportGroupTrendOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReportGroupTrendOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rawData = output.rawData self.stats = output.stats @@ -5714,9 +5699,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -5952,9 +5936,8 @@ public enum ImportSourceCredentialsOutputError: Swift.Error, Swift.Equatable { extension ImportSourceCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportSourceCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -5993,9 +5976,8 @@ extension ImportSourceCredentialsOutputResponseBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6009,7 +5991,7 @@ extension InvalidInputException { } /// The input value that was provided is not valid. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6306,9 +6288,8 @@ public enum ListBuildBatchesForProjectOutputError: Swift.Error, Swift.Equatable extension ListBuildBatchesForProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBuildBatchesForProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ids = output.ids self.nextToken = output.nextToken @@ -6475,9 +6456,8 @@ public enum ListBuildBatchesOutputError: Swift.Error, Swift.Equatable { extension ListBuildBatchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBuildBatchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ids = output.ids self.nextToken = output.nextToken @@ -6638,9 +6618,8 @@ public enum ListBuildsForProjectOutputError: Swift.Error, Swift.Equatable { extension ListBuildsForProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBuildsForProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ids = output.ids self.nextToken = output.nextToken @@ -6783,9 +6762,8 @@ public enum ListBuildsOutputError: Swift.Error, Swift.Equatable { extension ListBuildsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBuildsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ids = output.ids self.nextToken = output.nextToken @@ -6891,9 +6869,8 @@ public enum ListCuratedEnvironmentImagesOutputError: Swift.Error, Swift.Equatabl extension ListCuratedEnvironmentImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCuratedEnvironmentImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.platforms = output.platforms } else { @@ -7050,9 +7027,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -7221,9 +7197,8 @@ public enum ListReportGroupsOutputError: Swift.Error, Swift.Equatable { extension ListReportGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReportGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportGroups = output.reportGroups @@ -7401,9 +7376,8 @@ public enum ListReportsForReportGroupOutputError: Swift.Error, Swift.Equatable { extension ListReportsForReportGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReportsForReportGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reports = output.reports @@ -7570,9 +7544,8 @@ public enum ListReportsOutputError: Swift.Error, Swift.Equatable { extension ListReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reports = output.reports @@ -7743,9 +7716,8 @@ public enum ListSharedProjectsOutputError: Swift.Error, Swift.Equatable { extension ListSharedProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSharedProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -7916,9 +7888,8 @@ public enum ListSharedReportGroupsOutputError: Swift.Error, Swift.Equatable { extension ListSharedReportGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSharedReportGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportGroups = output.reportGroups @@ -8026,9 +7997,8 @@ public enum ListSourceCredentialsOutputError: Swift.Error, Swift.Equatable { extension ListSourceCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSourceCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sourceCredentialsInfos = output.sourceCredentialsInfos } else { @@ -8303,9 +8273,8 @@ extension CodeBuildClientTypes { extension OAuthProviderException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OAuthProviderExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8319,7 +8288,7 @@ extension OAuthProviderException { } /// There was a problem with the underlying OAuth provider. -public struct OAuthProviderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OAuthProviderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9837,9 +9806,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn } else { @@ -10722,9 +10690,8 @@ extension CodeBuildClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10738,7 +10705,7 @@ extension ResourceAlreadyExistsException { } /// The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10774,9 +10741,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10790,7 +10756,7 @@ extension ResourceNotFoundException { } /// The specified Amazon Web Services resource cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10921,9 +10887,8 @@ public enum RetryBuildBatchOutputError: Swift.Error, Swift.Equatable { extension RetryBuildBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryBuildBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buildBatch = output.buildBatch } else { @@ -11079,9 +11044,8 @@ public enum RetryBuildOutputError: Swift.Error, Swift.Equatable { extension RetryBuildOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryBuildOutputResponseBody = try responseDecoder.decode(responseBody: data) self.build = output.build } else { @@ -12042,9 +12006,8 @@ public enum StartBuildBatchOutputError: Swift.Error, Swift.Equatable { extension StartBuildBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartBuildBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buildBatch = output.buildBatch } else { @@ -12565,9 +12528,8 @@ public enum StartBuildOutputError: Swift.Error, Swift.Equatable { extension StartBuildOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartBuildOutputResponseBody = try responseDecoder.decode(responseBody: data) self.build = output.build } else { @@ -12722,9 +12684,8 @@ public enum StopBuildBatchOutputError: Swift.Error, Swift.Equatable { extension StopBuildBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopBuildBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buildBatch = output.buildBatch } else { @@ -12835,9 +12796,8 @@ public enum StopBuildOutputError: Swift.Error, Swift.Equatable { extension StopBuildOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopBuildOutputResponseBody = try responseDecoder.decode(responseBody: data) self.build = output.build } else { @@ -13534,9 +13494,8 @@ public enum UpdateProjectOutputError: Swift.Error, Swift.Equatable { extension UpdateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -13672,9 +13631,8 @@ public enum UpdateProjectVisibilityOutputError: Swift.Error, Swift.Equatable { extension UpdateProjectVisibilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProjectVisibilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectArn = output.projectArn self.projectVisibility = output.projectVisibility @@ -13845,9 +13803,8 @@ public enum UpdateReportGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateReportGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReportGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportGroup = output.reportGroup } else { @@ -14032,9 +13989,8 @@ public enum UpdateWebhookOutputError: Swift.Error, Swift.Equatable { extension UpdateWebhookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWebhookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webhook = output.webhook } else { diff --git a/Sources/Services/AWSCodeCatalyst/CodeCatalystClient.swift b/Sources/Services/AWSCodeCatalyst/CodeCatalystClient.swift index 5fed16d78ff..249a2b3e19e 100644 --- a/Sources/Services/AWSCodeCatalyst/CodeCatalystClient.swift +++ b/Sources/Services/AWSCodeCatalyst/CodeCatalystClient.swift @@ -206,6 +206,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -237,6 +238,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "createDevEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -250,7 +252,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -268,6 +270,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -281,7 +284,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -299,6 +302,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "createSourceRepositoryBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -312,7 +316,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -330,6 +334,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +345,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -358,6 +363,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDevEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +374,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -386,6 +392,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getDevEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -396,7 +403,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +421,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +432,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +450,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getSourceRepositoryCloneUrls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -452,7 +461,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -470,6 +479,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getSpace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -480,7 +490,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -498,6 +508,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -508,7 +519,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -526,6 +537,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getUserDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -537,7 +549,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +567,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessTokens") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -568,7 +581,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -586,6 +599,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listDevEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +613,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -617,6 +631,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listEventLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -630,7 +645,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +663,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -661,7 +677,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -679,6 +695,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listSourceRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +709,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -710,6 +727,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listSourceRepositoryBranches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -723,7 +741,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -741,6 +759,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listSpaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -754,7 +773,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -772,6 +791,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "startDevEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -785,7 +805,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +823,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "startDevEnvironmentSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +837,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +855,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "stopDevEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +866,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -862,6 +884,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "stopDevEnvironmentSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +895,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -890,6 +913,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "updateDevEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -903,7 +927,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -921,6 +945,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "verifySession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -931,7 +956,7 @@ extension CodeCatalystClient: CodeCatalystClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeCatalyst/models/Models.swift b/Sources/Services/AWSCodeCatalyst/models/Models.swift index 90a06df7dbe..7c80a9e5e2b 100644 --- a/Sources/Services/AWSCodeCatalyst/models/Models.swift +++ b/Sources/Services/AWSCodeCatalyst/models/Models.swift @@ -3,7 +3,7 @@ import AWSClientRuntime import ClientRuntime /// The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -153,7 +153,7 @@ extension CodeCatalystClientTypes { } /// The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -259,9 +259,8 @@ extension CreateAccessTokenOutputResponse: Swift.CustomDebugStringConvertible { extension CreateAccessTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessTokenId = output.accessTokenId self.expiresTime = output.expiresTime @@ -515,9 +514,8 @@ public enum CreateDevEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateDevEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDevEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.projectName = output.projectName @@ -667,9 +665,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.displayName = output.displayName @@ -838,9 +835,8 @@ public enum CreateSourceRepositoryBranchOutputError: Swift.Error, Swift.Equatabl extension CreateSourceRepositoryBranchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSourceRepositoryBranchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.headCommitId = output.headCommitId self.lastUpdatedTime = output.lastUpdatedTime @@ -1037,9 +1033,8 @@ public enum DeleteDevEnvironmentOutputError: Swift.Error, Swift.Equatable { extension DeleteDevEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDevEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.projectName = output.projectName @@ -2011,9 +2006,8 @@ public enum GetDevEnvironmentOutputError: Swift.Error, Swift.Equatable { extension GetDevEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.creatorId = output.creatorId @@ -2259,9 +2253,8 @@ public enum GetProjectOutputError: Swift.Error, Swift.Equatable { extension GetProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.displayName = output.displayName @@ -2398,9 +2391,8 @@ public enum GetSourceRepositoryCloneUrlsOutputError: Swift.Error, Swift.Equatabl extension GetSourceRepositoryCloneUrlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSourceRepositoryCloneUrlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.https = output.https } else { @@ -2491,9 +2483,8 @@ public enum GetSpaceOutputError: Swift.Error, Swift.Equatable { extension GetSpaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSpaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.displayName = output.displayName @@ -2615,9 +2606,8 @@ public enum GetSubscriptionOutputError: Swift.Error, Swift.Equatable { extension GetSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsAccountName = output.awsAccountName self.subscriptionType = output.subscriptionType @@ -2734,9 +2724,8 @@ public enum GetUserDetailsOutputError: Swift.Error, Swift.Equatable { extension GetUserDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.displayName = output.displayName self.primaryEmail = output.primaryEmail @@ -3022,9 +3011,8 @@ public enum ListAccessTokensOutputError: Swift.Error, Swift.Equatable { extension ListAccessTokensOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessTokensOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -3202,9 +3190,8 @@ public enum ListDevEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListDevEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -3388,9 +3375,8 @@ public enum ListEventLogsOutputError: Swift.Error, Swift.Equatable { extension ListEventLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -3560,9 +3546,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -3794,9 +3779,8 @@ public enum ListSourceRepositoriesOutputError: Swift.Error, Swift.Equatable { extension ListSourceRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSourceRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -4022,9 +4006,8 @@ public enum ListSourceRepositoryBranchesOutputError: Swift.Error, Swift.Equatabl extension ListSourceRepositoryBranchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSourceRepositoryBranchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -4150,9 +4133,8 @@ public enum ListSpacesOutputError: Swift.Error, Swift.Equatable { extension ListSpacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSpacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -4529,7 +4511,7 @@ extension CodeCatalystClientTypes { } /// The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4549,7 +4531,7 @@ public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, S } /// The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4764,9 +4746,8 @@ public enum StartDevEnvironmentOutputError: Swift.Error, Swift.Equatable { extension StartDevEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDevEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.projectName = output.projectName @@ -4936,9 +4917,8 @@ extension StartDevEnvironmentSessionOutputResponse: Swift.CustomDebugStringConve extension StartDevEnvironmentSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDevEnvironmentSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessDetails = output.accessDetails self.id = output.id @@ -5088,9 +5068,8 @@ public enum StopDevEnvironmentOutputError: Swift.Error, Swift.Equatable { extension StopDevEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDevEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.projectName = output.projectName @@ -5238,9 +5217,8 @@ public enum StopDevEnvironmentSessionOutputError: Swift.Error, Swift.Equatable { extension StopDevEnvironmentSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDevEnvironmentSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.projectName = output.projectName @@ -5312,7 +5290,7 @@ extension StopDevEnvironmentSessionOutputResponseBody: Swift.Decodable { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5484,9 +5462,8 @@ public enum UpdateDevEnvironmentOutputError: Swift.Error, Swift.Equatable { extension UpdateDevEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDevEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.clientToken = output.clientToken @@ -5708,7 +5685,7 @@ extension CodeCatalystClientTypes { } /// The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5769,9 +5746,8 @@ public enum VerifySessionOutputError: Swift.Error, Swift.Equatable { extension VerifySessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VerifySessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identity = output.identity } else { diff --git a/Sources/Services/AWSCodeCommit/CodeCommitClient.swift b/Sources/Services/AWSCodeCommit/CodeCommitClient.swift index 1f7677fcbea..ca1b8863150 100644 --- a/Sources/Services/AWSCodeCommit/CodeCommitClient.swift +++ b/Sources/Services/AWSCodeCommit/CodeCommitClient.swift @@ -208,6 +208,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateApprovalRuleTemplateWithRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateApprovalRuleTemplateWithRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDescribeMergeConflicts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateApprovalRuleTemplateFromRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetCommits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApprovalRuleTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCommit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPullRequest") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -556,7 +566,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPullRequestApprovalRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -592,7 +603,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -612,6 +623,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +640,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUnreferencedMergeCommit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +677,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +697,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApprovalRuleTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +714,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +734,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +751,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +771,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCommentContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +788,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +808,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +825,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +845,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePullRequestApprovalRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +862,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +882,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +899,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +919,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMergeConflicts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +936,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +956,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePullRequestEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +973,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +993,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateApprovalRuleTemplateFromRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -988,7 +1010,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1008,6 +1030,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "evaluatePullRequestApprovalRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1047,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1067,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApprovalRuleTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1084,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1104,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1121,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1141,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1132,7 +1158,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1152,6 +1178,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1195,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1215,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCommentReactions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1204,7 +1232,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1224,6 +1252,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCommentsForComparedCommit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1269,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1289,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCommentsForPullRequest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1276,7 +1306,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1296,6 +1326,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCommit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1343,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1332,6 +1363,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDifferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1348,7 +1380,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1368,6 +1400,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1384,7 +1417,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1404,6 +1437,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1420,7 +1454,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1440,6 +1474,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMergeCommit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1456,7 +1491,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1511,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMergeConflicts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1492,7 +1528,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1512,6 +1548,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMergeOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1528,7 +1565,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1548,6 +1585,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPullRequest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1564,7 +1602,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1584,6 +1622,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPullRequestApprovalStates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1600,7 +1639,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1620,6 +1659,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPullRequestOverrideState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1636,7 +1676,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1656,6 +1696,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1672,7 +1713,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1692,6 +1733,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepositoryTriggers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1708,7 +1750,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1728,6 +1770,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApprovalRuleTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1744,7 +1787,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1764,6 +1807,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociatedApprovalRuleTemplatesForRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1780,7 +1824,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1800,6 +1844,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBranches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1816,7 +1861,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1836,6 +1881,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPullRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1852,7 +1898,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1918,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1888,7 +1935,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1908,6 +1955,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRepositoriesForApprovalRuleTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1924,7 +1972,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1944,6 +1992,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1960,7 +2009,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1980,6 +2029,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergeBranchesByFastForward") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1996,7 +2046,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2016,6 +2066,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergeBranchesBySquash") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2032,7 +2083,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2052,6 +2103,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergeBranchesByThreeWay") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2068,7 +2120,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2088,6 +2140,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergePullRequestByFastForward") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2104,7 +2157,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2124,6 +2177,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergePullRequestBySquash") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2140,7 +2194,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2160,6 +2214,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergePullRequestByThreeWay") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2176,7 +2231,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2196,6 +2251,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "overridePullRequestApprovalRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2212,7 +2268,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2232,6 +2288,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "postCommentForComparedCommit") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2256,7 +2313,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2276,6 +2333,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "postCommentForPullRequest") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2300,7 +2358,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2320,6 +2378,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "postCommentReply") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2344,7 +2403,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2364,6 +2423,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putCommentReaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2380,7 +2440,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2400,6 +2460,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2416,7 +2477,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2436,6 +2497,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRepositoryTriggers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2452,7 +2514,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2472,6 +2534,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2488,7 +2551,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2508,6 +2571,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testRepositoryTriggers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2524,7 +2588,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2544,6 +2608,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2560,7 +2625,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2580,6 +2645,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApprovalRuleTemplateContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2596,7 +2662,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2616,6 +2682,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApprovalRuleTemplateDescription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2632,7 +2699,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2652,6 +2719,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApprovalRuleTemplateName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2668,7 +2736,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2688,6 +2756,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateComment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2704,7 +2773,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2724,6 +2793,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDefaultBranch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2740,7 +2810,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2760,6 +2830,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePullRequestApprovalRuleContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2776,7 +2847,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2796,6 +2867,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePullRequestApprovalState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2812,7 +2884,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2832,6 +2904,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePullRequestDescription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2848,7 +2921,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2868,6 +2941,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePullRequestStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2884,7 +2958,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2904,6 +2978,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePullRequestTitle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2920,7 +2995,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2940,6 +3015,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRepositoryDescription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2956,7 +3032,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2976,6 +3052,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codecommit") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRepositoryName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2992,7 +3069,7 @@ extension CodeCommitClient: CodeCommitClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeCommit/models/Models.swift b/Sources/Services/AWSCodeCommit/models/Models.swift index 5c298f1708a..6930fb14cf6 100644 --- a/Sources/Services/AWSCodeCommit/models/Models.swift +++ b/Sources/Services/AWSCodeCommit/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ActorDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActorDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ActorDoesNotExistException { } /// The specified Amazon Resource Name (ARN) does not exist in the AWS account. -public struct ActorDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActorDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -207,9 +206,8 @@ extension CodeCommitClientTypes { extension ApprovalRuleContentRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleContentRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -223,7 +221,7 @@ extension ApprovalRuleContentRequiredException { } /// The content for the approval rule is empty. You must provide some content for an approval rule. The content cannot be null. -public struct ApprovalRuleContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -260,9 +258,8 @@ extension ApprovalRuleContentRequiredExceptionBody: Swift.Decodable { extension ApprovalRuleDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -276,7 +273,7 @@ extension ApprovalRuleDoesNotExistException { } /// The specified approval rule does not exist. -public struct ApprovalRuleDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -368,9 +365,8 @@ extension CodeCommitClientTypes { extension ApprovalRuleNameAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleNameAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -384,7 +380,7 @@ extension ApprovalRuleNameAlreadyExistsException { } /// An approval rule with that name already exists. Approval rule names must be unique within the scope of a pull request. -public struct ApprovalRuleNameAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleNameAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -421,9 +417,8 @@ extension ApprovalRuleNameAlreadyExistsExceptionBody: Swift.Decodable { extension ApprovalRuleNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -437,7 +432,7 @@ extension ApprovalRuleNameRequiredException { } /// An approval rule name is required, but was not specified. -public struct ApprovalRuleNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -624,9 +619,8 @@ extension CodeCommitClientTypes { extension ApprovalRuleTemplateContentRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleTemplateContentRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -640,7 +634,7 @@ extension ApprovalRuleTemplateContentRequiredException { } /// The content for the approval rule template is empty. You must provide some content for an approval rule template. The content cannot be null. -public struct ApprovalRuleTemplateContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleTemplateContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -677,9 +671,8 @@ extension ApprovalRuleTemplateContentRequiredExceptionBody: Swift.Decodable { extension ApprovalRuleTemplateDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleTemplateDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -693,7 +686,7 @@ extension ApprovalRuleTemplateDoesNotExistException { } /// The specified approval rule template does not exist. Verify that the name is correct and that you are signed in to the AWS Region where the template was created, and then try again. -public struct ApprovalRuleTemplateDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleTemplateDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -730,9 +723,8 @@ extension ApprovalRuleTemplateDoesNotExistExceptionBody: Swift.Decodable { extension ApprovalRuleTemplateInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleTemplateInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -746,7 +738,7 @@ extension ApprovalRuleTemplateInUseException { } /// The approval rule template is associated with one or more repositories. You cannot delete a template that is associated with a repository. Remove all associations, and then try again. -public struct ApprovalRuleTemplateInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleTemplateInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -783,9 +775,8 @@ extension ApprovalRuleTemplateInUseExceptionBody: Swift.Decodable { extension ApprovalRuleTemplateNameAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleTemplateNameAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -799,7 +790,7 @@ extension ApprovalRuleTemplateNameAlreadyExistsException { } /// You cannot create an approval rule template with that name because a template with that name already exists in this AWS Region for your AWS account. Approval rule template names must be unique. -public struct ApprovalRuleTemplateNameAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleTemplateNameAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -836,9 +827,8 @@ extension ApprovalRuleTemplateNameAlreadyExistsExceptionBody: Swift.Decodable { extension ApprovalRuleTemplateNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalRuleTemplateNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -852,7 +842,7 @@ extension ApprovalRuleTemplateNameRequiredException { } /// An approval rule template name is required, but was not specified. -public struct ApprovalRuleTemplateNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalRuleTemplateNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -966,9 +956,8 @@ extension CodeCommitClientTypes { extension ApprovalStateRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalStateRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -982,7 +971,7 @@ extension ApprovalStateRequiredException { } /// An approval state is required, but was not specified. -public struct ApprovalStateRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalStateRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1134,9 +1123,8 @@ public struct AssociateApprovalRuleTemplateWithRepositoryOutputResponse: Swift.E extension AuthorDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1150,7 +1138,7 @@ extension AuthorDoesNotExistException { } /// The specified Amazon Resource Name (ARN) does not exist in the AWS account. -public struct AuthorDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1355,9 +1343,8 @@ public enum BatchAssociateApprovalRuleTemplateWithRepositoriesOutputError: Swift extension BatchAssociateApprovalRuleTemplateWithRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateApprovalRuleTemplateWithRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedRepositoryNames = output.associatedRepositoryNames self.errors = output.errors @@ -1717,9 +1704,8 @@ public enum BatchDescribeMergeConflictsOutputError: Swift.Error, Swift.Equatable extension BatchDescribeMergeConflictsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDescribeMergeConflictsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseCommitId = output.baseCommitId self.conflicts = output.conflicts @@ -1997,9 +1983,8 @@ public enum BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputError: Sw extension BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disassociatedRepositoryNames = output.disassociatedRepositoryNames self.errors = output.errors @@ -2236,9 +2221,8 @@ public enum BatchGetCommitsOutputError: Swift.Error, Swift.Equatable { extension BatchGetCommitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetCommitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commits = output.commits self.errors = output.errors @@ -2402,9 +2386,8 @@ public enum BatchGetRepositoriesOutputError: Swift.Error, Swift.Equatable { extension BatchGetRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repositories = output.repositories self.repositoriesNotFound = output.repositoriesNotFound @@ -2472,9 +2455,8 @@ extension BatchGetRepositoriesOutputResponseBody: Swift.Decodable { extension BeforeCommitIdAndAfterCommitIdAreSameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BeforeCommitIdAndAfterCommitIdAreSameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2488,7 +2470,7 @@ extension BeforeCommitIdAndAfterCommitIdAreSameException { } /// The before commit ID and the after commit ID are the same, which is not valid. The before commit ID and the after commit ID must be different commit IDs. -public struct BeforeCommitIdAndAfterCommitIdAreSameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BeforeCommitIdAndAfterCommitIdAreSameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2525,9 +2507,8 @@ extension BeforeCommitIdAndAfterCommitIdAreSameExceptionBody: Swift.Decodable { extension BlobIdDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BlobIdDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2541,7 +2522,7 @@ extension BlobIdDoesNotExistException { } /// The specified blob does not exist. -public struct BlobIdDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BlobIdDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2578,9 +2559,8 @@ extension BlobIdDoesNotExistExceptionBody: Swift.Decodable { extension BlobIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BlobIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2594,7 +2574,7 @@ extension BlobIdRequiredException { } /// A blob ID is required, but was not specified. -public struct BlobIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BlobIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2694,9 +2674,8 @@ extension CodeCommitClientTypes { extension BranchDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BranchDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2710,7 +2689,7 @@ extension BranchDoesNotExistException { } /// The specified branch does not exist. -public struct BranchDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BranchDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2792,9 +2771,8 @@ extension CodeCommitClientTypes { extension BranchNameExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BranchNameExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2808,7 +2786,7 @@ extension BranchNameExistsException { } /// Cannot create the branch with the specified name because the commit conflicts with an existing branch with the same name. Branch names must be unique. -public struct BranchNameExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BranchNameExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2845,9 +2823,8 @@ extension BranchNameExistsExceptionBody: Swift.Decodable { extension BranchNameIsTagNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BranchNameIsTagNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2861,7 +2838,7 @@ extension BranchNameIsTagNameException { } /// The specified branch name is not valid because it is a tag name. Enter the name of a branch in the repository. For a list of valid branch names, use [ListBranches]. -public struct BranchNameIsTagNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BranchNameIsTagNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2898,9 +2875,8 @@ extension BranchNameIsTagNameExceptionBody: Swift.Decodable { extension BranchNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BranchNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2914,7 +2890,7 @@ extension BranchNameRequiredException { } /// A branch name is required, but was not specified. -public struct BranchNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BranchNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2951,9 +2927,8 @@ extension BranchNameRequiredExceptionBody: Swift.Decodable { extension CannotDeleteApprovalRuleFromTemplateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CannotDeleteApprovalRuleFromTemplateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2967,7 +2942,7 @@ extension CannotDeleteApprovalRuleFromTemplateException { } /// The approval rule cannot be deleted from the pull request because it was created by an approval rule template and applied to the pull request automatically. -public struct CannotDeleteApprovalRuleFromTemplateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CannotDeleteApprovalRuleFromTemplateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3004,9 +2979,8 @@ extension CannotDeleteApprovalRuleFromTemplateExceptionBody: Swift.Decodable { extension CannotModifyApprovalRuleFromTemplateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CannotModifyApprovalRuleFromTemplateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3020,7 +2994,7 @@ extension CannotModifyApprovalRuleFromTemplateException { } /// The approval rule cannot be modified for the pull request because it was created by an approval rule template and applied to the pull request automatically. -public struct CannotModifyApprovalRuleFromTemplateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CannotModifyApprovalRuleFromTemplateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3092,9 +3066,8 @@ extension CodeCommitClientTypes { extension ClientRequestTokenRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientRequestTokenRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3108,7 +3081,7 @@ extension ClientRequestTokenRequiredException { } /// A client request token is required. A client request token is an unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token. -public struct ClientRequestTokenRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientRequestTokenRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3294,9 +3267,8 @@ extension CodeCommitClientTypes { extension CommentContentRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommentContentRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3310,7 +3282,7 @@ extension CommentContentRequiredException { } /// The comment is empty. You must provide some content for a comment. The content cannot be null. -public struct CommentContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommentContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3347,9 +3319,8 @@ extension CommentContentRequiredExceptionBody: Swift.Decodable { extension CommentContentSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommentContentSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3363,7 +3334,7 @@ extension CommentContentSizeLimitExceededException { } /// The comment is too large. Comments are limited to 1,000 characters. -public struct CommentContentSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommentContentSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3400,9 +3371,8 @@ extension CommentContentSizeLimitExceededExceptionBody: Swift.Decodable { extension CommentDeletedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommentDeletedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3416,7 +3386,7 @@ extension CommentDeletedException { } /// This comment has already been deleted. You cannot edit or delete a deleted comment. -public struct CommentDeletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommentDeletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3453,9 +3423,8 @@ extension CommentDeletedExceptionBody: Swift.Decodable { extension CommentDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommentDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3469,7 +3438,7 @@ extension CommentDoesNotExistException { } /// No comment exists with the provided ID. Verify that you have used the correct ID, and then try again. -public struct CommentDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommentDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3506,9 +3475,8 @@ extension CommentDoesNotExistExceptionBody: Swift.Decodable { extension CommentIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommentIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3522,7 +3490,7 @@ extension CommentIdRequiredException { } /// The comment ID is missing or null. A comment ID is required. -public struct CommentIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommentIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3559,9 +3527,8 @@ extension CommentIdRequiredExceptionBody: Swift.Decodable { extension CommentNotCreatedByCallerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommentNotCreatedByCallerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3575,7 +3542,7 @@ extension CommentNotCreatedByCallerException { } /// You cannot modify or delete this comment. Only comment authors can modify or delete their comments. -public struct CommentNotCreatedByCallerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommentNotCreatedByCallerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3943,9 +3910,8 @@ extension CodeCommitClientTypes { extension CommitDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3959,7 +3925,7 @@ extension CommitDoesNotExistException { } /// The specified commit does not exist or no commit was specified, and the specified repository has no default branch. -public struct CommitDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommitDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3996,9 +3962,8 @@ extension CommitDoesNotExistExceptionBody: Swift.Decodable { extension CommitIdDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitIdDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4012,7 +3977,7 @@ extension CommitIdDoesNotExistException { } /// The specified commit ID does not exist. -public struct CommitIdDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommitIdDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4049,9 +4014,8 @@ extension CommitIdDoesNotExistExceptionBody: Swift.Decodable { extension CommitIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4065,7 +4029,7 @@ extension CommitIdRequiredException { } /// A commit ID was not specified. -public struct CommitIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommitIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4102,9 +4066,8 @@ extension CommitIdRequiredExceptionBody: Swift.Decodable { extension CommitIdsLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitIdsLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4118,7 +4081,7 @@ extension CommitIdsLimitExceededException { } /// The maximum number of allowed commit IDs in a batch request is 100. Verify that your batch requests contains no more than 100 commit IDs, and then try again. -public struct CommitIdsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommitIdsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4155,9 +4118,8 @@ extension CommitIdsLimitExceededExceptionBody: Swift.Decodable { extension CommitIdsListRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitIdsListRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4171,7 +4133,7 @@ extension CommitIdsListRequiredException { } /// A list of commit IDs is required, but was either not specified or the list was empty. -public struct CommitIdsListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommitIdsListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4208,9 +4170,8 @@ extension CommitIdsListRequiredExceptionBody: Swift.Decodable { extension CommitMessageLengthExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitMessageLengthExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4224,7 +4185,7 @@ extension CommitMessageLengthExceededException { } /// The commit message is too long. Provide a shorter string. -public struct CommitMessageLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommitMessageLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4261,9 +4222,8 @@ extension CommitMessageLengthExceededExceptionBody: Swift.Decodable { extension CommitRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4277,7 +4237,7 @@ extension CommitRequiredException { } /// A commit was not specified. -public struct CommitRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CommitRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4314,9 +4274,8 @@ extension CommitRequiredExceptionBody: Swift.Decodable { extension ConcurrentReferenceUpdateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentReferenceUpdateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4330,7 +4289,7 @@ extension ConcurrentReferenceUpdateException { } /// The merge cannot be completed because the target branch has been modified. Another user might have modified the target branch while the merge was in progress. Wait a few minutes, and then try again. -public struct ConcurrentReferenceUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentReferenceUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4831,9 +4790,8 @@ public enum CreateApprovalRuleTemplateOutputError: Swift.Error, Swift.Equatable extension CreateApprovalRuleTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApprovalRuleTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleTemplate = output.approvalRuleTemplate } else { @@ -5295,9 +5253,8 @@ public enum CreateCommitOutputError: Swift.Error, Swift.Equatable { extension CreateCommitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCommitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commitId = output.commitId self.filesAdded = output.filesAdded @@ -5541,9 +5498,8 @@ public enum CreatePullRequestApprovalRuleOutputError: Swift.Error, Swift.Equatab extension CreatePullRequestApprovalRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePullRequestApprovalRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRule = output.approvalRule } else { @@ -5750,9 +5706,8 @@ public enum CreatePullRequestOutputError: Swift.Error, Swift.Equatable { extension CreatePullRequestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePullRequestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pullRequest = output.pullRequest } else { @@ -5925,9 +5880,8 @@ public enum CreateRepositoryOutputError: Swift.Error, Swift.Equatable { extension CreateRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repositoryMetadata = output.repositoryMetadata } else { @@ -6230,9 +6184,8 @@ public enum CreateUnreferencedMergeCommitOutputError: Swift.Error, Swift.Equatab extension CreateUnreferencedMergeCommitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUnreferencedMergeCommitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commitId = output.commitId self.treeId = output.treeId @@ -6281,9 +6234,8 @@ extension CreateUnreferencedMergeCommitOutputResponseBody: Swift.Decodable { extension DefaultBranchCannotBeDeletedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DefaultBranchCannotBeDeletedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6297,7 +6249,7 @@ extension DefaultBranchCannotBeDeletedException { } /// The specified branch is the default branch for the repository, and cannot be deleted. To delete this branch, you must first set another branch as the default branch. -public struct DefaultBranchCannotBeDeletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DefaultBranchCannotBeDeletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6408,9 +6360,8 @@ public enum DeleteApprovalRuleTemplateOutputError: Swift.Error, Swift.Equatable extension DeleteApprovalRuleTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteApprovalRuleTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleTemplateId = output.approvalRuleTemplateId } else { @@ -6554,9 +6505,8 @@ public enum DeleteBranchOutputError: Swift.Error, Swift.Equatable { extension DeleteBranchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBranchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletedBranch = output.deletedBranch } else { @@ -6672,9 +6622,8 @@ public enum DeleteCommentContentOutputError: Swift.Error, Swift.Equatable { extension DeleteCommentContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCommentContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comment = output.comment } else { @@ -6948,9 +6897,8 @@ public enum DeleteFileOutputError: Swift.Error, Swift.Equatable { extension DeleteFileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blobId = output.blobId self.commitId = output.commitId @@ -7128,9 +7076,8 @@ public enum DeletePullRequestApprovalRuleOutputError: Swift.Error, Swift.Equatab extension DeletePullRequestApprovalRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePullRequestApprovalRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleId = output.approvalRuleId } else { @@ -7253,9 +7200,8 @@ public enum DeleteRepositoryOutputError: Swift.Error, Swift.Equatable { extension DeleteRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repositoryId = output.repositoryId } else { @@ -7509,9 +7455,8 @@ public enum DescribeMergeConflictsOutputError: Swift.Error, Swift.Equatable { extension DescribeMergeConflictsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMergeConflictsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseCommitId = output.baseCommitId self.conflictMetadata = output.conflictMetadata @@ -7755,9 +7700,8 @@ public enum DescribePullRequestEventsOutputError: Swift.Error, Swift.Equatable { extension DescribePullRequestEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePullRequestEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pullRequestEvents = output.pullRequestEvents @@ -7871,9 +7815,8 @@ extension CodeCommitClientTypes { extension DirectoryNameConflictsWithFileNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryNameConflictsWithFileNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7887,7 +7830,7 @@ extension DirectoryNameConflictsWithFileNameException { } /// A file cannot be added to the repository because the specified path name has the same name as a file that already exists in this repository. Either provide a different name for the file, or specify a different path for the file. -public struct DirectoryNameConflictsWithFileNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryNameConflictsWithFileNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8037,9 +7980,8 @@ public struct DisassociateApprovalRuleTemplateFromRepositoryOutputResponse: Swif extension EncryptionIntegrityChecksFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EncryptionIntegrityChecksFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8053,7 +7995,7 @@ extension EncryptionIntegrityChecksFailedException { } /// An encryption integrity check failed. -public struct EncryptionIntegrityChecksFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EncryptionIntegrityChecksFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8090,9 +8032,8 @@ extension EncryptionIntegrityChecksFailedExceptionBody: Swift.Decodable { extension EncryptionKeyAccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EncryptionKeyAccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8106,7 +8047,7 @@ extension EncryptionKeyAccessDeniedException { } /// An encryption key could not be accessed. -public struct EncryptionKeyAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EncryptionKeyAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8143,9 +8084,8 @@ extension EncryptionKeyAccessDeniedExceptionBody: Swift.Decodable { extension EncryptionKeyDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EncryptionKeyDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8159,7 +8099,7 @@ extension EncryptionKeyDisabledException { } /// The encryption key is disabled. -public struct EncryptionKeyDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EncryptionKeyDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8196,9 +8136,8 @@ extension EncryptionKeyDisabledExceptionBody: Swift.Decodable { extension EncryptionKeyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EncryptionKeyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8212,7 +8151,7 @@ extension EncryptionKeyNotFoundException { } /// No encryption key was found. -public struct EncryptionKeyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EncryptionKeyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8249,9 +8188,8 @@ extension EncryptionKeyNotFoundExceptionBody: Swift.Decodable { extension EncryptionKeyUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EncryptionKeyUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8265,7 +8203,7 @@ extension EncryptionKeyUnavailableException { } /// The encryption key is not available. -public struct EncryptionKeyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EncryptionKeyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8405,9 +8343,8 @@ public enum EvaluatePullRequestApprovalRulesOutputError: Swift.Error, Swift.Equa extension EvaluatePullRequestApprovalRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EvaluatePullRequestApprovalRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluation = output.evaluation } else { @@ -8601,9 +8538,8 @@ extension CodeCommitClientTypes { extension FileContentAndSourceFileSpecifiedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileContentAndSourceFileSpecifiedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8617,7 +8553,7 @@ extension FileContentAndSourceFileSpecifiedException { } /// The commit cannot be created because both a source file and file content have been specified for the same file. You cannot provide both. Either specify a source file or provide the file content directly. -public struct FileContentAndSourceFileSpecifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileContentAndSourceFileSpecifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8654,9 +8590,8 @@ extension FileContentAndSourceFileSpecifiedExceptionBody: Swift.Decodable { extension FileContentRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileContentRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8670,7 +8605,7 @@ extension FileContentRequiredException { } /// The file cannot be added because it is empty. Empty files cannot be added to the repository with this API. -public struct FileContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8707,9 +8642,8 @@ extension FileContentRequiredExceptionBody: Swift.Decodable { extension FileContentSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileContentSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8723,7 +8657,7 @@ extension FileContentSizeLimitExceededException { } /// The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file content change size is 7 MB. Consider making these changes using a Git client. -public struct FileContentSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileContentSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8760,9 +8694,8 @@ extension FileContentSizeLimitExceededExceptionBody: Swift.Decodable { extension FileDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8776,7 +8709,7 @@ extension FileDoesNotExistException { } /// The specified file does not exist. Verify that you have used the correct file name, full path, and extension. -public struct FileDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8813,9 +8746,8 @@ extension FileDoesNotExistExceptionBody: Swift.Decodable { extension FileEntryRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileEntryRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8829,7 +8761,7 @@ extension FileEntryRequiredException { } /// The commit cannot be created because no files have been specified as added, updated, or changed (PutFile or DeleteFile) for the commit. -public struct FileEntryRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileEntryRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8921,9 +8853,8 @@ extension CodeCommitClientTypes { extension FileModeRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileModeRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8937,7 +8868,7 @@ extension FileModeRequiredException { } /// The commit cannot be created because no file mode has been specified. A file mode is required to update mode permissions for a file. -public struct FileModeRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileModeRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9064,9 +8995,8 @@ extension CodeCommitClientTypes { extension FileNameConflictsWithDirectoryNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileNameConflictsWithDirectoryNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9080,7 +9010,7 @@ extension FileNameConflictsWithDirectoryNameException { } /// A file cannot be added to the repository because the specified file name has the same name as a directory in this repository. Either provide another name for the file, or add the file in a directory that does not match the file name. -public struct FileNameConflictsWithDirectoryNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileNameConflictsWithDirectoryNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9117,9 +9047,8 @@ extension FileNameConflictsWithDirectoryNameExceptionBody: Swift.Decodable { extension FilePathConflictsWithSubmodulePathException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FilePathConflictsWithSubmodulePathExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9133,7 +9062,7 @@ extension FilePathConflictsWithSubmodulePathException { } /// The commit cannot be created because a specified file path points to a submodule. Verify that the destination files have valid file paths that do not point to a submodule. -public struct FilePathConflictsWithSubmodulePathException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FilePathConflictsWithSubmodulePathException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9225,9 +9154,8 @@ extension CodeCommitClientTypes { extension FileTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9241,7 +9169,7 @@ extension FileTooLargeException { } /// The specified file exceeds the file size limit for AWS CodeCommit. For more information about limits in AWS CodeCommit, see [AWS CodeCommit User Guide](https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). -public struct FileTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9333,9 +9261,8 @@ extension CodeCommitClientTypes { extension FolderContentSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FolderContentSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9349,7 +9276,7 @@ extension FolderContentSizeLimitExceededException { } /// The commit cannot be created because at least one of the overall changes in the commit results in a folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or split the changes across multiple folders. -public struct FolderContentSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FolderContentSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9386,9 +9313,8 @@ extension FolderContentSizeLimitExceededExceptionBody: Swift.Decodable { extension FolderDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FolderDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9402,7 +9328,7 @@ extension FolderDoesNotExistException { } /// The specified folder does not exist. Either the folder name is not correct, or you did not enter the full path to the folder. -public struct FolderDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FolderDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9513,9 +9439,8 @@ public enum GetApprovalRuleTemplateOutputError: Swift.Error, Swift.Equatable { extension GetApprovalRuleTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApprovalRuleTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleTemplate = output.approvalRuleTemplate } else { @@ -9661,9 +9586,8 @@ public enum GetBlobOutputError: Swift.Error, Swift.Equatable { extension GetBlobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content } else { @@ -9806,9 +9730,8 @@ public enum GetBranchOutputError: Swift.Error, Swift.Equatable { extension GetBranchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBranchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.branch = output.branch } else { @@ -9934,9 +9857,8 @@ public enum GetCommentOutputError: Swift.Error, Swift.Equatable { extension GetCommentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCommentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comment = output.comment } else { @@ -10093,9 +10015,8 @@ public enum GetCommentReactionsOutputError: Swift.Error, Swift.Equatable { extension GetCommentReactionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCommentReactionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reactionsForComment = output.reactionsForComment @@ -10297,9 +10218,8 @@ public enum GetCommentsForComparedCommitOutputError: Swift.Error, Swift.Equatabl extension GetCommentsForComparedCommitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCommentsForComparedCommitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commentsForComparedCommitData = output.commentsForComparedCommitData self.nextToken = output.nextToken @@ -10519,9 +10439,8 @@ public enum GetCommentsForPullRequestOutputError: Swift.Error, Swift.Equatable { extension GetCommentsForPullRequestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCommentsForPullRequestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commentsForPullRequestData = output.commentsForPullRequestData self.nextToken = output.nextToken @@ -10683,9 +10602,8 @@ public enum GetCommitOutputError: Swift.Error, Swift.Equatable { extension GetCommitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCommitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commit = output.commit } else { @@ -10899,9 +10817,8 @@ public enum GetDifferencesOutputError: Swift.Error, Swift.Equatable { extension GetDifferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDifferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.differences = output.differences self.nextToken = output.nextToken @@ -11080,9 +10997,8 @@ public enum GetFileOutputError: Swift.Error, Swift.Equatable { extension GetFileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blobId = output.blobId self.commitId = output.commitId @@ -11296,9 +11212,8 @@ public enum GetFolderOutputError: Swift.Error, Swift.Equatable { extension GetFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commitId = output.commitId self.files = output.files @@ -11579,9 +11494,8 @@ public enum GetMergeCommitOutputError: Swift.Error, Swift.Equatable { extension GetMergeCommitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMergeCommitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseCommitId = output.baseCommitId self.destinationCommitId = output.destinationCommitId @@ -11849,9 +11763,8 @@ public enum GetMergeConflictsOutputError: Swift.Error, Swift.Equatable { extension GetMergeConflictsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMergeConflictsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseCommitId = output.baseCommitId self.conflictMetadataList = output.conflictMetadataList @@ -12103,9 +12016,8 @@ public enum GetMergeOptionsOutputError: Swift.Error, Swift.Equatable { extension GetMergeOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMergeOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseCommitId = output.baseCommitId self.destinationCommitId = output.destinationCommitId @@ -12288,9 +12200,8 @@ public enum GetPullRequestApprovalStatesOutputError: Swift.Error, Swift.Equatabl extension GetPullRequestApprovalStatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPullRequestApprovalStatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvals = output.approvals } else { @@ -12422,9 +12333,8 @@ public enum GetPullRequestOutputError: Swift.Error, Swift.Equatable { extension GetPullRequestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPullRequestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pullRequest = output.pullRequest } else { @@ -12565,9 +12475,8 @@ public enum GetPullRequestOverrideStateOutputError: Swift.Error, Swift.Equatable extension GetPullRequestOverrideStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPullRequestOverrideStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.overridden = output.overridden self.overrider = output.overrider @@ -12701,9 +12610,8 @@ public enum GetRepositoryOutputError: Swift.Error, Swift.Equatable { extension GetRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repositoryMetadata = output.repositoryMetadata } else { @@ -12828,9 +12736,8 @@ public enum GetRepositoryTriggersOutputError: Swift.Error, Swift.Equatable { extension GetRepositoryTriggersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositoryTriggersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationId = output.configurationId self.triggers = output.triggers @@ -12889,9 +12796,8 @@ extension GetRepositoryTriggersOutputResponseBody: Swift.Decodable { extension IdempotencyParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotencyParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12905,7 +12811,7 @@ extension IdempotencyParameterMismatchException { } /// The client request token is not valid. Either the token is not in a valid format, or the token has been used in a previous request and cannot be reused. -public struct IdempotencyParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotencyParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12942,9 +12848,8 @@ extension IdempotencyParameterMismatchExceptionBody: Swift.Decodable { extension InvalidActorArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidActorArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12958,7 +12863,7 @@ extension InvalidActorArnException { } /// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the user who initiated the change for the pull request, and then try again. -public struct InvalidActorArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidActorArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12995,9 +12900,8 @@ extension InvalidActorArnExceptionBody: Swift.Decodable { extension InvalidApprovalRuleContentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApprovalRuleContentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13011,7 +12915,7 @@ extension InvalidApprovalRuleContentException { } /// The content for the approval rule is not valid. -public struct InvalidApprovalRuleContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApprovalRuleContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13048,9 +12952,8 @@ extension InvalidApprovalRuleContentExceptionBody: Swift.Decodable { extension InvalidApprovalRuleNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApprovalRuleNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13064,7 +12967,7 @@ extension InvalidApprovalRuleNameException { } /// The name for the approval rule is not valid. -public struct InvalidApprovalRuleNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApprovalRuleNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13101,9 +13004,8 @@ extension InvalidApprovalRuleNameExceptionBody: Swift.Decodable { extension InvalidApprovalRuleTemplateContentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApprovalRuleTemplateContentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13117,7 +13019,7 @@ extension InvalidApprovalRuleTemplateContentException { } /// The content of the approval rule template is not valid. -public struct InvalidApprovalRuleTemplateContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApprovalRuleTemplateContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13154,9 +13056,8 @@ extension InvalidApprovalRuleTemplateContentExceptionBody: Swift.Decodable { extension InvalidApprovalRuleTemplateDescriptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApprovalRuleTemplateDescriptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13170,7 +13071,7 @@ extension InvalidApprovalRuleTemplateDescriptionException { } /// The description for the approval rule template is not valid because it exceeds the maximum characters allowed for a description. For more information about limits in AWS CodeCommit, see [AWS CodeCommit User Guide](https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). -public struct InvalidApprovalRuleTemplateDescriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApprovalRuleTemplateDescriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13207,9 +13108,8 @@ extension InvalidApprovalRuleTemplateDescriptionExceptionBody: Swift.Decodable { extension InvalidApprovalRuleTemplateNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApprovalRuleTemplateNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13223,7 +13123,7 @@ extension InvalidApprovalRuleTemplateNameException { } /// The name of the approval rule template is not valid. Template names must be between 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, see [AWS CodeCommit User Guide](https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). -public struct InvalidApprovalRuleTemplateNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApprovalRuleTemplateNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13260,9 +13160,8 @@ extension InvalidApprovalRuleTemplateNameExceptionBody: Swift.Decodable { extension InvalidApprovalStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApprovalStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13276,7 +13175,7 @@ extension InvalidApprovalStateException { } /// The state for the approval is not valid. Valid values include APPROVE and REVOKE. -public struct InvalidApprovalStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApprovalStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13313,9 +13212,8 @@ extension InvalidApprovalStateExceptionBody: Swift.Decodable { extension InvalidAuthorArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAuthorArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13329,7 +13227,7 @@ extension InvalidAuthorArnException { } /// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of the pull request, and then try again. -public struct InvalidAuthorArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAuthorArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13366,9 +13264,8 @@ extension InvalidAuthorArnExceptionBody: Swift.Decodable { extension InvalidBlobIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidBlobIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13382,7 +13279,7 @@ extension InvalidBlobIdException { } /// The specified blob is not valid. -public struct InvalidBlobIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidBlobIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13419,9 +13316,8 @@ extension InvalidBlobIdExceptionBody: Swift.Decodable { extension InvalidBranchNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidBranchNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13435,7 +13331,7 @@ extension InvalidBranchNameException { } /// The specified reference name is not valid. -public struct InvalidBranchNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidBranchNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13472,9 +13368,8 @@ extension InvalidBranchNameExceptionBody: Swift.Decodable { extension InvalidClientRequestTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClientRequestTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13488,7 +13383,7 @@ extension InvalidClientRequestTokenException { } /// The client request token is not valid. -public struct InvalidClientRequestTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClientRequestTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13525,9 +13420,8 @@ extension InvalidClientRequestTokenExceptionBody: Swift.Decodable { extension InvalidCommentIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCommentIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13541,7 +13435,7 @@ extension InvalidCommentIdException { } /// The comment ID is not in a valid format. Make sure that you have provided the full comment ID. -public struct InvalidCommentIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCommentIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13578,9 +13472,8 @@ extension InvalidCommentIdExceptionBody: Swift.Decodable { extension InvalidCommitException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCommitExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13594,7 +13487,7 @@ extension InvalidCommitException { } /// The specified commit is not valid. -public struct InvalidCommitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCommitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13631,9 +13524,8 @@ extension InvalidCommitExceptionBody: Swift.Decodable { extension InvalidCommitIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCommitIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13647,7 +13539,7 @@ extension InvalidCommitIdException { } /// The specified commit ID is not valid. -public struct InvalidCommitIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCommitIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13684,9 +13576,8 @@ extension InvalidCommitIdExceptionBody: Swift.Decodable { extension InvalidConflictDetailLevelException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidConflictDetailLevelExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13700,7 +13591,7 @@ extension InvalidConflictDetailLevelException { } /// The specified conflict detail level is not valid. -public struct InvalidConflictDetailLevelException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConflictDetailLevelException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13737,9 +13628,8 @@ extension InvalidConflictDetailLevelExceptionBody: Swift.Decodable { extension InvalidConflictResolutionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidConflictResolutionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13753,7 +13643,7 @@ extension InvalidConflictResolutionException { } /// The specified conflict resolution list is not valid. -public struct InvalidConflictResolutionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConflictResolutionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13790,9 +13680,8 @@ extension InvalidConflictResolutionExceptionBody: Swift.Decodable { extension InvalidConflictResolutionStrategyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidConflictResolutionStrategyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13806,7 +13695,7 @@ extension InvalidConflictResolutionStrategyException { } /// The specified conflict resolution strategy is not valid. -public struct InvalidConflictResolutionStrategyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConflictResolutionStrategyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13843,9 +13732,8 @@ extension InvalidConflictResolutionStrategyExceptionBody: Swift.Decodable { extension InvalidContinuationTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidContinuationTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13859,7 +13747,7 @@ extension InvalidContinuationTokenException { } /// The specified continuation token is not valid. -public struct InvalidContinuationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidContinuationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13896,9 +13784,8 @@ extension InvalidContinuationTokenExceptionBody: Swift.Decodable { extension InvalidDeletionParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeletionParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13912,7 +13799,7 @@ extension InvalidDeletionParameterException { } /// The specified deletion parameter is not valid. -public struct InvalidDeletionParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeletionParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13949,9 +13836,8 @@ extension InvalidDeletionParameterExceptionBody: Swift.Decodable { extension InvalidDescriptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDescriptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13965,7 +13851,7 @@ extension InvalidDescriptionException { } /// The pull request description is not valid. Descriptions cannot be more than 1,000 characters. -public struct InvalidDescriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDescriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14002,9 +13888,8 @@ extension InvalidDescriptionExceptionBody: Swift.Decodable { extension InvalidDestinationCommitSpecifierException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDestinationCommitSpecifierExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14018,7 +13903,7 @@ extension InvalidDestinationCommitSpecifierException { } /// The destination commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID. -public struct InvalidDestinationCommitSpecifierException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDestinationCommitSpecifierException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14055,9 +13940,8 @@ extension InvalidDestinationCommitSpecifierExceptionBody: Swift.Decodable { extension InvalidEmailException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEmailExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14071,7 +13955,7 @@ extension InvalidEmailException { } /// The specified email address either contains one or more characters that are not allowed, or it exceeds the maximum number of characters allowed for an email address. -public struct InvalidEmailException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEmailException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14108,9 +13992,8 @@ extension InvalidEmailExceptionBody: Swift.Decodable { extension InvalidFileLocationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFileLocationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14124,7 +14007,7 @@ extension InvalidFileLocationException { } /// The location of the file is not valid. Make sure that you include the file name and extension. -public struct InvalidFileLocationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFileLocationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14161,9 +14044,8 @@ extension InvalidFileLocationExceptionBody: Swift.Decodable { extension InvalidFileModeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFileModeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14177,7 +14059,7 @@ extension InvalidFileModeException { } /// The specified file mode permission is not valid. For a list of valid file mode permissions, see [PutFile]. -public struct InvalidFileModeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFileModeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14214,9 +14096,8 @@ extension InvalidFileModeExceptionBody: Swift.Decodable { extension InvalidFilePositionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFilePositionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14230,7 +14111,7 @@ extension InvalidFilePositionException { } /// The position is not valid. Make sure that the line number exists in the version of the file you want to comment on. -public struct InvalidFilePositionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFilePositionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14267,9 +14148,8 @@ extension InvalidFilePositionExceptionBody: Swift.Decodable { extension InvalidMaxConflictFilesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMaxConflictFilesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14283,7 +14163,7 @@ extension InvalidMaxConflictFilesException { } /// The specified value for the number of conflict files to return is not valid. -public struct InvalidMaxConflictFilesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMaxConflictFilesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14320,9 +14200,8 @@ extension InvalidMaxConflictFilesExceptionBody: Swift.Decodable { extension InvalidMaxMergeHunksException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMaxMergeHunksExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14336,7 +14215,7 @@ extension InvalidMaxMergeHunksException { } /// The specified value for the number of merge hunks to return is not valid. -public struct InvalidMaxMergeHunksException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMaxMergeHunksException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14373,9 +14252,8 @@ extension InvalidMaxMergeHunksExceptionBody: Swift.Decodable { extension InvalidMaxResultsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMaxResultsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14389,7 +14267,7 @@ extension InvalidMaxResultsException { } /// The specified number of maximum results is not valid. -public struct InvalidMaxResultsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMaxResultsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14426,9 +14304,8 @@ extension InvalidMaxResultsExceptionBody: Swift.Decodable { extension InvalidMergeOptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMergeOptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14442,7 +14319,7 @@ extension InvalidMergeOptionException { } /// The specified merge option is not valid for this operation. Not all merge strategies are supported for all operations. -public struct InvalidMergeOptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMergeOptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14479,9 +14356,8 @@ extension InvalidMergeOptionExceptionBody: Swift.Decodable { extension InvalidOrderException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOrderExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14495,7 +14371,7 @@ extension InvalidOrderException { } /// The specified sort order is not valid. -public struct InvalidOrderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOrderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14532,9 +14408,8 @@ extension InvalidOrderExceptionBody: Swift.Decodable { extension InvalidOverrideStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOverrideStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14548,7 +14423,7 @@ extension InvalidOverrideStatusException { } /// The override status is not valid. Valid statuses are OVERRIDE and REVOKE. -public struct InvalidOverrideStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOverrideStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14585,9 +14460,8 @@ extension InvalidOverrideStatusExceptionBody: Swift.Decodable { extension InvalidParentCommitIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParentCommitIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14601,7 +14475,7 @@ extension InvalidParentCommitIdException { } /// The parent commit ID is not valid. The commit ID cannot be empty, and must match the head commit ID for the branch of the repository where you want to add or update a file. -public struct InvalidParentCommitIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParentCommitIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14638,9 +14512,8 @@ extension InvalidParentCommitIdExceptionBody: Swift.Decodable { extension InvalidPathException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPathExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14654,7 +14527,7 @@ extension InvalidPathException { } /// The specified path is not valid. -public struct InvalidPathException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPathException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14691,9 +14564,8 @@ extension InvalidPathExceptionBody: Swift.Decodable { extension InvalidPullRequestEventTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPullRequestEventTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14707,7 +14579,7 @@ extension InvalidPullRequestEventTypeException { } /// The pull request event type is not valid. -public struct InvalidPullRequestEventTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPullRequestEventTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14744,9 +14616,8 @@ extension InvalidPullRequestEventTypeExceptionBody: Swift.Decodable { extension InvalidPullRequestIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPullRequestIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14760,7 +14631,7 @@ extension InvalidPullRequestIdException { } /// The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request is in the specified repository, and then try again. -public struct InvalidPullRequestIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPullRequestIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14797,9 +14668,8 @@ extension InvalidPullRequestIdExceptionBody: Swift.Decodable { extension InvalidPullRequestStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPullRequestStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14813,7 +14683,7 @@ extension InvalidPullRequestStatusException { } /// The pull request status is not valid. The only valid values are OPEN and CLOSED. -public struct InvalidPullRequestStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPullRequestStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14850,9 +14720,8 @@ extension InvalidPullRequestStatusExceptionBody: Swift.Decodable { extension InvalidPullRequestStatusUpdateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPullRequestStatusUpdateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14866,7 +14735,7 @@ extension InvalidPullRequestStatusUpdateException { } /// The pull request status update is not valid. The only valid update is from OPEN to CLOSED. -public struct InvalidPullRequestStatusUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPullRequestStatusUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14903,9 +14772,8 @@ extension InvalidPullRequestStatusUpdateExceptionBody: Swift.Decodable { extension InvalidReactionUserArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidReactionUserArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14919,7 +14787,7 @@ extension InvalidReactionUserArnException { } /// The Amazon Resource Name (ARN) of the user or identity is not valid. -public struct InvalidReactionUserArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidReactionUserArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14956,9 +14824,8 @@ extension InvalidReactionUserArnExceptionBody: Swift.Decodable { extension InvalidReactionValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidReactionValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14972,7 +14839,7 @@ extension InvalidReactionValueException { } /// The value of the reaction is not valid. For more information, see the [AWS CodeCommit User Guide](https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html). -public struct InvalidReactionValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidReactionValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15009,9 +14876,8 @@ extension InvalidReactionValueExceptionBody: Swift.Decodable { extension InvalidReferenceNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidReferenceNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15025,7 +14891,7 @@ extension InvalidReferenceNameException { } /// The specified reference name format is not valid. Reference names must conform to the Git references format (for example, refs/heads/master). For more information, see [Git Internals - Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References) or consult your Git documentation. -public struct InvalidReferenceNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidReferenceNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15062,9 +14928,8 @@ extension InvalidReferenceNameExceptionBody: Swift.Decodable { extension InvalidRelativeFileVersionEnumException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRelativeFileVersionEnumExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15078,7 +14943,7 @@ extension InvalidRelativeFileVersionEnumException { } /// Either the enum is not in a valid format, or the specified file version enum is not valid in respect to the current file version. -public struct InvalidRelativeFileVersionEnumException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRelativeFileVersionEnumException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15115,9 +14980,8 @@ extension InvalidRelativeFileVersionEnumExceptionBody: Swift.Decodable { extension InvalidReplacementContentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidReplacementContentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15131,7 +14995,7 @@ extension InvalidReplacementContentException { } /// Automerge was specified for resolving the conflict, but the replacement type is not valid or content is missing. -public struct InvalidReplacementContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidReplacementContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15168,9 +15032,8 @@ extension InvalidReplacementContentExceptionBody: Swift.Decodable { extension InvalidReplacementTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidReplacementTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15184,7 +15047,7 @@ extension InvalidReplacementTypeException { } /// Automerge was specified for resolving the conflict, but the specified replacement type is not valid. -public struct InvalidReplacementTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidReplacementTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15221,9 +15084,8 @@ extension InvalidReplacementTypeExceptionBody: Swift.Decodable { extension InvalidRepositoryDescriptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRepositoryDescriptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15237,7 +15099,7 @@ extension InvalidRepositoryDescriptionException { } /// The specified repository description is not valid. -public struct InvalidRepositoryDescriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRepositoryDescriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15274,9 +15136,8 @@ extension InvalidRepositoryDescriptionExceptionBody: Swift.Decodable { extension InvalidRepositoryNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRepositoryNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15290,7 +15151,7 @@ extension InvalidRepositoryNameException { } /// A specified repository name is not valid. This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist. -public struct InvalidRepositoryNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRepositoryNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15327,9 +15188,8 @@ extension InvalidRepositoryNameExceptionBody: Swift.Decodable { extension InvalidRepositoryTriggerBranchNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRepositoryTriggerBranchNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15343,7 +15203,7 @@ extension InvalidRepositoryTriggerBranchNameException { } /// One or more branch names specified for the trigger is not valid. -public struct InvalidRepositoryTriggerBranchNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRepositoryTriggerBranchNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15380,9 +15240,8 @@ extension InvalidRepositoryTriggerBranchNameExceptionBody: Swift.Decodable { extension InvalidRepositoryTriggerCustomDataException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRepositoryTriggerCustomDataExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15396,7 +15255,7 @@ extension InvalidRepositoryTriggerCustomDataException { } /// The custom data provided for the trigger is not valid. -public struct InvalidRepositoryTriggerCustomDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRepositoryTriggerCustomDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15433,9 +15292,8 @@ extension InvalidRepositoryTriggerCustomDataExceptionBody: Swift.Decodable { extension InvalidRepositoryTriggerDestinationArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRepositoryTriggerDestinationArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15449,7 +15307,7 @@ extension InvalidRepositoryTriggerDestinationArnException { } /// The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most common reason for this error is that the ARN does not meet the requirements for the service type. -public struct InvalidRepositoryTriggerDestinationArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRepositoryTriggerDestinationArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15486,9 +15344,8 @@ extension InvalidRepositoryTriggerDestinationArnExceptionBody: Swift.Decodable { extension InvalidRepositoryTriggerEventsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRepositoryTriggerEventsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15502,7 +15359,7 @@ extension InvalidRepositoryTriggerEventsException { } /// One or more events specified for the trigger is not valid. Check to make sure that all events specified match the requirements for allowed events. -public struct InvalidRepositoryTriggerEventsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRepositoryTriggerEventsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15539,9 +15396,8 @@ extension InvalidRepositoryTriggerEventsExceptionBody: Swift.Decodable { extension InvalidRepositoryTriggerNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRepositoryTriggerNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15555,7 +15411,7 @@ extension InvalidRepositoryTriggerNameException { } /// The name of the trigger is not valid. -public struct InvalidRepositoryTriggerNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRepositoryTriggerNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15592,9 +15448,8 @@ extension InvalidRepositoryTriggerNameExceptionBody: Swift.Decodable { extension InvalidRepositoryTriggerRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRepositoryTriggerRegionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15608,7 +15463,7 @@ extension InvalidRepositoryTriggerRegionException { } /// The AWS Region for the trigger target does not match the AWS Region for the repository. Triggers must be created in the same Region as the target for the trigger. -public struct InvalidRepositoryTriggerRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRepositoryTriggerRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15645,9 +15500,8 @@ extension InvalidRepositoryTriggerRegionExceptionBody: Swift.Decodable { extension InvalidResourceArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15661,7 +15515,7 @@ extension InvalidResourceArnException { } /// The value for the resource ARN is not valid. For more information about resources in AWS CodeCommit, see [CodeCommit Resources and Operations](https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) in the AWS CodeCommit User Guide. -public struct InvalidResourceArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15698,9 +15552,8 @@ extension InvalidResourceArnExceptionBody: Swift.Decodable { extension InvalidRevisionIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRevisionIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15714,7 +15567,7 @@ extension InvalidRevisionIdException { } /// The revision ID is not valid. Use GetPullRequest to determine the value. -public struct InvalidRevisionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRevisionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15751,9 +15604,8 @@ extension InvalidRevisionIdExceptionBody: Swift.Decodable { extension InvalidRuleContentSha256Exception { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRuleContentSha256ExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15767,7 +15619,7 @@ extension InvalidRuleContentSha256Exception { } /// The SHA-256 hash signature for the rule content is not valid. -public struct InvalidRuleContentSha256Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRuleContentSha256Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15804,9 +15656,8 @@ extension InvalidRuleContentSha256ExceptionBody: Swift.Decodable { extension InvalidSortByException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSortByExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15820,7 +15671,7 @@ extension InvalidSortByException { } /// The specified sort by value is not valid. -public struct InvalidSortByException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSortByException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15857,9 +15708,8 @@ extension InvalidSortByExceptionBody: Swift.Decodable { extension InvalidSourceCommitSpecifierException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSourceCommitSpecifierExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15873,7 +15723,7 @@ extension InvalidSourceCommitSpecifierException { } /// The source commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID. -public struct InvalidSourceCommitSpecifierException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSourceCommitSpecifierException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15910,9 +15760,8 @@ extension InvalidSourceCommitSpecifierExceptionBody: Swift.Decodable { extension InvalidSystemTagUsageException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSystemTagUsageExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15926,7 +15775,7 @@ extension InvalidSystemTagUsageException { } /// The specified tag is not valid. Key names cannot be prefixed with aws:. -public struct InvalidSystemTagUsageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSystemTagUsageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15963,9 +15812,8 @@ extension InvalidSystemTagUsageExceptionBody: Swift.Decodable { extension InvalidTagKeysListException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagKeysListExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15979,7 +15827,7 @@ extension InvalidTagKeysListException { } /// The list of tags is not valid. -public struct InvalidTagKeysListException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagKeysListException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16016,9 +15864,8 @@ extension InvalidTagKeysListExceptionBody: Swift.Decodable { extension InvalidTagsMapException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagsMapExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16032,7 +15879,7 @@ extension InvalidTagsMapException { } /// The map of tags is not valid. -public struct InvalidTagsMapException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagsMapException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16069,9 +15916,8 @@ extension InvalidTagsMapExceptionBody: Swift.Decodable { extension InvalidTargetBranchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetBranchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16085,7 +15931,7 @@ extension InvalidTargetBranchException { } /// The specified target branch is not valid. -public struct InvalidTargetBranchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetBranchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16122,9 +15968,8 @@ extension InvalidTargetBranchExceptionBody: Swift.Decodable { extension InvalidTargetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16138,7 +15983,7 @@ extension InvalidTargetException { } /// The target for the pull request is not valid. A target must contain the full values for the repository name, source branch, and destination branch for the pull request. -public struct InvalidTargetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16175,9 +16020,8 @@ extension InvalidTargetExceptionBody: Swift.Decodable { extension InvalidTargetsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16191,7 +16035,7 @@ extension InvalidTargetsException { } /// The targets for the pull request is not valid or not in a valid format. Targets are a list of target objects. Each target object must contain the full values for the repository name, source branch, and destination branch for a pull request. -public struct InvalidTargetsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16228,9 +16072,8 @@ extension InvalidTargetsExceptionBody: Swift.Decodable { extension InvalidTitleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTitleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16244,7 +16087,7 @@ extension InvalidTitleException { } /// The title of the pull request is not valid. Pull request titles cannot exceed 100 characters in length. -public struct InvalidTitleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTitleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16419,9 +16262,8 @@ public enum ListApprovalRuleTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListApprovalRuleTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApprovalRuleTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleTemplateNames = output.approvalRuleTemplateNames self.nextToken = output.nextToken @@ -16591,9 +16433,8 @@ public enum ListAssociatedApprovalRuleTemplatesForRepositoryOutputError: Swift.E extension ListAssociatedApprovalRuleTemplatesForRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociatedApprovalRuleTemplatesForRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleTemplateNames = output.approvalRuleTemplateNames self.nextToken = output.nextToken @@ -16750,9 +16591,8 @@ public enum ListBranchesOutputError: Swift.Error, Swift.Equatable { extension ListBranchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBranchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.branches = output.branches self.nextToken = output.nextToken @@ -16953,9 +16793,8 @@ public enum ListPullRequestsOutputError: Swift.Error, Swift.Equatable { extension ListPullRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPullRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pullRequestIds = output.pullRequestIds @@ -17126,9 +16965,8 @@ public enum ListRepositoriesForApprovalRuleTemplateOutputError: Swift.Error, Swi extension ListRepositoriesForApprovalRuleTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRepositoriesForApprovalRuleTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.repositoryNames = output.repositoryNames @@ -17284,9 +17122,8 @@ public enum ListRepositoriesOutputError: Swift.Error, Swift.Equatable { extension ListRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.repositories = output.repositories @@ -17433,9 +17270,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -17548,9 +17384,8 @@ extension CodeCommitClientTypes { extension ManualMergeRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ManualMergeRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17564,7 +17399,7 @@ extension ManualMergeRequiredException { } /// The pull request cannot be merged automatically into the destination branch. You must manually merge the branches and resolve any conflicts. -public struct ManualMergeRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ManualMergeRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17601,9 +17436,8 @@ extension ManualMergeRequiredExceptionBody: Swift.Decodable { extension MaximumBranchesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumBranchesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17617,7 +17451,7 @@ extension MaximumBranchesExceededException { } /// The number of branches for the trigger was exceeded. -public struct MaximumBranchesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumBranchesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17654,9 +17488,8 @@ extension MaximumBranchesExceededExceptionBody: Swift.Decodable { extension MaximumConflictResolutionEntriesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumConflictResolutionEntriesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17670,7 +17503,7 @@ extension MaximumConflictResolutionEntriesExceededException { } /// The number of allowed conflict resolution entries was exceeded. -public struct MaximumConflictResolutionEntriesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumConflictResolutionEntriesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17707,9 +17540,8 @@ extension MaximumConflictResolutionEntriesExceededExceptionBody: Swift.Decodable extension MaximumFileContentToLoadExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumFileContentToLoadExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17723,7 +17555,7 @@ extension MaximumFileContentToLoadExceededException { } /// The number of files to load exceeds the allowed limit. -public struct MaximumFileContentToLoadExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumFileContentToLoadExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17760,9 +17592,8 @@ extension MaximumFileContentToLoadExceededExceptionBody: Swift.Decodable { extension MaximumFileEntriesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumFileEntriesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17776,7 +17607,7 @@ extension MaximumFileEntriesExceededException { } /// The number of specified files to change as part of this commit exceeds the maximum number of files that can be changed in a single commit. Consider using a Git client for these changes. -public struct MaximumFileEntriesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumFileEntriesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17813,9 +17644,8 @@ extension MaximumFileEntriesExceededExceptionBody: Swift.Decodable { extension MaximumItemsToCompareExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumItemsToCompareExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17829,7 +17659,7 @@ extension MaximumItemsToCompareExceededException { } /// The number of items to compare between the source or destination branches and the merge base has exceeded the maximum allowed. -public struct MaximumItemsToCompareExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumItemsToCompareExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17866,9 +17696,8 @@ extension MaximumItemsToCompareExceededExceptionBody: Swift.Decodable { extension MaximumNumberOfApprovalsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumNumberOfApprovalsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17882,7 +17711,7 @@ extension MaximumNumberOfApprovalsExceededException { } /// The number of approvals required for the approval rule exceeds the maximum number allowed. -public struct MaximumNumberOfApprovalsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumNumberOfApprovalsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17919,9 +17748,8 @@ extension MaximumNumberOfApprovalsExceededExceptionBody: Swift.Decodable { extension MaximumOpenPullRequestsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumOpenPullRequestsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17935,7 +17763,7 @@ extension MaximumOpenPullRequestsExceededException { } /// You cannot create the pull request because the repository has too many open pull requests. The maximum number of open pull requests for a repository is 1,000. Close one or more open pull requests, and then try again. -public struct MaximumOpenPullRequestsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumOpenPullRequestsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17972,9 +17800,8 @@ extension MaximumOpenPullRequestsExceededExceptionBody: Swift.Decodable { extension MaximumRepositoryNamesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumRepositoryNamesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17988,7 +17815,7 @@ extension MaximumRepositoryNamesExceededException { } /// The maximum number of allowed repository names was exceeded. Currently, this number is 100. -public struct MaximumRepositoryNamesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumRepositoryNamesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18025,9 +17852,8 @@ extension MaximumRepositoryNamesExceededExceptionBody: Swift.Decodable { extension MaximumRepositoryTriggersExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumRepositoryTriggersExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18041,7 +17867,7 @@ extension MaximumRepositoryTriggersExceededException { } /// The number of triggers allowed for the repository was exceeded. -public struct MaximumRepositoryTriggersExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumRepositoryTriggersExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18078,9 +17904,8 @@ extension MaximumRepositoryTriggersExceededExceptionBody: Swift.Decodable { extension MaximumRuleTemplatesAssociatedWithRepositoryException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaximumRuleTemplatesAssociatedWithRepositoryExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18094,7 +17919,7 @@ extension MaximumRuleTemplatesAssociatedWithRepositoryException { } /// The maximum number of approval rule templates for a repository has been exceeded. You cannot associate more than 25 approval rule templates with a repository. -public struct MaximumRuleTemplatesAssociatedWithRepositoryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaximumRuleTemplatesAssociatedWithRepositoryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18275,9 +18100,8 @@ public enum MergeBranchesByFastForwardOutputError: Swift.Error, Swift.Equatable extension MergeBranchesByFastForwardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergeBranchesByFastForwardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commitId = output.commitId self.treeId = output.treeId @@ -18594,9 +18418,8 @@ public enum MergeBranchesBySquashOutputError: Swift.Error, Swift.Equatable { extension MergeBranchesBySquashOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergeBranchesBySquashOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commitId = output.commitId self.treeId = output.treeId @@ -18913,9 +18736,8 @@ public enum MergeBranchesByThreeWayOutputError: Swift.Error, Swift.Equatable { extension MergeBranchesByThreeWayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergeBranchesByThreeWayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commitId = output.commitId self.treeId = output.treeId @@ -19194,9 +19016,8 @@ extension CodeCommitClientTypes { extension MergeOptionRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergeOptionRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19210,7 +19031,7 @@ extension MergeOptionRequiredException { } /// A merge option or stategy is required, and none was provided. -public struct MergeOptionRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MergeOptionRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19413,9 +19234,8 @@ public enum MergePullRequestByFastForwardOutputError: Swift.Error, Swift.Equatab extension MergePullRequestByFastForwardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergePullRequestByFastForwardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pullRequest = output.pullRequest } else { @@ -19707,9 +19527,8 @@ public enum MergePullRequestBySquashOutputError: Swift.Error, Swift.Equatable { extension MergePullRequestBySquashOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergePullRequestBySquashOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pullRequest = output.pullRequest } else { @@ -20001,9 +19820,8 @@ public enum MergePullRequestByThreeWayOutputError: Swift.Error, Swift.Equatable extension MergePullRequestByThreeWayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergePullRequestByThreeWayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pullRequest = output.pullRequest } else { @@ -20042,9 +19860,8 @@ extension MergePullRequestByThreeWayOutputResponseBody: Swift.Decodable { extension MultipleConflictResolutionEntriesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MultipleConflictResolutionEntriesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20058,7 +19875,7 @@ extension MultipleConflictResolutionEntriesException { } /// More than one conflict resolution entries exists for the conflict. A conflict can have only one conflict resolution entry. -public struct MultipleConflictResolutionEntriesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MultipleConflictResolutionEntriesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20095,9 +19912,8 @@ extension MultipleConflictResolutionEntriesExceptionBody: Swift.Decodable { extension MultipleRepositoriesInPullRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MultipleRepositoriesInPullRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20111,7 +19927,7 @@ extension MultipleRepositoriesInPullRequestException { } /// You cannot include more than one repository in a pull request. Make sure you have specified only one repository name in your request, and then try again. -public struct MultipleRepositoriesInPullRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MultipleRepositoriesInPullRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20148,9 +19964,8 @@ extension MultipleRepositoriesInPullRequestExceptionBody: Swift.Decodable { extension NameLengthExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NameLengthExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20164,7 +19979,7 @@ extension NameLengthExceededException { } /// The user name is not valid because it has exceeded the character limit for author names. -public struct NameLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NameLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20201,9 +20016,8 @@ extension NameLengthExceededExceptionBody: Swift.Decodable { extension NoChangeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoChangeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20217,7 +20031,7 @@ extension NoChangeException { } /// The commit cannot be created because no changes will be made to the repository as a result of this commit. A commit must contain at least one change. -public struct NoChangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoChangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20254,9 +20068,8 @@ extension NoChangeExceptionBody: Swift.Decodable { extension NumberOfRuleTemplatesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NumberOfRuleTemplatesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20270,7 +20083,7 @@ extension NumberOfRuleTemplatesExceededException { } /// The maximum number of approval rule templates has been exceeded for this AWS Region. -public struct NumberOfRuleTemplatesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NumberOfRuleTemplatesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20307,9 +20120,8 @@ extension NumberOfRuleTemplatesExceededExceptionBody: Swift.Decodable { extension NumberOfRulesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NumberOfRulesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20323,7 +20135,7 @@ extension NumberOfRulesExceededException { } /// The approval rule cannot be added. The pull request has the maximum number of approval rules associated with it. -public struct NumberOfRulesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NumberOfRulesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20530,9 +20342,8 @@ extension CodeCommitClientTypes { extension OverrideAlreadySetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OverrideAlreadySetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20546,7 +20357,7 @@ extension OverrideAlreadySetException { } /// The pull request has already had its approval rules set to override. -public struct OverrideAlreadySetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OverrideAlreadySetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20749,9 +20560,8 @@ extension CodeCommitClientTypes { extension OverrideStatusRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OverrideStatusRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20765,7 +20575,7 @@ extension OverrideStatusRequiredException { } /// An override status is required, but no value was provided. Valid values include OVERRIDE and REVOKE. -public struct OverrideStatusRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OverrideStatusRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20802,9 +20612,8 @@ extension OverrideStatusRequiredExceptionBody: Swift.Decodable { extension ParentCommitDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParentCommitDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20818,7 +20627,7 @@ extension ParentCommitDoesNotExistException { } /// The parent commit ID is not valid because it does not exist. The specified parent commit ID does not exist in the specified branch of the repository. -public struct ParentCommitDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParentCommitDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20855,9 +20664,8 @@ extension ParentCommitDoesNotExistExceptionBody: Swift.Decodable { extension ParentCommitIdOutdatedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParentCommitIdOutdatedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20871,7 +20679,7 @@ extension ParentCommitIdOutdatedException { } /// The file could not be added because the provided parent commit ID is not the current tip of the specified branch. To view the full commit ID of the current head of the branch, use [GetBranch]. -public struct ParentCommitIdOutdatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParentCommitIdOutdatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20908,9 +20716,8 @@ extension ParentCommitIdOutdatedExceptionBody: Swift.Decodable { extension ParentCommitIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParentCommitIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20924,7 +20731,7 @@ extension ParentCommitIdRequiredException { } /// A parent commit ID is required. To view the full commit ID of a branch in a repository, use [GetBranch] or a Git command (for example, git pull or git log). -public struct ParentCommitIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParentCommitIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20961,9 +20768,8 @@ extension ParentCommitIdRequiredExceptionBody: Swift.Decodable { extension PathDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PathDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20977,7 +20783,7 @@ extension PathDoesNotExistException { } /// The specified path does not exist. -public struct PathDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PathDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21014,9 +20820,8 @@ extension PathDoesNotExistExceptionBody: Swift.Decodable { extension PathRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PathRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21030,7 +20835,7 @@ extension PathRequiredException { } /// The folderPath for a location cannot be null. -public struct PathRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PathRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21243,9 +21048,8 @@ public enum PostCommentForComparedCommitOutputError: Swift.Error, Swift.Equatabl extension PostCommentForComparedCommitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PostCommentForComparedCommitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.afterBlobId = output.afterBlobId self.afterCommitId = output.afterCommitId @@ -21542,9 +21346,8 @@ public enum PostCommentForPullRequestOutputError: Swift.Error, Swift.Equatable { extension PostCommentForPullRequestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PostCommentForPullRequestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.afterBlobId = output.afterBlobId self.afterCommitId = output.afterCommitId @@ -21762,9 +21565,8 @@ public enum PostCommentReplyOutputError: Swift.Error, Swift.Equatable { extension PostCommentReplyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PostCommentReplyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comment = output.comment } else { @@ -21962,9 +21764,8 @@ extension CodeCommitClientTypes { extension PullRequestAlreadyClosedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PullRequestAlreadyClosedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21978,7 +21779,7 @@ extension PullRequestAlreadyClosedException { } /// The pull request status cannot be updated because it is already closed. -public struct PullRequestAlreadyClosedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PullRequestAlreadyClosedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22015,9 +21816,8 @@ extension PullRequestAlreadyClosedExceptionBody: Swift.Decodable { extension PullRequestApprovalRulesNotSatisfiedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PullRequestApprovalRulesNotSatisfiedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22031,7 +21831,7 @@ extension PullRequestApprovalRulesNotSatisfiedException { } /// The pull request cannot be merged because one or more approval rules applied to the pull request have conditions that have not been met. -public struct PullRequestApprovalRulesNotSatisfiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PullRequestApprovalRulesNotSatisfiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22068,9 +21868,8 @@ extension PullRequestApprovalRulesNotSatisfiedExceptionBody: Swift.Decodable { extension PullRequestCannotBeApprovedByAuthorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PullRequestCannotBeApprovedByAuthorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22084,7 +21883,7 @@ extension PullRequestCannotBeApprovedByAuthorException { } /// The approval cannot be applied because the user approving the pull request matches the user who created the pull request. You cannot approve a pull request that you created. -public struct PullRequestCannotBeApprovedByAuthorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PullRequestCannotBeApprovedByAuthorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22186,9 +21985,8 @@ extension CodeCommitClientTypes { extension PullRequestDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PullRequestDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22202,7 +22000,7 @@ extension PullRequestDoesNotExistException { } /// The pull request ID could not be found. Make sure that you have specified the correct repository name and pull request ID, and then try again. -public struct PullRequestDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PullRequestDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22427,9 +22225,8 @@ extension CodeCommitClientTypes { extension PullRequestIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PullRequestIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22443,7 +22240,7 @@ extension PullRequestIdRequiredException { } /// A pull request ID is required, but none was provided. -public struct PullRequestIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PullRequestIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22667,9 +22464,8 @@ extension CodeCommitClientTypes { extension PullRequestStatusRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PullRequestStatusRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22683,7 +22479,7 @@ extension PullRequestStatusRequiredException { } /// A pull request status is required, but none was provided. -public struct PullRequestStatusRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PullRequestStatusRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22986,9 +22782,8 @@ extension CodeCommitClientTypes { extension PutFileEntryConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutFileEntryConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23002,7 +22797,7 @@ extension PutFileEntryConflictException { } /// The commit cannot be created because one or more files specified in the commit reference both a file and a folder. -public struct PutFileEntryConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PutFileEntryConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23266,9 +23061,8 @@ public enum PutFileOutputError: Swift.Error, Swift.Equatable { extension PutFileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutFileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blobId = output.blobId self.commitId = output.commitId @@ -23466,9 +23260,8 @@ public enum PutRepositoryTriggersOutputError: Swift.Error, Swift.Equatable { extension PutRepositoryTriggersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRepositoryTriggersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationId = output.configurationId } else { @@ -23575,9 +23368,8 @@ extension CodeCommitClientTypes { extension ReactionLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReactionLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23591,7 +23383,7 @@ extension ReactionLimitExceededException { } /// The number of reactions has been exceeded. Reactions are limited to one reaction per user for each individual comment ID. -public struct ReactionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReactionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23683,9 +23475,8 @@ extension CodeCommitClientTypes { extension ReactionValueRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReactionValueRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23699,7 +23490,7 @@ extension ReactionValueRequiredException { } /// A reaction value is required. -public struct ReactionValueRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReactionValueRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23736,9 +23527,8 @@ extension ReactionValueRequiredExceptionBody: Swift.Decodable { extension ReferenceDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReferenceDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23752,7 +23542,7 @@ extension ReferenceDoesNotExistException { } /// The specified reference does not exist. You must provide a full commit ID. -public struct ReferenceDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReferenceDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23789,9 +23579,8 @@ extension ReferenceDoesNotExistExceptionBody: Swift.Decodable { extension ReferenceNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReferenceNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23805,7 +23594,7 @@ extension ReferenceNameRequiredException { } /// A reference name is required, but none was provided. -public struct ReferenceNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReferenceNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23842,9 +23631,8 @@ extension ReferenceNameRequiredExceptionBody: Swift.Decodable { extension ReferenceTypeNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReferenceTypeNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23858,7 +23646,7 @@ extension ReferenceTypeNotSupportedException { } /// The specified reference is not a supported type. -public struct ReferenceTypeNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReferenceTypeNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23994,9 +23782,8 @@ extension CodeCommitClientTypes { extension ReplacementContentRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplacementContentRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24010,7 +23797,7 @@ extension ReplacementContentRequiredException { } /// USE_NEW_CONTENT was specified, but no replacement content has been provided. -public struct ReplacementContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplacementContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24085,9 +23872,8 @@ extension CodeCommitClientTypes { extension ReplacementTypeRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplacementTypeRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24101,7 +23887,7 @@ extension ReplacementTypeRequiredException { } /// A replacement type is required. -public struct ReplacementTypeRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplacementTypeRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24138,9 +23924,8 @@ extension ReplacementTypeRequiredExceptionBody: Swift.Decodable { extension RepositoryDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24154,7 +23939,7 @@ extension RepositoryDoesNotExistException { } /// The specified repository does not exist. -public struct RepositoryDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24191,9 +23976,8 @@ extension RepositoryDoesNotExistExceptionBody: Swift.Decodable { extension RepositoryLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24207,7 +23991,7 @@ extension RepositoryLimitExceededException { } /// A repository resource limit was exceeded. -public struct RepositoryLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24369,9 +24153,8 @@ extension CodeCommitClientTypes { extension RepositoryNameExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryNameExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24385,7 +24168,7 @@ extension RepositoryNameExistsException { } /// The specified repository name already exists. -public struct RepositoryNameExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryNameExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24467,9 +24250,8 @@ extension CodeCommitClientTypes { extension RepositoryNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24483,7 +24265,7 @@ extension RepositoryNameRequiredException { } /// A repository name is required, but was not specified. -public struct RepositoryNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24520,9 +24302,8 @@ extension RepositoryNameRequiredExceptionBody: Swift.Decodable { extension RepositoryNamesRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryNamesRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24536,7 +24317,7 @@ extension RepositoryNamesRequiredException { } /// At least one repository name object is required, but was not specified. -public struct RepositoryNamesRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryNamesRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24573,9 +24354,8 @@ extension RepositoryNamesRequiredExceptionBody: Swift.Decodable { extension RepositoryNotAssociatedWithPullRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryNotAssociatedWithPullRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24589,7 +24369,7 @@ extension RepositoryNotAssociatedWithPullRequestException { } /// The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify the correct repository name for the pull request ID. -public struct RepositoryNotAssociatedWithPullRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryNotAssociatedWithPullRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24728,9 +24508,8 @@ extension CodeCommitClientTypes { extension RepositoryTriggerBranchNameListRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryTriggerBranchNameListRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24744,7 +24523,7 @@ extension RepositoryTriggerBranchNameListRequiredException { } /// At least one branch name is required, but was not specified in the trigger configuration. -public struct RepositoryTriggerBranchNameListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryTriggerBranchNameListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24781,9 +24560,8 @@ extension RepositoryTriggerBranchNameListRequiredExceptionBody: Swift.Decodable extension RepositoryTriggerDestinationArnRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryTriggerDestinationArnRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24797,7 +24575,7 @@ extension RepositoryTriggerDestinationArnRequiredException { } /// A destination ARN for the target service for the trigger is required, but was not specified. -public struct RepositoryTriggerDestinationArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryTriggerDestinationArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24872,9 +24650,8 @@ extension CodeCommitClientTypes { extension RepositoryTriggerEventsListRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryTriggerEventsListRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24888,7 +24665,7 @@ extension RepositoryTriggerEventsListRequiredException { } /// At least one event for the trigger is required, but was not specified. -public struct RepositoryTriggerEventsListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryTriggerEventsListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24970,9 +24747,8 @@ extension CodeCommitClientTypes { extension RepositoryTriggerNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryTriggerNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24986,7 +24762,7 @@ extension RepositoryTriggerNameRequiredException { } /// A name for the trigger is required, but was not specified. -public struct RepositoryTriggerNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryTriggerNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25023,9 +24799,8 @@ extension RepositoryTriggerNameRequiredExceptionBody: Swift.Decodable { extension RepositoryTriggersListRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryTriggersListRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25039,7 +24814,7 @@ extension RepositoryTriggersListRequiredException { } /// The list of triggers for the repository is required, but was not specified. -public struct RepositoryTriggersListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryTriggersListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25076,9 +24851,8 @@ extension RepositoryTriggersListRequiredExceptionBody: Swift.Decodable { extension ResourceArnRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceArnRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25092,7 +24866,7 @@ extension ResourceArnRequiredException { } /// A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. For a list of valid resources in AWS CodeCommit, see [CodeCommit Resources and Operations](https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) in the AWS CodeCommit User Guide. -public struct ResourceArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25129,9 +24903,8 @@ extension ResourceArnRequiredExceptionBody: Swift.Decodable { extension RestrictedSourceFileException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestrictedSourceFileExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25145,7 +24918,7 @@ extension RestrictedSourceFileException { } /// The commit cannot be created because one of the changes specifies copying or moving a .gitkeep file. -public struct RestrictedSourceFileException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RestrictedSourceFileException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25182,9 +24955,8 @@ extension RestrictedSourceFileExceptionBody: Swift.Decodable { extension RevisionIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevisionIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25198,7 +24970,7 @@ extension RevisionIdRequiredException { } /// A revision ID is required, but was not provided. -public struct RevisionIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RevisionIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25235,9 +25007,8 @@ extension RevisionIdRequiredExceptionBody: Swift.Decodable { extension RevisionNotCurrentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevisionNotCurrentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25251,7 +25022,7 @@ extension RevisionNotCurrentException { } /// The revision ID provided in the request does not match the current revision ID. Use GetPullRequest to retrieve the current revision ID. -public struct RevisionNotCurrentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RevisionNotCurrentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25288,9 +25059,8 @@ extension RevisionNotCurrentExceptionBody: Swift.Decodable { extension SameFileContentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SameFileContentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25304,7 +25074,7 @@ extension SameFileContentException { } /// The file was not added or updated because the content of the file is exactly the same as the content of that file in the repository and branch that you specified. -public struct SameFileContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SameFileContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25341,9 +25111,8 @@ extension SameFileContentExceptionBody: Swift.Decodable { extension SamePathRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SamePathRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25357,7 +25126,7 @@ extension SamePathRequestException { } /// The commit cannot be created because one or more changes in this commit duplicate actions in the same file path. For example, you cannot make the same delete request to the same file in the same file path twice, or make a delete request and a move request to the same file as part of the same commit. -public struct SamePathRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SamePathRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25473,9 +25242,8 @@ extension CodeCommitClientTypes { extension SourceAndDestinationAreSameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SourceAndDestinationAreSameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25489,7 +25257,7 @@ extension SourceAndDestinationAreSameException { } /// The source branch and destination branch for the pull request are the same. You must specify different branches for the source and destination. -public struct SourceAndDestinationAreSameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceAndDestinationAreSameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25526,9 +25294,8 @@ extension SourceAndDestinationAreSameExceptionBody: Swift.Decodable { extension SourceFileOrContentRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SourceFileOrContentRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25542,7 +25309,7 @@ extension SourceFileOrContentRequiredException { } /// The commit cannot be created because no source files or file content have been specified for the commit. -public struct SourceFileOrContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceFileOrContentRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25745,9 +25512,8 @@ extension CodeCommitClientTypes { extension TagKeysListRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagKeysListRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25761,7 +25527,7 @@ extension TagKeysListRequiredException { } /// A list of tag keys is required. The list cannot be empty or null. -public struct TagKeysListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagKeysListRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25798,9 +25564,8 @@ extension TagKeysListRequiredExceptionBody: Swift.Decodable { extension TagPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25814,7 +25579,7 @@ extension TagPolicyException { } /// The tag policy is not valid. -public struct TagPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25972,9 +25737,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TagsMapRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagsMapRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25988,7 +25752,7 @@ extension TagsMapRequiredException { } /// A map of tags is required. -public struct TagsMapRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagsMapRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26082,9 +25846,8 @@ extension CodeCommitClientTypes { extension TargetRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TargetRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26098,7 +25861,7 @@ extension TargetRequiredException { } /// A pull request target is required. It cannot be empty or null. A pull request target must contain the full values for the repository name, source branch, and destination branch for the pull request. -public struct TargetRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26135,9 +25898,8 @@ extension TargetRequiredExceptionBody: Swift.Decodable { extension TargetsRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TargetsRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26151,7 +25913,7 @@ extension TargetsRequiredException { } /// An array of target objects is required. It cannot be empty or null. -public struct TargetsRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetsRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26324,9 +26086,8 @@ public enum TestRepositoryTriggersOutputError: Swift.Error, Swift.Equatable { extension TestRepositoryTriggersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestRepositoryTriggersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedExecutions = output.failedExecutions self.successfulExecutions = output.successfulExecutions @@ -26394,9 +26155,8 @@ extension TestRepositoryTriggersOutputResponseBody: Swift.Decodable { extension TipOfSourceReferenceIsDifferentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TipOfSourceReferenceIsDifferentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26410,7 +26170,7 @@ extension TipOfSourceReferenceIsDifferentException { } /// The tip of the source branch in the destination repository does not match the tip of the source branch specified in your request. The pull request might have been updated. Make sure that you have the latest changes. -public struct TipOfSourceReferenceIsDifferentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TipOfSourceReferenceIsDifferentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26447,9 +26207,8 @@ extension TipOfSourceReferenceIsDifferentExceptionBody: Swift.Decodable { extension TipsDivergenceExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TipsDivergenceExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26463,7 +26222,7 @@ extension TipsDivergenceExceededException { } /// The divergence between the tips of the provided commit specifiers is too great to determine whether there might be any merge conflicts. Locally compare the specifiers using git diff or a diff tool. -public struct TipsDivergenceExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TipsDivergenceExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26500,9 +26259,8 @@ extension TipsDivergenceExceededExceptionBody: Swift.Decodable { extension TitleRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TitleRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26516,7 +26274,7 @@ extension TitleRequiredException { } /// A pull request title is required. It cannot be empty or null. -public struct TitleRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TitleRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26553,9 +26311,8 @@ extension TitleRequiredExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26569,7 +26326,7 @@ extension TooManyTagsException { } /// The maximum number of tags for an AWS CodeCommit resource has been exceeded. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26832,9 +26589,8 @@ public enum UpdateApprovalRuleTemplateContentOutputError: Swift.Error, Swift.Equ extension UpdateApprovalRuleTemplateContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApprovalRuleTemplateContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleTemplate = output.approvalRuleTemplate } else { @@ -26963,9 +26719,8 @@ public enum UpdateApprovalRuleTemplateDescriptionOutputError: Swift.Error, Swift extension UpdateApprovalRuleTemplateDescriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApprovalRuleTemplateDescriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleTemplate = output.approvalRuleTemplate } else { @@ -27094,9 +26849,8 @@ public enum UpdateApprovalRuleTemplateNameOutputError: Swift.Error, Swift.Equata extension UpdateApprovalRuleTemplateNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApprovalRuleTemplateNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRuleTemplate = output.approvalRuleTemplate } else { @@ -27231,9 +26985,8 @@ public enum UpdateCommentOutputError: Swift.Error, Swift.Equatable { extension UpdateCommentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCommentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comment = output.comment } else { @@ -27538,9 +27291,8 @@ public enum UpdatePullRequestApprovalRuleContentOutputError: Swift.Error, Swift. extension UpdatePullRequestApprovalRuleContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePullRequestApprovalRuleContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRule = output.approvalRule } else { @@ -27807,9 +27559,8 @@ public enum UpdatePullRequestDescriptionOutputError: Swift.Error, Swift.Equatabl extension UpdatePullRequestDescriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePullRequestDescriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pullRequest = output.pullRequest } else { @@ -27952,9 +27703,8 @@ public enum UpdatePullRequestStatusOutputError: Swift.Error, Swift.Equatable { extension UpdatePullRequestStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePullRequestStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pullRequest = output.pullRequest } else { @@ -28087,9 +27837,8 @@ public enum UpdatePullRequestTitleOutputError: Swift.Error, Swift.Equatable { extension UpdatePullRequestTitleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePullRequestTitleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pullRequest = output.pullRequest } else { diff --git a/Sources/Services/AWSCodeDeploy/CodeDeployClient.swift b/Sources/Services/AWSCodeDeploy/CodeDeployClient.swift index da875e9c2ed..1259297363c 100644 --- a/Sources/Services/AWSCodeDeploy/CodeDeployClient.swift +++ b/Sources/Services/AWSCodeDeploy/CodeDeployClient.swift @@ -208,6 +208,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToOnPremisesInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetApplicationRevisions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetDeploymentGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -353,6 +357,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetDeploymentInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -369,7 +374,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -397,6 +402,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetDeploymentTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -413,7 +419,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -433,6 +439,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -449,7 +456,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -469,6 +476,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetOnPremisesInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +493,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +513,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "continueDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +530,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -541,6 +550,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -557,7 +567,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -577,6 +587,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +604,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +624,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeploymentConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +641,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -649,6 +661,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeploymentGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -665,7 +678,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -685,6 +698,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -701,7 +715,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -721,6 +735,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeploymentConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -737,7 +752,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -757,6 +772,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeploymentGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -773,7 +789,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -793,6 +809,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGitHubAccountToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -809,7 +826,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -829,6 +846,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcesByExternalId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -845,7 +863,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -865,6 +883,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterOnPremisesInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -881,7 +900,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -901,6 +920,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -917,7 +937,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -937,6 +957,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplicationRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -953,7 +974,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -973,6 +994,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1011,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1031,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeploymentConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1025,7 +1048,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1068,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeploymentGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1061,7 +1085,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1082,6 +1106,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeploymentInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1098,7 +1123,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1118,6 +1143,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeploymentTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1134,7 +1160,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1154,6 +1180,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOnPremisesInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1170,7 +1197,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1190,6 +1217,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationRevisions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1206,7 +1234,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1226,6 +1254,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1242,7 +1271,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1262,6 +1291,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeploymentConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1278,7 +1308,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1298,6 +1328,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeploymentGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1314,7 +1345,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1335,6 +1366,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeploymentInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1351,7 +1383,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1371,6 +1403,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeploymentTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1387,7 +1420,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1407,6 +1440,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1423,7 +1457,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1443,6 +1477,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGitHubAccountTokenNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1459,7 +1494,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1479,6 +1514,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOnPremisesInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1495,7 +1531,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1515,6 +1551,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1531,7 +1568,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1551,6 +1588,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLifecycleEventHookExecutionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1567,7 +1605,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1587,6 +1625,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerApplicationRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1603,7 +1642,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1623,6 +1662,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerOnPremisesInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1639,7 +1679,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1659,6 +1699,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromOnPremisesInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1675,7 +1716,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1696,6 +1737,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "skipWaitTimeForInstanceTermination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1712,7 +1754,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1732,6 +1774,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1748,7 +1791,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1768,6 +1811,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1784,7 +1828,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1804,6 +1848,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1820,7 +1865,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1840,6 +1885,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1856,7 +1902,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1876,6 +1922,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codedeploy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeploymentGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1892,7 +1939,7 @@ extension CodeDeployClient: CodeDeployClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeDeploy/models/Models.swift b/Sources/Services/AWSCodeDeploy/models/Models.swift index 85f821645ab..c08aba9eab3 100644 --- a/Sources/Services/AWSCodeDeploy/models/Models.swift +++ b/Sources/Services/AWSCodeDeploy/models/Models.swift @@ -240,9 +240,8 @@ extension CodeDeployClientTypes { extension AlarmsLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlarmsLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -256,7 +255,7 @@ extension AlarmsLimitExceededException { } /// The maximum number of alarms for a deployment group (10) was exceeded. -public struct AlarmsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlarmsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -338,9 +337,8 @@ extension CodeDeployClientTypes { extension ApplicationAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplicationAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -354,7 +352,7 @@ extension ApplicationAlreadyExistsException { } /// An application with the specified name with the IAM user or Amazon Web Services account already exists. -public struct ApplicationAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApplicationAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -391,9 +389,8 @@ extension ApplicationAlreadyExistsExceptionBody: Swift.Decodable { extension ApplicationDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplicationDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -407,7 +404,7 @@ extension ApplicationDoesNotExistException { } /// The application does not exist with the IAM user or Amazon Web Services account. -public struct ApplicationDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApplicationDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -529,9 +526,8 @@ extension CodeDeployClientTypes { extension ApplicationLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplicationLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -545,7 +541,7 @@ extension ApplicationLimitExceededException { } /// More applications were attempted to be created than are allowed. -public struct ApplicationLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApplicationLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -582,9 +578,8 @@ extension ApplicationLimitExceededExceptionBody: Swift.Decodable { extension ApplicationNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplicationNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -598,7 +593,7 @@ extension ApplicationNameRequiredException { } /// The minimum number of required application names was not specified. -public struct ApplicationNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApplicationNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -670,9 +665,8 @@ extension CodeDeployClientTypes { extension ArnNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ArnNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -686,7 +680,7 @@ extension ArnNotSupportedException { } /// The specified ARN is not supported. For example, it might be an ARN for a resource that is not expected. -public struct ArnNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ArnNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -966,9 +960,8 @@ public enum BatchGetApplicationRevisionsOutputError: Swift.Error, Swift.Equatabl extension BatchGetApplicationRevisionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetApplicationRevisionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationName = output.applicationName self.errorMessage = output.errorMessage @@ -1126,9 +1119,8 @@ public enum BatchGetApplicationsOutputError: Swift.Error, Swift.Equatable { extension BatchGetApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationsInfo = output.applicationsInfo } else { @@ -1285,9 +1277,8 @@ public enum BatchGetDeploymentGroupsOutputError: Swift.Error, Swift.Equatable { extension BatchGetDeploymentGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetDeploymentGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentGroupsInfo = output.deploymentGroupsInfo self.errorMessage = output.errorMessage @@ -1454,9 +1445,8 @@ public enum BatchGetDeploymentInstancesOutputError: Swift.Error, Swift.Equatable extension BatchGetDeploymentInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetDeploymentInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorMessage = output.errorMessage self.instancesSummary = output.instancesSummary @@ -1632,9 +1622,8 @@ public enum BatchGetDeploymentTargetsOutputError: Swift.Error, Swift.Equatable { extension BatchGetDeploymentTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetDeploymentTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentTargets = output.deploymentTargets } else { @@ -1777,9 +1766,8 @@ public enum BatchGetDeploymentsOutputError: Swift.Error, Swift.Equatable { extension BatchGetDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentsInfo = output.deploymentsInfo } else { @@ -1915,9 +1903,8 @@ public enum BatchGetOnPremisesInstancesOutputError: Swift.Error, Swift.Equatable extension BatchGetOnPremisesInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetOnPremisesInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceInfos = output.instanceInfos } else { @@ -1966,9 +1953,8 @@ extension BatchGetOnPremisesInstancesOutputResponseBody: Swift.Decodable { extension BatchLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1982,7 +1968,7 @@ extension BatchLimitExceededException { } /// The maximum number of names or IDs allowed for this request (100) was exceeded. -public struct BatchLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2123,9 +2109,8 @@ extension CodeDeployClientTypes { extension BucketNameFilterRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BucketNameFilterRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2139,7 +2124,7 @@ extension BucketNameFilterRequiredException { } /// A bucket name is required, but was not provided. -public struct BucketNameFilterRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BucketNameFilterRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2581,9 +2566,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId } else { @@ -2749,9 +2733,8 @@ public enum CreateDeploymentConfigOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentConfigId = output.deploymentConfigId } else { @@ -3204,9 +3187,8 @@ public enum CreateDeploymentGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentGroupId = output.deploymentGroupId } else { @@ -3493,9 +3475,8 @@ public enum CreateDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentId = output.deploymentId } else { @@ -3799,9 +3780,8 @@ public enum DeleteDeploymentGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteDeploymentGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDeploymentGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hooksNotCleanedUp = output.hooksNotCleanedUp } else { @@ -3928,9 +3908,8 @@ public enum DeleteGitHubAccountTokenOutputError: Swift.Error, Swift.Equatable { extension DeleteGitHubAccountTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGitHubAccountTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tokenName = output.tokenName } else { @@ -4047,9 +4026,8 @@ public struct DeleteResourcesByExternalIdOutputResponse: Swift.Equatable { extension DeploymentAlreadyCompletedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentAlreadyCompletedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4063,7 +4041,7 @@ extension DeploymentAlreadyCompletedException { } /// The deployment is already complete. -public struct DeploymentAlreadyCompletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentAlreadyCompletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4100,9 +4078,8 @@ extension DeploymentAlreadyCompletedExceptionBody: Swift.Decodable { extension DeploymentConfigAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentConfigAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4116,7 +4093,7 @@ extension DeploymentConfigAlreadyExistsException { } /// A deployment configuration with the specified name with the IAM user or Amazon Web Services account already exists. -public struct DeploymentConfigAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentConfigAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4153,9 +4130,8 @@ extension DeploymentConfigAlreadyExistsExceptionBody: Swift.Decodable { extension DeploymentConfigDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentConfigDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4169,7 +4145,7 @@ extension DeploymentConfigDoesNotExistException { } /// The deployment configuration does not exist with the IAM user or Amazon Web Services account. -public struct DeploymentConfigDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentConfigDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4206,9 +4182,8 @@ extension DeploymentConfigDoesNotExistExceptionBody: Swift.Decodable { extension DeploymentConfigInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentConfigInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4222,7 +4197,7 @@ extension DeploymentConfigInUseException { } /// The deployment configuration is still in use. -public struct DeploymentConfigInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentConfigInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4344,9 +4319,8 @@ extension CodeDeployClientTypes { extension DeploymentConfigLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentConfigLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4360,7 +4334,7 @@ extension DeploymentConfigLimitExceededException { } /// The deployment configurations limit was exceeded. -public struct DeploymentConfigLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentConfigLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4397,9 +4371,8 @@ extension DeploymentConfigLimitExceededExceptionBody: Swift.Decodable { extension DeploymentConfigNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentConfigNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4413,7 +4386,7 @@ extension DeploymentConfigNameRequiredException { } /// The deployment configuration name was not specified. -public struct DeploymentConfigNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentConfigNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4497,9 +4470,8 @@ extension CodeDeployClientTypes { extension DeploymentDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4513,7 +4485,7 @@ extension DeploymentDoesNotExistException { } /// The deployment with the IAM user or Amazon Web Services account does not exist. -public struct DeploymentDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4550,9 +4522,8 @@ extension DeploymentDoesNotExistExceptionBody: Swift.Decodable { extension DeploymentGroupAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentGroupAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4566,7 +4537,7 @@ extension DeploymentGroupAlreadyExistsException { } /// A deployment group with the specified name with the IAM user or Amazon Web Services account already exists. -public struct DeploymentGroupAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentGroupAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4603,9 +4574,8 @@ extension DeploymentGroupAlreadyExistsExceptionBody: Swift.Decodable { extension DeploymentGroupDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentGroupDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4619,7 +4589,7 @@ extension DeploymentGroupDoesNotExistException { } /// The named deployment group with the IAM user or Amazon Web Services account does not exist. -public struct DeploymentGroupDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentGroupDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4961,9 +4931,8 @@ extension CodeDeployClientTypes { extension DeploymentGroupLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentGroupLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4977,7 +4946,7 @@ extension DeploymentGroupLimitExceededException { } /// The deployment groups limit was exceeded. -public struct DeploymentGroupLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentGroupLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5014,9 +4983,8 @@ extension DeploymentGroupLimitExceededExceptionBody: Swift.Decodable { extension DeploymentGroupNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentGroupNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5030,7 +4998,7 @@ extension DeploymentGroupNameRequiredException { } /// The deployment group name was not specified. -public struct DeploymentGroupNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentGroupNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5067,9 +5035,8 @@ extension DeploymentGroupNameRequiredExceptionBody: Swift.Decodable { extension DeploymentIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5083,7 +5050,7 @@ extension DeploymentIdRequiredException { } /// At least one deployment ID must be specified. -public struct DeploymentIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5472,9 +5439,8 @@ extension CodeDeployClientTypes { extension DeploymentIsNotInReadyStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentIsNotInReadyStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5488,7 +5454,7 @@ extension DeploymentIsNotInReadyStateException { } /// The deployment does not have a status of Ready and can't continue yet. -public struct DeploymentIsNotInReadyStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentIsNotInReadyStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5525,9 +5491,8 @@ extension DeploymentIsNotInReadyStateExceptionBody: Swift.Decodable { extension DeploymentLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5541,7 +5506,7 @@ extension DeploymentLimitExceededException { } /// The number of allowed deployments was exceeded. -public struct DeploymentLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5578,9 +5543,8 @@ extension DeploymentLimitExceededExceptionBody: Swift.Decodable { extension DeploymentNotStartedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentNotStartedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5594,7 +5558,7 @@ extension DeploymentNotStartedException { } /// The specified deployment has not started. -public struct DeploymentNotStartedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentNotStartedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5999,9 +5963,8 @@ extension CodeDeployClientTypes { extension DeploymentTargetDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentTargetDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6015,7 +5978,7 @@ extension DeploymentTargetDoesNotExistException { } /// The provided target ID does not belong to the attempted deployment. -public struct DeploymentTargetDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentTargetDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6052,9 +6015,8 @@ extension DeploymentTargetDoesNotExistExceptionBody: Swift.Decodable { extension DeploymentTargetIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentTargetIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6068,7 +6030,7 @@ extension DeploymentTargetIdRequiredException { } /// A deployment target ID was not provided. -public struct DeploymentTargetIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentTargetIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6105,9 +6067,8 @@ extension DeploymentTargetIdRequiredExceptionBody: Swift.Decodable { extension DeploymentTargetListSizeExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploymentTargetListSizeExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6121,7 +6082,7 @@ extension DeploymentTargetListSizeExceededException { } /// The maximum number of targets that can be associated with an Amazon ECS or Lambda deployment was exceeded. The target list of both types of deployments must have exactly one item. This exception does not apply to EC2/On-premises deployments. -public struct DeploymentTargetListSizeExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeploymentTargetListSizeExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6343,9 +6304,8 @@ public struct DeregisterOnPremisesInstanceOutputResponse: Swift.Equatable { extension DescriptionTooLongException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescriptionTooLongExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6359,7 +6319,7 @@ extension DescriptionTooLongException { } /// The description is too long. -public struct DescriptionTooLongException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DescriptionTooLongException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6673,9 +6633,8 @@ extension CodeDeployClientTypes { extension ECSServiceMappingLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ECSServiceMappingLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6689,7 +6648,7 @@ extension ECSServiceMappingLimitExceededException { } /// The Amazon ECS service is associated with more than one deployment groups. An Amazon ECS service can be associated with only one deployment group. -public struct ECSServiceMappingLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ECSServiceMappingLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7387,9 +7346,8 @@ public enum GetApplicationOutputError: Swift.Error, Swift.Equatable { extension GetApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -7523,9 +7481,8 @@ public enum GetApplicationRevisionOutputError: Swift.Error, Swift.Equatable { extension GetApplicationRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationName = output.applicationName self.revision = output.revision @@ -7662,9 +7619,8 @@ public enum GetDeploymentConfigOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentConfigInfo = output.deploymentConfigInfo } else { @@ -7800,9 +7756,8 @@ public enum GetDeploymentGroupOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentGroupInfo = output.deploymentGroupInfo } else { @@ -7987,9 +7942,8 @@ public enum GetDeploymentInstanceOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceSummary = output.instanceSummary } else { @@ -8056,9 +8010,8 @@ public enum GetDeploymentOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentInfo = output.deploymentInfo } else { @@ -8193,9 +8146,8 @@ public enum GetDeploymentTargetOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentTarget = output.deploymentTarget } else { @@ -8309,9 +8261,8 @@ public enum GetOnPremisesInstanceOutputError: Swift.Error, Swift.Equatable { extension GetOnPremisesInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOnPremisesInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceInfo = output.instanceInfo } else { @@ -8351,9 +8302,8 @@ extension GetOnPremisesInstanceOutputResponseBody: Swift.Decodable { extension GitHubAccountTokenDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GitHubAccountTokenDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8367,7 +8317,7 @@ extension GitHubAccountTokenDoesNotExistException { } /// No GitHub account connection exists with the named specified in the call. -public struct GitHubAccountTokenDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GitHubAccountTokenDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8404,9 +8354,8 @@ extension GitHubAccountTokenDoesNotExistExceptionBody: Swift.Decodable { extension GitHubAccountTokenNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GitHubAccountTokenNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8420,7 +8369,7 @@ extension GitHubAccountTokenNameRequiredException { } /// The call is missing a required GitHub account connection name. -public struct GitHubAccountTokenNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GitHubAccountTokenNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8573,9 +8522,8 @@ extension CodeDeployClientTypes { extension IamArnRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IamArnRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8589,7 +8537,7 @@ extension IamArnRequiredException { } /// No IAM ARN was included in the request. You must use an IAM session ARN or IAM user ARN in the request. -public struct IamArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IamArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8626,9 +8574,8 @@ extension IamArnRequiredExceptionBody: Swift.Decodable { extension IamSessionArnAlreadyRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IamSessionArnAlreadyRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8642,7 +8589,7 @@ extension IamSessionArnAlreadyRegisteredException { } /// The request included an IAM session ARN that has already been used to register a different instance. -public struct IamSessionArnAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IamSessionArnAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8679,9 +8626,8 @@ extension IamSessionArnAlreadyRegisteredExceptionBody: Swift.Decodable { extension IamUserArnAlreadyRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IamUserArnAlreadyRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8695,7 +8641,7 @@ extension IamUserArnAlreadyRegisteredException { } /// The specified IAM user ARN is already registered with an on-premises instance. -public struct IamUserArnAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IamUserArnAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8732,9 +8678,8 @@ extension IamUserArnAlreadyRegisteredExceptionBody: Swift.Decodable { extension IamUserArnRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IamUserArnRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8748,7 +8693,7 @@ extension IamUserArnRequiredException { } /// An IAM user ARN was not specified. -public struct IamUserArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IamUserArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8817,9 +8762,8 @@ extension CodeDeployClientTypes { extension InstanceDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstanceDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8834,7 +8778,7 @@ extension InstanceDoesNotExistException { /// The specified instance does not exist in the deployment group. @available(*, deprecated, message: "This exception is deprecated, use DeploymentTargetDoesNotExistException instead.") -public struct InstanceDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8871,9 +8815,8 @@ extension InstanceDoesNotExistExceptionBody: Swift.Decodable { extension InstanceIdRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstanceIdRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8888,7 +8831,7 @@ extension InstanceIdRequiredException { /// The instance ID was not specified. @available(*, deprecated, message: "This exception is deprecated, use DeploymentTargetIdRequiredException instead.") -public struct InstanceIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceIdRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9032,9 +8975,8 @@ extension CodeDeployClientTypes { extension InstanceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstanceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9048,7 +8990,7 @@ extension InstanceLimitExceededException { } /// The maximum number of allowed on-premises instances in a single call was exceeded. -public struct InstanceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9085,9 +9027,8 @@ extension InstanceLimitExceededExceptionBody: Swift.Decodable { extension InstanceNameAlreadyRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstanceNameAlreadyRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9101,7 +9042,7 @@ extension InstanceNameAlreadyRegisteredException { } /// The specified on-premises instance name is already registered. -public struct InstanceNameAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceNameAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9138,9 +9079,8 @@ extension InstanceNameAlreadyRegisteredExceptionBody: Swift.Decodable { extension InstanceNameRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstanceNameRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9154,7 +9094,7 @@ extension InstanceNameRequiredException { } /// An on-premises instance name was not specified. -public struct InstanceNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceNameRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9191,9 +9131,8 @@ extension InstanceNameRequiredExceptionBody: Swift.Decodable { extension InstanceNotRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstanceNotRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9207,7 +9146,7 @@ extension InstanceNotRegisteredException { } /// The specified on-premises instance is not registered. -public struct InstanceNotRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceNotRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9546,9 +9485,8 @@ extension CodeDeployClientTypes { extension InvalidAlarmConfigException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAlarmConfigExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9572,7 +9510,7 @@ extension InvalidAlarmConfigException { /// * Two alarms with the same name have been specified. /// /// * The alarm configuration is enabled, but the alarm list is empty. -public struct InvalidAlarmConfigException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAlarmConfigException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9609,9 +9547,8 @@ extension InvalidAlarmConfigExceptionBody: Swift.Decodable { extension InvalidApplicationNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApplicationNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9625,7 +9562,7 @@ extension InvalidApplicationNameException { } /// The application name was specified in an invalid format. -public struct InvalidApplicationNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApplicationNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9662,9 +9599,8 @@ extension InvalidApplicationNameExceptionBody: Swift.Decodable { extension InvalidArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9678,7 +9614,7 @@ extension InvalidArnException { } /// The specified ARN is not in a valid format. -public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9715,9 +9651,8 @@ extension InvalidArnExceptionBody: Swift.Decodable { extension InvalidAutoRollbackConfigException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAutoRollbackConfigExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9731,7 +9666,7 @@ extension InvalidAutoRollbackConfigException { } /// The automatic rollback configuration was specified in an invalid format. For example, automatic rollback is enabled, but an invalid triggering event type or no event types were listed. -public struct InvalidAutoRollbackConfigException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAutoRollbackConfigException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9768,9 +9703,8 @@ extension InvalidAutoRollbackConfigExceptionBody: Swift.Decodable { extension InvalidAutoScalingGroupException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAutoScalingGroupExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9784,7 +9718,7 @@ extension InvalidAutoScalingGroupException { } /// The Auto Scaling group was specified in an invalid format or does not exist. -public struct InvalidAutoScalingGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAutoScalingGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9821,9 +9755,8 @@ extension InvalidAutoScalingGroupExceptionBody: Swift.Decodable { extension InvalidBlueGreenDeploymentConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidBlueGreenDeploymentConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9837,7 +9770,7 @@ extension InvalidBlueGreenDeploymentConfigurationException { } /// The configuration for the blue/green deployment group was provided in an invalid format. For information about deployment configuration format, see [CreateDeploymentConfig]. -public struct InvalidBlueGreenDeploymentConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidBlueGreenDeploymentConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9874,9 +9807,8 @@ extension InvalidBlueGreenDeploymentConfigurationExceptionBody: Swift.Decodable extension InvalidBucketNameFilterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidBucketNameFilterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9890,7 +9822,7 @@ extension InvalidBucketNameFilterException { } /// The bucket name either doesn't exist or was specified in an invalid format. -public struct InvalidBucketNameFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidBucketNameFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9927,9 +9859,8 @@ extension InvalidBucketNameFilterExceptionBody: Swift.Decodable { extension InvalidComputePlatformException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidComputePlatformExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9943,7 +9874,7 @@ extension InvalidComputePlatformException { } /// The computePlatform is invalid. The computePlatform should be Lambda, Server, or ECS. -public struct InvalidComputePlatformException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidComputePlatformException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9980,9 +9911,8 @@ extension InvalidComputePlatformExceptionBody: Swift.Decodable { extension InvalidDeployedStateFilterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeployedStateFilterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9996,7 +9926,7 @@ extension InvalidDeployedStateFilterException { } /// The deployed state filter was specified in an invalid format. -public struct InvalidDeployedStateFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeployedStateFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10033,9 +9963,8 @@ extension InvalidDeployedStateFilterExceptionBody: Swift.Decodable { extension InvalidDeploymentConfigNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeploymentConfigNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10049,7 +9978,7 @@ extension InvalidDeploymentConfigNameException { } /// The deployment configuration name was specified in an invalid format. -public struct InvalidDeploymentConfigNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeploymentConfigNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10086,9 +10015,8 @@ extension InvalidDeploymentConfigNameExceptionBody: Swift.Decodable { extension InvalidDeploymentGroupNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeploymentGroupNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10102,7 +10030,7 @@ extension InvalidDeploymentGroupNameException { } /// The deployment group name was specified in an invalid format. -public struct InvalidDeploymentGroupNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeploymentGroupNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10139,9 +10067,8 @@ extension InvalidDeploymentGroupNameExceptionBody: Swift.Decodable { extension InvalidDeploymentIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeploymentIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10155,7 +10082,7 @@ extension InvalidDeploymentIdException { } /// At least one of the deployment IDs was specified in an invalid format. -public struct InvalidDeploymentIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeploymentIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10192,9 +10119,8 @@ extension InvalidDeploymentIdExceptionBody: Swift.Decodable { extension InvalidDeploymentInstanceTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeploymentInstanceTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10208,7 +10134,7 @@ extension InvalidDeploymentInstanceTypeException { } /// An instance type was specified for an in-place deployment. Instance types are supported for blue/green deployments only. -public struct InvalidDeploymentInstanceTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeploymentInstanceTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10245,9 +10171,8 @@ extension InvalidDeploymentInstanceTypeExceptionBody: Swift.Decodable { extension InvalidDeploymentStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeploymentStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10261,7 +10186,7 @@ extension InvalidDeploymentStatusException { } /// The specified deployment status doesn't exist or cannot be determined. -public struct InvalidDeploymentStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeploymentStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10298,9 +10223,8 @@ extension InvalidDeploymentStatusExceptionBody: Swift.Decodable { extension InvalidDeploymentStyleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeploymentStyleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10314,7 +10238,7 @@ extension InvalidDeploymentStyleException { } /// An invalid deployment style was specified. Valid deployment types include "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL." -public struct InvalidDeploymentStyleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeploymentStyleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10351,9 +10275,8 @@ extension InvalidDeploymentStyleExceptionBody: Swift.Decodable { extension InvalidDeploymentTargetIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeploymentTargetIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10367,7 +10290,7 @@ extension InvalidDeploymentTargetIdException { } /// The target ID provided was not valid. -public struct InvalidDeploymentTargetIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeploymentTargetIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10404,9 +10327,8 @@ extension InvalidDeploymentTargetIdExceptionBody: Swift.Decodable { extension InvalidDeploymentWaitTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeploymentWaitTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10420,7 +10342,7 @@ extension InvalidDeploymentWaitTypeException { } /// The wait type is invalid. -public struct InvalidDeploymentWaitTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeploymentWaitTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10457,9 +10379,8 @@ extension InvalidDeploymentWaitTypeExceptionBody: Swift.Decodable { extension InvalidEC2TagCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEC2TagCombinationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10473,7 +10394,7 @@ extension InvalidEC2TagCombinationException { } /// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but only one of these data types can be used in a single call. -public struct InvalidEC2TagCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEC2TagCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10510,9 +10431,8 @@ extension InvalidEC2TagCombinationExceptionBody: Swift.Decodable { extension InvalidEC2TagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEC2TagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10526,7 +10446,7 @@ extension InvalidEC2TagException { } /// The tag was specified in an invalid format. -public struct InvalidEC2TagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEC2TagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10563,9 +10483,8 @@ extension InvalidEC2TagExceptionBody: Swift.Decodable { extension InvalidECSServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidECSServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10579,7 +10498,7 @@ extension InvalidECSServiceException { } /// The Amazon ECS service identifier is not valid. -public struct InvalidECSServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidECSServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10616,9 +10535,8 @@ extension InvalidECSServiceExceptionBody: Swift.Decodable { extension InvalidExternalIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidExternalIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10632,7 +10550,7 @@ extension InvalidExternalIdException { } /// The external ID was specified in an invalid format. -public struct InvalidExternalIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidExternalIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10669,9 +10587,8 @@ extension InvalidExternalIdExceptionBody: Swift.Decodable { extension InvalidFileExistsBehaviorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFileExistsBehaviorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10685,7 +10602,7 @@ extension InvalidFileExistsBehaviorException { } /// An invalid fileExistsBehavior option was specified to determine how CodeDeploy handles files or directories that already exist in a deployment target location, but weren't part of the previous successful deployment. Valid values include "DISALLOW," "OVERWRITE," and "RETAIN." -public struct InvalidFileExistsBehaviorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFileExistsBehaviorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10722,9 +10639,8 @@ extension InvalidFileExistsBehaviorExceptionBody: Swift.Decodable { extension InvalidGitHubAccountTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidGitHubAccountTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10738,7 +10654,7 @@ extension InvalidGitHubAccountTokenException { } /// The GitHub token is not valid. -public struct InvalidGitHubAccountTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGitHubAccountTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10775,9 +10691,8 @@ extension InvalidGitHubAccountTokenExceptionBody: Swift.Decodable { extension InvalidGitHubAccountTokenNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidGitHubAccountTokenNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10791,7 +10706,7 @@ extension InvalidGitHubAccountTokenNameException { } /// The format of the specified GitHub account connection name is invalid. -public struct InvalidGitHubAccountTokenNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGitHubAccountTokenNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10828,9 +10743,8 @@ extension InvalidGitHubAccountTokenNameExceptionBody: Swift.Decodable { extension InvalidIamSessionArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidIamSessionArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10844,7 +10758,7 @@ extension InvalidIamSessionArnException { } /// The IAM session ARN was specified in an invalid format. -public struct InvalidIamSessionArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidIamSessionArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10881,9 +10795,8 @@ extension InvalidIamSessionArnExceptionBody: Swift.Decodable { extension InvalidIamUserArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidIamUserArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10897,7 +10810,7 @@ extension InvalidIamUserArnException { } /// The IAM user ARN was specified in an invalid format. -public struct InvalidIamUserArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidIamUserArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10934,9 +10847,8 @@ extension InvalidIamUserArnExceptionBody: Swift.Decodable { extension InvalidIgnoreApplicationStopFailuresValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidIgnoreApplicationStopFailuresValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10950,7 +10862,7 @@ extension InvalidIgnoreApplicationStopFailuresValueException { } /// The IgnoreApplicationStopFailures value is invalid. For Lambda deployments, false is expected. For EC2/On-premises deployments, true or false is expected. -public struct InvalidIgnoreApplicationStopFailuresValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidIgnoreApplicationStopFailuresValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10987,9 +10899,8 @@ extension InvalidIgnoreApplicationStopFailuresValueExceptionBody: Swift.Decodabl extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11003,7 +10914,7 @@ extension InvalidInputException { } /// The input was specified in an invalid format. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11040,9 +10951,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension InvalidInstanceNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInstanceNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11056,7 +10966,7 @@ extension InvalidInstanceNameException { } /// The on-premises instance name was specified in an invalid format. -public struct InvalidInstanceNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInstanceNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11093,9 +11003,8 @@ extension InvalidInstanceNameExceptionBody: Swift.Decodable { extension InvalidInstanceStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInstanceStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11109,7 +11018,7 @@ extension InvalidInstanceStatusException { } /// The specified instance status does not exist. -public struct InvalidInstanceStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInstanceStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11146,9 +11055,8 @@ extension InvalidInstanceStatusExceptionBody: Swift.Decodable { extension InvalidInstanceTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInstanceTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11162,7 +11070,7 @@ extension InvalidInstanceTypeException { } /// An invalid instance type was specified for instances in a blue/green deployment. Valid values include "Blue" for an original environment and "Green" for a replacement environment. -public struct InvalidInstanceTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInstanceTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11199,9 +11107,8 @@ extension InvalidInstanceTypeExceptionBody: Swift.Decodable { extension InvalidKeyPrefixFilterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidKeyPrefixFilterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11215,7 +11122,7 @@ extension InvalidKeyPrefixFilterException { } /// The specified key prefix filter was specified in an invalid format. -public struct InvalidKeyPrefixFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKeyPrefixFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11252,9 +11159,8 @@ extension InvalidKeyPrefixFilterExceptionBody: Swift.Decodable { extension InvalidLifecycleEventHookExecutionIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLifecycleEventHookExecutionIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11268,7 +11174,7 @@ extension InvalidLifecycleEventHookExecutionIdException { } /// A lifecycle event hook is invalid. Review the hooks section in your AppSpec file to ensure the lifecycle events and hooks functions are valid. -public struct InvalidLifecycleEventHookExecutionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLifecycleEventHookExecutionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11305,9 +11211,8 @@ extension InvalidLifecycleEventHookExecutionIdExceptionBody: Swift.Decodable { extension InvalidLifecycleEventHookExecutionStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLifecycleEventHookExecutionStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11321,7 +11226,7 @@ extension InvalidLifecycleEventHookExecutionStatusException { } /// The result of a Lambda validation function that verifies a lifecycle event is invalid. It should return Succeeded or Failed. -public struct InvalidLifecycleEventHookExecutionStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLifecycleEventHookExecutionStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11358,9 +11263,8 @@ extension InvalidLifecycleEventHookExecutionStatusExceptionBody: Swift.Decodable extension InvalidLoadBalancerInfoException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLoadBalancerInfoExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11374,7 +11278,7 @@ extension InvalidLoadBalancerInfoException { } /// An invalid load balancer name, or no load balancer name, was specified. -public struct InvalidLoadBalancerInfoException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLoadBalancerInfoException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11411,9 +11315,8 @@ extension InvalidLoadBalancerInfoExceptionBody: Swift.Decodable { extension InvalidMinimumHealthyHostValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMinimumHealthyHostValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11427,7 +11330,7 @@ extension InvalidMinimumHealthyHostValueException { } /// The minimum healthy instance value was specified in an invalid format. -public struct InvalidMinimumHealthyHostValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMinimumHealthyHostValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11464,9 +11367,8 @@ extension InvalidMinimumHealthyHostValueExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11480,7 +11382,7 @@ extension InvalidNextTokenException { } /// The next token was specified in an invalid format. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11517,9 +11419,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidOnPremisesTagCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOnPremisesTagCombinationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11533,7 +11434,7 @@ extension InvalidOnPremisesTagCombinationException { } /// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, but only one of these data types can be used in a single call. -public struct InvalidOnPremisesTagCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOnPremisesTagCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11570,9 +11471,8 @@ extension InvalidOnPremisesTagCombinationExceptionBody: Swift.Decodable { extension InvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11586,7 +11486,7 @@ extension InvalidOperationException { } /// An invalid operation was detected. -public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11623,9 +11523,8 @@ extension InvalidOperationExceptionBody: Swift.Decodable { extension InvalidRegistrationStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRegistrationStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11639,7 +11538,7 @@ extension InvalidRegistrationStatusException { } /// The registration status was specified in an invalid format. -public struct InvalidRegistrationStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRegistrationStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11676,9 +11575,8 @@ extension InvalidRegistrationStatusExceptionBody: Swift.Decodable { extension InvalidRevisionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRevisionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11692,7 +11590,7 @@ extension InvalidRevisionException { } /// The revision was specified in an invalid format. -public struct InvalidRevisionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRevisionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11729,9 +11627,8 @@ extension InvalidRevisionExceptionBody: Swift.Decodable { extension InvalidRoleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRoleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11745,7 +11642,7 @@ extension InvalidRoleException { } /// The service role ARN was specified in an invalid format. Or, if an Auto Scaling group was specified, the specified service role does not grant the appropriate permissions to Amazon EC2 Auto Scaling. -public struct InvalidRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11782,9 +11679,8 @@ extension InvalidRoleExceptionBody: Swift.Decodable { extension InvalidSortByException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSortByExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11798,7 +11694,7 @@ extension InvalidSortByException { } /// The column name to sort by is either not present or was specified in an invalid format. -public struct InvalidSortByException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSortByException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11835,9 +11731,8 @@ extension InvalidSortByExceptionBody: Swift.Decodable { extension InvalidSortOrderException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSortOrderExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11851,7 +11746,7 @@ extension InvalidSortOrderException { } /// The sort order was specified in an invalid format. -public struct InvalidSortOrderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSortOrderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11888,9 +11783,8 @@ extension InvalidSortOrderExceptionBody: Swift.Decodable { extension InvalidTagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11904,7 +11798,7 @@ extension InvalidTagException { } /// The tag was specified in an invalid format. -public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11941,9 +11835,8 @@ extension InvalidTagExceptionBody: Swift.Decodable { extension InvalidTagFilterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagFilterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11957,7 +11850,7 @@ extension InvalidTagFilterException { } /// The tag filter was specified in an invalid format. -public struct InvalidTagFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11994,9 +11887,8 @@ extension InvalidTagFilterExceptionBody: Swift.Decodable { extension InvalidTagsToAddException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagsToAddExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12010,7 +11902,7 @@ extension InvalidTagsToAddException { } /// The specified tags are not valid. -public struct InvalidTagsToAddException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagsToAddException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12047,9 +11939,8 @@ extension InvalidTagsToAddExceptionBody: Swift.Decodable { extension InvalidTargetFilterNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetFilterNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12063,7 +11954,7 @@ extension InvalidTargetFilterNameException { } /// The target filter name is invalid. -public struct InvalidTargetFilterNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetFilterNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12100,9 +11991,8 @@ extension InvalidTargetFilterNameExceptionBody: Swift.Decodable { extension InvalidTargetGroupPairException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetGroupPairExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12116,7 +12006,7 @@ extension InvalidTargetGroupPairException { } /// A target group pair associated with this deployment is not valid. -public struct InvalidTargetGroupPairException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetGroupPairException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12153,9 +12043,8 @@ extension InvalidTargetGroupPairExceptionBody: Swift.Decodable { extension InvalidTargetInstancesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetInstancesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12177,7 +12066,7 @@ extension InvalidTargetInstancesException { /// * The combined length of the tag names exceeded the limit. /// /// * A specified tag is not currently applied to any instances. -public struct InvalidTargetInstancesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetInstancesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12214,9 +12103,8 @@ extension InvalidTargetInstancesExceptionBody: Swift.Decodable { extension InvalidTimeRangeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTimeRangeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12230,7 +12118,7 @@ extension InvalidTimeRangeException { } /// The specified time range was specified in an invalid format. -public struct InvalidTimeRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTimeRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12267,9 +12155,8 @@ extension InvalidTimeRangeExceptionBody: Swift.Decodable { extension InvalidTrafficRoutingConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTrafficRoutingConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12283,7 +12170,7 @@ extension InvalidTrafficRoutingConfigurationException { } /// The configuration that specifies how traffic is routed during a deployment is invalid. -public struct InvalidTrafficRoutingConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTrafficRoutingConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12320,9 +12207,8 @@ extension InvalidTrafficRoutingConfigurationExceptionBody: Swift.Decodable { extension InvalidTriggerConfigException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTriggerConfigExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12336,7 +12222,7 @@ extension InvalidTriggerConfigException { } /// The trigger was specified in an invalid format. -public struct InvalidTriggerConfigException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTriggerConfigException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12373,9 +12259,8 @@ extension InvalidTriggerConfigExceptionBody: Swift.Decodable { extension InvalidUpdateOutdatedInstancesOnlyValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidUpdateOutdatedInstancesOnlyValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12389,7 +12274,7 @@ extension InvalidUpdateOutdatedInstancesOnlyValueException { } /// The UpdateOutdatedInstancesOnly value is invalid. For Lambda deployments, false is expected. For EC2/On-premises deployments, true or false is expected. -public struct InvalidUpdateOutdatedInstancesOnlyValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUpdateOutdatedInstancesOnlyValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12804,9 +12689,8 @@ extension CodeDeployClientTypes { extension LifecycleEventAlreadyCompletedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LifecycleEventAlreadyCompletedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12820,7 +12704,7 @@ extension LifecycleEventAlreadyCompletedException { } /// An attempt to return the status of an already completed lifecycle event occurred. -public struct LifecycleEventAlreadyCompletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LifecycleEventAlreadyCompletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12901,9 +12785,8 @@ extension CodeDeployClientTypes { extension LifecycleHookLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LifecycleHookLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12917,7 +12800,7 @@ extension LifecycleHookLimitExceededException { } /// The limit for lifecycle hooks was exceeded. -public struct LifecycleHookLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LifecycleHookLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13137,9 +13020,8 @@ public enum ListApplicationRevisionsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationRevisionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationRevisionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.revisions = output.revisions @@ -13268,9 +13150,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications self.nextToken = output.nextToken @@ -13399,9 +13280,8 @@ public enum ListDeploymentConfigsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentConfigsList = output.deploymentConfigsList self.nextToken = output.nextToken @@ -13549,9 +13429,8 @@ public enum ListDeploymentGroupsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationName = output.applicationName self.deploymentGroups = output.deploymentGroups @@ -13781,9 +13660,8 @@ public enum ListDeploymentInstancesOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instancesList = output.instancesList self.nextToken = output.nextToken @@ -13975,9 +13853,8 @@ public enum ListDeploymentTargetsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.targetIds = output.targetIds @@ -14209,9 +14086,8 @@ public enum ListDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deployments = output.deployments self.nextToken = output.nextToken @@ -14344,9 +14220,8 @@ public enum ListGitHubAccountTokenNamesOutputError: Swift.Error, Swift.Equatable extension ListGitHubAccountTokenNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGitHubAccountTokenNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tokenNameList = output.tokenNameList @@ -14519,9 +14394,8 @@ public enum ListOnPremisesInstancesOutputError: Swift.Error, Swift.Equatable { extension ListOnPremisesInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOnPremisesInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceNames = output.instanceNames self.nextToken = output.nextToken @@ -14701,9 +14575,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -14936,9 +14809,8 @@ extension CodeDeployClientTypes { extension MultipleIamArnsProvidedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MultipleIamArnsProvidedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14952,7 +14824,7 @@ extension MultipleIamArnsProvidedException { } /// Both an IAM user ARN and an IAM session ARN were included in the request. Use only one ARN type. -public struct MultipleIamArnsProvidedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MultipleIamArnsProvidedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15048,9 +14920,8 @@ extension CodeDeployClientTypes { extension OperationNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15064,7 +14935,7 @@ extension OperationNotSupportedException { } /// The API used does not support the deployment. -public struct OperationNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15238,9 +15109,8 @@ public enum PutLifecycleEventHookExecutionStatusOutputError: Swift.Error, Swift. extension PutLifecycleEventHookExecutionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutLifecycleEventHookExecutionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecycleEventHookExecutionId = output.lifecycleEventHookExecutionId } else { @@ -15783,9 +15653,8 @@ public struct RemoveTagsFromOnPremisesInstancesOutputResponse: Swift.Equatable { extension ResourceArnRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceArnRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15799,7 +15668,7 @@ extension ResourceArnRequiredException { } /// The ARN of a resource is required, but was not found. -public struct ResourceArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceArnRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15836,9 +15705,8 @@ extension ResourceArnRequiredExceptionBody: Swift.Decodable { extension ResourceValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15852,7 +15720,7 @@ extension ResourceValidationException { } /// The specified resource could not be validated. -public struct ResourceValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15889,9 +15757,8 @@ extension ResourceValidationExceptionBody: Swift.Decodable { extension RevisionDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevisionDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15905,7 +15772,7 @@ extension RevisionDoesNotExistException { } /// The named revision does not exist with the IAM user or Amazon Web Services account. -public struct RevisionDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RevisionDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16109,9 +15976,8 @@ extension CodeDeployClientTypes { extension RevisionRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevisionRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16125,7 +15991,7 @@ extension RevisionRequiredException { } /// The revision ID was not specified. -public struct RevisionRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RevisionRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16162,9 +16028,8 @@ extension RevisionRequiredExceptionBody: Swift.Decodable { extension RoleRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RoleRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16178,7 +16043,7 @@ extension RoleRequiredException { } /// The role ID was not specified. -public struct RoleRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RoleRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16565,9 +16430,8 @@ public enum StopDeploymentOutputError: Swift.Error, Swift.Equatable { extension StopDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status self.statusMessage = output.statusMessage @@ -16794,9 +16658,8 @@ extension CodeDeployClientTypes { extension TagLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16810,7 +16673,7 @@ extension TagLimitExceededException { } /// The maximum allowed number of tags was exceeded. -public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16847,9 +16710,8 @@ extension TagLimitExceededExceptionBody: Swift.Decodable { extension TagRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16863,7 +16725,7 @@ extension TagRequiredException { } /// A tag was not specified. -public struct TagRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17019,9 +16881,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TagSetListLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagSetListLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17035,7 +16896,7 @@ extension TagSetListLimitExceededException { } /// The number of tag groups included in the tag set list exceeded the maximum allowed limit of 3. -public struct TagSetListLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagSetListLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17364,9 +17225,8 @@ extension CodeDeployClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17380,7 +17240,7 @@ extension ThrottlingException { } /// An API function was called too frequently. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17812,9 +17672,8 @@ extension CodeDeployClientTypes { extension TriggerTargetsLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TriggerTargetsLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17828,7 +17687,7 @@ extension TriggerTargetsLimitExceededException { } /// The maximum allowed number of triggers was exceeded. -public struct TriggerTargetsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TriggerTargetsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17865,9 +17724,8 @@ extension TriggerTargetsLimitExceededExceptionBody: Swift.Decodable { extension UnsupportedActionForDeploymentTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedActionForDeploymentTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17881,7 +17739,7 @@ extension UnsupportedActionForDeploymentTypeException { } /// A call was submitted that is not supported for the specified deployment type. -public struct UnsupportedActionForDeploymentTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedActionForDeploymentTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18535,9 +18393,8 @@ public enum UpdateDeploymentGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateDeploymentGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDeploymentGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hooksNotCleanedUp = output.hooksNotCleanedUp } else { diff --git a/Sources/Services/AWSCodeGuruProfiler/CodeGuruProfilerClient.swift b/Sources/Services/AWSCodeGuruProfiler/CodeGuruProfilerClient.swift index 26b636fef03..81758e5e192 100644 --- a/Sources/Services/AWSCodeGuruProfiler/CodeGuruProfilerClient.swift +++ b/Sources/Services/AWSCodeGuruProfiler/CodeGuruProfilerClient.swift @@ -208,6 +208,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addNotificationChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetFrameMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -259,7 +261,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -279,6 +281,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "configureAgent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -294,7 +297,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -314,6 +317,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProfilingGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -338,7 +342,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -358,6 +362,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProfilingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -370,7 +375,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -390,6 +395,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProfilingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -402,7 +408,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -422,6 +428,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindingsReportAccountSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -435,7 +442,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +462,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -467,7 +475,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -487,6 +495,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -535,6 +544,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +559,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +593,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +613,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindingsReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -615,7 +627,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -635,6 +647,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProfileTimes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +661,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -668,6 +681,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProfilingGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -681,7 +695,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -701,6 +715,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +728,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +748,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "postAgentProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -758,7 +774,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -778,6 +794,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -793,7 +810,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -813,6 +830,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeNotificationChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -825,7 +843,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -845,6 +863,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -858,7 +877,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -878,6 +897,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "submitFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -893,7 +913,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -913,6 +933,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -928,7 +949,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -948,6 +969,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -961,7 +983,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -981,6 +1003,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-profiler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProfilingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1019,7 @@ extension CodeGuruProfilerClient: CodeGuruProfilerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeGuruProfiler/models/Models.swift b/Sources/Services/AWSCodeGuruProfiler/models/Models.swift index a24230dd8c0..84c6f66a9f7 100644 --- a/Sources/Services/AWSCodeGuruProfiler/models/Models.swift +++ b/Sources/Services/AWSCodeGuruProfiler/models/Models.swift @@ -135,9 +135,8 @@ public enum AddNotificationChannelsOutputError: Swift.Error, Swift.Equatable { extension AddNotificationChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddNotificationChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notificationConfiguration = output.notificationConfiguration } else { @@ -707,9 +706,8 @@ public enum BatchGetFrameMetricDataOutputError: Swift.Error, Swift.Equatable { extension BatchGetFrameMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetFrameMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endTime = output.endTime self.endTimes = output.endTimes @@ -1074,13 +1072,9 @@ public enum ConfigureAgentOutputError: Swift.Error, Swift.Equatable { extension ConfigureAgentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CodeGuruProfilerClientTypes.AgentConfiguration = try responseDecoder.decode(responseBody: data) - self.configuration = output - } else { - self.configuration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CodeGuruProfilerClientTypes.AgentConfiguration = try responseDecoder.decode(responseBody: data) + self.configuration = output } else { self.configuration = nil } @@ -1119,9 +1113,8 @@ extension ConfigureAgentOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1135,7 +1128,7 @@ extension ConflictException { } /// The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1319,13 +1312,9 @@ public enum CreateProfilingGroupOutputError: Swift.Error, Swift.Equatable { extension CreateProfilingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CodeGuruProfilerClientTypes.ProfilingGroupDescription = try responseDecoder.decode(responseBody: data) - self.profilingGroup = output - } else { - self.profilingGroup = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CodeGuruProfilerClientTypes.ProfilingGroupDescription = try responseDecoder.decode(responseBody: data) + self.profilingGroup = output } else { self.profilingGroup = nil } @@ -1497,13 +1486,9 @@ public enum DescribeProfilingGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeProfilingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CodeGuruProfilerClientTypes.ProfilingGroupDescription = try responseDecoder.decode(responseBody: data) - self.profilingGroup = output - } else { - self.profilingGroup = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CodeGuruProfilerClientTypes.ProfilingGroupDescription = try responseDecoder.decode(responseBody: data) + self.profilingGroup = output } else { self.profilingGroup = nil } @@ -1893,9 +1878,8 @@ public enum GetFindingsReportAccountSummaryOutputError: Swift.Error, Swift.Equat extension GetFindingsReportAccountSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingsReportAccountSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportSummaries = output.reportSummaries @@ -2015,9 +1999,8 @@ public enum GetNotificationConfigurationOutputError: Swift.Error, Swift.Equatabl extension GetNotificationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNotificationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notificationConfiguration = output.notificationConfiguration } else { @@ -2116,9 +2099,8 @@ public enum GetPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.revisionId = output.revisionId @@ -2299,9 +2281,12 @@ extension GetProfileOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.profile = data - } else { + case .stream(let stream): + self.profile = try stream.readToEnd() + case .none: self.profile = nil } } @@ -2469,9 +2454,8 @@ public enum GetRecommendationsOutputError: Swift.Error, Swift.Equatable { extension GetRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalies = output.anomalies self.profileEndTime = output.profileEndTime @@ -2574,9 +2558,8 @@ extension GetRecommendationsOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2590,7 +2573,7 @@ extension InternalServerException { } /// The server encountered an internal error and is unable to complete the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2742,9 +2725,8 @@ public enum ListFindingsReportsOutputError: Swift.Error, Swift.Equatable { extension ListFindingsReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingsReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingsReportSummaries = output.findingsReportSummaries self.nextToken = output.nextToken @@ -2936,9 +2918,8 @@ public enum ListProfileTimesOutputError: Swift.Error, Swift.Equatable { extension ListProfileTimesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProfileTimesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.profileTimes = output.profileTimes @@ -3079,9 +3060,8 @@ public enum ListProfilingGroupsOutputError: Swift.Error, Swift.Equatable { extension ListProfilingGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProfilingGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.profilingGroupNames = output.profilingGroupNames @@ -3217,9 +3197,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3708,9 +3687,9 @@ public struct PostAgentProfileInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let agentProfile = input.operationInput.agentProfile { - let agentProfiledata = agentProfile - let agentProfilebody = ClientRuntime.HttpBody.data(agentProfiledata) - input.builder.withBody(agentProfilebody) + let agentProfileData = agentProfile + let agentProfileBody = ClientRuntime.HttpBody.data(agentProfileData) + input.builder.withBody(agentProfileBody) } return try await next.handle(context: context, input: input) } @@ -4180,9 +4159,8 @@ public enum PutPermissionOutputError: Swift.Error, Swift.Equatable { extension PutPermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutPermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.revisionId = output.revisionId @@ -4405,9 +4383,8 @@ public enum RemoveNotificationChannelOutputError: Swift.Error, Swift.Equatable { extension RemoveNotificationChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveNotificationChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notificationConfiguration = output.notificationConfiguration } else { @@ -4537,9 +4514,8 @@ public enum RemovePermissionOutputError: Swift.Error, Swift.Equatable { extension RemovePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemovePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.revisionId = output.revisionId @@ -4591,9 +4567,8 @@ extension RemovePermissionOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4607,7 +4582,7 @@ extension ResourceNotFoundException { } /// The resource specified in the request does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4644,9 +4619,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4660,7 +4634,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use [Service Quotas](https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html) to request a service quota increase. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4917,9 +4891,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4933,7 +4906,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5182,13 +5155,9 @@ public enum UpdateProfilingGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateProfilingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: CodeGuruProfilerClientTypes.ProfilingGroupDescription = try responseDecoder.decode(responseBody: data) - self.profilingGroup = output - } else { - self.profilingGroup = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: CodeGuruProfilerClientTypes.ProfilingGroupDescription = try responseDecoder.decode(responseBody: data) + self.profilingGroup = output } else { self.profilingGroup = nil } @@ -5263,9 +5232,8 @@ extension CodeGuruProfilerClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5279,7 +5247,7 @@ extension ValidationException { } /// The parameter is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCodeGuruReviewer/CodeGuruReviewerClient.swift b/Sources/Services/AWSCodeGuruReviewer/CodeGuruReviewerClient.swift index 3efcbcdb56f..a2d5fa202e8 100644 --- a/Sources/Services/AWSCodeGuruReviewer/CodeGuruReviewerClient.swift +++ b/Sources/Services/AWSCodeGuruReviewer/CodeGuruReviewerClient.swift @@ -208,6 +208,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateRepository") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCodeReview") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCodeReview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -306,7 +309,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -326,6 +329,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecommendationFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -339,7 +343,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -359,6 +363,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRepositoryAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +376,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -391,6 +396,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -403,7 +409,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -423,6 +429,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCodeReviews") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -436,7 +443,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -456,6 +463,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecommendationFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -469,7 +477,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -489,6 +497,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -502,7 +511,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -522,6 +531,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRepositoryAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +545,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +565,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -567,7 +578,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +598,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRecommendationFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -602,7 +614,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -622,6 +634,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -637,7 +650,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +670,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeguru-reviewer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -670,7 +684,7 @@ extension CodeGuruReviewerClient: CodeGuruReviewerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeGuruReviewer/models/Models.swift b/Sources/Services/AWSCodeGuruReviewer/models/Models.swift index c6bf54225b7..5751d0576ba 100644 --- a/Sources/Services/AWSCodeGuruReviewer/models/Models.swift +++ b/Sources/Services/AWSCodeGuruReviewer/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -222,9 +221,8 @@ public enum AssociateRepositoryOutputError: Swift.Error, Swift.Equatable { extension AssociateRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repositoryAssociation = output.repositoryAssociation self.tags = output.tags @@ -929,9 +927,8 @@ extension CodeGuruReviewerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -945,7 +942,7 @@ extension ConflictException { } /// The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1099,9 +1096,8 @@ public enum CreateCodeReviewOutputError: Swift.Error, Swift.Equatable { extension CreateCodeReviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCodeReviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeReview = output.codeReview } else { @@ -1201,9 +1197,8 @@ public enum DescribeCodeReviewOutputError: Swift.Error, Swift.Equatable { extension DescribeCodeReviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCodeReviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeReview = output.codeReview } else { @@ -1331,9 +1326,8 @@ public enum DescribeRecommendationFeedbackOutputError: Swift.Error, Swift.Equata extension DescribeRecommendationFeedbackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecommendationFeedbackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommendationFeedback = output.recommendationFeedback } else { @@ -1433,9 +1427,8 @@ public enum DescribeRepositoryAssociationOutputError: Swift.Error, Swift.Equatab extension DescribeRepositoryAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRepositoryAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repositoryAssociation = output.repositoryAssociation self.tags = output.tags @@ -1560,9 +1553,8 @@ public enum DisassociateRepositoryOutputError: Swift.Error, Swift.Equatable { extension DisassociateRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repositoryAssociation = output.repositoryAssociation self.tags = output.tags @@ -1701,9 +1693,8 @@ extension CodeGuruReviewerClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1717,7 +1708,7 @@ extension InternalServerException { } /// The server encountered an internal error and is unable to complete the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1965,9 +1956,8 @@ public enum ListCodeReviewsOutputError: Swift.Error, Swift.Equatable { extension ListCodeReviewsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCodeReviewsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeReviewSummaries = output.codeReviewSummaries self.nextToken = output.nextToken @@ -2131,9 +2121,8 @@ public enum ListRecommendationFeedbackOutputError: Swift.Error, Swift.Equatable extension ListRecommendationFeedbackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecommendationFeedbackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendationFeedbackSummaries = output.recommendationFeedbackSummaries @@ -2277,9 +2266,8 @@ public enum ListRecommendationsOutputError: Swift.Error, Swift.Equatable { extension ListRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendationSummaries = output.recommendationSummaries @@ -2468,9 +2456,8 @@ public enum ListRepositoryAssociationsOutputError: Swift.Error, Swift.Equatable extension ListRepositoryAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRepositoryAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.repositoryAssociationSummaries = output.repositoryAssociationSummaries @@ -2585,9 +2572,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2749,9 +2735,8 @@ extension CodeGuruReviewerClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2765,7 +2750,7 @@ extension NotFoundException { } /// The resource specified in the request was not found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3868,9 +3853,8 @@ extension CodeGuruReviewerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3884,7 +3868,7 @@ extension ResourceNotFoundException { } /// The resource specified in the request was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4427,9 +4411,8 @@ extension CodeGuruReviewerClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4443,7 +4426,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4600,9 +4583,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4616,7 +4598,7 @@ extension ValidationException { } /// The input fails to satisfy the specified constraints. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCodePipeline/CodePipelineClient.swift b/Sources/Services/AWSCodePipeline/CodePipelineClient.swift index 4b1b92f9a3b..4d35bcd830b 100644 --- a/Sources/Services/AWSCodePipeline/CodePipelineClient.swift +++ b/Sources/Services/AWSCodePipeline/CodePipelineClient.swift @@ -208,6 +208,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acknowledgeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acknowledgeThirdPartyJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomActionType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomActionType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterWebhookWithThirdParty") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableStageTransition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableStageTransition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getActionType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPipelineExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPipelineState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getThirdPartyJobDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActionExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActionTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelineExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWebhooks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pollForJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pollForThirdPartyJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putActionRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putApprovalResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putJobFailureResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putJobSuccessResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putThirdPartyJobFailureResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putThirdPartyJobSuccessResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putWebhook") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerWebhookWithThirdParty") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retryStageExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startPipelineExecution") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1420,7 +1454,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1440,6 +1474,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopPipelineExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1456,7 +1491,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1511,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1492,7 +1528,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1512,6 +1548,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1528,7 +1565,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1548,6 +1585,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateActionType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1564,7 +1602,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1584,6 +1622,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codepipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1600,7 +1639,7 @@ extension CodePipelineClient: CodePipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodePipeline/models/Models.swift b/Sources/Services/AWSCodePipeline/models/Models.swift index a519a6b84ec..acca8314c1b 100644 --- a/Sources/Services/AWSCodePipeline/models/Models.swift +++ b/Sources/Services/AWSCodePipeline/models/Models.swift @@ -156,9 +156,8 @@ public enum AcknowledgeJobOutputError: Swift.Error, Swift.Equatable { extension AcknowledgeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcknowledgeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -301,9 +300,8 @@ public enum AcknowledgeThirdPartyJobOutputError: Swift.Error, Swift.Equatable { extension AcknowledgeThirdPartyJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcknowledgeThirdPartyJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -1354,9 +1352,8 @@ extension CodePipelineClientTypes { extension ActionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1370,7 +1367,7 @@ extension ActionNotFoundException { } /// The specified action cannot be found. -public struct ActionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2062,9 +2059,8 @@ extension CodePipelineClientTypes { extension ActionTypeNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActionTypeNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2078,7 +2074,7 @@ extension ActionTypeNotFoundException { } /// The specified action type cannot be found. -public struct ActionTypeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActionTypeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2382,9 +2378,8 @@ extension CodePipelineClientTypes { extension ApprovalAlreadyCompletedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApprovalAlreadyCompletedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2398,7 +2393,7 @@ extension ApprovalAlreadyCompletedException { } /// The approval action has already been approved or rejected. -public struct ApprovalAlreadyCompletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ApprovalAlreadyCompletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2982,9 +2977,8 @@ extension CodePipelineClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2998,7 +2992,7 @@ extension ConcurrentModificationException { } /// Unable to modify the tag due to a simultaneous update request. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3034,9 +3028,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3050,7 +3043,7 @@ extension ConflictException { } /// Your request cannot be handled because the pipeline is busy handling ongoing activities. Try again later. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3277,9 +3270,8 @@ public enum CreateCustomActionTypeOutputError: Swift.Error, Swift.Equatable { extension CreateCustomActionTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomActionTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionType = output.actionType self.tags = output.tags @@ -3452,9 +3444,8 @@ public enum CreatePipelineOutputError: Swift.Error, Swift.Equatable { extension CreatePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline self.tags = output.tags @@ -4059,9 +4050,8 @@ public struct DisableStageTransitionOutputResponse: Swift.Equatable { extension DuplicatedStopRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicatedStopRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4075,7 +4065,7 @@ extension DuplicatedStopRequestException { } /// The pipeline execution is already in a Stopping state. If you already chose to stop and wait, you cannot make that request again. You can choose to stop and abandon now, but be aware that this option can lead to failed tasks or out of sequence tasks. If you already chose to stop and abandon, you cannot make that request again. -public struct DuplicatedStopRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicatedStopRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4744,9 +4734,8 @@ public enum GetActionTypeOutputError: Swift.Error, Swift.Equatable { extension GetActionTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetActionTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionType = output.actionType } else { @@ -4858,9 +4847,8 @@ public enum GetJobDetailsOutputError: Swift.Error, Swift.Equatable { extension GetJobDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDetails = output.jobDetails } else { @@ -4988,9 +4976,8 @@ public enum GetPipelineExecutionOutputError: Swift.Error, Swift.Equatable { extension GetPipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecution = output.pipelineExecution } else { @@ -5117,9 +5104,8 @@ public enum GetPipelineOutputError: Swift.Error, Swift.Equatable { extension GetPipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata self.pipeline = output.pipeline @@ -5242,9 +5228,8 @@ public enum GetPipelineStateOutputError: Swift.Error, Swift.Equatable { extension GetPipelineStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPipelineStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.created = output.created self.pipelineName = output.pipelineName @@ -5423,9 +5408,8 @@ public enum GetThirdPartyJobDetailsOutputError: Swift.Error, Swift.Equatable { extension GetThirdPartyJobDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetThirdPartyJobDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDetails = output.jobDetails } else { @@ -5501,9 +5485,8 @@ extension CodePipelineClientTypes { extension InvalidActionDeclarationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidActionDeclarationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5517,7 +5500,7 @@ extension InvalidActionDeclarationException { } /// The action declaration was specified in an invalid format. -public struct InvalidActionDeclarationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidActionDeclarationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5554,9 +5537,8 @@ extension InvalidActionDeclarationExceptionBody: Swift.Decodable { extension InvalidApprovalTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApprovalTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5570,7 +5552,7 @@ extension InvalidApprovalTokenException { } /// The approval request already received a response or has expired. -public struct InvalidApprovalTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApprovalTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5607,9 +5589,8 @@ extension InvalidApprovalTokenExceptionBody: Swift.Decodable { extension InvalidArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5623,7 +5604,7 @@ extension InvalidArnException { } /// The specified resource ARN is invalid. -public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5659,9 +5640,8 @@ extension InvalidArnExceptionBody: Swift.Decodable { extension InvalidBlockerDeclarationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidBlockerDeclarationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5675,7 +5655,7 @@ extension InvalidBlockerDeclarationException { } /// Reserved for future use. -public struct InvalidBlockerDeclarationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidBlockerDeclarationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5712,9 +5692,8 @@ extension InvalidBlockerDeclarationExceptionBody: Swift.Decodable { extension InvalidClientTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClientTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5728,7 +5707,7 @@ extension InvalidClientTokenException { } /// The client token was specified in an invalid format -public struct InvalidClientTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClientTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5765,9 +5744,8 @@ extension InvalidClientTokenExceptionBody: Swift.Decodable { extension InvalidJobException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidJobExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5781,7 +5759,7 @@ extension InvalidJobException { } /// The job was specified in an invalid format or cannot be found. -public struct InvalidJobException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidJobException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5818,9 +5796,8 @@ extension InvalidJobExceptionBody: Swift.Decodable { extension InvalidJobStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidJobStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5834,7 +5811,7 @@ extension InvalidJobStateException { } /// The job state was specified in an invalid format. -public struct InvalidJobStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidJobStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5871,9 +5848,8 @@ extension InvalidJobStateExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5887,7 +5863,7 @@ extension InvalidNextTokenException { } /// The next token was specified in an invalid format. Make sure that the next token you provide is the token returned by a previous call. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5924,9 +5900,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidNonceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNonceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5940,7 +5915,7 @@ extension InvalidNonceException { } /// The nonce was specified in an invalid format. -public struct InvalidNonceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNonceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5977,9 +5952,8 @@ extension InvalidNonceExceptionBody: Swift.Decodable { extension InvalidStageDeclarationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStageDeclarationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5993,7 +5967,7 @@ extension InvalidStageDeclarationException { } /// The stage declaration was specified in an invalid format. -public struct InvalidStageDeclarationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStageDeclarationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6030,9 +6004,8 @@ extension InvalidStageDeclarationExceptionBody: Swift.Decodable { extension InvalidStructureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStructureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6046,7 +6019,7 @@ extension InvalidStructureException { } /// The structure was specified in an invalid format. -public struct InvalidStructureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStructureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6083,9 +6056,8 @@ extension InvalidStructureExceptionBody: Swift.Decodable { extension InvalidTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6099,7 +6071,7 @@ extension InvalidTagsException { } /// The specified resource tags are invalid. -public struct InvalidTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6135,9 +6107,8 @@ extension InvalidTagsExceptionBody: Swift.Decodable { extension InvalidWebhookAuthenticationParametersException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidWebhookAuthenticationParametersExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6151,7 +6122,7 @@ extension InvalidWebhookAuthenticationParametersException { } /// The specified authentication type is in an invalid format. -public struct InvalidWebhookAuthenticationParametersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidWebhookAuthenticationParametersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6188,9 +6159,8 @@ extension InvalidWebhookAuthenticationParametersExceptionBody: Swift.Decodable { extension InvalidWebhookFilterPatternException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidWebhookFilterPatternExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6204,7 +6174,7 @@ extension InvalidWebhookFilterPatternException { } /// The specified event filter rule is in an invalid format. -public struct InvalidWebhookFilterPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidWebhookFilterPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6495,9 +6465,8 @@ extension CodePipelineClientTypes { extension JobNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: JobNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6511,7 +6480,7 @@ extension JobNotFoundException { } /// The job was specified in an invalid format or cannot be found. -public struct JobNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct JobNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6700,9 +6669,8 @@ extension CodePipelineClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6716,7 +6684,7 @@ extension LimitExceededException { } /// The number of pipelines associated with the AWS account has exceeded the limit allowed for the account. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6865,9 +6833,8 @@ public enum ListActionExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListActionExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActionExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionExecutionDetails = output.actionExecutionDetails self.nextToken = output.nextToken @@ -7021,9 +6988,8 @@ public enum ListActionTypesOutputError: Swift.Error, Swift.Equatable { extension ListActionTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActionTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionTypes = output.actionTypes self.nextToken = output.nextToken @@ -7182,9 +7148,8 @@ public enum ListPipelineExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListPipelineExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelineExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pipelineExecutionSummaries = output.pipelineExecutionSummaries @@ -7327,9 +7292,8 @@ public enum ListPipelinesOutputError: Swift.Error, Swift.Equatable { extension ListPipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pipelines = output.pipelines @@ -7488,9 +7452,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -7740,9 +7703,8 @@ public enum ListWebhooksOutputError: Swift.Error, Swift.Equatable { extension ListWebhooksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWebhooksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.webhooks = output.webhooks @@ -7800,9 +7762,8 @@ extension ListWebhooksOutputResponseBody: Swift.Decodable { extension NotLatestPipelineExecutionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotLatestPipelineExecutionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7816,7 +7777,7 @@ extension NotLatestPipelineExecutionException { } /// The stage has failed in a later run of the pipeline and the pipelineExecutionId associated with the request is out of date. -public struct NotLatestPipelineExecutionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotLatestPipelineExecutionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7889,9 +7850,8 @@ extension CodePipelineClientTypes { extension OutputVariablesSizeExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OutputVariablesSizeExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7905,7 +7865,7 @@ extension OutputVariablesSizeExceededException { } /// Exceeded the total size limit for all variables in the pipeline. -public struct OutputVariablesSizeExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OutputVariablesSizeExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8239,9 +8199,8 @@ extension CodePipelineClientTypes { extension PipelineExecutionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PipelineExecutionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8255,7 +8214,7 @@ extension PipelineExecutionNotFoundException { } /// The pipeline execution was specified in an invalid format or cannot be found, or an execution ID does not belong to the specified pipeline. -public struct PipelineExecutionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PipelineExecutionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8292,9 +8251,8 @@ extension PipelineExecutionNotFoundExceptionBody: Swift.Decodable { extension PipelineExecutionNotStoppableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PipelineExecutionNotStoppableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8308,7 +8266,7 @@ extension PipelineExecutionNotStoppableException { } /// Unable to stop the pipeline execution. The execution might already be in a Stopped state, or it might no longer be in progress. -public struct PipelineExecutionNotStoppableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PipelineExecutionNotStoppableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8565,9 +8523,8 @@ extension CodePipelineClientTypes { extension PipelineNameInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PipelineNameInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8581,7 +8538,7 @@ extension PipelineNameInUseException { } /// The specified pipeline name is already in use. -public struct PipelineNameInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PipelineNameInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8618,9 +8575,8 @@ extension PipelineNameInUseExceptionBody: Swift.Decodable { extension PipelineNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PipelineNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8634,7 +8590,7 @@ extension PipelineNotFoundException { } /// The pipeline was specified in an invalid format or cannot be found. -public struct PipelineNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PipelineNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8736,9 +8692,8 @@ extension CodePipelineClientTypes { extension PipelineVersionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PipelineVersionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8752,7 +8707,7 @@ extension PipelineVersionNotFoundException { } /// The pipeline version was specified in an invalid format or cannot be found. -public struct PipelineVersionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PipelineVersionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8898,9 +8853,8 @@ public enum PollForJobsOutputError: Swift.Error, Swift.Equatable { extension PollForJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PollForJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs } else { @@ -9034,9 +8988,8 @@ public enum PollForThirdPartyJobsOutputError: Swift.Error, Swift.Equatable { extension PollForThirdPartyJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PollForThirdPartyJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs } else { @@ -9201,9 +9154,8 @@ public enum PutActionRevisionOutputError: Swift.Error, Swift.Equatable { extension PutActionRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutActionRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.newRevision = output.newRevision self.pipelineExecutionId = output.pipelineExecutionId @@ -9386,9 +9338,8 @@ public enum PutApprovalResultOutputError: Swift.Error, Swift.Equatable { extension PutApprovalResultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutApprovalResultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvedAt = output.approvedAt } else { @@ -10030,9 +9981,8 @@ public enum PutWebhookOutputError: Swift.Error, Swift.Equatable { extension PutWebhookOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutWebhookOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webhook = output.webhook } else { @@ -10152,9 +10102,8 @@ public struct RegisterWebhookWithThirdPartyOutputResponse: Swift.Equatable { extension RequestFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10168,7 +10117,7 @@ extension RequestFailedException { } /// The request failed because of an unknown error, exception, or failure. -public struct RequestFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10204,9 +10153,8 @@ extension RequestFailedExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10220,7 +10168,7 @@ extension ResourceNotFoundException { } /// The resource was specified in an invalid format. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10377,9 +10325,8 @@ public enum RetryStageExecutionOutputError: Swift.Error, Swift.Equatable { extension RetryStageExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryStageExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionId = output.pipelineExecutionId } else { @@ -10784,9 +10731,8 @@ extension CodePipelineClientTypes { extension StageNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StageNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10800,7 +10746,7 @@ extension StageNotFoundException { } /// The stage was specified in an invalid format or cannot be found. -public struct StageNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StageNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10837,9 +10783,8 @@ extension StageNotFoundExceptionBody: Swift.Decodable { extension StageNotRetryableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StageNotRetryableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10853,7 +10798,7 @@ extension StageNotRetryableException { } /// Unable to retry. The pipeline structure or stage state might have changed while actions awaited retry, or the stage contains no failed actions. -public struct StageNotRetryableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StageNotRetryableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11125,9 +11070,8 @@ public enum StartPipelineExecutionOutputError: Swift.Error, Swift.Equatable { extension StartPipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartPipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionId = output.pipelineExecutionId } else { @@ -11317,9 +11261,8 @@ public enum StopPipelineExecutionOutputError: Swift.Error, Swift.Equatable { extension StopPipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopPipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionId = output.pipelineExecutionId } else { @@ -11754,9 +11697,8 @@ extension CodePipelineClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11770,7 +11712,7 @@ extension TooManyTagsException { } /// The tags limit for a resource has been exceeded. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12193,9 +12135,8 @@ public enum UpdatePipelineOutputError: Swift.Error, Swift.Equatable { extension UpdatePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline } else { @@ -12235,9 +12176,8 @@ extension UpdatePipelineOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12251,7 +12191,7 @@ extension ValidationException { } /// The validation was specified in an invalid format. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12531,7 +12471,7 @@ extension WebhookNotFoundException { } /// The specified webhook was entered in an invalid format or cannot be found. -public struct WebhookNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WebhookNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCodeStar/CodeStarClient.swift b/Sources/Services/AWSCodeStar/CodeStarClient.swift index b5a9dbc186b..6dc44882139 100644 --- a/Sources/Services/AWSCodeStar/CodeStarClient.swift +++ b/Sources/Services/AWSCodeStar/CodeStarClient.swift @@ -208,6 +208,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTeamMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTeamMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTeamMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTeamMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension CodeStarClient: CodeStarClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension CodeStarClient: CodeStarClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeStar/models/Models.swift b/Sources/Services/AWSCodeStar/models/Models.swift index a4edd13c69b..adf2a45dc0d 100644 --- a/Sources/Services/AWSCodeStar/models/Models.swift +++ b/Sources/Services/AWSCodeStar/models/Models.swift @@ -136,9 +136,8 @@ public enum AssociateTeamMemberOutputError: Swift.Error, Swift.Equatable { extension AssociateTeamMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTeamMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientRequestToken = output.clientRequestToken } else { @@ -341,9 +340,8 @@ extension CodeStarClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -357,7 +355,7 @@ extension ConcurrentModificationException { } /// Another modification is being made. That modification must complete before you can make your change. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -577,9 +575,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -770,9 +767,8 @@ extension CreateUserProfileOutputResponse: Swift.CustomDebugStringConvertible { extension CreateUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.displayName = output.displayName @@ -960,9 +956,8 @@ public enum DeleteProjectOutputError: Swift.Error, Swift.Equatable { extension DeleteProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectArn = output.projectArn self.stackId = output.stackId @@ -1081,9 +1076,8 @@ public enum DeleteUserProfileOutputError: Swift.Error, Swift.Equatable { extension DeleteUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userArn = output.userArn } else { @@ -1206,9 +1200,8 @@ extension DescribeProjectOutputResponse: Swift.CustomDebugStringConvertible { extension DescribeProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -1404,9 +1397,8 @@ extension DescribeUserProfileOutputResponse: Swift.CustomDebugStringConvertible extension DescribeUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.displayName = output.displayName @@ -1703,9 +1695,8 @@ extension CodeStarClientTypes { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1719,7 +1710,7 @@ extension InvalidNextTokenException { } /// The next token is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1755,9 +1746,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidServiceRoleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidServiceRoleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1771,7 +1761,7 @@ extension InvalidServiceRoleException { } /// The service role is not valid. -public struct InvalidServiceRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidServiceRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1807,9 +1797,8 @@ extension InvalidServiceRoleExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1823,7 +1812,7 @@ extension LimitExceededException { } /// A resource limit has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1942,9 +1931,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -2101,9 +2089,8 @@ public enum ListResourcesOutputError: Swift.Error, Swift.Equatable { extension ListResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resources = output.resources @@ -2259,9 +2246,8 @@ public enum ListTagsForProjectOutputError: Swift.Error, Swift.Equatable { extension ListTagsForProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -2417,9 +2403,8 @@ public enum ListTeamMembersOutputError: Swift.Error, Swift.Equatable { extension ListTeamMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTeamMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.teamMembers = output.teamMembers @@ -2561,9 +2546,8 @@ public enum ListUserProfilesOutputError: Swift.Error, Swift.Equatable { extension ListUserProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userProfiles = output.userProfiles @@ -2622,9 +2606,8 @@ extension ListUserProfilesOutputResponseBody: Swift.Decodable { extension ProjectAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProjectAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2638,7 +2621,7 @@ extension ProjectAlreadyExistsException { } /// An AWS CodeStar project with the same ID already exists in this region for the AWS account. AWS CodeStar project IDs must be unique within a region for the AWS account. -public struct ProjectAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProjectAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2674,9 +2657,8 @@ extension ProjectAlreadyExistsExceptionBody: Swift.Decodable { extension ProjectConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProjectConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2690,7 +2672,7 @@ extension ProjectConfigurationException { } /// Project configuration information is required but not specified. -public struct ProjectConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProjectConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2726,9 +2708,8 @@ extension ProjectConfigurationExceptionBody: Swift.Decodable { extension ProjectCreationFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProjectCreationFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2742,7 +2723,7 @@ extension ProjectCreationFailedException { } /// The project creation request was valid, but a nonspecific exception or error occurred during project creation. The project could not be created in AWS CodeStar. -public struct ProjectCreationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProjectCreationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2778,9 +2759,8 @@ extension ProjectCreationFailedExceptionBody: Swift.Decodable { extension ProjectNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProjectNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2794,7 +2774,7 @@ extension ProjectNotFoundException { } /// The specified AWS CodeStar project was not found. -public struct ProjectNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProjectNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3103,9 +3083,8 @@ public enum TagProjectOutputError: Swift.Error, Swift.Equatable { extension TagProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3210,9 +3189,8 @@ extension CodeStarClientTypes { extension TeamMemberAlreadyAssociatedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TeamMemberAlreadyAssociatedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3226,7 +3204,7 @@ extension TeamMemberAlreadyAssociatedException { } /// The team member is already associated with a role in this project. -public struct TeamMemberAlreadyAssociatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TeamMemberAlreadyAssociatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3262,9 +3240,8 @@ extension TeamMemberAlreadyAssociatedExceptionBody: Swift.Decodable { extension TeamMemberNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TeamMemberNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3278,7 +3255,7 @@ extension TeamMemberNotFoundException { } /// The specified team member was not found. -public struct TeamMemberNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TeamMemberNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3759,9 +3736,8 @@ public enum UpdateTeamMemberOutputError: Swift.Error, Swift.Equatable { extension UpdateTeamMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTeamMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectRole = output.projectRole self.remoteAccessAllowed = output.remoteAccessAllowed @@ -3938,9 +3914,8 @@ extension UpdateUserProfileOutputResponse: Swift.CustomDebugStringConvertible { extension UpdateUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.displayName = output.displayName @@ -4030,9 +4005,8 @@ extension UpdateUserProfileOutputResponseBody: Swift.Decodable { extension UserProfileAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserProfileAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4046,7 +4020,7 @@ extension UserProfileAlreadyExistsException { } /// A user profile with that name already exists in this region for the AWS account. AWS CodeStar user profile names must be unique within a region for the AWS account. -public struct UserProfileAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserProfileAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4082,9 +4056,8 @@ extension UserProfileAlreadyExistsExceptionBody: Swift.Decodable { extension UserProfileNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserProfileNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4098,7 +4071,7 @@ extension UserProfileNotFoundException { } /// The user profile was not found. -public struct UserProfileNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserProfileNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4204,9 +4177,8 @@ extension CodeStarClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4220,7 +4192,7 @@ extension ValidationException { } /// The specified input is either not valid, or it could not be validated. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCodeStarconnections/CodeStarconnectionsClient.swift b/Sources/Services/AWSCodeStarconnections/CodeStarconnectionsClient.swift index 96d8ac64316..5fb05e1665a 100644 --- a/Sources/Services/AWSCodeStarconnections/CodeStarconnectionsClient.swift +++ b/Sources/Services/AWSCodeStarconnections/CodeStarconnectionsClient.swift @@ -208,6 +208,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHosts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-connections") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CodeStarconnectionsClient: CodeStarconnectionsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeStarconnections/models/Models.swift b/Sources/Services/AWSCodeStarconnections/models/Models.swift index 04f83b02efa..a598feee816 100644 --- a/Sources/Services/AWSCodeStarconnections/models/Models.swift +++ b/Sources/Services/AWSCodeStarconnections/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ConflictException { } /// Two conflicting operations have been made on the same resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -298,9 +297,8 @@ public enum CreateConnectionOutputError: Swift.Error, Swift.Equatable { extension CreateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.tags = output.tags @@ -490,9 +488,8 @@ public enum CreateHostOutputError: Swift.Error, Swift.Equatable { extension CreateHostOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHostOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostArn = output.hostArn self.tags = output.tags @@ -783,9 +780,8 @@ public enum GetConnectionOutputError: Swift.Error, Swift.Equatable { extension GetConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -896,9 +892,8 @@ public enum GetHostOutputError: Swift.Error, Swift.Equatable { extension GetHostOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHostOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name self.providerEndpoint = output.providerEndpoint @@ -1072,9 +1067,8 @@ extension CodeStarconnectionsClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1088,7 +1082,7 @@ extension LimitExceededException { } /// Exceeded the maximum limit for connections. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1227,9 +1221,8 @@ public enum ListConnectionsOutputError: Swift.Error, Swift.Equatable { extension ListConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections self.nextToken = output.nextToken @@ -1366,9 +1359,8 @@ public enum ListHostsOutputError: Swift.Error, Swift.Equatable { extension ListHostsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHostsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hosts = output.hosts self.nextToken = output.nextToken @@ -1496,9 +1488,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1581,9 +1572,8 @@ extension CodeStarconnectionsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1597,7 +1587,7 @@ extension ResourceNotFoundException { } /// Resource not found. Verify the connection resource ARN and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1633,9 +1623,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1649,7 +1638,7 @@ extension ResourceUnavailableException { } /// Resource not found. Verify the ARN for the host resource and try again. -public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1839,9 +1828,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1855,7 +1843,7 @@ extension UnsupportedOperationException { } /// The operation is not supported. Check the connection status and try again. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCodeartifact/CodeartifactClient.swift b/Sources/Services/AWSCodeartifact/CodeartifactClient.swift index 7218de93239..2e4750a066f 100644 --- a/Sources/Services/AWSCodeartifact/CodeartifactClient.swift +++ b/Sources/Services/AWSCodeartifact/CodeartifactClient.swift @@ -208,6 +208,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateExternalConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyPackageVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -257,7 +259,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -277,6 +279,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -329,7 +333,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -349,6 +353,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -362,7 +367,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -382,6 +387,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomainPermissionsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +401,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +421,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -428,7 +435,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -448,6 +455,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePackageVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -497,7 +506,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -517,6 +526,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRepositoryPermissionsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -530,7 +540,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -550,6 +560,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -563,7 +574,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -583,6 +594,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -596,7 +608,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +628,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackageVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +642,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -649,6 +662,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -662,7 +676,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -682,6 +696,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateExternalConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -695,7 +710,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -715,6 +730,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disposePackageVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -731,7 +747,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -751,6 +767,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAuthorizationToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +781,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +801,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainPermissionsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -797,7 +815,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -817,6 +835,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPackageVersionAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -830,7 +849,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -850,6 +869,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPackageVersionReadme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -863,7 +883,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -891,6 +911,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepositoryEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -904,7 +925,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -924,6 +945,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepositoryPermissionsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -937,7 +959,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -957,6 +979,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -972,7 +995,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -992,6 +1015,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackageVersionAssets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1005,7 +1029,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1025,6 +1049,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackageVersionDependencies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1038,7 +1063,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1058,6 +1083,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackageVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1071,7 +1097,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1091,6 +1117,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1131,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1151,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1165,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1185,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRepositoriesInDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1170,7 +1199,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1190,6 +1219,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1203,7 +1233,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1223,6 +1253,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishPackageVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1271,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1291,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDomainPermissionsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1307,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1327,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPackageOriginConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1311,7 +1344,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1331,6 +1364,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRepositoryPermissionsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1381,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1367,6 +1401,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1383,7 +1418,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1403,6 +1438,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1419,7 +1455,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1439,6 +1475,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePackageVersionsStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1455,7 +1492,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1475,6 +1512,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codeartifact") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1491,7 +1529,7 @@ extension CodeartifactClient: CodeartifactClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodeartifact/models/Models.swift b/Sources/Services/AWSCodeartifact/models/Models.swift index 7b4ca9cf820..e3d6039bcac 100644 --- a/Sources/Services/AWSCodeartifact/models/Models.swift +++ b/Sources/Services/AWSCodeartifact/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The operation did not succeed because of an unauthorized access attempt. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -312,9 +311,8 @@ public enum AssociateExternalConnectionOutputError: Swift.Error, Swift.Equatable extension AssociateExternalConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateExternalConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -353,9 +351,8 @@ extension AssociateExternalConnectionOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -373,7 +370,7 @@ extension ConflictException { } /// The operation did not succeed because prerequisites are not met. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -655,9 +652,8 @@ public enum CopyPackageVersionsOutputError: Swift.Error, Swift.Equatable { extension CopyPackageVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyPackageVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedVersions = output.failedVersions self.successfulVersions = output.successfulVersions @@ -861,9 +857,8 @@ public enum CreateDomainOutputError: Swift.Error, Swift.Equatable { extension CreateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domain = output.domain } else { @@ -1070,9 +1065,8 @@ public enum CreateRepositoryOutputError: Swift.Error, Swift.Equatable { extension CreateRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -1192,9 +1186,8 @@ public enum DeleteDomainOutputError: Swift.Error, Swift.Equatable { extension DeleteDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domain = output.domain } else { @@ -1324,9 +1317,8 @@ public enum DeleteDomainPermissionsPolicyOutputError: Swift.Error, Swift.Equatab extension DeleteDomainPermissionsPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainPermissionsPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -1497,9 +1489,8 @@ public enum DeletePackageOutputError: Swift.Error, Swift.Equatable { extension DeletePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletedPackage = output.deletedPackage } else { @@ -1719,9 +1710,8 @@ public enum DeletePackageVersionsOutputError: Swift.Error, Swift.Equatable { extension DeletePackageVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePackageVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedVersions = output.failedVersions self.successfulVersions = output.successfulVersions @@ -1894,9 +1884,8 @@ public enum DeleteRepositoryOutputError: Swift.Error, Swift.Equatable { extension DeleteRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -2037,9 +2026,8 @@ public enum DeleteRepositoryPermissionsPolicyOutputError: Swift.Error, Swift.Equ extension DeleteRepositoryPermissionsPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRepositoryPermissionsPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -2159,9 +2147,8 @@ public enum DescribeDomainOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domain = output.domain } else { @@ -2330,9 +2317,8 @@ public enum DescribePackageOutputError: Swift.Error, Swift.Equatable { extension DescribePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.package = output.package } else { @@ -2515,9 +2501,8 @@ public enum DescribePackageVersionOutputError: Swift.Error, Swift.Equatable { extension DescribePackageVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackageVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.packageVersion = output.packageVersion } else { @@ -2649,9 +2634,8 @@ public enum DescribeRepositoryOutputError: Swift.Error, Swift.Equatable { extension DescribeRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -2797,9 +2781,8 @@ public enum DisassociateExternalConnectionOutputError: Swift.Error, Swift.Equata extension DisassociateExternalConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateExternalConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -3043,9 +3026,8 @@ public enum DisposePackageVersionsOutputError: Swift.Error, Swift.Equatable { extension DisposePackageVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisposePackageVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedVersions = output.failedVersions self.successfulVersions = output.successfulVersions @@ -3519,9 +3501,8 @@ public enum GetAuthorizationTokenOutputError: Swift.Error, Swift.Equatable { extension GetAuthorizationTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAuthorizationTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizationToken = output.authorizationToken self.expiration = output.expiration @@ -3651,9 +3632,8 @@ public enum GetDomainPermissionsPolicyOutputError: Swift.Error, Swift.Equatable extension GetDomainPermissionsPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainPermissionsPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -3869,9 +3849,12 @@ extension GetPackageVersionAssetOutputResponse: ClientRuntime.HttpResponseBindin } else { self.packageVersionRevision = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.asset = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.asset = .data(data) + case .stream(let stream): + self.asset = .stream(stream) + case .none: self.asset = nil } } @@ -4056,9 +4039,8 @@ public enum GetPackageVersionReadmeOutputError: Swift.Error, Swift.Equatable { extension GetPackageVersionReadmeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPackageVersionReadmeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.format = output.format self.namespace = output.namespace @@ -4256,9 +4238,8 @@ public enum GetRepositoryEndpointOutputError: Swift.Error, Swift.Equatable { extension GetRepositoryEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositoryEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repositoryEndpoint = output.repositoryEndpoint } else { @@ -4389,9 +4370,8 @@ public enum GetRepositoryPermissionsPolicyOutputError: Swift.Error, Swift.Equata extension GetRepositoryPermissionsPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositoryPermissionsPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -4468,9 +4448,8 @@ extension CodeartifactClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4484,7 +4463,7 @@ extension InternalServerException { } /// The operation did not succeed because of an error that occurred inside CodeArtifact. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4653,9 +4632,8 @@ public enum ListDomainsOutputError: Swift.Error, Swift.Equatable { extension ListDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domains = output.domains self.nextToken = output.nextToken @@ -4870,9 +4848,8 @@ public enum ListPackageVersionAssetsOutputError: Swift.Error, Swift.Equatable { extension ListPackageVersionAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackageVersionAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assets = output.assets self.format = output.format @@ -5135,9 +5112,8 @@ public enum ListPackageVersionDependenciesOutputError: Swift.Error, Swift.Equata extension ListPackageVersionDependenciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackageVersionDependenciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dependencies = output.dependencies self.format = output.format @@ -5421,9 +5397,8 @@ public enum ListPackageVersionsOutputError: Swift.Error, Swift.Equatable { extension ListPackageVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackageVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultDisplayVersion = output.defaultDisplayVersion self.format = output.format @@ -5687,9 +5662,8 @@ public enum ListPackagesOutputError: Swift.Error, Swift.Equatable { extension ListPackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packages = output.packages @@ -5860,9 +5834,8 @@ public enum ListRepositoriesInDomainOutputError: Swift.Error, Swift.Equatable { extension ListRepositoriesInDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRepositoriesInDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.repositories = output.repositories @@ -6004,9 +5977,8 @@ public enum ListRepositoriesOutputError: Swift.Error, Swift.Equatable { extension ListRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.repositories = output.repositories @@ -6135,9 +6107,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7041,9 +7012,8 @@ public struct PublishPackageVersionInputBodyMiddleware: ClientRuntime.Middleware Self.Context == H.Context { if let assetContent = input.operationInput.assetContent { - let assetContentdata = assetContent - let assetContentbody = ClientRuntime.HttpBody.stream(assetContentdata) - input.builder.withBody(assetContentbody) + let assetContentBody = ClientRuntime.HttpBody(byteStream: assetContent) + input.builder.withBody(assetContentBody) } return try await next.handle(context: context, input: input) } @@ -7061,7 +7031,7 @@ extension PublishPackageVersionInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let assetContent = self.assetContent { - try encodeContainer.encode(assetContent.toBytes().getData(), forKey: .assetContent) + try encodeContainer.encode(assetContent, forKey: .assetContent) } } } @@ -7251,9 +7221,8 @@ public enum PublishPackageVersionOutputError: Swift.Error, Swift.Equatable { extension PublishPackageVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishPackageVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.asset = output.asset self.format = output.format @@ -7471,9 +7440,8 @@ public enum PutDomainPermissionsPolicyOutputError: Swift.Error, Swift.Equatable extension PutDomainPermissionsPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutDomainPermissionsPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -7667,9 +7635,8 @@ public enum PutPackageOriginConfigurationOutputError: Swift.Error, Swift.Equatab extension PutPackageOriginConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutPackageOriginConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.originConfiguration = output.originConfiguration } else { @@ -7841,9 +7808,8 @@ public enum PutRepositoryPermissionsPolicyOutputError: Swift.Error, Swift.Equata extension PutRepositoryPermissionsPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRepositoryPermissionsPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -8179,9 +8145,8 @@ extension CodeartifactClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -8199,7 +8164,7 @@ extension ResourceNotFoundException { } /// The operation did not succeed because the resource requested is not found in the service. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8348,9 +8313,8 @@ extension CodeartifactClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -8368,7 +8332,7 @@ extension ServiceQuotaExceededException { } /// The operation did not succeed because it would have exceeded a service limit for your account. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8638,9 +8602,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8654,7 +8617,7 @@ extension ThrottlingException { } /// The operation did not succeed because too many requests are sent to the service. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9031,9 +8994,8 @@ public enum UpdatePackageVersionsStatusOutputError: Swift.Error, Swift.Equatable extension UpdatePackageVersionsStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePackageVersionsStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedVersions = output.failedVersions self.successfulVersions = output.successfulVersions @@ -9244,9 +9206,8 @@ public enum UpdateRepositoryOutputError: Swift.Error, Swift.Equatable { extension UpdateRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -9356,9 +9317,8 @@ extension CodeartifactClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -9374,7 +9334,7 @@ extension ValidationException { } /// The operation did not succeed because a parameter in the request was sent with an invalid value. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCodestarnotifications/CodestarnotificationsClient.swift b/Sources/Services/AWSCodestarnotifications/CodestarnotificationsClient.swift index 833a366df73..9d226faa628 100644 --- a/Sources/Services/AWSCodestarnotifications/CodestarnotificationsClient.swift +++ b/Sources/Services/AWSCodestarnotifications/CodestarnotificationsClient.swift @@ -208,6 +208,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNotificationRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNotificationRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -266,7 +268,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -301,7 +304,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -321,6 +324,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNotificationRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +360,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +376,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -391,6 +396,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotificationRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -406,7 +412,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -426,6 +432,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -441,7 +448,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -461,6 +468,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "subscribe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -511,7 +520,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -531,6 +540,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -546,7 +556,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -566,6 +576,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unsubscribe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -581,7 +592,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -601,6 +612,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -614,7 +626,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -634,6 +646,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "codestar-notifications") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNotificationRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -649,7 +662,7 @@ extension CodestarnotificationsClient: CodestarnotificationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCodestarnotifications/models/Models.swift b/Sources/Services/AWSCodestarnotifications/models/Models.swift index cb70d59b2fb..aa119376b6c 100644 --- a/Sources/Services/AWSCodestarnotifications/models/Models.swift +++ b/Sources/Services/AWSCodestarnotifications/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// AWS CodeStar Notifications can't create the notification rule because you do not have sufficient permissions. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension ConcurrentModificationException { } /// AWS CodeStar Notifications can't complete the request because the resource is being modified by another process. Wait a few minutes and try again. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -108,9 +106,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -124,7 +121,7 @@ extension ConfigurationException { } /// Some or all of the configuration is incomplete, missing, or not valid. -public struct ConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -369,9 +366,8 @@ public enum CreateNotificationRuleOutputError: Swift.Error, Swift.Equatable { extension CreateNotificationRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNotificationRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -484,9 +480,8 @@ public enum DeleteNotificationRuleOutputError: Swift.Error, Swift.Equatable { extension DeleteNotificationRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNotificationRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -699,9 +694,8 @@ extension DescribeNotificationRuleOutputResponse: Swift.CustomDebugStringConvert extension DescribeNotificationRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNotificationRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdBy = output.createdBy @@ -965,9 +959,8 @@ extension CodestarnotificationsClientTypes { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -981,7 +974,7 @@ extension InvalidNextTokenException { } /// The value for the enumeration token used in the request to return the next batch of the results is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1017,9 +1010,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1033,7 +1025,7 @@ extension LimitExceededException { } /// One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, notification rules, notifications, resources, and targets. For more information, see Limits. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1255,9 +1247,8 @@ public enum ListEventTypesOutputError: Swift.Error, Swift.Equatable { extension ListEventTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTypes = output.eventTypes self.nextToken = output.nextToken @@ -1507,9 +1498,8 @@ public enum ListNotificationRulesOutputError: Swift.Error, Swift.Equatable { extension ListNotificationRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotificationRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notificationRules = output.notificationRules @@ -1639,9 +1629,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1878,9 +1867,8 @@ public enum ListTargetsOutputError: Swift.Error, Swift.Equatable { extension ListTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.targets = output.targets @@ -2015,9 +2003,8 @@ extension CodestarnotificationsClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2031,7 +2018,7 @@ extension ResourceAlreadyExistsException { } /// A resource with the same name or ID already exists. Notification rule names must be unique in your Amazon Web Services account. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2067,9 +2054,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2083,7 +2069,7 @@ extension ResourceNotFoundException { } /// AWS CodeStar Notifications can't find a resource that matches the provided ARN. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2218,9 +2204,8 @@ public enum SubscribeOutputError: Swift.Error, Swift.Equatable { extension SubscribeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubscribeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -2360,9 +2345,8 @@ public enum TagResourceOutputError: Swift.Error, Swift.Equatable { extension TagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2657,9 +2641,8 @@ public enum UnsubscribeOutputError: Swift.Error, Swift.Equatable { extension UnsubscribeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsubscribeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -2963,9 +2946,8 @@ public struct UpdateNotificationRuleOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2979,7 +2961,7 @@ extension ValidationException { } /// One or more parameter values are not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCognitoIdentity/CognitoIdentityClient.swift b/Sources/Services/AWSCognitoIdentity/CognitoIdentityClient.swift index 5911acdc2c2..3cd737ec183 100644 --- a/Sources/Services/AWSCognitoIdentity/CognitoIdentityClient.swift +++ b/Sources/Services/AWSCognitoIdentity/CognitoIdentityClient.swift @@ -221,6 +221,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIdentityPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -237,7 +238,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -257,6 +258,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIdentities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -273,7 +275,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -293,6 +295,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIdentityPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -309,7 +312,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -329,6 +332,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -345,7 +349,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -365,6 +369,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdentityPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -381,7 +386,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -399,6 +404,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getCredentialsForIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -413,7 +419,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -431,6 +437,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -445,7 +452,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -465,6 +472,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityPoolRoles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -481,7 +489,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -499,6 +507,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getOpenIdToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -513,7 +522,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -533,6 +542,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOpenIdTokenForDeveloperIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +559,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPrincipalTagAttributeMap") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +596,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +616,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -621,7 +633,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -641,6 +653,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentityPools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -657,7 +670,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -677,6 +690,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -693,7 +707,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +727,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "lookupDeveloperIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -729,7 +744,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -749,6 +764,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergeDeveloperIdentities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -765,7 +781,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -785,6 +801,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIdentityPoolRoles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -801,7 +818,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -821,6 +838,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setPrincipalTagAttributeMap") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -837,7 +855,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -857,6 +875,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -873,7 +892,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -893,6 +912,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unlinkDeveloperIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -909,7 +929,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -927,6 +947,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "unlinkIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -941,7 +962,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -961,6 +982,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -977,7 +999,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -997,6 +1019,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-identity") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIdentityPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1013,7 +1036,7 @@ extension CognitoIdentityClient: CognitoIdentityClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCognitoIdentity/models/Models.swift b/Sources/Services/AWSCognitoIdentity/models/Models.swift index 5f0354d6019..5640e97049f 100644 --- a/Sources/Services/AWSCognitoIdentity/models/Models.swift +++ b/Sources/Services/AWSCognitoIdentity/models/Models.swift @@ -91,9 +91,8 @@ extension CognitoIdentityClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -107,7 +106,7 @@ extension ConcurrentModificationException { } /// Thrown if there are parallel requests to modify a resource. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -382,9 +381,8 @@ public enum CreateIdentityPoolOutputError: Swift.Error, Swift.Equatable { extension CreateIdentityPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIdentityPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowClassicFlow = output.allowClassicFlow self.allowUnauthenticatedIdentities = output.allowUnauthenticatedIdentities @@ -714,9 +712,8 @@ public enum DeleteIdentitiesOutputError: Swift.Error, Swift.Equatable { extension DeleteIdentitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIdentitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedIdentityIds = output.unprocessedIdentityIds } else { @@ -933,9 +930,8 @@ public enum DescribeIdentityOutputError: Swift.Error, Swift.Equatable { extension DescribeIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.identityId = output.identityId @@ -1093,9 +1089,8 @@ public enum DescribeIdentityPoolOutputError: Swift.Error, Swift.Equatable { extension DescribeIdentityPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdentityPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowClassicFlow = output.allowClassicFlow self.allowUnauthenticatedIdentities = output.allowUnauthenticatedIdentities @@ -1273,9 +1268,8 @@ extension DescribeIdentityPoolOutputResponseBody: Swift.Decodable { extension DeveloperUserAlreadyRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeveloperUserAlreadyRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1289,7 +1283,7 @@ extension DeveloperUserAlreadyRegisteredException { } /// The provided developer user identifier is already registered with Cognito under a different identity ID. -public struct DeveloperUserAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeveloperUserAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1358,9 +1352,8 @@ extension CognitoIdentityClientTypes { extension ExternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1374,7 +1367,7 @@ extension ExternalServiceException { } /// An exception thrown when a dependent service such as Facebook or Twitter is not responding -public struct ExternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1532,9 +1525,8 @@ public enum GetCredentialsForIdentityOutputError: Swift.Error, Swift.Equatable { extension GetCredentialsForIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCredentialsForIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.credentials = output.credentials self.identityId = output.identityId @@ -1717,9 +1709,8 @@ public enum GetIdOutputError: Swift.Error, Swift.Equatable { extension GetIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityId = output.identityId } else { @@ -1840,9 +1831,8 @@ public enum GetIdentityPoolRolesOutputError: Swift.Error, Swift.Equatable { extension GetIdentityPoolRolesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityPoolRolesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityPoolId = output.identityPoolId self.roleMappings = output.roleMappings @@ -2076,9 +2066,8 @@ public enum GetOpenIdTokenForDeveloperIdentityOutputError: Swift.Error, Swift.Eq extension GetOpenIdTokenForDeveloperIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOpenIdTokenForDeveloperIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityId = output.identityId self.token = output.token @@ -2235,9 +2224,8 @@ public enum GetOpenIdTokenOutputError: Swift.Error, Swift.Equatable { extension GetOpenIdTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOpenIdTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityId = output.identityId self.token = output.token @@ -2378,9 +2366,8 @@ public enum GetPrincipalTagAttributeMapOutputError: Swift.Error, Swift.Equatable extension GetPrincipalTagAttributeMapOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPrincipalTagAttributeMapOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityPoolId = output.identityPoolId self.identityProviderName = output.identityProviderName @@ -2580,9 +2567,8 @@ extension CognitoIdentityClientTypes { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2596,7 +2582,7 @@ extension InternalErrorException { } /// Thrown when the service encounters an error during processing the request. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2633,9 +2619,8 @@ extension InternalErrorExceptionBody: Swift.Decodable { extension InvalidIdentityPoolConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidIdentityPoolConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2649,7 +2634,7 @@ extension InvalidIdentityPoolConfigurationException { } /// Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails. -public struct InvalidIdentityPoolConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidIdentityPoolConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2686,9 +2671,8 @@ extension InvalidIdentityPoolConfigurationExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2702,7 +2686,7 @@ extension InvalidParameterException { } /// Thrown for missing or bad input parameter(s). -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2739,9 +2723,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2755,7 +2738,7 @@ extension LimitExceededException { } /// Thrown when the total number of user pools has exceeded a preset limit. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2908,9 +2891,8 @@ public enum ListIdentitiesOutputError: Swift.Error, Swift.Equatable { extension ListIdentitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identities = output.identities self.identityPoolId = output.identityPoolId @@ -3070,9 +3052,8 @@ public enum ListIdentityPoolsOutputError: Swift.Error, Swift.Equatable { extension ListIdentityPoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentityPoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityPools = output.identityPools self.nextToken = output.nextToken @@ -3209,9 +3190,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3388,9 +3368,8 @@ public enum LookupDeveloperIdentityOutputError: Swift.Error, Swift.Equatable { extension LookupDeveloperIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LookupDeveloperIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.developerUserIdentifierList = output.developerUserIdentifierList self.identityId = output.identityId @@ -3686,9 +3665,8 @@ public enum MergeDeveloperIdentitiesOutputError: Swift.Error, Swift.Equatable { extension MergeDeveloperIdentitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergeDeveloperIdentitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityId = output.identityId } else { @@ -3728,9 +3706,8 @@ extension MergeDeveloperIdentitiesOutputResponseBody: Swift.Decodable { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAuthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3744,7 +3721,7 @@ extension NotAuthorizedException { } /// Thrown when a user is not authorized to access the requested resource. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3781,9 +3758,8 @@ extension NotAuthorizedExceptionBody: Swift.Decodable { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3797,7 +3773,7 @@ extension ResourceConflictException { } /// Thrown when a user tries to use a login which is already linked to another account. -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3834,9 +3810,8 @@ extension ResourceConflictExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3850,7 +3825,7 @@ extension ResourceNotFoundException { } /// Thrown when the requested resource (for example, a dataset or record) does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4292,9 +4267,8 @@ public enum SetPrincipalTagAttributeMapOutputError: Swift.Error, Swift.Equatable extension SetPrincipalTagAttributeMapOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetPrincipalTagAttributeMapOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityPoolId = output.identityPoolId self.identityProviderName = output.identityProviderName @@ -4485,9 +4459,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4501,7 +4474,7 @@ extension TooManyRequestsException { } /// Thrown when a request is throttled. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5224,9 +5197,8 @@ public enum UpdateIdentityPoolOutputError: Swift.Error, Swift.Equatable { extension UpdateIdentityPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIdentityPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowClassicFlow = output.allowClassicFlow self.allowUnauthenticatedIdentities = output.allowUnauthenticatedIdentities diff --git a/Sources/Services/AWSCognitoIdentityProvider/CognitoIdentityProviderClient.swift b/Sources/Services/AWSCognitoIdentityProvider/CognitoIdentityProviderClient.swift index f9be71c5b70..01a39180b92 100644 --- a/Sources/Services/AWSCognitoIdentityProvider/CognitoIdentityProviderClient.swift +++ b/Sources/Services/AWSCognitoIdentityProvider/CognitoIdentityProviderClient.swift @@ -208,6 +208,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addCustomAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminAddUserToGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminConfirmSignUp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminCreateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminDeleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminDeleteUserAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminDisableProviderForUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminDisableUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminEnableUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminForgetDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminGetDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminGetUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminInitiateAuth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminLinkProviderForUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminListDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminListGroupsForUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminListUserAuthEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminRemoveUserFromGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminResetUserPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminRespondToAuthChallenge") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminSetUserMFAPreference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminSetUserPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminSetUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminUpdateAuthEventFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminUpdateDeviceStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminUpdateUserAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "adminUserGlobalSignOut") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1178,6 +1205,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "associateSoftwareToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1192,7 +1220,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1210,6 +1238,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "changePassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1224,7 +1253,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1242,6 +1271,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "confirmDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1256,7 +1286,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1274,6 +1304,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "confirmForgotPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1288,7 +1319,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1306,6 +1337,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "confirmSignUp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1320,7 +1352,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1372,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1389,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1409,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1392,7 +1426,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1412,6 +1446,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourceServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1463,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1483,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1464,7 +1500,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1484,6 +1520,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1500,7 +1537,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1520,6 +1557,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserPoolClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1536,7 +1574,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1556,6 +1594,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserPoolDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1572,7 +1611,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1592,6 +1631,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1608,7 +1648,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1628,6 +1668,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1644,7 +1685,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1664,6 +1705,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourceServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1680,7 +1722,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1698,6 +1740,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1712,7 +1755,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1730,6 +1773,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1744,7 +1788,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1764,6 +1808,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1780,7 +1825,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1800,6 +1845,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserPoolClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1816,7 +1862,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1836,6 +1882,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserPoolDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1852,7 +1899,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1919,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1888,7 +1936,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1908,6 +1956,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourceServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1924,7 +1973,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1944,6 +1993,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRiskConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1960,7 +2010,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1980,6 +2030,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1996,7 +2047,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2016,6 +2067,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2032,7 +2084,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2052,6 +2104,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserPoolClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2068,7 +2121,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2088,6 +2141,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserPoolDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2104,7 +2158,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2122,6 +2176,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "forgetDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2136,7 +2191,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2154,6 +2209,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "forgotPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2224,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2244,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCSVHeader") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2204,7 +2261,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2222,6 +2279,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2236,7 +2294,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2256,6 +2314,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2272,7 +2331,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2292,6 +2351,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityProviderByIdentifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2308,7 +2368,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2328,6 +2388,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSigningCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2344,7 +2405,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2364,6 +2425,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUICustomization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2380,7 +2442,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2398,6 +2460,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2412,7 +2475,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2430,6 +2493,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getUserAttributeVerificationCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2444,7 +2508,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2464,6 +2528,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserPoolMfaConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2480,7 +2545,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2498,6 +2563,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "globalSignOut") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2512,7 +2578,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2530,6 +2596,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "initiateAuth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2544,7 +2611,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2562,6 +2629,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2576,7 +2644,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2596,6 +2664,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2612,7 +2681,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2632,6 +2701,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentityProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2648,7 +2718,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2668,6 +2738,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2684,7 +2755,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2704,6 +2775,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2720,7 +2792,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2740,6 +2812,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2756,7 +2829,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2776,6 +2849,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserPoolClients") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2792,7 +2866,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2812,6 +2886,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserPools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2828,7 +2903,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2848,6 +2923,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2864,7 +2940,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2884,6 +2960,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsersInGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2900,7 +2977,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2918,6 +2995,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "resendConfirmationCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2932,7 +3010,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2950,6 +3028,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "respondToAuthChallenge") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2964,7 +3043,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2982,6 +3061,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "revokeToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2996,7 +3076,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3016,6 +3096,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setRiskConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3032,7 +3113,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3052,6 +3133,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setUICustomization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3068,7 +3150,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3086,6 +3168,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "setUserMFAPreference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3100,7 +3183,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3120,6 +3203,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setUserPoolMfaConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3136,7 +3220,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3154,6 +3238,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "setUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3168,7 +3253,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3186,6 +3271,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "signUp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3200,7 +3286,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3220,6 +3306,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startUserImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3236,7 +3323,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3256,6 +3343,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopUserImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3272,7 +3360,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3292,6 +3380,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3308,7 +3397,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3328,6 +3417,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3344,7 +3434,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3362,6 +3452,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "updateAuthEventFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3376,7 +3467,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3394,6 +3485,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeviceStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3408,7 +3500,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3428,6 +3520,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3444,7 +3537,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3464,6 +3557,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3480,7 +3574,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3500,6 +3594,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3516,7 +3611,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3534,6 +3629,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3548,7 +3644,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3568,6 +3664,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3584,7 +3681,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3604,6 +3701,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserPoolClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3620,7 +3718,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3640,6 +3738,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-idp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserPoolDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3656,7 +3755,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3674,6 +3773,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "verifySoftwareToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3688,7 +3788,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3706,6 +3806,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "verifyUserAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3720,7 +3821,7 @@ extension CognitoIdentityProviderClient: CognitoIdentityProviderClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCognitoIdentityProvider/models/Models.swift b/Sources/Services/AWSCognitoIdentityProvider/models/Models.swift index a9202fb1e82..5e5488f5dea 100644 --- a/Sources/Services/AWSCognitoIdentityProvider/models/Models.swift +++ b/Sources/Services/AWSCognitoIdentityProvider/models/Models.swift @@ -949,9 +949,8 @@ public enum AdminCreateUserOutputError: Swift.Error, Swift.Equatable { extension AdminCreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdminCreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -1796,9 +1795,8 @@ public enum AdminGetDeviceOutputError: Swift.Error, Swift.Equatable { extension AdminGetDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdminGetDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.device = output.device } else { @@ -1943,9 +1941,8 @@ extension AdminGetUserOutputResponse: Swift.CustomDebugStringConvertible { extension AdminGetUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdminGetUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.enabled = output.enabled self.mfaOptions = output.mfaOptions @@ -2364,9 +2361,8 @@ public enum AdminInitiateAuthOutputError: Swift.Error, Swift.Equatable { extension AdminInitiateAuthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdminInitiateAuthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationResult = output.authenticationResult self.challengeName = output.challengeName @@ -2708,9 +2704,8 @@ public enum AdminListDevicesOutputError: Swift.Error, Swift.Equatable { extension AdminListDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdminListDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.paginationToken = output.paginationToken @@ -2891,9 +2886,8 @@ public enum AdminListGroupsForUserOutputError: Swift.Error, Swift.Equatable { extension AdminListGroupsForUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdminListGroupsForUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.nextToken = output.nextToken @@ -3075,9 +3069,8 @@ public enum AdminListUserAuthEventsOutputError: Swift.Error, Swift.Equatable { extension AdminListUserAuthEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdminListUserAuthEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authEvents = output.authEvents self.nextToken = output.nextToken @@ -3672,9 +3665,8 @@ public enum AdminRespondToAuthChallengeOutputError: Swift.Error, Swift.Equatable extension AdminRespondToAuthChallengeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdminRespondToAuthChallengeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationResult = output.authenticationResult self.challengeName = output.challengeName @@ -4787,9 +4779,8 @@ extension CognitoIdentityProviderClientTypes { extension AliasExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AliasExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4803,7 +4794,7 @@ extension AliasExistsException { } /// This exception is thrown when a user tries to confirm the account with an email address or phone number that has already been supplied as an alias for a different user profile. This exception indicates that an account with this email address or phone already exists in a user pool that you've configured to use email address or phone number as a sign-in alias. -public struct AliasExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AliasExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5053,9 +5044,8 @@ extension AssociateSoftwareTokenOutputResponse: Swift.CustomDebugStringConvertib extension AssociateSoftwareTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateSoftwareTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.secretCode = output.secretCode self.session = output.session @@ -5800,9 +5790,8 @@ extension CognitoIdentityProviderClientTypes { extension CodeDeliveryFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CodeDeliveryFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5816,7 +5805,7 @@ extension CodeDeliveryFailureException { } /// This exception is thrown when a verification code fails to deliver successfully. -public struct CodeDeliveryFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CodeDeliveryFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5853,9 +5842,8 @@ extension CodeDeliveryFailureExceptionBody: Swift.Decodable { extension CodeMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CodeMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5869,7 +5857,7 @@ extension CodeMismatchException { } /// This exception is thrown if the provided code doesn't match what the server was expecting. -public struct CodeMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CodeMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6032,9 +6020,8 @@ extension CognitoIdentityProviderClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6048,7 +6035,7 @@ extension ConcurrentModificationException { } /// This exception is thrown if two or more modifications are happening concurrently. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6222,9 +6209,8 @@ public enum ConfirmDeviceOutputError: Swift.Error, Swift.Equatable { extension ConfirmDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfirmDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userConfirmationNecessary = output.userConfirmationNecessary } else { @@ -6927,9 +6913,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -7229,9 +7214,8 @@ public enum CreateIdentityProviderOutputError: Swift.Error, Swift.Equatable { extension CreateIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProvider = output.identityProvider } else { @@ -7401,9 +7385,8 @@ public enum CreateResourceServerOutputError: Swift.Error, Swift.Equatable { extension CreateResourceServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceServer = output.resourceServer } else { @@ -7552,9 +7535,8 @@ public enum CreateUserImportJobOutputError: Swift.Error, Swift.Equatable { extension CreateUserImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userImportJob = output.userImportJob } else { @@ -8063,9 +8045,8 @@ public enum CreateUserPoolClientOutputError: Swift.Error, Swift.Equatable { extension CreateUserPoolClientOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserPoolClientOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userPoolClient = output.userPoolClient } else { @@ -8208,9 +8189,8 @@ public enum CreateUserPoolDomainOutputError: Swift.Error, Swift.Equatable { extension CreateUserPoolDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserPoolDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudFrontDomain = output.cloudFrontDomain } else { @@ -8660,9 +8640,8 @@ public enum CreateUserPoolOutputError: Swift.Error, Swift.Equatable { extension CreateUserPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userPool = output.userPool } else { @@ -9913,9 +9892,8 @@ public enum DescribeIdentityProviderOutputError: Swift.Error, Swift.Equatable { extension DescribeIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProvider = output.identityProvider } else { @@ -10046,9 +10024,8 @@ public enum DescribeResourceServerOutputError: Swift.Error, Swift.Equatable { extension DescribeResourceServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourceServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceServer = output.resourceServer } else { @@ -10185,9 +10162,8 @@ public enum DescribeRiskConfigurationOutputError: Swift.Error, Swift.Equatable { extension DescribeRiskConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRiskConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.riskConfiguration = output.riskConfiguration } else { @@ -10319,9 +10295,8 @@ public enum DescribeUserImportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeUserImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userImportJob = output.userImportJob } else { @@ -10458,9 +10433,8 @@ public enum DescribeUserPoolClientOutputError: Swift.Error, Swift.Equatable { extension DescribeUserPoolClientOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserPoolClientOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userPoolClient = output.userPoolClient } else { @@ -10576,9 +10550,8 @@ public enum DescribeUserPoolDomainOutputError: Swift.Error, Swift.Equatable { extension DescribeUserPoolDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserPoolDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainDescription = output.domainDescription } else { @@ -10698,9 +10671,8 @@ public enum DescribeUserPoolOutputError: Swift.Error, Swift.Equatable { extension DescribeUserPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userPool = output.userPool } else { @@ -11095,9 +11067,8 @@ extension CognitoIdentityProviderClientTypes { extension DuplicateProviderException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateProviderExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11111,7 +11082,7 @@ extension DuplicateProviderException { } /// This exception is thrown when the provider is already supported by the user pool. -public struct DuplicateProviderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateProviderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11261,9 +11232,8 @@ extension CognitoIdentityProviderClientTypes { extension EnableSoftwareTokenMFAException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableSoftwareTokenMFAExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11277,7 +11247,7 @@ extension EnableSoftwareTokenMFAException { } /// This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA). -public struct EnableSoftwareTokenMFAException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EnableSoftwareTokenMFAException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11611,9 +11581,8 @@ extension CognitoIdentityProviderClientTypes { extension ExpiredCodeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredCodeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11627,7 +11596,7 @@ extension ExpiredCodeException { } /// This exception is thrown if a code has expired. -public struct ExpiredCodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredCodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11746,9 +11715,8 @@ extension CognitoIdentityProviderClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11762,7 +11730,7 @@ extension ForbiddenException { } /// This exception is thrown when WAF doesn't allow your request based on a web ACL that's associated with your user pool. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12098,9 +12066,8 @@ public enum ForgotPasswordOutputError: Swift.Error, Swift.Equatable { extension ForgotPasswordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForgotPasswordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeDeliveryDetails = output.codeDeliveryDetails } else { @@ -12219,9 +12186,8 @@ public enum GetCSVHeaderOutputError: Swift.Error, Swift.Equatable { extension GetCSVHeaderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCSVHeaderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.csvHeader = output.csvHeader self.userPoolId = output.userPoolId @@ -12386,9 +12352,8 @@ public enum GetDeviceOutputError: Swift.Error, Swift.Equatable { extension GetDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.device = output.device } else { @@ -12520,9 +12485,8 @@ public enum GetGroupOutputError: Swift.Error, Swift.Equatable { extension GetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -12652,9 +12616,8 @@ public enum GetIdentityProviderByIdentifierOutputError: Swift.Error, Swift.Equat extension GetIdentityProviderByIdentifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityProviderByIdentifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProvider = output.identityProvider } else { @@ -12769,9 +12732,8 @@ public enum GetSigningCertificateOutputError: Swift.Error, Swift.Equatable { extension GetSigningCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSigningCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate } else { @@ -12906,9 +12868,8 @@ public enum GetUICustomizationOutputError: Swift.Error, Swift.Equatable { extension GetUICustomizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUICustomizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.uiCustomization = output.uiCustomization } else { @@ -13099,9 +13060,8 @@ public enum GetUserAttributeVerificationCodeOutputError: Swift.Error, Swift.Equa extension GetUserAttributeVerificationCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserAttributeVerificationCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeDeliveryDetails = output.codeDeliveryDetails } else { @@ -13238,9 +13198,8 @@ extension GetUserOutputResponse: Swift.CustomDebugStringConvertible { extension GetUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mfaOptions = output.mfaOptions self.preferredMfaSetting = output.preferredMfaSetting @@ -13427,9 +13386,8 @@ public enum GetUserPoolMfaConfigOutputError: Swift.Error, Swift.Equatable { extension GetUserPoolMfaConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserPoolMfaConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mfaConfiguration = output.mfaConfiguration self.smsMfaConfiguration = output.smsMfaConfiguration @@ -13595,9 +13553,8 @@ public struct GlobalSignOutOutputResponse: Swift.Equatable { extension GroupExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GroupExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13611,7 +13568,7 @@ extension GroupExistsException { } /// This exception is thrown when Amazon Cognito encounters a group that already exists in the user pool. -public struct GroupExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GroupExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14297,9 +14254,8 @@ public enum InitiateAuthOutputError: Swift.Error, Swift.Equatable { extension InitiateAuthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InitiateAuthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationResult = output.authenticationResult self.challengeName = output.challengeName @@ -14392,9 +14348,8 @@ extension InitiateAuthOutputResponseBody: Swift.Decodable { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14408,7 +14363,7 @@ extension InternalErrorException { } /// This exception is thrown when Amazon Cognito encounters an internal error. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14445,9 +14400,8 @@ extension InternalErrorExceptionBody: Swift.Decodable { extension InvalidEmailRoleAccessPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEmailRoleAccessPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14461,7 +14415,7 @@ extension InvalidEmailRoleAccessPolicyException { } /// This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP status code: 400. -public struct InvalidEmailRoleAccessPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEmailRoleAccessPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14498,9 +14452,8 @@ extension InvalidEmailRoleAccessPolicyExceptionBody: Swift.Decodable { extension InvalidLambdaResponseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLambdaResponseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14514,7 +14467,7 @@ extension InvalidLambdaResponseException { } /// This exception is thrown when Amazon Cognito encounters an invalid Lambda response. -public struct InvalidLambdaResponseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLambdaResponseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14551,9 +14504,8 @@ extension InvalidLambdaResponseExceptionBody: Swift.Decodable { extension InvalidOAuthFlowException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOAuthFlowExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14567,7 +14519,7 @@ extension InvalidOAuthFlowException { } /// This exception is thrown when the specified OAuth flow is not valid. -public struct InvalidOAuthFlowException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOAuthFlowException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14603,9 +14555,8 @@ extension InvalidOAuthFlowExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14619,7 +14570,7 @@ extension InvalidParameterException { } /// This exception is thrown when the Amazon Cognito service encounters an invalid parameter. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14656,9 +14607,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidPasswordException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPasswordExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14672,7 +14622,7 @@ extension InvalidPasswordException { } /// This exception is thrown when Amazon Cognito encounters an invalid password. -public struct InvalidPasswordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPasswordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14709,9 +14659,8 @@ extension InvalidPasswordExceptionBody: Swift.Decodable { extension InvalidSmsRoleAccessPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSmsRoleAccessPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14725,7 +14674,7 @@ extension InvalidSmsRoleAccessPolicyException { } /// This exception is returned when the role provided for SMS configuration doesn't have permission to publish using Amazon SNS. -public struct InvalidSmsRoleAccessPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSmsRoleAccessPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14762,9 +14711,8 @@ extension InvalidSmsRoleAccessPolicyExceptionBody: Swift.Decodable { extension InvalidSmsRoleTrustRelationshipException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSmsRoleTrustRelationshipExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14778,7 +14726,7 @@ extension InvalidSmsRoleTrustRelationshipException { } /// This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don't trust cognito-idp.amazonaws.com or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool. -public struct InvalidSmsRoleTrustRelationshipException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSmsRoleTrustRelationshipException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14815,9 +14763,8 @@ extension InvalidSmsRoleTrustRelationshipExceptionBody: Swift.Decodable { extension InvalidUserPoolConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidUserPoolConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14831,7 +14778,7 @@ extension InvalidUserPoolConfigurationException { } /// This exception is thrown when the user pool configuration is not valid. -public struct InvalidUserPoolConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUserPoolConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15023,9 +14970,8 @@ extension CognitoIdentityProviderClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15039,7 +14985,7 @@ extension LimitExceededException { } /// This exception is thrown when a user exceeds the limit for a requested Amazon Web Services resource. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15194,9 +15140,8 @@ public enum ListDevicesOutputError: Swift.Error, Swift.Equatable { extension ListDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.paginationToken = output.paginationToken @@ -15357,9 +15302,8 @@ public enum ListGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.nextToken = output.nextToken @@ -15519,9 +15463,8 @@ public enum ListIdentityProvidersOutputError: Swift.Error, Swift.Equatable { extension ListIdentityProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentityProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.providers = output.providers @@ -15682,9 +15625,8 @@ public enum ListResourceServersOutputError: Swift.Error, Swift.Equatable { extension ListResourceServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceServers = output.resourceServers @@ -15821,9 +15763,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -15975,9 +15916,8 @@ public enum ListUserImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListUserImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.paginationToken = output.paginationToken self.userImportJobs = output.userImportJobs @@ -16139,9 +16079,8 @@ public enum ListUserPoolClientsOutputError: Swift.Error, Swift.Equatable { extension ListUserPoolClientsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserPoolClientsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userPoolClients = output.userPoolClients @@ -16289,9 +16228,8 @@ public enum ListUserPoolsOutputError: Swift.Error, Swift.Equatable { extension ListUserPoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserPoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userPools = output.userPools @@ -16465,9 +16403,8 @@ public enum ListUsersInGroupOutputError: Swift.Error, Swift.Equatable { extension ListUsersInGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersInGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.users = output.users @@ -16696,9 +16633,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.paginationToken = output.paginationToken self.users = output.users @@ -16757,9 +16693,8 @@ extension ListUsersOutputResponseBody: Swift.Decodable { extension MFAMethodNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MFAMethodNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16773,7 +16708,7 @@ extension MFAMethodNotFoundException { } /// This exception is thrown when Amazon Cognito can't find a multi-factor authentication (MFA) method. -public struct MFAMethodNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MFAMethodNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16987,9 +16922,8 @@ extension CognitoIdentityProviderClientTypes { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAuthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17003,7 +16937,7 @@ extension NotAuthorizedException { } /// This exception is thrown when a user isn't authorized. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17347,9 +17281,8 @@ extension CognitoIdentityProviderClientTypes { extension PasswordResetRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PasswordResetRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17363,7 +17296,7 @@ extension PasswordResetRequiredException { } /// This exception is thrown when a password reset is required. -public struct PasswordResetRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PasswordResetRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17400,9 +17333,8 @@ extension PasswordResetRequiredExceptionBody: Swift.Decodable { extension PreconditionNotMetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionNotMetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17416,7 +17348,7 @@ extension PreconditionNotMetException { } /// This exception is thrown when a precondition is not met. -public struct PreconditionNotMetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionNotMetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17870,9 +17802,8 @@ public enum ResendConfirmationCodeOutputError: Swift.Error, Swift.Equatable { extension ResendConfirmationCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResendConfirmationCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeDeliveryDetails = output.codeDeliveryDetails } else { @@ -17912,9 +17843,8 @@ extension ResendConfirmationCodeOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17928,7 +17858,7 @@ extension ResourceNotFoundException { } /// This exception is thrown when the Amazon Cognito service can't find the requested resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18322,9 +18252,8 @@ public enum RespondToAuthChallengeOutputError: Swift.Error, Swift.Equatable { extension RespondToAuthChallengeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RespondToAuthChallengeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationResult = output.authenticationResult self.challengeName = output.challengeName @@ -18894,9 +18823,8 @@ extension CognitoIdentityProviderClientTypes { extension ScopeDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ScopeDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18910,7 +18838,7 @@ extension ScopeDoesNotExistException { } /// This exception is thrown when the specified scope doesn't exist. -public struct ScopeDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ScopeDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19083,9 +19011,8 @@ public enum SetRiskConfigurationOutputError: Swift.Error, Swift.Equatable { extension SetRiskConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetRiskConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.riskConfiguration = output.riskConfiguration } else { @@ -19244,9 +19171,8 @@ public enum SetUICustomizationOutputError: Swift.Error, Swift.Equatable { extension SetUICustomizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetUICustomizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.uiCustomization = output.uiCustomization } else { @@ -19533,9 +19459,8 @@ public enum SetUserPoolMfaConfigOutputError: Swift.Error, Swift.Equatable { extension SetUserPoolMfaConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetUserPoolMfaConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mfaConfiguration = output.mfaConfiguration self.smsMfaConfiguration = output.smsMfaConfiguration @@ -19970,9 +19895,8 @@ public enum SignUpOutputError: Swift.Error, Swift.Equatable { extension SignUpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SignUpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeDeliveryDetails = output.codeDeliveryDetails self.userConfirmed = output.userConfirmed @@ -20135,9 +20059,8 @@ extension CognitoIdentityProviderClientTypes { extension SoftwareTokenMFANotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SoftwareTokenMFANotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20151,7 +20074,7 @@ extension SoftwareTokenMFANotFoundException { } /// This exception is thrown when the software token time-based one-time password (TOTP) multi-factor authentication (MFA) isn't activated for the user pool. -public struct SoftwareTokenMFANotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SoftwareTokenMFANotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20361,9 +20284,8 @@ public enum StartUserImportJobOutputError: Swift.Error, Swift.Equatable { extension StartUserImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartUserImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userImportJob = output.userImportJob } else { @@ -20529,9 +20451,8 @@ public enum StopUserImportJobOutputError: Swift.Error, Swift.Equatable { extension StopUserImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopUserImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userImportJob = output.userImportJob } else { @@ -20822,9 +20743,8 @@ extension CognitoIdentityProviderClientTypes { extension TooManyFailedAttemptsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyFailedAttemptsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20838,7 +20758,7 @@ extension TooManyFailedAttemptsException { } /// This exception is thrown when the user has made too many failed attempts for a given action, such as sign-in. -public struct TooManyFailedAttemptsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyFailedAttemptsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20875,9 +20795,8 @@ extension TooManyFailedAttemptsExceptionBody: Swift.Decodable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20891,7 +20810,7 @@ extension TooManyRequestsException { } /// This exception is thrown when the user has made too many requests for a given operation. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21028,9 +20947,8 @@ extension CognitoIdentityProviderClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21044,7 +20962,7 @@ extension UnauthorizedException { } /// Exception that is thrown when the request isn't authorized. This can happen due to an invalid access token in the request. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21080,9 +20998,8 @@ extension UnauthorizedExceptionBody: Swift.Decodable { extension UnexpectedLambdaException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnexpectedLambdaExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21096,7 +21013,7 @@ extension UnexpectedLambdaException { } /// This exception is thrown when Amazon Cognito encounters an unexpected exception with Lambda. -public struct UnexpectedLambdaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnexpectedLambdaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21133,9 +21050,8 @@ extension UnexpectedLambdaExceptionBody: Swift.Decodable { extension UnsupportedIdentityProviderException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedIdentityProviderExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21149,7 +21065,7 @@ extension UnsupportedIdentityProviderException { } /// This exception is thrown when the specified identifier isn't supported. -public struct UnsupportedIdentityProviderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedIdentityProviderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21185,9 +21101,8 @@ extension UnsupportedIdentityProviderExceptionBody: Swift.Decodable { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21201,7 +21116,7 @@ extension UnsupportedOperationException { } /// Exception that is thrown when you attempt to perform an operation that isn't enabled for the user pool client. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21237,9 +21152,8 @@ extension UnsupportedOperationExceptionBody: Swift.Decodable { extension UnsupportedTokenTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedTokenTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21253,7 +21167,7 @@ extension UnsupportedTokenTypeException { } /// Exception that is thrown when an unsupported token is passed to an operation. -public struct UnsupportedTokenTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedTokenTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21289,9 +21203,8 @@ extension UnsupportedTokenTypeExceptionBody: Swift.Decodable { extension UnsupportedUserStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedUserStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21305,7 +21218,7 @@ extension UnsupportedUserStateException { } /// The request failed because the user is in an unsupported state. -public struct UnsupportedUserStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedUserStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21861,9 +21774,8 @@ public enum UpdateGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -22069,9 +21981,8 @@ public enum UpdateIdentityProviderOutputError: Swift.Error, Swift.Equatable { extension UpdateIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProvider = output.identityProvider } else { @@ -22239,9 +22150,8 @@ public enum UpdateResourceServerOutputError: Swift.Error, Swift.Equatable { extension UpdateResourceServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResourceServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceServer = output.resourceServer } else { @@ -22448,9 +22358,8 @@ public enum UpdateUserAttributesOutputError: Swift.Error, Swift.Equatable { extension UpdateUserAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeDeliveryDetailsList = output.codeDeliveryDetailsList } else { @@ -22973,9 +22882,8 @@ public enum UpdateUserPoolClientOutputError: Swift.Error, Swift.Equatable { extension UpdateUserPoolClientOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserPoolClientOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userPoolClient = output.userPoolClient } else { @@ -23120,9 +23028,8 @@ public enum UpdateUserPoolDomainOutputError: Swift.Error, Swift.Equatable { extension UpdateUserPoolDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserPoolDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudFrontDomain = output.cloudFrontDomain } else { @@ -23602,9 +23509,8 @@ extension CognitoIdentityProviderClientTypes { extension UserImportInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserImportInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23618,7 +23524,7 @@ extension UserImportInProgressException { } /// This exception is thrown when you're trying to modify a user pool while a user import job is in progress for that pool. -public struct UserImportInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserImportInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23876,9 +23782,8 @@ extension CognitoIdentityProviderClientTypes { extension UserLambdaValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserLambdaValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23892,7 +23797,7 @@ extension UserLambdaValidationException { } /// This exception is thrown when the Amazon Cognito service encounters a user validation exception with the Lambda service. -public struct UserLambdaValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserLambdaValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23929,9 +23834,8 @@ extension UserLambdaValidationExceptionBody: Swift.Decodable { extension UserNotConfirmedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserNotConfirmedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23945,7 +23849,7 @@ extension UserNotConfirmedException { } /// This exception is thrown when a user isn't confirmed successfully. -public struct UserNotConfirmedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserNotConfirmedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23982,9 +23886,8 @@ extension UserNotConfirmedExceptionBody: Swift.Decodable { extension UserNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23998,7 +23901,7 @@ extension UserNotFoundException { } /// This exception is thrown when a user isn't found. -public struct UserNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24035,9 +23938,8 @@ extension UserNotFoundExceptionBody: Swift.Decodable { extension UserPoolAddOnNotEnabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserPoolAddOnNotEnabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24051,7 +23953,7 @@ extension UserPoolAddOnNotEnabledException { } /// This exception is thrown when user pool add-ons aren't enabled. -public struct UserPoolAddOnNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserPoolAddOnNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24749,9 +24651,8 @@ extension CognitoIdentityProviderClientTypes { extension UserPoolTaggingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserPoolTaggingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24765,7 +24666,7 @@ extension UserPoolTaggingException { } /// This exception is thrown when a user pool tag can't be set or updated. -public struct UserPoolTaggingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserPoolTaggingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25475,9 +25376,8 @@ extension CognitoIdentityProviderClientTypes { extension UsernameExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UsernameExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25491,7 +25391,7 @@ extension UsernameExistsException { } /// This exception is thrown when Amazon Cognito encounters a user name that already exists in the user pool. -public struct UsernameExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UsernameExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25780,9 +25680,8 @@ public enum VerifySoftwareTokenOutputError: Swift.Error, Swift.Equatable { extension VerifySoftwareTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VerifySoftwareTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session self.status = output.status diff --git a/Sources/Services/AWSCognitoSync/CognitoSyncClient.swift b/Sources/Services/AWSCognitoSync/CognitoSyncClient.swift index 37dbacebe5e..62d65fe45a2 100644 --- a/Sources/Services/AWSCognitoSync/CognitoSyncClient.swift +++ b/Sources/Services/AWSCognitoSync/CognitoSyncClient.swift @@ -208,6 +208,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "bulkPublish") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -284,7 +287,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -304,6 +307,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdentityPoolUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -316,7 +320,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -336,6 +340,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdentityUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -348,7 +353,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +373,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBulkPublishDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -380,7 +386,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -400,6 +406,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCognitoEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +419,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +439,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityPoolConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -444,7 +452,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +472,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +486,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +506,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentityPoolUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -510,7 +520,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -530,6 +540,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -543,7 +554,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -563,6 +574,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -578,7 +590,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -598,6 +610,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setCognitoEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -613,7 +626,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -633,6 +646,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIdentityPoolConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +662,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -668,6 +682,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "subscribeToDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +695,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +715,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unsubscribeFromDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -712,7 +728,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -732,6 +748,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cognito-sync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +765,7 @@ extension CognitoSyncClient: CognitoSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCognitoSync/models/Models.swift b/Sources/Services/AWSCognitoSync/models/Models.swift index fecf3a8046b..cc34f391a3a 100644 --- a/Sources/Services/AWSCognitoSync/models/Models.swift +++ b/Sources/Services/AWSCognitoSync/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AlreadyStreamedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyStreamedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AlreadyStreamedException { } /// An exception thrown when a bulk publish operation is requested less than 24 hours after a previous bulk publish operation completed successfully. -public struct AlreadyStreamedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyStreamedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -122,9 +121,8 @@ public enum BulkPublishOutputError: Swift.Error, Swift.Equatable { extension BulkPublishOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BulkPublishOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityPoolId = output.identityPoolId } else { @@ -257,9 +255,8 @@ extension CognitoSyncClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -273,7 +270,7 @@ extension ConcurrentModificationException { } /// Thrown if there are parallel requests to modify a resource. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -486,9 +483,8 @@ public enum DeleteDatasetOutputError: Swift.Error, Swift.Equatable { extension DeleteDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataset = output.dataset } else { @@ -606,9 +602,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataset = output.dataset } else { @@ -710,9 +705,8 @@ public enum DescribeIdentityPoolUsageOutputError: Swift.Error, Swift.Equatable { extension DescribeIdentityPoolUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdentityPoolUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityPoolUsage = output.identityPoolUsage } else { @@ -822,9 +816,8 @@ public enum DescribeIdentityUsageOutputError: Swift.Error, Swift.Equatable { extension DescribeIdentityUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdentityUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityUsage = output.identityUsage } else { @@ -864,9 +857,8 @@ extension DescribeIdentityUsageOutputResponseBody: Swift.Decodable { extension DuplicateRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -880,7 +872,7 @@ extension DuplicateRequestException { } /// An exception thrown when there is an IN_PROGRESS bulk publish operation for the given identity pool. -public struct DuplicateRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -978,9 +970,8 @@ public enum GetBulkPublishDetailsOutputError: Swift.Error, Swift.Equatable { extension GetBulkPublishDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBulkPublishDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bulkPublishCompleteTime = output.bulkPublishCompleteTime self.bulkPublishStartTime = output.bulkPublishStartTime @@ -1122,9 +1113,8 @@ public enum GetCognitoEventsOutputError: Swift.Error, Swift.Equatable { extension GetCognitoEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCognitoEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events } else { @@ -1235,9 +1225,8 @@ public enum GetIdentityPoolConfigurationOutputError: Swift.Error, Swift.Equatabl extension GetIdentityPoolConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityPoolConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cognitoStreams = output.cognitoStreams self.identityPoolId = output.identityPoolId @@ -1437,9 +1426,8 @@ extension CognitoSyncClientTypes { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1453,7 +1441,7 @@ extension InternalErrorException { } /// Indicates an internal service error. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1491,9 +1479,8 @@ extension InternalErrorExceptionBody: Swift.Decodable { extension InvalidConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1506,7 +1493,7 @@ extension InvalidConfigurationException { } } -public struct InvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1544,9 +1531,8 @@ extension InvalidConfigurationExceptionBody: Swift.Decodable { extension InvalidLambdaFunctionOutputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLambdaFunctionOutputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1560,7 +1546,7 @@ extension InvalidLambdaFunctionOutputException { } /// The AWS Lambda function returned invalid output or an exception. -public struct InvalidLambdaFunctionOutputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLambdaFunctionOutputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1598,9 +1584,8 @@ extension InvalidLambdaFunctionOutputExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1614,7 +1599,7 @@ extension InvalidParameterException { } /// Thrown when a request parameter does not comply with the associated constraints. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1652,9 +1637,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension LambdaThrottledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LambdaThrottledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1668,7 +1652,7 @@ extension LambdaThrottledException { } /// AWS Lambda throttled your account, please contact AWS Support -public struct LambdaThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LambdaThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1706,9 +1690,8 @@ extension LambdaThrottledExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1722,7 +1705,7 @@ extension LimitExceededException { } /// Thrown when the limit on the number of objects or operations has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1853,9 +1836,8 @@ public enum ListDatasetsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.datasets = output.datasets @@ -2001,9 +1983,8 @@ public enum ListIdentityPoolUsageOutputError: Swift.Error, Swift.Equatable { extension ListIdentityPoolUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentityPoolUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.identityPoolUsages = output.identityPoolUsages @@ -2199,9 +2180,8 @@ public enum ListRecordsOutputError: Swift.Error, Swift.Equatable { extension ListRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.datasetDeletedAfterRequestedSyncCount = output.datasetDeletedAfterRequestedSyncCount @@ -2339,9 +2319,8 @@ extension ListRecordsOutputResponseBody: Swift.Decodable { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAuthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2355,7 +2334,7 @@ extension NotAuthorizedException { } /// Thrown when a user is not authorized to access the requested resource. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2793,9 +2772,8 @@ public enum RegisterDeviceOutputError: Swift.Error, Swift.Equatable { extension RegisterDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceId = output.deviceId } else { @@ -2835,9 +2813,8 @@ extension RegisterDeviceOutputResponseBody: Swift.Decodable { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2851,7 +2828,7 @@ extension ResourceConflictException { } /// Thrown if an update can't be applied because the resource was changed by another call and this would result in a conflict. -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2889,9 +2866,8 @@ extension ResourceConflictExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2905,7 +2881,7 @@ extension ResourceNotFoundException { } /// Thrown if the resource doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3152,9 +3128,8 @@ public enum SetIdentityPoolConfigurationOutputError: Swift.Error, Swift.Equatabl extension SetIdentityPoolConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetIdentityPoolConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cognitoStreams = output.cognitoStreams self.identityPoolId = output.identityPoolId @@ -3345,9 +3320,8 @@ public struct SubscribeToDatasetOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3361,7 +3335,7 @@ extension TooManyRequestsException { } /// Thrown if the request is throttled. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3659,9 +3633,8 @@ public enum UpdateRecordsOutputError: Swift.Error, Swift.Equatable { extension UpdateRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.records = output.records } else { diff --git a/Sources/Services/AWSComprehend/ComprehendClient.swift b/Sources/Services/AWSComprehend/ComprehendClient.swift index 967ffc2955f..fccc025bb7a 100644 --- a/Sources/Services/AWSComprehend/ComprehendClient.swift +++ b/Sources/Services/AWSComprehend/ComprehendClient.swift @@ -208,6 +208,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDetectDominantLanguage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDetectEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDetectKeyPhrases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDetectSentiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDetectSyntax") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDetectTargetedSentiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "classifyDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "containsPiiEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -520,7 +529,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDocumentClassifier") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -564,7 +574,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +594,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -608,7 +619,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +639,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEntityRecognizer") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -652,7 +664,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -672,6 +684,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFlywheel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -696,7 +709,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -716,6 +729,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDocumentClassifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -732,7 +746,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -752,6 +766,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +783,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +803,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEntityRecognizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +820,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +840,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFlywheel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -840,7 +857,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -860,6 +877,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -876,7 +894,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -896,6 +914,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +931,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +951,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDocumentClassificationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -948,7 +968,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -968,6 +988,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDocumentClassifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1005,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1025,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDominantLanguageDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1020,7 +1042,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1040,6 +1062,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1056,7 +1079,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1076,6 +1099,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEntitiesDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1092,7 +1116,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1112,6 +1136,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEntityRecognizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1128,7 +1153,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1173,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventsDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1164,7 +1190,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1184,6 +1210,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFlywheel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1200,7 +1227,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1220,6 +1247,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFlywheelIteration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1236,7 +1264,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1256,6 +1284,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeKeyPhrasesDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1272,7 +1301,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1292,6 +1321,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePiiEntitiesDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1308,7 +1338,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1328,6 +1358,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1344,7 +1375,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1364,6 +1395,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSentimentDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1380,7 +1412,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1400,6 +1432,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTargetedSentimentDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1416,7 +1449,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1436,6 +1469,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTopicsDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1452,7 +1486,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1472,6 +1506,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectDominantLanguage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1488,7 +1523,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1508,6 +1543,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1524,7 +1560,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1544,6 +1580,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectKeyPhrases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1560,7 +1597,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1580,6 +1617,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectPiiEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1596,7 +1634,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1616,6 +1654,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectSentiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1632,7 +1671,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1652,6 +1691,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectSyntax") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1668,7 +1708,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1688,6 +1728,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectTargetedSentiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1704,7 +1745,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1724,6 +1765,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1740,7 +1782,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1760,6 +1802,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1776,7 +1819,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1796,6 +1839,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDocumentClassificationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1812,7 +1856,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1832,6 +1876,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDocumentClassifierSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1848,7 +1893,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1868,6 +1913,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDocumentClassifiers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1884,7 +1930,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1904,6 +1950,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDominantLanguageDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1920,7 +1967,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1940,6 +1987,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1956,7 +2004,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1976,6 +2024,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntitiesDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1992,7 +2041,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2012,6 +2061,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntityRecognizerSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2028,7 +2078,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2048,6 +2098,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntityRecognizers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2064,7 +2115,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2084,6 +2135,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventsDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2100,7 +2152,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2120,6 +2172,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFlywheelIterationHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2136,7 +2189,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2156,6 +2209,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFlywheels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2172,7 +2226,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2192,6 +2246,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKeyPhrasesDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2208,7 +2263,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2228,6 +2283,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPiiEntitiesDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2244,7 +2300,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2264,6 +2320,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSentimentDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2280,7 +2337,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2300,6 +2357,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2316,7 +2374,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2336,6 +2394,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargetedSentimentDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2352,7 +2411,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2372,6 +2431,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTopicsDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2388,7 +2448,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2408,6 +2468,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2424,7 +2485,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2444,6 +2505,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDocumentClassificationJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2468,7 +2530,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2488,6 +2550,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDominantLanguageDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2512,7 +2575,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2532,6 +2595,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startEntitiesDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2556,7 +2620,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2576,6 +2640,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startEventsDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2600,7 +2665,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2620,6 +2685,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFlywheelIteration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2636,7 +2702,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2656,6 +2722,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startKeyPhrasesDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2680,7 +2747,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2700,6 +2767,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startPiiEntitiesDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2724,7 +2792,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2744,6 +2812,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSentimentDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2768,7 +2837,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2788,6 +2857,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTargetedSentimentDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2812,7 +2882,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2832,6 +2902,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTopicsDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2856,7 +2927,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2876,6 +2947,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDominantLanguageDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2892,7 +2964,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2912,6 +2984,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopEntitiesDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2928,7 +3001,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2948,6 +3021,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopEventsDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2964,7 +3038,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2984,6 +3058,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopKeyPhrasesDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3000,7 +3075,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3020,6 +3095,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopPiiEntitiesDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3036,7 +3112,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3056,6 +3132,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopSentimentDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3072,7 +3149,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3092,6 +3169,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopTargetedSentimentDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3108,7 +3186,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3128,6 +3206,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopTrainingDocumentClassifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3144,7 +3223,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3164,6 +3243,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopTrainingEntityRecognizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3180,7 +3260,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3200,6 +3280,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3216,7 +3297,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3236,6 +3317,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3252,7 +3334,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3272,6 +3354,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3288,7 +3371,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3308,6 +3391,7 @@ extension ComprehendClient: ComprehendClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehend") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFlywheel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3324,7 +3408,7 @@ extension ComprehendClient: ComprehendClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSComprehend/models/Models.swift b/Sources/Services/AWSComprehend/models/Models.swift index 2ad81a1cd8b..fc4868002e6 100644 --- a/Sources/Services/AWSComprehend/models/Models.swift +++ b/Sources/Services/AWSComprehend/models/Models.swift @@ -295,9 +295,8 @@ extension BatchDetectDominantLanguageOutputResponse: Swift.CustomDebugStringConv extension BatchDetectDominantLanguageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDetectDominantLanguageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorList = output.errorList self.resultList = output.resultList @@ -537,9 +536,8 @@ extension BatchDetectEntitiesOutputResponse: Swift.CustomDebugStringConvertible extension BatchDetectEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDetectEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorList = output.errorList self.resultList = output.resultList @@ -779,9 +777,8 @@ extension BatchDetectKeyPhrasesOutputResponse: Swift.CustomDebugStringConvertibl extension BatchDetectKeyPhrasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDetectKeyPhrasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorList = output.errorList self.resultList = output.resultList @@ -1019,9 +1016,8 @@ extension BatchDetectSentimentOutputResponse: Swift.CustomDebugStringConvertible extension BatchDetectSentimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDetectSentimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorList = output.errorList self.resultList = output.resultList @@ -1261,9 +1257,8 @@ extension BatchDetectSyntaxOutputResponse: Swift.CustomDebugStringConvertible { extension BatchDetectSyntaxOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDetectSyntaxOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorList = output.errorList self.resultList = output.resultList @@ -1503,9 +1498,8 @@ extension BatchDetectTargetedSentimentOutputResponse: Swift.CustomDebugStringCon extension BatchDetectTargetedSentimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDetectTargetedSentimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorList = output.errorList self.resultList = output.resultList @@ -1629,9 +1623,8 @@ extension ComprehendClientTypes { extension BatchSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1645,7 +1638,7 @@ extension BatchSizeLimitExceededException { } /// The number of documents in the request exceeds the limit of 25. Try your request again with fewer documents. -public struct BatchSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2310,9 +2303,8 @@ extension ClassifyDocumentOutputResponse: Swift.CustomDebugStringConvertible { extension ClassifyDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClassifyDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.classes = output.classes self.documentMetadata = output.documentMetadata @@ -2427,9 +2419,8 @@ extension ClassifyDocumentOutputResponseBody: Swift.Decodable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2443,7 +2434,7 @@ extension ConcurrentModificationException { } /// Concurrent modification of the tags associated with an Amazon Comprehend resource is not supported. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2568,9 +2559,8 @@ public enum ContainsPiiEntitiesOutputError: Swift.Error, Swift.Equatable { extension ContainsPiiEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ContainsPiiEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labels = output.labels } else { @@ -2786,9 +2776,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetArn = output.datasetArn } else { @@ -3078,9 +3067,8 @@ public enum CreateDocumentClassifierOutputError: Swift.Error, Swift.Equatable { extension CreateDocumentClassifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDocumentClassifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentClassifierArn = output.documentClassifierArn } else { @@ -3288,9 +3276,8 @@ public enum CreateEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointArn = output.endpointArn self.modelArn = output.modelArn @@ -3566,9 +3553,8 @@ public enum CreateEntityRecognizerOutputError: Swift.Error, Swift.Equatable { extension CreateEntityRecognizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEntityRecognizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entityRecognizerArn = output.entityRecognizerArn } else { @@ -3805,9 +3791,8 @@ public enum CreateFlywheelOutputError: Swift.Error, Swift.Equatable { extension CreateFlywheelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFlywheelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeModelArn = output.activeModelArn self.flywheelArn = output.flywheelArn @@ -5130,9 +5115,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetProperties = output.datasetProperties } else { @@ -5247,9 +5231,8 @@ public enum DescribeDocumentClassificationJobOutputError: Swift.Error, Swift.Equ extension DescribeDocumentClassificationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDocumentClassificationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentClassificationJobProperties = output.documentClassificationJobProperties } else { @@ -5364,9 +5347,8 @@ public enum DescribeDocumentClassifierOutputError: Swift.Error, Swift.Equatable extension DescribeDocumentClassifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDocumentClassifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentClassifierProperties = output.documentClassifierProperties } else { @@ -5481,9 +5463,8 @@ public enum DescribeDominantLanguageDetectionJobOutputError: Swift.Error, Swift. extension DescribeDominantLanguageDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDominantLanguageDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dominantLanguageDetectionJobProperties = output.dominantLanguageDetectionJobProperties } else { @@ -5598,9 +5579,8 @@ public enum DescribeEndpointOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointProperties = output.endpointProperties } else { @@ -5715,9 +5695,8 @@ public enum DescribeEntitiesDetectionJobOutputError: Swift.Error, Swift.Equatabl extension DescribeEntitiesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEntitiesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitiesDetectionJobProperties = output.entitiesDetectionJobProperties } else { @@ -5832,9 +5811,8 @@ public enum DescribeEntityRecognizerOutputError: Swift.Error, Swift.Equatable { extension DescribeEntityRecognizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEntityRecognizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entityRecognizerProperties = output.entityRecognizerProperties } else { @@ -5949,9 +5927,8 @@ public enum DescribeEventsDetectionJobOutputError: Swift.Error, Swift.Equatable extension DescribeEventsDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventsDetectionJobProperties = output.eventsDetectionJobProperties } else { @@ -6127,9 +6104,8 @@ public enum DescribeFlywheelIterationOutputError: Swift.Error, Swift.Equatable { extension DescribeFlywheelIterationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFlywheelIterationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flywheelIterationProperties = output.flywheelIterationProperties } else { @@ -6196,9 +6172,8 @@ public enum DescribeFlywheelOutputError: Swift.Error, Swift.Equatable { extension DescribeFlywheelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFlywheelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flywheelProperties = output.flywheelProperties } else { @@ -6313,9 +6288,8 @@ public enum DescribeKeyPhrasesDetectionJobOutputError: Swift.Error, Swift.Equata extension DescribeKeyPhrasesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeKeyPhrasesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPhrasesDetectionJobProperties = output.keyPhrasesDetectionJobProperties } else { @@ -6430,9 +6404,8 @@ public enum DescribePiiEntitiesDetectionJobOutputError: Swift.Error, Swift.Equat extension DescribePiiEntitiesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePiiEntitiesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.piiEntitiesDetectionJobProperties = output.piiEntitiesDetectionJobProperties } else { @@ -6545,9 +6518,8 @@ public enum DescribeResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.lastModifiedTime = output.lastModifiedTime @@ -6692,9 +6664,8 @@ public enum DescribeSentimentDetectionJobOutputError: Swift.Error, Swift.Equatab extension DescribeSentimentDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSentimentDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sentimentDetectionJobProperties = output.sentimentDetectionJobProperties } else { @@ -6809,9 +6780,8 @@ public enum DescribeTargetedSentimentDetectionJobOutputError: Swift.Error, Swift extension DescribeTargetedSentimentDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTargetedSentimentDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.targetedSentimentDetectionJobProperties = output.targetedSentimentDetectionJobProperties } else { @@ -6926,9 +6896,8 @@ public enum DescribeTopicsDetectionJobOutputError: Swift.Error, Swift.Equatable extension DescribeTopicsDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTopicsDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.topicsDetectionJobProperties = output.topicsDetectionJobProperties } else { @@ -7052,9 +7021,8 @@ extension DetectDominantLanguageOutputResponse: Swift.CustomDebugStringConvertib extension DetectDominantLanguageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectDominantLanguageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.languages = output.languages } else { @@ -7238,9 +7206,8 @@ extension DetectEntitiesOutputResponse: Swift.CustomDebugStringConvertible { extension DetectEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blocks = output.blocks self.documentMetadata = output.documentMetadata @@ -7455,9 +7422,8 @@ extension DetectKeyPhrasesOutputResponse: Swift.CustomDebugStringConvertible { extension DetectKeyPhrasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectKeyPhrasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPhrases = output.keyPhrases } else { @@ -7594,9 +7560,8 @@ public enum DetectPiiEntitiesOutputError: Swift.Error, Swift.Equatable { extension DetectPiiEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectPiiEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities } else { @@ -7744,9 +7709,8 @@ extension DetectSentimentOutputResponse: Swift.CustomDebugStringConvertible { extension DetectSentimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectSentimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sentiment = output.sentiment self.sentimentScore = output.sentimentScore @@ -7895,9 +7859,8 @@ extension DetectSyntaxOutputResponse: Swift.CustomDebugStringConvertible { extension DetectSyntaxOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectSyntaxOutputResponseBody = try responseDecoder.decode(responseBody: data) self.syntaxTokens = output.syntaxTokens } else { @@ -8045,9 +8008,8 @@ extension DetectTargetedSentimentOutputResponse: Swift.CustomDebugStringConverti extension DetectTargetedSentimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectTargetedSentimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities } else { @@ -12582,9 +12544,8 @@ public enum ImportModelOutputError: Swift.Error, Swift.Equatable { extension ImportModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelArn = output.modelArn } else { @@ -12715,9 +12676,8 @@ extension ComprehendClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12731,7 +12691,7 @@ extension InternalServerException { } /// An internal server error occurred. Retry your request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12767,9 +12727,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidFilterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFilterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12783,7 +12742,7 @@ extension InvalidFilterException { } /// The filter specified for the operation is invalid. Specify a different filter. -public struct InvalidFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12900,9 +12859,8 @@ extension ComprehendClientTypes { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.detail = output.detail self.message = output.message @@ -12920,7 +12878,7 @@ extension InvalidRequestException { } /// The request is invalid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13008,9 +12966,8 @@ extension ComprehendClientTypes { extension JobNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: JobNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13024,7 +12981,7 @@ extension JobNotFoundException { } /// The specified job was not found. Check the job ID and try again. -public struct JobNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct JobNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13393,9 +13350,8 @@ extension ComprehendClientTypes { extension KmsKeyValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KmsKeyValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13409,7 +13365,7 @@ extension KmsKeyValidationException { } /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and re-enter it. -public struct KmsKeyValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KmsKeyValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13620,9 +13576,8 @@ public enum ListDatasetsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetPropertiesList = output.datasetPropertiesList self.nextToken = output.nextToken @@ -13779,9 +13734,8 @@ public enum ListDocumentClassificationJobsOutputError: Swift.Error, Swift.Equata extension ListDocumentClassificationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDocumentClassificationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentClassificationJobPropertiesList = output.documentClassificationJobPropertiesList self.nextToken = output.nextToken @@ -13924,9 +13878,8 @@ public enum ListDocumentClassifierSummariesOutputError: Swift.Error, Swift.Equat extension ListDocumentClassifierSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDocumentClassifierSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentClassifierSummariesList = output.documentClassifierSummariesList self.nextToken = output.nextToken @@ -14083,9 +14036,8 @@ public enum ListDocumentClassifiersOutputError: Swift.Error, Swift.Equatable { extension ListDocumentClassifiersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDocumentClassifiersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentClassifierPropertiesList = output.documentClassifierPropertiesList self.nextToken = output.nextToken @@ -14242,9 +14194,8 @@ public enum ListDominantLanguageDetectionJobsOutputError: Swift.Error, Swift.Equ extension ListDominantLanguageDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDominantLanguageDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dominantLanguageDetectionJobPropertiesList = output.dominantLanguageDetectionJobPropertiesList self.nextToken = output.nextToken @@ -14399,9 +14350,8 @@ public enum ListEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointPropertiesList = output.endpointPropertiesList self.nextToken = output.nextToken @@ -14558,9 +14508,8 @@ public enum ListEntitiesDetectionJobsOutputError: Swift.Error, Swift.Equatable { extension ListEntitiesDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntitiesDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitiesDetectionJobPropertiesList = output.entitiesDetectionJobPropertiesList self.nextToken = output.nextToken @@ -14703,9 +14652,8 @@ public enum ListEntityRecognizerSummariesOutputError: Swift.Error, Swift.Equatab extension ListEntityRecognizerSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntityRecognizerSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entityRecognizerSummariesList = output.entityRecognizerSummariesList self.nextToken = output.nextToken @@ -14862,9 +14810,8 @@ public enum ListEntityRecognizersOutputError: Swift.Error, Swift.Equatable { extension ListEntityRecognizersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntityRecognizersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entityRecognizerPropertiesList = output.entityRecognizerPropertiesList self.nextToken = output.nextToken @@ -15021,9 +14968,8 @@ public enum ListEventsDetectionJobsOutputError: Swift.Error, Swift.Equatable { extension ListEventsDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventsDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventsDetectionJobPropertiesList = output.eventsDetectionJobPropertiesList self.nextToken = output.nextToken @@ -15195,9 +15141,8 @@ public enum ListFlywheelIterationHistoryOutputError: Swift.Error, Swift.Equatabl extension ListFlywheelIterationHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFlywheelIterationHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flywheelIterationPropertiesList = output.flywheelIterationPropertiesList self.nextToken = output.nextToken @@ -15354,9 +15299,8 @@ public enum ListFlywheelsOutputError: Swift.Error, Swift.Equatable { extension ListFlywheelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFlywheelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flywheelSummaryList = output.flywheelSummaryList self.nextToken = output.nextToken @@ -15513,9 +15457,8 @@ public enum ListKeyPhrasesDetectionJobsOutputError: Swift.Error, Swift.Equatable extension ListKeyPhrasesDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListKeyPhrasesDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPhrasesDetectionJobPropertiesList = output.keyPhrasesDetectionJobPropertiesList self.nextToken = output.nextToken @@ -15672,9 +15615,8 @@ public enum ListPiiEntitiesDetectionJobsOutputError: Swift.Error, Swift.Equatabl extension ListPiiEntitiesDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPiiEntitiesDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.piiEntitiesDetectionJobPropertiesList = output.piiEntitiesDetectionJobPropertiesList @@ -15831,9 +15773,8 @@ public enum ListSentimentDetectionJobsOutputError: Swift.Error, Swift.Equatable extension ListSentimentDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSentimentDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sentimentDetectionJobPropertiesList = output.sentimentDetectionJobPropertiesList @@ -15965,9 +15906,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.tags = output.tags @@ -16124,9 +16064,8 @@ public enum ListTargetedSentimentDetectionJobsOutputError: Swift.Error, Swift.Eq extension ListTargetedSentimentDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetedSentimentDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.targetedSentimentDetectionJobPropertiesList = output.targetedSentimentDetectionJobPropertiesList @@ -16283,9 +16222,8 @@ public enum ListTopicsDetectionJobsOutputError: Swift.Error, Swift.Equatable { extension ListTopicsDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTopicsDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.topicsDetectionJobPropertiesList = output.topicsDetectionJobPropertiesList @@ -17366,9 +17304,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyRevisionId = output.policyRevisionId } else { @@ -17560,9 +17497,8 @@ extension ComprehendClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17576,7 +17512,7 @@ extension ResourceInUseException { } /// The specified resource name is already in use. Use a different name and try your request again. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17612,9 +17548,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17628,7 +17563,7 @@ extension ResourceLimitExceededException { } /// The maximum number of resources per account has been exceeded. Review the resources, and then try your request again. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17664,9 +17599,8 @@ extension ResourceLimitExceededExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17680,7 +17614,7 @@ extension ResourceNotFoundException { } /// The specified resource ARN was not found. Check the ARN and try your request again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17716,9 +17650,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17732,7 +17665,7 @@ extension ResourceUnavailableException { } /// The specified resource is not available. Check the resource and try your request again. -public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18335,9 +18268,8 @@ public enum StartDocumentClassificationJobOutputError: Swift.Error, Swift.Equata extension StartDocumentClassificationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDocumentClassificationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentClassifierArn = output.documentClassifierArn self.jobArn = output.jobArn @@ -18598,9 +18530,8 @@ public enum StartDominantLanguageDetectionJobOutputError: Swift.Error, Swift.Equ extension StartDominantLanguageDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDominantLanguageDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -18888,9 +18819,8 @@ public enum StartEntitiesDetectionJobOutputError: Swift.Error, Swift.Equatable { extension StartEntitiesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartEntitiesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entityRecognizerArn = output.entityRecognizerArn self.jobArn = output.jobArn @@ -19161,9 +19091,8 @@ public enum StartEventsDetectionJobOutputError: Swift.Error, Swift.Equatable { extension StartEventsDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartEventsDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -19312,9 +19241,8 @@ public enum StartFlywheelIterationOutputError: Swift.Error, Swift.Equatable { extension StartFlywheelIterationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFlywheelIterationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flywheelArn = output.flywheelArn self.flywheelIterationId = output.flywheelIterationId @@ -19556,9 +19484,8 @@ public enum StartKeyPhrasesDetectionJobOutputError: Swift.Error, Swift.Equatable extension StartKeyPhrasesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartKeyPhrasesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -19815,9 +19742,8 @@ public enum StartPiiEntitiesDetectionJobOutputError: Swift.Error, Swift.Equatabl extension StartPiiEntitiesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartPiiEntitiesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -20069,9 +19995,8 @@ public enum StartSentimentDetectionJobOutputError: Swift.Error, Swift.Equatable extension StartSentimentDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSentimentDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -20331,9 +20256,8 @@ public enum StartTargetedSentimentDetectionJobOutputError: Swift.Error, Swift.Eq extension StartTargetedSentimentDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTargetedSentimentDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -20592,9 +20516,8 @@ public enum StartTopicsDetectionJobOutputError: Swift.Error, Swift.Equatable { extension StartTopicsDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTopicsDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -20735,9 +20658,8 @@ public enum StopDominantLanguageDetectionJobOutputError: Swift.Error, Swift.Equa extension StopDominantLanguageDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDominantLanguageDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -20860,9 +20782,8 @@ public enum StopEntitiesDetectionJobOutputError: Swift.Error, Swift.Equatable { extension StopEntitiesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopEntitiesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -20985,9 +20906,8 @@ public enum StopEventsDetectionJobOutputError: Swift.Error, Swift.Equatable { extension StopEventsDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopEventsDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -21110,9 +21030,8 @@ public enum StopKeyPhrasesDetectionJobOutputError: Swift.Error, Swift.Equatable extension StopKeyPhrasesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopKeyPhrasesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -21235,9 +21154,8 @@ public enum StopPiiEntitiesDetectionJobOutputError: Swift.Error, Swift.Equatable extension StopPiiEntitiesDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopPiiEntitiesDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -21360,9 +21278,8 @@ public enum StopSentimentDetectionJobOutputError: Swift.Error, Swift.Equatable { extension StopSentimentDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopSentimentDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -21485,9 +21402,8 @@ public enum StopTargetedSentimentDetectionJobOutputError: Swift.Error, Swift.Equ extension StopTargetedSentimentDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopTargetedSentimentDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -22507,9 +22423,8 @@ extension ComprehendClientTypes { extension TextSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TextSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22523,7 +22438,7 @@ extension TextSizeLimitExceededException { } /// The size of the input text exceeds the limit. Use a smaller document. -public struct TextSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TextSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22559,9 +22474,8 @@ extension TextSizeLimitExceededExceptionBody: Swift.Decodable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22575,7 +22489,7 @@ extension TooManyRequestsException { } /// The number of requests exceeds the limit. Resubmit your request later. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22611,9 +22525,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension TooManyTagKeysException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagKeysExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22627,7 +22540,7 @@ extension TooManyTagKeysException { } /// The request contains more tag keys than can be associated with a resource (50 tag keys per resource). -public struct TooManyTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22663,9 +22576,8 @@ extension TooManyTagKeysExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22679,7 +22591,7 @@ extension TooManyTagsException { } /// The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22939,9 +22851,8 @@ extension ComprehendClientTypes { extension UnsupportedLanguageException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedLanguageExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22955,7 +22866,7 @@ extension UnsupportedLanguageException { } /// Amazon Comprehend can't process the language of the input text. For custom entity recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are accepted. For a list of supported languages, [Supported languages](https://docs.aws.amazon.com/comprehend/latest/dg/supported-languages.html) in the Comprehend Developer Guide. -public struct UnsupportedLanguageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedLanguageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23293,9 +23204,8 @@ public enum UpdateEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.desiredModelArn = output.desiredModelArn } else { @@ -23448,9 +23358,8 @@ public enum UpdateFlywheelOutputError: Swift.Error, Swift.Equatable { extension UpdateFlywheelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFlywheelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flywheelProperties = output.flywheelProperties } else { diff --git a/Sources/Services/AWSComprehendMedical/ComprehendMedicalClient.swift b/Sources/Services/AWSComprehendMedical/ComprehendMedicalClient.swift index f158f6375f6..e29c96e5764 100644 --- a/Sources/Services/AWSComprehendMedical/ComprehendMedicalClient.swift +++ b/Sources/Services/AWSComprehendMedical/ComprehendMedicalClient.swift @@ -208,6 +208,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEntitiesDetectionV2Job") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeICD10CMInferenceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePHIDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRxNormInferenceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSNOMEDCTInferenceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -389,6 +394,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -405,7 +411,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -425,6 +431,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectEntitiesV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -441,7 +448,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -461,6 +468,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectPHI") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +485,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +505,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "inferICD10CM") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -513,7 +522,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -533,6 +542,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "inferRxNorm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +559,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "inferSNOMEDCT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +596,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +616,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntitiesDetectionV2Jobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -621,7 +633,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -641,6 +653,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listICD10CMInferenceJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -657,7 +670,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -677,6 +690,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPHIDetectionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -693,7 +707,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +727,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRxNormInferenceJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -729,7 +744,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -749,6 +764,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSNOMEDCTInferenceJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -765,7 +781,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -785,6 +801,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startEntitiesDetectionV2Job") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -809,7 +826,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -829,6 +846,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startICD10CMInferenceJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -853,7 +871,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +891,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startPHIDetectionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -897,7 +916,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -917,6 +936,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRxNormInferenceJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -941,7 +961,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -961,6 +981,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSNOMEDCTInferenceJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -985,7 +1006,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1005,6 +1026,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopEntitiesDetectionV2Job") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1021,7 +1043,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1041,6 +1063,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopICD10CMInferenceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1057,7 +1080,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1077,6 +1100,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopPHIDetectionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1093,7 +1117,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1113,6 +1137,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopRxNormInferenceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1129,7 +1154,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1149,6 +1174,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "comprehendmedical") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopSNOMEDCTInferenceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1165,7 +1191,7 @@ extension ComprehendMedicalClient: ComprehendMedicalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSComprehendMedical/models/Models.swift b/Sources/Services/AWSComprehendMedical/models/Models.swift index 3ddde318479..ccbda1aa665 100644 --- a/Sources/Services/AWSComprehendMedical/models/Models.swift +++ b/Sources/Services/AWSComprehendMedical/models/Models.swift @@ -535,9 +535,8 @@ public enum DescribeEntitiesDetectionV2JobOutputError: Swift.Error, Swift.Equata extension DescribeEntitiesDetectionV2JobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEntitiesDetectionV2JobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobProperties = output.comprehendMedicalAsyncJobProperties } else { @@ -652,9 +651,8 @@ public enum DescribeICD10CMInferenceJobOutputError: Swift.Error, Swift.Equatable extension DescribeICD10CMInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeICD10CMInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobProperties = output.comprehendMedicalAsyncJobProperties } else { @@ -769,9 +767,8 @@ public enum DescribePHIDetectionJobOutputError: Swift.Error, Swift.Equatable { extension DescribePHIDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePHIDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobProperties = output.comprehendMedicalAsyncJobProperties } else { @@ -886,9 +883,8 @@ public enum DescribeRxNormInferenceJobOutputError: Swift.Error, Swift.Equatable extension DescribeRxNormInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRxNormInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobProperties = output.comprehendMedicalAsyncJobProperties } else { @@ -1003,9 +999,8 @@ public enum DescribeSNOMEDCTInferenceJobOutputError: Swift.Error, Swift.Equatabl extension DescribeSNOMEDCTInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSNOMEDCTInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobProperties = output.comprehendMedicalAsyncJobProperties } else { @@ -1124,9 +1119,8 @@ public enum DetectEntitiesOutputError: Swift.Error, Swift.Equatable { extension DetectEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.modelVersion = output.modelVersion @@ -1295,9 +1289,8 @@ public enum DetectEntitiesV2OutputError: Swift.Error, Swift.Equatable { extension DetectEntitiesV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectEntitiesV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.modelVersion = output.modelVersion @@ -1466,9 +1459,8 @@ public enum DetectPHIOutputError: Swift.Error, Swift.Equatable { extension DetectPHIOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectPHIOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.modelVersion = output.modelVersion @@ -2550,9 +2542,8 @@ public enum InferICD10CMOutputError: Swift.Error, Swift.Equatable { extension InferICD10CMOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InferICD10CMOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.modelVersion = output.modelVersion @@ -2701,9 +2692,8 @@ public enum InferRxNormOutputError: Swift.Error, Swift.Equatable { extension InferRxNormOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InferRxNormOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.modelVersion = output.modelVersion @@ -2852,9 +2842,8 @@ public enum InferSNOMEDCTOutputError: Swift.Error, Swift.Equatable { extension InferSNOMEDCTOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InferSNOMEDCTOutputResponseBody = try responseDecoder.decode(responseBody: data) self.characters = output.characters self.entities = output.entities @@ -2989,9 +2978,8 @@ extension ComprehendMedicalClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3005,7 +2993,7 @@ extension InternalServerException { } /// An internal server error occurred. Retry your request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3041,9 +3029,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidEncodingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEncodingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3057,7 +3044,7 @@ extension InvalidEncodingException { } /// The input text was not in valid UTF-8 character encoding. Check your text then retry your request. -public struct InvalidEncodingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEncodingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3093,9 +3080,8 @@ extension InvalidEncodingExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3109,7 +3095,7 @@ extension InvalidRequestException { } /// The request that you made is invalid. Check your request to determine why it's invalid and then retry the request. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3320,9 +3306,8 @@ public enum ListEntitiesDetectionV2JobsOutputError: Swift.Error, Swift.Equatable extension ListEntitiesDetectionV2JobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntitiesDetectionV2JobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobPropertiesList = output.comprehendMedicalAsyncJobPropertiesList self.nextToken = output.nextToken @@ -3479,9 +3464,8 @@ public enum ListICD10CMInferenceJobsOutputError: Swift.Error, Swift.Equatable { extension ListICD10CMInferenceJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListICD10CMInferenceJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobPropertiesList = output.comprehendMedicalAsyncJobPropertiesList self.nextToken = output.nextToken @@ -3638,9 +3622,8 @@ public enum ListPHIDetectionJobsOutputError: Swift.Error, Swift.Equatable { extension ListPHIDetectionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPHIDetectionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobPropertiesList = output.comprehendMedicalAsyncJobPropertiesList self.nextToken = output.nextToken @@ -3797,9 +3780,8 @@ public enum ListRxNormInferenceJobsOutputError: Swift.Error, Swift.Equatable { extension ListRxNormInferenceJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRxNormInferenceJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobPropertiesList = output.comprehendMedicalAsyncJobPropertiesList self.nextToken = output.nextToken @@ -3956,9 +3938,8 @@ public enum ListSNOMEDCTInferenceJobsOutputError: Swift.Error, Swift.Equatable { extension ListSNOMEDCTInferenceJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSNOMEDCTInferenceJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comprehendMedicalAsyncJobPropertiesList = output.comprehendMedicalAsyncJobPropertiesList self.nextToken = output.nextToken @@ -4148,9 +4129,8 @@ extension ComprehendMedicalClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4164,7 +4144,7 @@ extension ResourceNotFoundException { } /// The resource identified by the specified Amazon Resource Name (ARN) was not found. Check the ARN and try your request again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5404,9 +5384,8 @@ extension ComprehendMedicalClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5420,7 +5399,7 @@ extension ServiceUnavailableException { } /// The Comprehend Medical; service is temporarily unavailable. Please wait and then retry your request. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5607,9 +5586,8 @@ public enum StartEntitiesDetectionV2JobOutputError: Swift.Error, Swift.Equatable extension StartEntitiesDetectionV2JobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartEntitiesDetectionV2JobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -5799,9 +5777,8 @@ public enum StartICD10CMInferenceJobOutputError: Swift.Error, Swift.Equatable { extension StartICD10CMInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartICD10CMInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -5991,9 +5968,8 @@ public enum StartPHIDetectionJobOutputError: Swift.Error, Swift.Equatable { extension StartPHIDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartPHIDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6183,9 +6159,8 @@ public enum StartRxNormInferenceJobOutputError: Swift.Error, Swift.Equatable { extension StartRxNormInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRxNormInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6375,9 +6350,8 @@ public enum StartSNOMEDCTInferenceJobOutputError: Swift.Error, Swift.Equatable { extension StartSNOMEDCTInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSNOMEDCTInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6490,9 +6464,8 @@ public enum StopEntitiesDetectionV2JobOutputError: Swift.Error, Swift.Equatable extension StopEntitiesDetectionV2JobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopEntitiesDetectionV2JobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6605,9 +6578,8 @@ public enum StopICD10CMInferenceJobOutputError: Swift.Error, Swift.Equatable { extension StopICD10CMInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopICD10CMInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6720,9 +6692,8 @@ public enum StopPHIDetectionJobOutputError: Swift.Error, Swift.Equatable { extension StopPHIDetectionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopPHIDetectionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6835,9 +6806,8 @@ public enum StopRxNormInferenceJobOutputError: Swift.Error, Swift.Equatable { extension StopRxNormInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopRxNormInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6952,9 +6922,8 @@ public enum StopSNOMEDCTInferenceJobOutputError: Swift.Error, Swift.Equatable { extension StopSNOMEDCTInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopSNOMEDCTInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6993,9 +6962,8 @@ extension StopSNOMEDCTInferenceJobOutputResponseBody: Swift.Decodable { extension TextSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TextSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7009,7 +6977,7 @@ extension TextSizeLimitExceededException { } /// The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller document and then retry your request. -public struct TextSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TextSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7045,9 +7013,8 @@ extension TextSizeLimitExceededExceptionBody: Swift.Decodable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7061,7 +7028,7 @@ extension TooManyRequestsException { } /// You have made too many requests within a short period of time. Wait for a short time and then try your request again. Contact customer support for more information about a service limit increase. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7187,9 +7154,8 @@ extension ComprehendMedicalClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7203,7 +7169,7 @@ extension ValidationException { } /// The filter that you specified for the operation is invalid. Check the filter values that you entered and try your request again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSComputeOptimizer/ComputeOptimizerClient.swift b/Sources/Services/AWSComputeOptimizer/ComputeOptimizerClient.swift index b7cbf538384..f3b65f0333e 100644 --- a/Sources/Services/AWSComputeOptimizer/ComputeOptimizerClient.swift +++ b/Sources/Services/AWSComputeOptimizer/ComputeOptimizerClient.swift @@ -208,6 +208,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecommendationPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecommendationExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportAutoScalingGroupRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportEBSVolumeRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportEC2InstanceRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportECSServiceRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportLambdaFunctionRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAutoScalingGroupRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEBSVolumeRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEC2InstanceRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEC2RecommendationProjectedMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getECSServiceRecommendationProjectedMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getECSServiceRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEffectiveRecommendationPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnrollmentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnrollmentStatusesForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLambdaFunctionRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecommendationPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -866,6 +884,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecommendationSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -882,7 +901,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +921,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRecommendationPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -918,7 +938,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -938,6 +958,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "compute-optimizer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnrollmentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +975,7 @@ extension ComputeOptimizerClient: ComputeOptimizerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSComputeOptimizer/models/Models.swift b/Sources/Services/AWSComputeOptimizer/models/Models.swift index 9d44977f6d5..1400528961b 100644 --- a/Sources/Services/AWSComputeOptimizer/models/Models.swift +++ b/Sources/Services/AWSComputeOptimizer/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1065,9 +1064,8 @@ public enum DescribeRecommendationExportJobsOutputError: Swift.Error, Swift.Equa extension DescribeRecommendationExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecommendationExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendationExportJobs = output.recommendationExportJobs @@ -2628,9 +2626,8 @@ public enum ExportAutoScalingGroupRecommendationsOutputError: Swift.Error, Swift extension ExportAutoScalingGroupRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportAutoScalingGroupRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.s3Destination = output.s3Destination @@ -2894,9 +2891,8 @@ public enum ExportEBSVolumeRecommendationsOutputError: Swift.Error, Swift.Equata extension ExportEBSVolumeRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportEBSVolumeRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.s3Destination = output.s3Destination @@ -3137,9 +3133,8 @@ public enum ExportEC2InstanceRecommendationsOutputError: Swift.Error, Swift.Equa extension ExportEC2InstanceRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportEC2InstanceRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.s3Destination = output.s3Destination @@ -3368,9 +3363,8 @@ public enum ExportECSServiceRecommendationsOutputError: Swift.Error, Swift.Equat extension ExportECSServiceRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportECSServiceRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.s3Destination = output.s3Destination @@ -3599,9 +3593,8 @@ public enum ExportLambdaFunctionRecommendationsOutputError: Swift.Error, Swift.E extension ExportLambdaFunctionRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportLambdaFunctionRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.s3Destination = output.s3Destination @@ -4821,9 +4814,8 @@ public enum GetAutoScalingGroupRecommendationsOutputError: Swift.Error, Swift.Eq extension GetAutoScalingGroupRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAutoScalingGroupRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingGroupRecommendations = output.autoScalingGroupRecommendations self.errors = output.errors @@ -5067,9 +5059,8 @@ public enum GetEBSVolumeRecommendationsOutputError: Swift.Error, Swift.Equatable extension GetEBSVolumeRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEBSVolumeRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.nextToken = output.nextToken @@ -5325,9 +5316,8 @@ public enum GetEC2InstanceRecommendationsOutputError: Swift.Error, Swift.Equatab extension GetEC2InstanceRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEC2InstanceRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.instanceRecommendations = output.instanceRecommendations @@ -5552,9 +5542,8 @@ public enum GetEC2RecommendationProjectedMetricsOutputError: Swift.Error, Swift. extension GetEC2RecommendationProjectedMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEC2RecommendationProjectedMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommendedOptionProjectedMetrics = output.recommendedOptionProjectedMetrics } else { @@ -5738,9 +5727,8 @@ public enum GetECSServiceRecommendationProjectedMetricsOutputError: Swift.Error, extension GetECSServiceRecommendationProjectedMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetECSServiceRecommendationProjectedMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommendedOptionProjectedMetrics = output.recommendedOptionProjectedMetrics } else { @@ -5955,9 +5943,8 @@ public enum GetECSServiceRecommendationsOutputError: Swift.Error, Swift.Equatabl extension GetECSServiceRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetECSServiceRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ecsServiceRecommendations = output.ecsServiceRecommendations self.errors = output.errors @@ -6118,9 +6105,8 @@ public enum GetEffectiveRecommendationPreferencesOutputError: Swift.Error, Swift extension GetEffectiveRecommendationPreferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEffectiveRecommendationPreferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.enhancedInfrastructureMetrics = output.enhancedInfrastructureMetrics self.externalMetricsPreference = output.externalMetricsPreference @@ -6229,9 +6215,8 @@ public enum GetEnrollmentStatusOutputError: Swift.Error, Swift.Equatable { extension GetEnrollmentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnrollmentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastUpdatedTimestamp = output.lastUpdatedTimestamp self.memberAccountsEnrolled = output.memberAccountsEnrolled @@ -6425,9 +6410,8 @@ public enum GetEnrollmentStatusesForOrganizationOutputError: Swift.Error, Swift. extension GetEnrollmentStatusesForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnrollmentStatusesForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountEnrollmentStatuses = output.accountEnrollmentStatuses self.nextToken = output.nextToken @@ -6652,9 +6636,8 @@ public enum GetLambdaFunctionRecommendationsOutputError: Swift.Error, Swift.Equa extension GetLambdaFunctionRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLambdaFunctionRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lambdaFunctionRecommendations = output.lambdaFunctionRecommendations self.nextToken = output.nextToken @@ -6887,9 +6870,8 @@ public enum GetRecommendationPreferencesOutputError: Swift.Error, Swift.Equatabl extension GetRecommendationPreferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecommendationPreferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendationPreferencesDetails = output.recommendationPreferencesDetails @@ -7064,9 +7046,8 @@ public enum GetRecommendationSummariesOutputError: Swift.Error, Swift.Equatable extension GetRecommendationSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecommendationSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendationSummaries = output.recommendationSummaries @@ -7747,9 +7728,8 @@ extension ComputeOptimizerClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7763,7 +7743,7 @@ extension InternalServerException { } /// An internal error has occurred. Try your call again. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7799,9 +7779,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7815,7 +7794,7 @@ extension InvalidParameterValueException { } /// The value supplied for the input parameter is out of range or not valid. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8662,9 +8641,8 @@ extension ComputeOptimizerClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8678,7 +8656,7 @@ extension LimitExceededException { } /// The request exceeds a limit of the service. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8897,9 +8875,8 @@ extension ComputeOptimizerClientTypes { extension MissingAuthenticationToken { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingAuthenticationTokenBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8913,7 +8890,7 @@ extension MissingAuthenticationToken { } /// The request must contain either a valid (registered) Amazon Web Services access key ID or X.509 certificate. -public struct MissingAuthenticationToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingAuthenticationToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8949,9 +8926,8 @@ extension MissingAuthenticationTokenBody: Swift.Decodable { extension OptInRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OptInRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8965,7 +8941,7 @@ extension OptInRequiredException { } /// The account is not opted in to Compute Optimizer. -public struct OptInRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OptInRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9813,9 +9789,8 @@ extension ComputeOptimizerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9829,7 +9804,7 @@ extension ResourceNotFoundException { } /// A resource that is required for the action doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10243,9 +10218,8 @@ extension ComputeOptimizerClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10259,7 +10233,7 @@ extension ServiceUnavailableException { } /// The request has failed due to a temporary failure of the server. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10400,9 +10374,8 @@ extension ComputeOptimizerClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10416,7 +10389,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10552,9 +10525,8 @@ public enum UpdateEnrollmentStatusOutputError: Swift.Error, Swift.Equatable { extension UpdateEnrollmentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnrollmentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status self.statusReason = output.statusReason diff --git a/Sources/Services/AWSConfigService/ConfigClient.swift b/Sources/Services/AWSConfigService/ConfigClient.swift index 746380145fc..b0e4ae4f2c3 100644 --- a/Sources/Services/AWSConfigService/ConfigClient.swift +++ b/Sources/Services/AWSConfigService/ConfigClient.swift @@ -212,6 +212,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetAggregateResourceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -228,7 +229,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetResourceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAggregationAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationAggregator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationRecorder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +438,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConformancePack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeliveryChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEvaluationResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOrganizationConfigRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +566,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOrganizationConformancePack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -592,7 +603,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -612,6 +623,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePendingAggregationRequest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +640,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRemediationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +677,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +697,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRemediationExceptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +714,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +734,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +751,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +771,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRetentionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +788,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +808,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStoredQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +825,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +851,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deliverConfigSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -850,7 +868,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -870,6 +888,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAggregateComplianceByConfigRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -886,7 +905,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -906,6 +925,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAggregateComplianceByConformancePacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -922,7 +942,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -942,6 +962,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAggregationAuthorizations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -958,7 +979,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -984,6 +1005,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeComplianceByConfigRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1000,7 +1022,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1026,6 +1048,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeComplianceByResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1042,7 +1065,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1062,6 +1085,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigRuleEvaluationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1078,7 +1102,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1098,6 +1122,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1114,7 +1139,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1134,6 +1159,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationAggregatorSourcesStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1150,7 +1176,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1170,6 +1196,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationAggregators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1186,7 +1213,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1206,6 +1233,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationRecorderStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1222,7 +1250,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1242,6 +1270,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationRecorders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1258,7 +1287,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1278,6 +1307,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConformancePackCompliance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1294,7 +1324,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1314,6 +1344,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConformancePackStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1330,7 +1361,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1350,6 +1381,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConformancePacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1366,7 +1398,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1386,6 +1418,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDeliveryChannelStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1402,7 +1435,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1422,6 +1455,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDeliveryChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1438,7 +1472,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1458,6 +1492,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConfigRuleStatuses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1474,7 +1509,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1494,6 +1529,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConfigRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1510,7 +1546,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1530,6 +1566,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConformancePackStatuses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1546,7 +1583,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1566,6 +1603,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConformancePacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1582,7 +1620,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1602,6 +1640,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePendingAggregationRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1618,7 +1657,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1638,6 +1677,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRemediationConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1654,7 +1694,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1674,6 +1714,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRemediationExceptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1690,7 +1731,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1710,6 +1751,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRemediationExecutionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1726,7 +1768,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1746,6 +1788,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRetentionConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1762,7 +1805,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1782,6 +1825,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAggregateComplianceDetailsByConfigRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1798,7 +1842,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1818,6 +1862,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAggregateConfigRuleComplianceSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1834,7 +1879,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1854,6 +1899,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAggregateConformancePackComplianceSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1870,7 +1916,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1890,6 +1936,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAggregateDiscoveredResourceCounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1906,7 +1953,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1926,6 +1973,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAggregateResourceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1942,7 +1990,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1962,6 +2010,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComplianceDetailsByConfigRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1978,7 +2027,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1998,6 +2047,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComplianceDetailsByResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2014,7 +2064,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2034,6 +2084,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComplianceSummaryByConfigRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2050,7 +2101,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2070,6 +2121,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComplianceSummaryByResourceType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2086,7 +2138,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2106,6 +2158,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConformancePackComplianceDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2122,7 +2175,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2142,6 +2195,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConformancePackComplianceSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2158,7 +2212,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2178,6 +2232,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCustomRulePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2194,7 +2249,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2239,6 +2294,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDiscoveredResourceCounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2255,7 +2311,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2275,6 +2331,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOrganizationConfigRuleDetailedStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2291,7 +2348,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2311,6 +2368,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOrganizationConformancePackDetailedStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2327,7 +2385,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2347,6 +2405,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOrganizationCustomRulePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2363,7 +2422,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2383,6 +2442,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceConfigHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2399,7 +2459,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2419,6 +2479,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceEvaluationSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2435,7 +2496,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2455,6 +2516,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStoredQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2471,7 +2533,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2491,6 +2553,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAggregateDiscoveredResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2507,7 +2570,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2527,6 +2590,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConformancePackComplianceScores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2543,7 +2607,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2563,6 +2627,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDiscoveredResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2579,7 +2644,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2599,6 +2664,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceEvaluations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2615,7 +2681,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2635,6 +2701,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStoredQueries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2651,7 +2718,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2671,6 +2738,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2687,7 +2755,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2707,6 +2775,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAggregationAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2723,7 +2792,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2743,6 +2812,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2759,7 +2829,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2779,6 +2849,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationAggregator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2795,7 +2866,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2815,6 +2886,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationRecorder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2831,7 +2903,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2851,6 +2923,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConformancePack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2867,7 +2940,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2887,6 +2960,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDeliveryChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2903,7 +2977,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2923,6 +2997,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEvaluations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2939,7 +3014,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2959,6 +3034,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putExternalEvaluation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2975,7 +3051,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2995,6 +3071,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putOrganizationConfigRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3011,7 +3088,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3031,6 +3108,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putOrganizationConformancePack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3047,7 +3125,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3067,6 +3145,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRemediationConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3083,7 +3162,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3103,6 +3182,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRemediationExceptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3119,7 +3199,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3139,6 +3219,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3155,7 +3236,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3175,6 +3256,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRetentionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3191,7 +3273,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3211,6 +3293,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putStoredQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3227,7 +3310,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3247,6 +3330,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "selectAggregateResourceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3263,7 +3347,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3283,6 +3367,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "selectResourceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3299,7 +3384,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3329,6 +3414,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startConfigRulesEvaluation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3345,7 +3431,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3365,6 +3451,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startConfigurationRecorder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3381,7 +3468,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3401,6 +3488,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRemediationExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3417,7 +3505,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3437,6 +3525,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startResourceEvaluation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3453,7 +3542,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3473,6 +3562,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopConfigurationRecorder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3489,7 +3579,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3509,6 +3599,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3525,7 +3616,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3545,6 +3636,7 @@ extension ConfigClient: ConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3561,7 +3653,7 @@ extension ConfigClient: ConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSConfigService/models/Models.swift b/Sources/Services/AWSConfigService/models/Models.swift index c57201cc5f5..33b9423af2e 100644 --- a/Sources/Services/AWSConfigService/models/Models.swift +++ b/Sources/Services/AWSConfigService/models/Models.swift @@ -1250,9 +1250,8 @@ public enum BatchGetAggregateResourceConfigOutputError: Swift.Error, Swift.Equat extension BatchGetAggregateResourceConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetAggregateResourceConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseConfigurationItems = output.baseConfigurationItems self.unprocessedResourceIdentifiers = output.unprocessedResourceIdentifiers @@ -1403,9 +1402,8 @@ public enum BatchGetResourceConfigOutputError: Swift.Error, Swift.Equatable { extension BatchGetResourceConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetResourceConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseConfigurationItems = output.baseConfigurationItems self.unprocessedResourceKeys = output.unprocessedResourceKeys @@ -3939,9 +3937,8 @@ extension ConfigClientTypes { extension ConformancePackTemplateValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConformancePackTemplateValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3955,7 +3952,7 @@ extension ConformancePackTemplateValidationException { } /// You have specified a template that is not valid or supported. -public struct ConformancePackTemplateValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConformancePackTemplateValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5089,9 +5086,8 @@ public enum DeleteRemediationExceptionsOutputError: Swift.Error, Swift.Equatable extension DeleteRemediationExceptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRemediationExceptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedBatches = output.failedBatches } else { @@ -5473,9 +5469,8 @@ public enum DeliverConfigSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeliverConfigSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeliverConfigSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configSnapshotId = output.configSnapshotId } else { @@ -5812,9 +5807,8 @@ public enum DescribeAggregateComplianceByConfigRulesOutputError: Swift.Error, Sw extension DescribeAggregateComplianceByConfigRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAggregateComplianceByConfigRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregateComplianceByConfigRules = output.aggregateComplianceByConfigRules self.nextToken = output.nextToken @@ -5984,9 +5978,8 @@ public enum DescribeAggregateComplianceByConformancePacksOutputError: Swift.Erro extension DescribeAggregateComplianceByConformancePacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAggregateComplianceByConformancePacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregateComplianceByConformancePacks = output.aggregateComplianceByConformancePacks self.nextToken = output.nextToken @@ -6129,9 +6122,8 @@ public enum DescribeAggregationAuthorizationsOutputError: Swift.Error, Swift.Equ extension DescribeAggregationAuthorizationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAggregationAuthorizationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregationAuthorizations = output.aggregationAuthorizations self.nextToken = output.nextToken @@ -6311,9 +6303,8 @@ public enum DescribeComplianceByConfigRuleOutputError: Swift.Error, Swift.Equata extension DescribeComplianceByConfigRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeComplianceByConfigRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.complianceByConfigRules = output.complianceByConfigRules self.nextToken = output.nextToken @@ -6504,9 +6495,8 @@ public enum DescribeComplianceByResourceOutputError: Swift.Error, Swift.Equatabl extension DescribeComplianceByResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeComplianceByResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.complianceByResources = output.complianceByResources self.nextToken = output.nextToken @@ -6675,9 +6665,8 @@ public enum DescribeConfigRuleEvaluationStatusOutputError: Swift.Error, Swift.Eq extension DescribeConfigRuleEvaluationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigRuleEvaluationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configRulesEvaluationStatus = output.configRulesEvaluationStatus self.nextToken = output.nextToken @@ -6881,9 +6870,8 @@ public enum DescribeConfigRulesOutputError: Swift.Error, Swift.Equatable { extension DescribeConfigRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configRules = output.configRules self.nextToken = output.nextToken @@ -7072,9 +7060,8 @@ public enum DescribeConfigurationAggregatorSourcesStatusOutputError: Swift.Error extension DescribeConfigurationAggregatorSourcesStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationAggregatorSourcesStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregatedSourceStatusList = output.aggregatedSourceStatusList self.nextToken = output.nextToken @@ -7243,9 +7230,8 @@ public enum DescribeConfigurationAggregatorsOutputError: Swift.Error, Swift.Equa extension DescribeConfigurationAggregatorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationAggregatorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationAggregators = output.configurationAggregators self.nextToken = output.nextToken @@ -7385,9 +7371,8 @@ public enum DescribeConfigurationRecorderStatusOutputError: Swift.Error, Swift.E extension DescribeConfigurationRecorderStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationRecorderStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationRecordersStatus = output.configurationRecordersStatus } else { @@ -7518,9 +7503,8 @@ public enum DescribeConfigurationRecordersOutputError: Swift.Error, Swift.Equata extension DescribeConfigurationRecordersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationRecordersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationRecorders = output.configurationRecorders } else { @@ -7683,9 +7667,8 @@ public enum DescribeConformancePackComplianceOutputError: Swift.Error, Swift.Equ extension DescribeConformancePackComplianceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConformancePackComplianceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conformancePackName = output.conformancePackName self.conformancePackRuleComplianceList = output.conformancePackRuleComplianceList @@ -7864,9 +7847,8 @@ public enum DescribeConformancePackStatusOutputError: Swift.Error, Swift.Equatab extension DescribeConformancePackStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConformancePackStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conformancePackStatusDetails = output.conformancePackStatusDetails self.nextToken = output.nextToken @@ -8035,9 +8017,8 @@ public enum DescribeConformancePacksOutputError: Swift.Error, Swift.Equatable { extension DescribeConformancePacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConformancePacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conformancePackDetails = output.conformancePackDetails self.nextToken = output.nextToken @@ -8177,9 +8158,8 @@ public enum DescribeDeliveryChannelStatusOutputError: Swift.Error, Swift.Equatab extension DescribeDeliveryChannelStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeliveryChannelStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliveryChannelsStatus = output.deliveryChannelsStatus } else { @@ -8310,9 +8290,8 @@ public enum DescribeDeliveryChannelsOutputError: Swift.Error, Swift.Equatable { extension DescribeDeliveryChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeliveryChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliveryChannels = output.deliveryChannels } else { @@ -8472,9 +8451,8 @@ public enum DescribeOrganizationConfigRuleStatusesOutputError: Swift.Error, Swif extension DescribeOrganizationConfigRuleStatusesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConfigRuleStatusesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationConfigRuleStatuses = output.organizationConfigRuleStatuses @@ -8643,9 +8621,8 @@ public enum DescribeOrganizationConfigRulesOutputError: Swift.Error, Swift.Equat extension DescribeOrganizationConfigRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConfigRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationConfigRules = output.organizationConfigRules @@ -8814,9 +8791,8 @@ public enum DescribeOrganizationConformancePackStatusesOutputError: Swift.Error, extension DescribeOrganizationConformancePackStatusesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConformancePackStatusesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationConformancePackStatuses = output.organizationConformancePackStatuses @@ -8985,9 +8961,8 @@ public enum DescribeOrganizationConformancePacksOutputError: Swift.Error, Swift. extension DescribeOrganizationConformancePacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConformancePacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationConformancePacks = output.organizationConformancePacks @@ -9130,9 +9105,8 @@ public enum DescribePendingAggregationRequestsOutputError: Swift.Error, Swift.Eq extension DescribePendingAggregationRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePendingAggregationRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pendingAggregationRequests = output.pendingAggregationRequests @@ -9270,9 +9244,8 @@ public enum DescribeRemediationConfigurationsOutputError: Swift.Error, Swift.Equ extension DescribeRemediationConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRemediationConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.remediationConfigurations = output.remediationConfigurations } else { @@ -9440,9 +9413,8 @@ public enum DescribeRemediationExceptionsOutputError: Swift.Error, Swift.Equatab extension DescribeRemediationExceptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRemediationExceptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.remediationExceptions = output.remediationExceptions @@ -9622,9 +9594,8 @@ public enum DescribeRemediationExecutionStatusOutputError: Swift.Error, Swift.Eq extension DescribeRemediationExecutionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRemediationExecutionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.remediationExecutionStatuses = output.remediationExecutionStatuses @@ -9779,9 +9750,8 @@ public enum DescribeRetentionConfigurationsOutputError: Swift.Error, Swift.Equat extension DescribeRetentionConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRetentionConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.retentionConfigurations = output.retentionConfigurations @@ -10771,9 +10741,8 @@ public enum GetAggregateComplianceDetailsByConfigRuleOutputError: Swift.Error, S extension GetAggregateComplianceDetailsByConfigRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAggregateComplianceDetailsByConfigRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregateEvaluationResults = output.aggregateEvaluationResults self.nextToken = output.nextToken @@ -10955,9 +10924,8 @@ public enum GetAggregateConfigRuleComplianceSummaryOutputError: Swift.Error, Swi extension GetAggregateConfigRuleComplianceSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAggregateConfigRuleComplianceSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregateComplianceCounts = output.aggregateComplianceCounts self.groupByKey = output.groupByKey @@ -11149,9 +11117,8 @@ public enum GetAggregateConformancePackComplianceSummaryOutputError: Swift.Error extension GetAggregateConformancePackComplianceSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAggregateConformancePackComplianceSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregateConformancePackComplianceSummaries = output.aggregateConformancePackComplianceSummaries self.groupByKey = output.groupByKey @@ -11343,9 +11310,8 @@ public enum GetAggregateDiscoveredResourceCountsOutputError: Swift.Error, Swift. extension GetAggregateDiscoveredResourceCountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAggregateDiscoveredResourceCountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupByKey = output.groupByKey self.groupedResourceCounts = output.groupedResourceCounts @@ -11513,9 +11479,8 @@ public enum GetAggregateResourceConfigOutputError: Swift.Error, Swift.Equatable extension GetAggregateResourceConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAggregateResourceConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationItem = output.configurationItem } else { @@ -11677,9 +11642,8 @@ public enum GetComplianceDetailsByConfigRuleOutputError: Swift.Error, Swift.Equa extension GetComplianceDetailsByConfigRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComplianceDetailsByConfigRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluationResults = output.evaluationResults self.nextToken = output.nextToken @@ -11868,9 +11832,8 @@ public enum GetComplianceDetailsByResourceOutputError: Swift.Error, Swift.Equata extension GetComplianceDetailsByResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComplianceDetailsByResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluationResults = output.evaluationResults self.nextToken = output.nextToken @@ -11977,9 +11940,8 @@ public enum GetComplianceSummaryByConfigRuleOutputError: Swift.Error, Swift.Equa extension GetComplianceSummaryByConfigRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComplianceSummaryByConfigRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.complianceSummary = output.complianceSummary } else { @@ -12101,9 +12063,8 @@ public enum GetComplianceSummaryByResourceTypeOutputError: Swift.Error, Swift.Eq extension GetComplianceSummaryByResourceTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComplianceSummaryByResourceTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.complianceSummariesByResourceType = output.complianceSummariesByResourceType } else { @@ -12266,9 +12227,8 @@ public enum GetConformancePackComplianceDetailsOutputError: Swift.Error, Swift.E extension GetConformancePackComplianceDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConformancePackComplianceDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conformancePackName = output.conformancePackName self.conformancePackRuleEvaluationResults = output.conformancePackRuleEvaluationResults @@ -12447,9 +12407,8 @@ public enum GetConformancePackComplianceSummaryOutputError: Swift.Error, Swift.E extension GetConformancePackComplianceSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConformancePackComplianceSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conformancePackComplianceSummaryList = output.conformancePackComplianceSummaryList self.nextToken = output.nextToken @@ -12576,9 +12535,8 @@ public enum GetCustomRulePolicyOutputError: Swift.Error, Swift.Equatable { extension GetCustomRulePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCustomRulePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText } else { @@ -12726,9 +12684,8 @@ public enum GetDiscoveredResourceCountsOutputError: Swift.Error, Swift.Equatable extension GetDiscoveredResourceCountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDiscoveredResourceCountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceCounts = output.resourceCounts @@ -12914,9 +12871,8 @@ public enum GetOrganizationConfigRuleDetailedStatusOutputError: Swift.Error, Swi extension GetOrganizationConfigRuleDetailedStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOrganizationConfigRuleDetailedStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationConfigRuleDetailedStatus = output.organizationConfigRuleDetailedStatus @@ -13086,9 +13042,8 @@ public enum GetOrganizationConformancePackDetailedStatusOutputError: Swift.Error extension GetOrganizationConformancePackDetailedStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOrganizationConformancePackDetailedStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationConformancePackDetailedStatuses = output.organizationConformancePackDetailedStatuses @@ -13218,9 +13173,8 @@ public enum GetOrganizationCustomRulePolicyOutputError: Swift.Error, Swift.Equat extension GetOrganizationCustomRulePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOrganizationCustomRulePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText } else { @@ -13413,9 +13367,8 @@ public enum GetResourceConfigHistoryOutputError: Swift.Error, Swift.Equatable { extension GetResourceConfigHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceConfigHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationItems = output.configurationItems self.nextToken = output.nextToken @@ -13544,9 +13497,8 @@ public enum GetResourceEvaluationSummaryOutputError: Swift.Error, Swift.Equatabl extension GetResourceEvaluationSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceEvaluationSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compliance = output.compliance self.evaluationContext = output.evaluationContext @@ -13717,9 +13669,8 @@ public enum GetStoredQueryOutputError: Swift.Error, Swift.Equatable { extension GetStoredQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStoredQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.storedQuery = output.storedQuery } else { @@ -13805,9 +13756,8 @@ extension ConfigClientTypes { extension IdempotentParameterMismatch { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13821,7 +13771,7 @@ extension IdempotentParameterMismatch { } /// Using the same client token with one or more different parameters. Specify a new client token with the parameter changes and try again. -public struct IdempotentParameterMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13857,9 +13807,8 @@ extension IdempotentParameterMismatchBody: Swift.Decodable { extension InsufficientDeliveryPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientDeliveryPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13873,7 +13822,7 @@ extension InsufficientDeliveryPolicyException { } /// Your Amazon S3 bucket policy does not permit Config to write to it. -public struct InsufficientDeliveryPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientDeliveryPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13910,9 +13859,8 @@ extension InsufficientDeliveryPolicyExceptionBody: Swift.Decodable { extension InsufficientPermissionsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientPermissionsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13938,7 +13886,7 @@ extension InsufficientPermissionsException { /// * You do not have permission to call IAM GetRole action or create a service-linked role. /// /// * You do not have permission to read Amazon S3 bucket or call SSM:GetDocument. -public struct InsufficientPermissionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientPermissionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13975,9 +13923,8 @@ extension InsufficientPermissionsExceptionBody: Swift.Decodable { extension InvalidConfigurationRecorderNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidConfigurationRecorderNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13991,7 +13938,7 @@ extension InvalidConfigurationRecorderNameException { } /// You have provided a configuration recorder name that is not valid. -public struct InvalidConfigurationRecorderNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConfigurationRecorderNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14028,9 +13975,8 @@ extension InvalidConfigurationRecorderNameExceptionBody: Swift.Decodable { extension InvalidDeliveryChannelNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeliveryChannelNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14044,7 +13990,7 @@ extension InvalidDeliveryChannelNameException { } /// The specified delivery channel name is not valid. -public struct InvalidDeliveryChannelNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeliveryChannelNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14081,9 +14027,8 @@ extension InvalidDeliveryChannelNameExceptionBody: Swift.Decodable { extension InvalidExpressionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidExpressionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14097,7 +14042,7 @@ extension InvalidExpressionException { } /// The syntax of the query is incorrect. -public struct InvalidExpressionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidExpressionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14134,9 +14079,8 @@ extension InvalidExpressionExceptionBody: Swift.Decodable { extension InvalidLimitException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLimitExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14150,7 +14094,7 @@ extension InvalidLimitException { } /// The specified limit is outside the allowable range. -public struct InvalidLimitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLimitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14187,9 +14131,8 @@ extension InvalidLimitExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14203,7 +14146,7 @@ extension InvalidNextTokenException { } /// The specified next token is not valid. Specify the nextToken string that was returned in the previous response to get the next page of results. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14240,9 +14183,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14256,7 +14198,7 @@ extension InvalidParameterValueException { } /// One or more of the specified parameters are not valid. Verify that your parameters are valid and try again. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14293,9 +14235,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidRecordingGroupException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRecordingGroupExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14309,7 +14250,7 @@ extension InvalidRecordingGroupException { } /// Config throws an exception if the recording group does not contain a valid list of resource types. Values that are not valid might also be incorrectly formatted. -public struct InvalidRecordingGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRecordingGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14346,9 +14287,8 @@ extension InvalidRecordingGroupExceptionBody: Swift.Decodable { extension InvalidResultTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResultTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14362,7 +14302,7 @@ extension InvalidResultTokenException { } /// The specified ResultToken is not valid. -public struct InvalidResultTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResultTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14399,9 +14339,8 @@ extension InvalidResultTokenExceptionBody: Swift.Decodable { extension InvalidRoleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRoleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14415,7 +14354,7 @@ extension InvalidRoleException { } /// You have provided a null or empty role ARN. -public struct InvalidRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14452,9 +14391,8 @@ extension InvalidRoleExceptionBody: Swift.Decodable { extension InvalidS3KeyPrefixException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidS3KeyPrefixExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14468,7 +14406,7 @@ extension InvalidS3KeyPrefixException { } /// The specified Amazon S3 key prefix is not valid. -public struct InvalidS3KeyPrefixException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3KeyPrefixException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14505,9 +14443,8 @@ extension InvalidS3KeyPrefixExceptionBody: Swift.Decodable { extension InvalidS3KmsKeyArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidS3KmsKeyArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14521,7 +14458,7 @@ extension InvalidS3KmsKeyArnException { } /// The specified Amazon KMS Key ARN is not valid. -public struct InvalidS3KmsKeyArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3KmsKeyArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14558,9 +14495,8 @@ extension InvalidS3KmsKeyArnExceptionBody: Swift.Decodable { extension InvalidSNSTopicARNException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSNSTopicARNExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14574,7 +14510,7 @@ extension InvalidSNSTopicARNException { } /// The specified Amazon SNS topic does not exist. -public struct InvalidSNSTopicARNException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSNSTopicARNException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14611,9 +14547,8 @@ extension InvalidSNSTopicARNExceptionBody: Swift.Decodable { extension InvalidTimeRangeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTimeRangeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14627,7 +14562,7 @@ extension InvalidTimeRangeException { } /// The specified time range is not valid. The earlier time is not chronologically before the later time. -public struct InvalidTimeRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTimeRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14664,9 +14599,8 @@ extension InvalidTimeRangeExceptionBody: Swift.Decodable { extension LastDeliveryChannelDeleteFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LastDeliveryChannelDeleteFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14680,7 +14614,7 @@ extension LastDeliveryChannelDeleteFailedException { } /// You cannot delete the delivery channel you specified because the configuration recorder is running. -public struct LastDeliveryChannelDeleteFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LastDeliveryChannelDeleteFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14717,9 +14651,8 @@ extension LastDeliveryChannelDeleteFailedExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14733,7 +14666,7 @@ extension LimitExceededException { } /// For StartConfigRulesEvaluation API, this exception is thrown if an evaluation is in progress or if you call the [StartConfigRulesEvaluation] API more than once per minute. For PutConfigurationAggregator API, this exception is thrown if the number of accounts and aggregators exceeds the limit. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14895,9 +14828,8 @@ public enum ListAggregateDiscoveredResourcesOutputError: Swift.Error, Swift.Equa extension ListAggregateDiscoveredResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAggregateDiscoveredResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceIdentifiers = output.resourceIdentifiers @@ -15076,9 +15008,8 @@ public enum ListConformancePackComplianceScoresOutputError: Swift.Error, Swift.E extension ListConformancePackComplianceScoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConformancePackComplianceScoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conformancePackComplianceScores = output.conformancePackComplianceScores self.nextToken = output.nextToken @@ -15286,9 +15217,8 @@ public enum ListDiscoveredResourcesOutputError: Swift.Error, Swift.Equatable { extension ListDiscoveredResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDiscoveredResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceIdentifiers = output.resourceIdentifiers @@ -15444,9 +15374,8 @@ public enum ListResourceEvaluationsOutputError: Swift.Error, Swift.Equatable { extension ListResourceEvaluationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceEvaluationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceEvaluations = output.resourceEvaluations @@ -15587,9 +15516,8 @@ public enum ListStoredQueriesOutputError: Swift.Error, Swift.Equatable { extension ListStoredQueriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStoredQueriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.storedQueryMetadata = output.storedQueryMetadata @@ -15747,9 +15675,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -15807,9 +15734,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension MaxActiveResourcesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxActiveResourcesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15823,7 +15749,7 @@ extension MaxActiveResourcesExceededException { } /// You have reached the limit of active custom resource types in your account. There is a limit of 100,000. Delete unused resources using [DeleteResourceConfig](https://docs.aws.amazon.com/config/latest/APIReference/API_DeleteResourceConfig.html). -public struct MaxActiveResourcesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxActiveResourcesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15860,9 +15786,8 @@ extension MaxActiveResourcesExceededExceptionBody: Swift.Decodable { extension MaxNumberOfConfigRulesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxNumberOfConfigRulesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15876,7 +15801,7 @@ extension MaxNumberOfConfigRulesExceededException { } /// Failed to add the Config rule because the account already contains the maximum number of 150 rules. Consider deleting any deactivated rules before you add new rules. -public struct MaxNumberOfConfigRulesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxNumberOfConfigRulesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15913,9 +15838,8 @@ extension MaxNumberOfConfigRulesExceededExceptionBody: Swift.Decodable { extension MaxNumberOfConfigurationRecordersExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxNumberOfConfigurationRecordersExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15929,7 +15853,7 @@ extension MaxNumberOfConfigurationRecordersExceededException { } /// You have reached the limit of the number of recorders you can create. -public struct MaxNumberOfConfigurationRecordersExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxNumberOfConfigurationRecordersExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15966,9 +15890,8 @@ extension MaxNumberOfConfigurationRecordersExceededExceptionBody: Swift.Decodabl extension MaxNumberOfConformancePacksExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxNumberOfConformancePacksExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15982,7 +15905,7 @@ extension MaxNumberOfConformancePacksExceededException { } /// You have reached the limit of the number of conformance packs you can create in an account. For more information, see [ Service Limits ](https://docs.aws.amazon.com/config/latest/developerguide/configlimits.html) in the Config Developer Guide. -public struct MaxNumberOfConformancePacksExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxNumberOfConformancePacksExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16019,9 +15942,8 @@ extension MaxNumberOfConformancePacksExceededExceptionBody: Swift.Decodable { extension MaxNumberOfDeliveryChannelsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxNumberOfDeliveryChannelsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16035,7 +15957,7 @@ extension MaxNumberOfDeliveryChannelsExceededException { } /// You have reached the limit of the number of delivery channels you can create. -public struct MaxNumberOfDeliveryChannelsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxNumberOfDeliveryChannelsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16072,9 +15994,8 @@ extension MaxNumberOfDeliveryChannelsExceededExceptionBody: Swift.Decodable { extension MaxNumberOfOrganizationConfigRulesExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxNumberOfOrganizationConfigRulesExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16088,7 +16009,7 @@ extension MaxNumberOfOrganizationConfigRulesExceededException { } /// You have reached the limit of the number of organization Config rules you can create. For more information, see see [ Service Limits ](https://docs.aws.amazon.com/config/latest/developerguide/configlimits.html) in the Config Developer Guide. -public struct MaxNumberOfOrganizationConfigRulesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxNumberOfOrganizationConfigRulesExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16125,9 +16046,8 @@ extension MaxNumberOfOrganizationConfigRulesExceededExceptionBody: Swift.Decodab extension MaxNumberOfOrganizationConformancePacksExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxNumberOfOrganizationConformancePacksExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16141,7 +16061,7 @@ extension MaxNumberOfOrganizationConformancePacksExceededException { } /// You have reached the limit of the number of organization conformance packs you can create in an account. For more information, see [ Service Limits ](https://docs.aws.amazon.com/config/latest/developerguide/configlimits.html) in the Config Developer Guide. -public struct MaxNumberOfOrganizationConformancePacksExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxNumberOfOrganizationConformancePacksExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16178,9 +16098,8 @@ extension MaxNumberOfOrganizationConformancePacksExceededExceptionBody: Swift.De extension MaxNumberOfRetentionConfigurationsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxNumberOfRetentionConfigurationsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16194,7 +16113,7 @@ extension MaxNumberOfRetentionConfigurationsExceededException { } /// Failed to add the retention configuration because a retention configuration with that name already exists. -public struct MaxNumberOfRetentionConfigurationsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxNumberOfRetentionConfigurationsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16469,9 +16388,8 @@ extension ConfigClientTypes { extension NoAvailableConfigurationRecorderException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoAvailableConfigurationRecorderExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16485,7 +16403,7 @@ extension NoAvailableConfigurationRecorderException { } /// There are no configuration recorders available to provide the role needed to describe your resources. Create a configuration recorder. -public struct NoAvailableConfigurationRecorderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoAvailableConfigurationRecorderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16522,9 +16440,8 @@ extension NoAvailableConfigurationRecorderExceptionBody: Swift.Decodable { extension NoAvailableDeliveryChannelException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoAvailableDeliveryChannelExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16538,7 +16455,7 @@ extension NoAvailableDeliveryChannelException { } /// There is no delivery channel available to record configurations. -public struct NoAvailableDeliveryChannelException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoAvailableDeliveryChannelException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16575,9 +16492,8 @@ extension NoAvailableDeliveryChannelExceptionBody: Swift.Decodable { extension NoAvailableOrganizationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoAvailableOrganizationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16591,7 +16507,7 @@ extension NoAvailableOrganizationException { } /// Organization is no longer available. -public struct NoAvailableOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoAvailableOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16628,9 +16544,8 @@ extension NoAvailableOrganizationExceptionBody: Swift.Decodable { extension NoRunningConfigurationRecorderException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoRunningConfigurationRecorderExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16644,7 +16559,7 @@ extension NoRunningConfigurationRecorderException { } /// There is no configuration recorder running. -public struct NoRunningConfigurationRecorderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoRunningConfigurationRecorderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16681,9 +16596,8 @@ extension NoRunningConfigurationRecorderExceptionBody: Swift.Decodable { extension NoSuchBucketException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchBucketExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16697,7 +16611,7 @@ extension NoSuchBucketException { } /// The specified Amazon S3 bucket does not exist. -public struct NoSuchBucketException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchBucketException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16734,9 +16648,8 @@ extension NoSuchBucketExceptionBody: Swift.Decodable { extension NoSuchConfigRuleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchConfigRuleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16750,7 +16663,7 @@ extension NoSuchConfigRuleException { } /// The Config rule in the request is not valid. Verify that the rule is an Config Process Check rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again. -public struct NoSuchConfigRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchConfigRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16787,9 +16700,8 @@ extension NoSuchConfigRuleExceptionBody: Swift.Decodable { extension NoSuchConfigRuleInConformancePackException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchConfigRuleInConformancePackExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16803,7 +16715,7 @@ extension NoSuchConfigRuleInConformancePackException { } /// Config rule that you passed in the filter does not exist. -public struct NoSuchConfigRuleInConformancePackException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchConfigRuleInConformancePackException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16840,9 +16752,8 @@ extension NoSuchConfigRuleInConformancePackExceptionBody: Swift.Decodable { extension NoSuchConfigurationAggregatorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchConfigurationAggregatorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16856,7 +16767,7 @@ extension NoSuchConfigurationAggregatorException { } /// You have specified a configuration aggregator that does not exist. -public struct NoSuchConfigurationAggregatorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchConfigurationAggregatorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16893,9 +16804,8 @@ extension NoSuchConfigurationAggregatorExceptionBody: Swift.Decodable { extension NoSuchConfigurationRecorderException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchConfigurationRecorderExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16909,7 +16819,7 @@ extension NoSuchConfigurationRecorderException { } /// You have specified a configuration recorder that does not exist. -public struct NoSuchConfigurationRecorderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchConfigurationRecorderException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16946,9 +16856,8 @@ extension NoSuchConfigurationRecorderExceptionBody: Swift.Decodable { extension NoSuchConformancePackException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchConformancePackExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16962,7 +16871,7 @@ extension NoSuchConformancePackException { } /// You specified one or more conformance packs that do not exist. -public struct NoSuchConformancePackException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchConformancePackException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16999,9 +16908,8 @@ extension NoSuchConformancePackExceptionBody: Swift.Decodable { extension NoSuchDeliveryChannelException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchDeliveryChannelExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17015,7 +16923,7 @@ extension NoSuchDeliveryChannelException { } /// You have specified a delivery channel that does not exist. -public struct NoSuchDeliveryChannelException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchDeliveryChannelException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17052,9 +16960,8 @@ extension NoSuchDeliveryChannelExceptionBody: Swift.Decodable { extension NoSuchOrganizationConfigRuleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchOrganizationConfigRuleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17068,7 +16975,7 @@ extension NoSuchOrganizationConfigRuleException { } /// The Config rule in the request is not valid. Verify that the rule is an organization Config Process Check rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again. -public struct NoSuchOrganizationConfigRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchOrganizationConfigRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17105,9 +17012,8 @@ extension NoSuchOrganizationConfigRuleExceptionBody: Swift.Decodable { extension NoSuchOrganizationConformancePackException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchOrganizationConformancePackExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17121,7 +17027,7 @@ extension NoSuchOrganizationConformancePackException { } /// Config organization conformance pack that you passed in the filter does not exist. For DeleteOrganizationConformancePack, you tried to delete an organization conformance pack that does not exist. -public struct NoSuchOrganizationConformancePackException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchOrganizationConformancePackException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17158,9 +17064,8 @@ extension NoSuchOrganizationConformancePackExceptionBody: Swift.Decodable { extension NoSuchRemediationConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchRemediationConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17174,7 +17079,7 @@ extension NoSuchRemediationConfigurationException { } /// You specified an Config rule without a remediation configuration. -public struct NoSuchRemediationConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchRemediationConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17211,9 +17116,8 @@ extension NoSuchRemediationConfigurationExceptionBody: Swift.Decodable { extension NoSuchRemediationExceptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchRemediationExceptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17227,7 +17131,7 @@ extension NoSuchRemediationExceptionException { } /// You tried to delete a remediation exception that does not exist. -public struct NoSuchRemediationExceptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchRemediationExceptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17264,9 +17168,8 @@ extension NoSuchRemediationExceptionExceptionBody: Swift.Decodable { extension NoSuchRetentionConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchRetentionConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17280,7 +17183,7 @@ extension NoSuchRetentionConfigurationException { } /// You have specified a retention configuration that does not exist. -public struct NoSuchRetentionConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchRetentionConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17317,9 +17220,8 @@ extension NoSuchRetentionConfigurationExceptionBody: Swift.Decodable { extension OrganizationAccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationAccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17344,7 +17246,7 @@ extension OrganizationAccessDeniedException { /// /// /// For all OrganizationConfigRule and OrganizationConformancePack APIs, Config throws an exception if APIs are called from member accounts. All APIs must be called from organization management account. -public struct OrganizationAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17449,9 +17351,8 @@ extension ConfigClientTypes { extension OrganizationAllFeaturesNotEnabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationAllFeaturesNotEnabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17465,7 +17366,7 @@ extension OrganizationAllFeaturesNotEnabledException { } /// Config resource cannot be created because your organization does not have all features enabled. -public struct OrganizationAllFeaturesNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationAllFeaturesNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18096,9 +17997,8 @@ extension ConfigClientTypes { extension OrganizationConformancePackTemplateValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationConformancePackTemplateValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18112,7 +18012,7 @@ extension OrganizationConformancePackTemplateValidationException { } /// You have specified a template that is not valid or supported. -public struct OrganizationConformancePackTemplateValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationConformancePackTemplateValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18978,9 +18878,8 @@ extension ConfigClientTypes { extension OversizedConfigurationItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OversizedConfigurationItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18994,7 +18893,7 @@ extension OversizedConfigurationItemException { } /// The configuration item size is outside the allowable range. -public struct OversizedConfigurationItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OversizedConfigurationItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19218,9 +19117,8 @@ public enum PutAggregationAuthorizationOutputError: Swift.Error, Swift.Equatable extension PutAggregationAuthorizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAggregationAuthorizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregationAuthorization = output.aggregationAuthorization } else { @@ -19511,9 +19409,8 @@ public enum PutConfigurationAggregatorOutputError: Swift.Error, Swift.Equatable extension PutConfigurationAggregatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutConfigurationAggregatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationAggregator = output.configurationAggregator } else { @@ -19801,9 +19698,8 @@ public enum PutConformancePackOutputError: Swift.Error, Swift.Equatable { extension PutConformancePackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutConformancePackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conformancePackArn = output.conformancePackArn } else { @@ -20048,9 +19944,8 @@ public enum PutEvaluationsOutputError: Swift.Error, Swift.Equatable { extension PutEvaluationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutEvaluationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEvaluations = output.failedEvaluations } else { @@ -20338,9 +20233,8 @@ public enum PutOrganizationConfigRuleOutputError: Swift.Error, Swift.Equatable { extension PutOrganizationConfigRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutOrganizationConfigRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationConfigRuleArn = output.organizationConfigRuleArn } else { @@ -20559,9 +20453,8 @@ public enum PutOrganizationConformancePackOutputError: Swift.Error, Swift.Equata extension PutOrganizationConformancePackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutOrganizationConformancePackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationConformancePackArn = output.organizationConformancePackArn } else { @@ -20684,9 +20577,8 @@ public enum PutRemediationConfigurationsOutputError: Swift.Error, Swift.Equatabl extension PutRemediationConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRemediationConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedBatches = output.failedBatches } else { @@ -20855,9 +20747,8 @@ public enum PutRemediationExceptionsOutputError: Swift.Error, Swift.Equatable { extension PutRemediationExceptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRemediationExceptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedBatches = output.failedBatches } else { @@ -21138,9 +21029,8 @@ public enum PutRetentionConfigurationOutputError: Swift.Error, Swift.Equatable { extension PutRetentionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRetentionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.retentionConfiguration = output.retentionConfiguration } else { @@ -21277,9 +21167,8 @@ public enum PutStoredQueryOutputError: Swift.Error, Swift.Equatable { extension PutStoredQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutStoredQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryArn = output.queryArn } else { @@ -22050,9 +21939,8 @@ extension ConfigClientTypes { extension RemediationInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemediationInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22066,7 +21954,7 @@ extension RemediationInProgressException { } /// Remediation action is in progress. You can either cancel execution in Amazon Web Services Systems Manager or wait and try again later. -public struct RemediationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RemediationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22177,9 +22065,8 @@ extension ConfigClientTypes { extension ResourceConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22193,7 +22080,7 @@ extension ResourceConcurrentModificationException { } /// Two users are trying to modify the same query at the same time. Wait for a moment and try again. -public struct ResourceConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22736,9 +22623,8 @@ extension ConfigClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22766,7 +22652,7 @@ extension ResourceInUseException { /// * For PutConformancePack and PutOrganizationConformancePack, a conformance pack creation, update, and deletion is in progress. Try your request again later. /// /// * For DeleteConformancePack, a conformance pack creation, update, and deletion is in progress. Try your request again later. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22850,9 +22736,8 @@ extension ConfigClientTypes { extension ResourceNotDiscoveredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotDiscoveredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22866,7 +22751,7 @@ extension ResourceNotDiscoveredException { } /// You have specified a resource that is either unknown or has not been discovered. -public struct ResourceNotDiscoveredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotDiscoveredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22903,9 +22788,8 @@ extension ResourceNotDiscoveredExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22919,7 +22803,7 @@ extension ResourceNotFoundException { } /// You have specified a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24118,9 +24002,8 @@ public enum SelectAggregateResourceConfigOutputError: Swift.Error, Swift.Equatab extension SelectAggregateResourceConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SelectAggregateResourceConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queryInfo = output.queryInfo @@ -24286,9 +24169,8 @@ public enum SelectResourceConfigOutputError: Swift.Error, Swift.Equatable { extension SelectResourceConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SelectResourceConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queryInfo = output.queryInfo @@ -24887,9 +24769,8 @@ public enum StartRemediationExecutionOutputError: Swift.Error, Swift.Equatable { extension StartRemediationExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRemediationExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedItems = output.failedItems self.failureMessage = output.failureMessage @@ -25068,9 +24949,8 @@ public enum StartResourceEvaluationOutputError: Swift.Error, Swift.Equatable { extension StartResourceEvaluationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartResourceEvaluationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceEvaluationId = output.resourceEvaluationId } else { @@ -25690,9 +25570,8 @@ extension ConfigClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25706,7 +25585,7 @@ extension TooManyTagsException { } /// You have reached the limit of the number of tags you can use. For more information, see [ Service Limits ](https://docs.aws.amazon.com/config/latest/developerguide/configlimits.html) in the Config Developer Guide. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25850,9 +25729,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25866,7 +25744,7 @@ extension ValidationException { } /// The requested action is not valid. For PutStoredQuery, you will see this exception if there are missing required fields or if the input value fails the validation, or if you are trying to create more than 300 queries. For GetStoredQuery, ListStoredQuery, and DeleteStoredQuery you will see this exception if there are missing required fields or if the input value fails the validation. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSConnect/ConnectClient.swift b/Sources/Services/AWSConnect/ConnectClient.swift index a802676727c..359787c0836 100644 --- a/Sources/Services/AWSConnect/ConnectClient.swift +++ b/Sources/Services/AWSConnect/ConnectClient.swift @@ -208,6 +208,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateApprovedOrigin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDefaultVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateInstanceStorageConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateLambdaFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateLexBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePhoneNumberContactFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateQueueQuickConnects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateRoutingProfileQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateSecurityKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "claimPhoneNumber") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -581,7 +592,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -601,6 +612,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAgentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -616,7 +628,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +648,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContactFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -651,7 +664,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +684,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContactFlowModule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -694,7 +708,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -714,6 +728,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHoursOfOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -729,7 +744,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -749,6 +764,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIntegrationAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -799,7 +816,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -819,6 +836,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -834,7 +852,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -854,6 +872,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createQuickConnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -869,7 +888,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -889,6 +908,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoutingProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -904,7 +924,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -924,6 +944,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -947,7 +968,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +988,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -982,7 +1004,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1002,6 +1024,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTaskTemplate") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1025,7 +1048,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1068,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrafficDistributionGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1068,7 +1092,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1088,6 +1112,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUseCase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1103,7 +1128,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1123,6 +1148,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1138,7 +1164,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1158,6 +1184,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserHierarchyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1173,7 +1200,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1193,6 +1220,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVocabulary") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1216,7 +1244,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1236,6 +1264,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContactFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1277,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1297,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContactFlowModule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1310,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1330,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHoursOfOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1343,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1332,6 +1363,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1344,7 +1376,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1364,6 +1396,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntegrationAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQuickConnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1408,7 +1442,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1428,6 +1462,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1440,7 +1475,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1460,6 +1495,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1472,7 +1508,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1492,6 +1528,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTaskTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1504,7 +1541,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1524,6 +1561,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrafficDistributionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1536,7 +1574,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1556,6 +1594,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUseCase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1568,7 +1607,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1588,6 +1627,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1600,7 +1640,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1620,6 +1660,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserHierarchyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1632,7 +1673,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1652,6 +1693,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1706,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1726,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAgentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1696,7 +1739,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1716,6 +1759,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1728,7 +1772,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1748,6 +1792,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContactFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1760,7 +1805,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1780,6 +1825,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContactFlowModule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1792,7 +1838,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1812,6 +1858,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHoursOfOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1824,7 +1871,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1844,6 +1891,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1856,7 +1904,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1876,6 +1924,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1888,7 +1937,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1908,6 +1957,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceStorageConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1921,7 +1971,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1941,6 +1991,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1953,7 +2004,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1973,6 +2024,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1985,7 +2037,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2005,6 +2057,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeQuickConnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2017,7 +2070,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2037,6 +2090,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRoutingProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2049,7 +2103,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2069,6 +2123,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2081,7 +2136,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2101,6 +2156,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2113,7 +2169,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2133,6 +2189,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrafficDistributionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2145,7 +2202,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2165,6 +2222,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2177,7 +2235,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2197,6 +2255,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserHierarchyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2209,7 +2268,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2229,6 +2288,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserHierarchyStructure") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2241,7 +2301,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2261,6 +2321,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2273,7 +2334,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2293,6 +2354,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateApprovedOrigin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2306,7 +2368,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2326,6 +2388,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2341,7 +2404,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2361,6 +2424,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateInstanceStorageConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2374,7 +2438,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2394,6 +2458,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateLambdaFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2407,7 +2472,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2427,6 +2492,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateLexBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2440,7 +2506,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2460,6 +2526,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePhoneNumberContactFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2473,7 +2540,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2493,6 +2560,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateQueueQuickConnects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2508,7 +2576,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2528,6 +2596,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateRoutingProfileQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2543,7 +2612,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2563,6 +2632,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateSecurityKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2575,7 +2645,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2595,6 +2665,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "dismissUserContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2610,7 +2681,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2630,6 +2701,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContactAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2642,7 +2714,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2662,6 +2734,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCurrentMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2677,7 +2750,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2697,6 +2770,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCurrentUserData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2712,7 +2786,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2732,6 +2806,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFederationToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2744,7 +2819,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2764,6 +2839,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2779,7 +2855,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2799,6 +2875,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMetricDataV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2814,7 +2891,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2834,6 +2911,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTaskTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2847,7 +2925,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2867,6 +2945,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrafficDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2879,7 +2958,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2899,6 +2978,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAgentStatuses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2912,7 +2992,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2932,6 +3012,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApprovedOrigins") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2945,7 +3026,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2965,6 +3046,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2978,7 +3060,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2998,6 +3080,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContactFlowModules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3011,7 +3094,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3031,6 +3114,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContactFlows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3044,7 +3128,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3064,6 +3148,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContactReferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3077,7 +3162,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3097,6 +3182,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDefaultVocabularies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3112,7 +3198,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3132,6 +3218,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHoursOfOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3145,7 +3232,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3165,6 +3252,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3178,7 +3266,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3198,6 +3286,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceStorageConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3211,7 +3300,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3231,6 +3320,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3244,7 +3334,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3264,6 +3354,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIntegrationAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3277,7 +3368,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3297,6 +3388,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLambdaFunctions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3310,7 +3402,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3330,6 +3422,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLexBots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3343,7 +3436,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3363,6 +3456,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPhoneNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3376,7 +3470,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3396,6 +3490,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPhoneNumbersV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3411,7 +3506,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3431,6 +3526,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPrompts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3444,7 +3540,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3464,6 +3560,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueueQuickConnects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3477,7 +3574,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3497,6 +3594,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3510,7 +3608,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3530,6 +3628,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQuickConnects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3543,7 +3642,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3563,6 +3662,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoutingProfileQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3576,7 +3676,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3596,6 +3696,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoutingProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3609,7 +3710,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3629,6 +3730,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3642,7 +3744,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3662,6 +3764,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3675,7 +3778,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3695,6 +3798,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityProfilePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3708,7 +3812,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3728,6 +3832,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3741,7 +3846,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3761,6 +3866,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3773,7 +3879,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3793,6 +3899,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTaskTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3806,7 +3913,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3826,6 +3933,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrafficDistributionGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3839,7 +3947,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3859,6 +3967,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUseCases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3872,7 +3981,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3892,6 +4001,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserHierarchyGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3905,7 +4015,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3925,6 +4035,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3938,7 +4049,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3958,6 +4069,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "monitorContact") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3981,7 +4093,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4001,6 +4113,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putUserStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4016,7 +4129,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4036,6 +4149,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "releasePhoneNumber") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4057,7 +4171,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4077,6 +4191,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replicateInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4100,7 +4215,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4120,6 +4235,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeContactRecording") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4135,7 +4251,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4155,6 +4271,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchAvailablePhoneNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4170,7 +4287,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4190,6 +4307,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4205,7 +4323,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4225,6 +4343,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchRoutingProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4240,7 +4359,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4260,6 +4379,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchSecurityProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4275,7 +4395,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4295,6 +4415,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4310,7 +4431,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4330,6 +4451,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchVocabularies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4345,7 +4467,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4372,6 +4494,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startChatContact") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4395,7 +4518,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4422,6 +4545,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startContactRecording") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4437,7 +4561,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4457,6 +4581,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startContactStreaming") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4480,7 +4605,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4500,6 +4625,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startOutboundVoiceContact") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4523,7 +4649,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4543,6 +4669,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTaskContact") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4566,7 +4693,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4592,6 +4719,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4607,7 +4735,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4627,6 +4755,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopContactRecording") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4642,7 +4771,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4662,6 +4791,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopContactStreaming") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4677,7 +4807,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4697,6 +4827,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "suspendContactRecording") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4712,7 +4843,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4732,6 +4863,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4747,7 +4879,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4777,6 +4909,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "transferContact") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4800,7 +4933,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4820,6 +4953,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4833,7 +4967,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4853,6 +4987,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAgentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4868,7 +5003,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4888,6 +5023,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4903,7 +5039,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4923,6 +5059,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4938,7 +5075,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4958,6 +5095,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactFlowContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4973,7 +5111,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4993,6 +5131,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactFlowMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5008,7 +5147,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5028,6 +5167,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactFlowModuleContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5043,7 +5183,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5063,6 +5203,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactFlowModuleMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5078,7 +5219,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5098,6 +5239,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactFlowName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5113,7 +5255,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5133,6 +5275,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5148,7 +5291,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5168,6 +5311,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHoursOfOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5183,7 +5327,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5203,6 +5347,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInstanceAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5218,7 +5363,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5238,6 +5383,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInstanceStorageConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5254,7 +5400,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5285,6 +5431,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateParticipantRoleConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5300,7 +5447,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5320,6 +5467,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePhoneNumber") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -5343,7 +5491,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5363,6 +5511,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQueueHoursOfOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5378,7 +5527,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5398,6 +5547,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQueueMaxContacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5413,7 +5563,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5433,6 +5583,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQueueName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5448,7 +5599,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5468,6 +5619,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQueueOutboundCallerConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5483,7 +5635,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5503,6 +5655,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQueueStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5518,7 +5671,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5538,6 +5691,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQuickConnectConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5553,7 +5707,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5573,6 +5727,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQuickConnectName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5588,7 +5743,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5608,6 +5763,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoutingProfileConcurrency") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5623,7 +5779,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5643,6 +5799,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoutingProfileDefaultOutboundQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5658,7 +5815,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5678,6 +5835,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoutingProfileName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5693,7 +5851,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5713,6 +5871,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoutingProfileQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5728,7 +5887,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5748,6 +5907,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5763,7 +5923,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5783,6 +5943,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5798,7 +5959,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5818,6 +5979,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTaskTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5833,7 +5995,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5853,6 +6015,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrafficDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5868,7 +6031,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5888,6 +6051,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserHierarchy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5903,7 +6067,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5923,6 +6087,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserHierarchyGroupName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5938,7 +6103,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5958,6 +6123,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserHierarchyStructure") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5973,7 +6139,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5993,6 +6159,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserIdentityInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6008,7 +6175,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6028,6 +6195,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserPhoneConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6043,7 +6211,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6063,6 +6231,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserRoutingProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6078,7 +6247,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6098,6 +6267,7 @@ extension ConnectClient: ConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserSecurityProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6113,7 +6283,7 @@ extension ConnectClient: ConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSConnect/models/Models.swift b/Sources/Services/AWSConnect/models/Models.swift index c3fe7b75d58..33935dbf723 100644 --- a/Sources/Services/AWSConnect/models/Models.swift +++ b/Sources/Services/AWSConnect/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient permissions to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1054,9 +1053,8 @@ public enum AssociateInstanceStorageConfigOutputError: Swift.Error, Swift.Equata extension AssociateInstanceStorageConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateInstanceStorageConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationId = output.associationId } else { @@ -1728,9 +1726,8 @@ public enum AssociateSecurityKeyOutputError: Swift.Error, Swift.Equatable { extension AssociateSecurityKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateSecurityKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationId = output.associationId } else { @@ -2269,9 +2266,8 @@ public enum ClaimPhoneNumberOutputError: Swift.Error, Swift.Equatable { extension ClaimPhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClaimPhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberArn = output.phoneNumberArn self.phoneNumberId = output.phoneNumberId @@ -3080,9 +3076,8 @@ extension ConnectClientTypes { extension ContactFlowNotPublishedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ContactFlowNotPublishedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3096,7 +3091,7 @@ extension ContactFlowNotPublishedException { } /// The flow has not been published. -public struct ContactFlowNotPublishedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ContactFlowNotPublishedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3342,9 +3337,8 @@ extension ConnectClientTypes { extension ContactNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ContactNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3358,7 +3352,7 @@ extension ContactNotFoundException { } /// The contact with the specified ID is not active or does not exist. Applies to Voice calls only, not to Chat, Task, or Voice Callback. -public struct ContactNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ContactNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3694,9 +3688,8 @@ public enum CreateAgentStatusOutputError: Swift.Error, Swift.Equatable { extension CreateAgentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAgentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentStatusARN = output.agentStatusARN self.agentStatusId = output.agentStatusId @@ -4020,9 +4013,8 @@ public enum CreateContactFlowModuleOutputError: Swift.Error, Swift.Equatable { extension CreateContactFlowModuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContactFlowModuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -4107,9 +4099,8 @@ public enum CreateContactFlowOutputError: Swift.Error, Swift.Equatable { extension CreateContactFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContactFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactFlowArn = output.contactFlowArn self.contactFlowId = output.contactFlowId @@ -4322,9 +4313,8 @@ public enum CreateHoursOfOperationOutputError: Swift.Error, Swift.Equatable { extension CreateHoursOfOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHoursOfOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hoursOfOperationArn = output.hoursOfOperationArn self.hoursOfOperationId = output.hoursOfOperationId @@ -4518,9 +4508,8 @@ public enum CreateInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -4728,9 +4717,8 @@ public enum CreateIntegrationAssociationOutputError: Swift.Error, Swift.Equatabl extension CreateIntegrationAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIntegrationAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.integrationAssociationArn = output.integrationAssociationArn self.integrationAssociationId = output.integrationAssociationId @@ -4966,9 +4954,8 @@ public enum CreateQueueOutputError: Swift.Error, Swift.Equatable { extension CreateQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queueArn = output.queueArn self.queueId = output.queueId @@ -5156,9 +5143,8 @@ public enum CreateQuickConnectOutputError: Swift.Error, Swift.Equatable { extension CreateQuickConnectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateQuickConnectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.quickConnectARN = output.quickConnectARN self.quickConnectId = output.quickConnectId @@ -5396,9 +5382,8 @@ public enum CreateRoutingProfileOutputError: Swift.Error, Swift.Equatable { extension CreateRoutingProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRoutingProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routingProfileArn = output.routingProfileArn self.routingProfileId = output.routingProfileId @@ -5613,9 +5598,8 @@ public enum CreateRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleArn = output.ruleArn self.ruleId = output.ruleId @@ -5864,9 +5848,8 @@ public enum CreateSecurityProfileOutputError: Swift.Error, Swift.Equatable { extension CreateSecurityProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSecurityProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityProfileArn = output.securityProfileArn self.securityProfileId = output.securityProfileId @@ -6100,9 +6083,8 @@ public enum CreateTaskTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateTaskTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTaskTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -6298,9 +6280,8 @@ public enum CreateTrafficDistributionGroupOutputError: Swift.Error, Swift.Equata extension CreateTrafficDistributionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrafficDistributionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -6467,9 +6448,8 @@ public enum CreateUseCaseOutputError: Swift.Error, Swift.Equatable { extension CreateUseCaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUseCaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.useCaseArn = output.useCaseArn self.useCaseId = output.useCaseId @@ -6644,9 +6624,8 @@ public enum CreateUserHierarchyGroupOutputError: Swift.Error, Swift.Equatable { extension CreateUserHierarchyGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserHierarchyGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hierarchyGroupArn = output.hierarchyGroupArn self.hierarchyGroupId = output.hierarchyGroupId @@ -6908,9 +6887,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userArn = output.userArn self.userId = output.userId @@ -7111,9 +7089,8 @@ public enum CreateVocabularyOutputError: Swift.Error, Swift.Equatable { extension CreateVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state self.vocabularyArn = output.vocabularyArn @@ -8745,9 +8722,8 @@ public enum DeleteVocabularyOutputError: Swift.Error, Swift.Equatable { extension DeleteVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state self.vocabularyArn = output.vocabularyArn @@ -8878,9 +8854,8 @@ public enum DescribeAgentStatusOutputError: Swift.Error, Swift.Equatable { extension DescribeAgentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAgentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentStatus = output.agentStatus } else { @@ -9029,9 +9004,8 @@ public enum DescribeContactFlowModuleOutputError: Swift.Error, Swift.Equatable { extension DescribeContactFlowModuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContactFlowModuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactFlowModule = output.contactFlowModule } else { @@ -9102,9 +9076,8 @@ public enum DescribeContactFlowOutputError: Swift.Error, Swift.Equatable { extension DescribeContactFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContactFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactFlow = output.contactFlow } else { @@ -9212,9 +9185,8 @@ public enum DescribeContactOutputError: Swift.Error, Swift.Equatable { extension DescribeContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contact = output.contact } else { @@ -9322,9 +9294,8 @@ public enum DescribeHoursOfOperationOutputError: Swift.Error, Swift.Equatable { extension DescribeHoursOfOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHoursOfOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hoursOfOperation = output.hoursOfOperation } else { @@ -9432,9 +9403,8 @@ public enum DescribeInstanceAttributeOutputError: Swift.Error, Swift.Equatable { extension DescribeInstanceAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attribute = output.attribute } else { @@ -9530,9 +9500,8 @@ public enum DescribeInstanceOutputError: Swift.Error, Swift.Equatable { extension DescribeInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instance = output.instance } else { @@ -9660,9 +9629,8 @@ public enum DescribeInstanceStorageConfigOutputError: Swift.Error, Swift.Equatab extension DescribeInstanceStorageConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceStorageConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.storageConfig = output.storageConfig } else { @@ -9762,9 +9730,8 @@ public enum DescribePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension DescribePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.claimedPhoneNumberSummary = output.claimedPhoneNumberSummary } else { @@ -9872,9 +9839,8 @@ public enum DescribeQueueOutputError: Swift.Error, Swift.Equatable { extension DescribeQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queue = output.queue } else { @@ -9982,9 +9948,8 @@ public enum DescribeQuickConnectOutputError: Swift.Error, Swift.Equatable { extension DescribeQuickConnectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeQuickConnectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.quickConnect = output.quickConnect } else { @@ -10092,9 +10057,8 @@ public enum DescribeRoutingProfileOutputError: Swift.Error, Swift.Equatable { extension DescribeRoutingProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRoutingProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routingProfile = output.routingProfile } else { @@ -10202,9 +10166,8 @@ public enum DescribeRuleOutputError: Swift.Error, Swift.Equatable { extension DescribeRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule } else { @@ -10313,9 +10276,8 @@ public enum DescribeSecurityProfileOutputError: Swift.Error, Swift.Equatable { extension DescribeSecurityProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSecurityProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityProfile = output.securityProfile } else { @@ -10415,9 +10377,8 @@ public enum DescribeTrafficDistributionGroupOutputError: Swift.Error, Swift.Equa extension DescribeTrafficDistributionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrafficDistributionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficDistributionGroup = output.trafficDistributionGroup } else { @@ -10525,9 +10486,8 @@ public enum DescribeUserHierarchyGroupOutputError: Swift.Error, Swift.Equatable extension DescribeUserHierarchyGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserHierarchyGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hierarchyGroup = output.hierarchyGroup } else { @@ -10627,9 +10587,8 @@ public enum DescribeUserHierarchyStructureOutputError: Swift.Error, Swift.Equata extension DescribeUserHierarchyStructureOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserHierarchyStructureOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hierarchyStructure = output.hierarchyStructure } else { @@ -10737,9 +10696,8 @@ public enum DescribeUserOutputError: Swift.Error, Swift.Equatable { extension DescribeUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -10847,9 +10805,8 @@ public enum DescribeVocabularyOutputError: Swift.Error, Swift.Equatable { extension DescribeVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vocabulary = output.vocabulary } else { @@ -10889,9 +10846,8 @@ extension DescribeVocabularyOutputResponseBody: Swift.Decodable { extension DestinationNotAllowedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DestinationNotAllowedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10905,7 +10861,7 @@ extension DestinationNotAllowedException { } /// Outbound calls to the destination number are not allowed. -public struct DestinationNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DestinationNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12075,9 +12031,8 @@ extension ConnectClientTypes { extension DuplicateResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12091,7 +12046,7 @@ extension DuplicateResourceException { } /// A resource with the specified name already exists. -public struct DuplicateResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12541,9 +12496,8 @@ public enum GetContactAttributesOutputError: Swift.Error, Swift.Equatable { extension GetContactAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -12791,9 +12745,8 @@ public enum GetCurrentMetricDataOutputError: Swift.Error, Swift.Equatable { extension GetCurrentMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCurrentMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateTotalCount = output.approximateTotalCount self.dataSnapshotTime = output.dataSnapshotTime @@ -12994,9 +12947,8 @@ public enum GetCurrentUserDataOutputError: Swift.Error, Swift.Equatable { extension GetCurrentUserDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCurrentUserDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateTotalCount = output.approximateTotalCount self.nextToken = output.nextToken @@ -13127,9 +13079,8 @@ public enum GetFederationTokenOutputError: Swift.Error, Swift.Equatable { extension GetFederationTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFederationTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.credentials = output.credentials self.signInUrl = output.signInUrl @@ -13383,9 +13334,8 @@ public enum GetMetricDataOutputError: Swift.Error, Swift.Equatable { extension GetMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricResults = output.metricResults self.nextToken = output.nextToken @@ -13662,9 +13612,8 @@ public enum GetMetricDataV2OutputError: Swift.Error, Swift.Equatable { extension GetMetricDataV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMetricDataV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricResults = output.metricResults self.nextToken = output.nextToken @@ -13808,9 +13757,8 @@ public enum GetTaskTemplateOutputError: Swift.Error, Swift.Equatable { extension GetTaskTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTaskTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.constraints = output.constraints @@ -14051,9 +13999,8 @@ public enum GetTrafficDistributionOutputError: Swift.Error, Swift.Equatable { extension GetTrafficDistributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrafficDistributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -15407,9 +15354,8 @@ extension ConnectClientTypes { extension IdempotencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15423,7 +15369,7 @@ extension IdempotencyException { } /// An entity with the same name already exists. -public struct IdempotencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16123,9 +16069,8 @@ extension ConnectClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16139,7 +16084,7 @@ extension InternalServiceException { } /// Request processing failed because of an error or failure with the service. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16176,9 +16121,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidContactFlowException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidContactFlowExceptionBody = try responseDecoder.decode(responseBody: data) self.problems = output.problems } else { @@ -16192,7 +16136,7 @@ extension InvalidContactFlowException { } /// The flow is not valid. -public struct InvalidContactFlowException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidContactFlowException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16238,9 +16182,8 @@ extension InvalidContactFlowExceptionBody: Swift.Decodable { extension InvalidContactFlowModuleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidContactFlowModuleExceptionBody = try responseDecoder.decode(responseBody: data) self.problems = output.problems } else { @@ -16254,7 +16197,7 @@ extension InvalidContactFlowModuleException { } /// The problems with the module. Please fix before trying again. -public struct InvalidContactFlowModuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidContactFlowModuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16299,9 +16242,8 @@ extension InvalidContactFlowModuleExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16315,7 +16257,7 @@ extension InvalidParameterException { } /// One or more of the specified parameters are not valid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16352,9 +16294,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16368,7 +16309,7 @@ extension InvalidRequestException { } /// The request is not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16729,9 +16670,8 @@ extension ConnectClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16745,7 +16685,7 @@ extension LimitExceededException { } /// The allowed limit for the resource has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16878,9 +16818,8 @@ public enum ListAgentStatusesOutputError: Swift.Error, Swift.Equatable { extension ListAgentStatusesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAgentStatusesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentStatusSummaryList = output.agentStatusSummaryList self.nextToken = output.nextToken @@ -17024,9 +16963,8 @@ public enum ListApprovedOriginsOutputError: Swift.Error, Swift.Equatable { extension ListApprovedOriginsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApprovedOriginsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.origins = output.origins @@ -17179,9 +17117,8 @@ public enum ListBotsOutputError: Swift.Error, Swift.Equatable { extension ListBotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lexBots = output.lexBots self.nextToken = output.nextToken @@ -17335,9 +17272,8 @@ public enum ListContactFlowModulesOutputError: Swift.Error, Swift.Equatable { extension ListContactFlowModulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContactFlowModulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactFlowModulesSummaryList = output.contactFlowModulesSummaryList self.nextToken = output.nextToken @@ -17491,9 +17427,8 @@ public enum ListContactFlowsOutputError: Swift.Error, Swift.Equatable { extension ListContactFlowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContactFlowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactFlowSummaryList = output.contactFlowSummaryList self.nextToken = output.nextToken @@ -17650,9 +17585,8 @@ public enum ListContactReferencesOutputError: Swift.Error, Swift.Equatable { extension ListContactReferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContactReferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.referenceSummaryList = output.referenceSummaryList @@ -17817,9 +17751,8 @@ public enum ListDefaultVocabulariesOutputError: Swift.Error, Swift.Equatable { extension ListDefaultVocabulariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDefaultVocabulariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultVocabularyList = output.defaultVocabularyList self.nextToken = output.nextToken @@ -17964,9 +17897,8 @@ public enum ListHoursOfOperationsOutputError: Swift.Error, Swift.Equatable { extension ListHoursOfOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHoursOfOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hoursOfOperationSummaryList = output.hoursOfOperationSummaryList self.nextToken = output.nextToken @@ -18110,9 +18042,8 @@ public enum ListInstanceAttributesOutputError: Swift.Error, Swift.Equatable { extension ListInstanceAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.nextToken = output.nextToken @@ -18267,9 +18198,8 @@ public enum ListInstanceStorageConfigsOutputError: Swift.Error, Swift.Equatable extension ListInstanceStorageConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceStorageConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.storageConfigs = output.storageConfigs @@ -18399,9 +18329,8 @@ public enum ListInstancesOutputError: Swift.Error, Swift.Equatable { extension ListInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceSummaryList = output.instanceSummaryList self.nextToken = output.nextToken @@ -18551,9 +18480,8 @@ public enum ListIntegrationAssociationsOutputError: Swift.Error, Swift.Equatable extension ListIntegrationAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIntegrationAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.integrationAssociationSummaryList = output.integrationAssociationSummaryList self.nextToken = output.nextToken @@ -18697,9 +18625,8 @@ public enum ListLambdaFunctionsOutputError: Swift.Error, Swift.Equatable { extension ListLambdaFunctionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLambdaFunctionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lambdaFunctions = output.lambdaFunctions self.nextToken = output.nextToken @@ -18843,9 +18770,8 @@ public enum ListLexBotsOutputError: Swift.Error, Swift.Equatable { extension ListLexBotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLexBotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lexBots = output.lexBots self.nextToken = output.nextToken @@ -19009,9 +18935,8 @@ public enum ListPhoneNumbersOutputError: Swift.Error, Swift.Equatable { extension ListPhoneNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPhoneNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumberSummaryList = output.phoneNumberSummaryList @@ -19315,9 +19240,8 @@ public enum ListPhoneNumbersV2OutputError: Swift.Error, Swift.Equatable { extension ListPhoneNumbersV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPhoneNumbersV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.listPhoneNumbersSummaryList = output.listPhoneNumbersSummaryList self.nextToken = output.nextToken @@ -19461,9 +19385,8 @@ public enum ListPromptsOutputError: Swift.Error, Swift.Equatable { extension ListPromptsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPromptsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.promptSummaryList = output.promptSummaryList @@ -19615,9 +19538,8 @@ public enum ListQueueQuickConnectsOutputError: Swift.Error, Swift.Equatable { extension ListQueueQuickConnectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueueQuickConnectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.quickConnectSummaryList = output.quickConnectSummaryList @@ -19771,9 +19693,8 @@ public enum ListQueuesOutputError: Swift.Error, Swift.Equatable { extension ListQueuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queueSummaryList = output.queueSummaryList @@ -19927,9 +19848,8 @@ public enum ListQuickConnectsOutputError: Swift.Error, Swift.Equatable { extension ListQuickConnectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQuickConnectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.quickConnectSummaryList = output.quickConnectSummaryList @@ -20081,9 +20001,8 @@ public enum ListRoutingProfileQueuesOutputError: Swift.Error, Swift.Equatable { extension ListRoutingProfileQueuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoutingProfileQueuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routingProfileQueueConfigSummaryList = output.routingProfileQueueConfigSummaryList @@ -20227,9 +20146,8 @@ public enum ListRoutingProfilesOutputError: Swift.Error, Swift.Equatable { extension ListRoutingProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoutingProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routingProfileSummaryList = output.routingProfileSummaryList @@ -20389,9 +20307,8 @@ public enum ListRulesOutputError: Swift.Error, Swift.Equatable { extension ListRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.ruleSummaryList = output.ruleSummaryList @@ -20536,9 +20453,8 @@ public enum ListSecurityKeysOutputError: Swift.Error, Swift.Equatable { extension ListSecurityKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityKeys = output.securityKeys @@ -20690,9 +20606,8 @@ public enum ListSecurityProfilePermissionsOutputError: Swift.Error, Swift.Equata extension ListSecurityProfilePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityProfilePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -20836,9 +20751,8 @@ public enum ListSecurityProfilesOutputError: Swift.Error, Swift.Equatable { extension ListSecurityProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityProfileSummaryList = output.securityProfileSummaryList @@ -20957,9 +20871,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -21109,9 +21022,8 @@ public enum ListTaskTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListTaskTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTaskTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.taskTemplates = output.taskTemplates @@ -21253,9 +21165,8 @@ public enum ListTrafficDistributionGroupsOutputError: Swift.Error, Swift.Equatab extension ListTrafficDistributionGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrafficDistributionGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trafficDistributionGroupSummaryList = output.trafficDistributionGroupSummaryList @@ -21406,9 +21317,8 @@ public enum ListUseCasesOutputError: Swift.Error, Swift.Equatable { extension ListUseCasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUseCasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.useCaseSummaryList = output.useCaseSummaryList @@ -21552,9 +21462,8 @@ public enum ListUserHierarchyGroupsOutputError: Swift.Error, Swift.Equatable { extension ListUserHierarchyGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserHierarchyGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userHierarchyGroupSummaryList = output.userHierarchyGroupSummaryList @@ -21698,9 +21607,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userSummaryList = output.userSummaryList @@ -22241,9 +22149,8 @@ public enum MonitorContactOutputError: Swift.Error, Swift.Equatable { extension MonitorContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MonitorContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactArn = output.contactArn self.contactId = output.contactId @@ -22519,9 +22426,8 @@ extension ConnectClientTypes { extension OutboundContactNotPermittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OutboundContactNotPermittedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22535,7 +22441,7 @@ extension OutboundContactNotPermittedException { } /// The contact is not permitted. -public struct OutboundContactNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OutboundContactNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23914,9 +23820,8 @@ extension ConnectClientTypes { extension PropertyValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PropertyValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.propertyList = output.propertyList @@ -23932,7 +23837,7 @@ extension PropertyValidationException { } /// The property is not valid. -public struct PropertyValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PropertyValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25468,9 +25373,8 @@ public enum ReplicateInstanceOutputError: Swift.Error, Swift.Equatable { extension ReplicateInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicateInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -25554,9 +25458,8 @@ extension ConnectClientTypes { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25570,7 +25473,7 @@ extension ResourceConflictException { } /// A resource already has that name. -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25606,9 +25509,8 @@ extension ResourceConflictExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -25626,7 +25528,7 @@ extension ResourceInUseException { } /// That resource is already in use. Please try another. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25678,9 +25580,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25694,7 +25595,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25731,9 +25632,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25747,7 +25647,7 @@ extension ResourceNotReadyException { } /// The resource is not ready. -public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27146,9 +27046,8 @@ public enum SearchAvailablePhoneNumbersOutputError: Swift.Error, Swift.Equatable extension SearchAvailablePhoneNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchAvailablePhoneNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availableNumbersList = output.availableNumbersList self.nextToken = output.nextToken @@ -27332,9 +27231,8 @@ public enum SearchQueuesOutputError: Swift.Error, Swift.Equatable { extension SearchQueuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchQueuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateTotalCount = output.approximateTotalCount self.nextToken = output.nextToken @@ -27528,9 +27426,8 @@ public enum SearchRoutingProfilesOutputError: Swift.Error, Swift.Equatable { extension SearchRoutingProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchRoutingProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateTotalCount = output.approximateTotalCount self.nextToken = output.nextToken @@ -27724,9 +27621,8 @@ public enum SearchSecurityProfilesOutputError: Swift.Error, Swift.Equatable { extension SearchSecurityProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchSecurityProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateTotalCount = output.approximateTotalCount self.nextToken = output.nextToken @@ -27919,9 +27815,8 @@ public enum SearchUsersOutputError: Swift.Error, Swift.Equatable { extension SearchUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateTotalCount = output.approximateTotalCount self.nextToken = output.nextToken @@ -28120,9 +28015,8 @@ public enum SearchVocabulariesOutputError: Swift.Error, Swift.Equatable { extension SearchVocabulariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchVocabulariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vocabularySummaryList = output.vocabularySummaryList @@ -28754,9 +28648,8 @@ extension ConnectClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -28770,7 +28663,7 @@ extension ServiceQuotaExceededException { } /// The service quota has been exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29082,9 +28975,8 @@ public enum StartChatContactOutputError: Swift.Error, Swift.Equatable { extension StartChatContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartChatContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactId = output.contactId self.continuedFromContactId = output.continuedFromContactId @@ -29395,9 +29287,8 @@ public enum StartContactStreamingOutputError: Swift.Error, Swift.Equatable { extension StartContactStreamingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartContactStreamingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingId = output.streamingId } else { @@ -29641,9 +29532,8 @@ public enum StartOutboundVoiceContactOutputError: Swift.Error, Swift.Equatable { extension StartOutboundVoiceContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartOutboundVoiceContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactId = output.contactId } else { @@ -29919,9 +29809,8 @@ public enum StartTaskContactOutputError: Swift.Error, Swift.Equatable { extension StartTaskContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTaskContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactId = output.contactId } else { @@ -31456,9 +31345,8 @@ extension ConnectClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -31472,7 +31360,7 @@ extension ThrottlingException { } /// The throttling limit has been exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31966,9 +31854,8 @@ public enum TransferContactOutputError: Swift.Error, Swift.Equatable { extension TransferContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransferContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactArn = output.contactArn self.contactId = output.contactId @@ -33894,9 +33781,8 @@ public enum UpdatePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension UpdatePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.phoneNumberArn = output.phoneNumberArn self.phoneNumberId = output.phoneNumberId @@ -35660,9 +35546,8 @@ public enum UpdateTaskTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateTaskTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTaskTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.constraints = output.constraints @@ -37339,9 +37224,8 @@ extension ConnectClientTypes { extension UserNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37355,7 +37239,7 @@ extension UserNotFoundException { } /// No user with the specified credentials was found in the Amazon Connect instance. -public struct UserNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSConnectCampaigns/ConnectCampaignsClient.swift b/Sources/Services/AWSConnectCampaigns/ConnectCampaignsClient.swift index 1e5403e1ccf..507782bd93c 100644 --- a/Sources/Services/AWSConnectCampaigns/ConnectCampaignsClient.swift +++ b/Sources/Services/AWSConnectCampaigns/ConnectCampaignsClient.swift @@ -208,6 +208,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnectInstanceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstanceOnboardingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -319,7 +323,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +343,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -351,7 +356,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -371,6 +376,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaignState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -383,7 +389,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -403,6 +409,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaignStateBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +425,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -438,6 +445,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectInstanceConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -450,7 +458,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -470,6 +478,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceOnboardingJobStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -482,7 +491,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -502,6 +511,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCampaigns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -517,7 +527,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -537,6 +547,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +560,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +580,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pauseCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -581,7 +593,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -601,6 +613,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDialRequestBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -616,7 +629,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +649,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +662,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -668,6 +682,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +695,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +715,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startInstanceOnboardingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -715,7 +731,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -735,6 +751,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -747,7 +764,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -767,6 +784,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -782,7 +800,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -802,6 +820,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -815,7 +834,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -835,6 +854,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCampaignDialerConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -850,7 +870,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -870,6 +890,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCampaignName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -885,7 +906,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -905,6 +926,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect-campaigns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCampaignOutboundCallConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -920,7 +942,7 @@ extension ConnectCampaignsClient: ConnectCampaignsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSConnectCampaigns/models/Models.swift b/Sources/Services/AWSConnectCampaigns/models/Models.swift index ff4340ba6f7..c8f51351fae 100644 --- a/Sources/Services/AWSConnectCampaigns/models/Models.swift +++ b/Sources/Services/AWSConnectCampaigns/models/Models.swift @@ -9,9 +9,8 @@ extension AccessDeniedException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25,7 +24,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -371,9 +370,8 @@ extension ConflictException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -387,7 +385,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -574,9 +572,8 @@ public enum CreateCampaignOutputError: Swift.Error, Swift.Equatable { extension CreateCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -921,9 +918,8 @@ public enum DescribeCampaignOutputError: Swift.Error, Swift.Equatable { extension DescribeCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.campaign = output.campaign } else { @@ -1445,9 +1441,8 @@ public enum GetCampaignStateBatchOutputError: Swift.Error, Swift.Equatable { extension GetCampaignStateBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCampaignStateBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedRequests = output.failedRequests self.successfulRequests = output.successfulRequests @@ -1577,9 +1572,8 @@ public enum GetCampaignStateOutputError: Swift.Error, Swift.Equatable { extension GetCampaignStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCampaignStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -1679,9 +1673,8 @@ public enum GetConnectInstanceConfigOutputError: Swift.Error, Swift.Equatable { extension GetConnectInstanceConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectInstanceConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectInstanceConfig = output.connectInstanceConfig } else { @@ -1781,9 +1774,8 @@ public enum GetInstanceOnboardingJobStatusOutputError: Swift.Error, Swift.Equata extension GetInstanceOnboardingJobStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceOnboardingJobStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectInstanceOnboardingJobStatus = output.connectInstanceOnboardingJobStatus } else { @@ -2102,9 +2094,8 @@ extension InternalServerException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2118,7 +2109,7 @@ extension InternalServerException { } /// Request processing failed because of an error or failure with the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2164,9 +2155,8 @@ extension InvalidCampaignStateException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCampaignStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.state = output.state @@ -2182,7 +2172,7 @@ extension InvalidCampaignStateException { } /// The request could not be processed because of conflict in the current state of the campaign. -public struct InvalidCampaignStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCampaignStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2237,9 +2227,8 @@ extension InvalidStateException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2253,7 +2242,7 @@ extension InvalidStateException { } /// The request could not be processed because of conflict in the current state. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2392,9 +2381,8 @@ public enum ListCampaignsOutputError: Swift.Error, Swift.Equatable { extension ListCampaignsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCampaignsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.campaignSummaryList = output.campaignSummaryList self.nextToken = output.nextToken @@ -2515,9 +2503,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2884,9 +2871,8 @@ public enum PutDialRequestBatchOutputError: Swift.Error, Swift.Equatable { extension PutDialRequestBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutDialRequestBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedRequests = output.failedRequests self.successfulRequests = output.successfulRequests @@ -2959,9 +2945,8 @@ extension ResourceNotFoundException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2975,7 +2960,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3097,9 +3082,8 @@ extension ServiceQuotaExceededException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3113,7 +3097,7 @@ extension ServiceQuotaExceededException { } /// Request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3319,9 +3303,8 @@ public enum StartInstanceOnboardingJobOutputError: Swift.Error, Swift.Equatable extension StartInstanceOnboardingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartInstanceOnboardingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectInstanceOnboardingJobStatus = output.connectInstanceOnboardingJobStatus } else { @@ -3641,9 +3624,8 @@ extension ThrottlingException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3657,7 +3639,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4113,9 +4095,8 @@ extension ValidationException { } else { self.xAmzErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4129,7 +4110,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSConnectCases/ConnectCasesClient.swift b/Sources/Services/AWSConnectCases/ConnectCasesClient.swift index db4e0c63f3b..126097cfb78 100644 --- a/Sources/Services/AWSConnectCases/ConnectCasesClient.swift +++ b/Sources/Services/AWSConnectCases/ConnectCasesClient.swift @@ -208,6 +208,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetField") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutFieldOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -282,6 +284,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCase") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -305,7 +308,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -325,6 +328,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createField") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -375,7 +380,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -402,6 +407,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLayout") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -417,7 +423,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -437,6 +443,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRelatedItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -452,7 +459,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -472,6 +479,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +495,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +515,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +528,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +548,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -554,7 +564,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -574,6 +584,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCaseEventConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -586,7 +597,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -606,6 +617,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -618,7 +630,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -638,6 +650,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLayout") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -650,7 +663,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -670,6 +683,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -682,7 +696,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -702,6 +716,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCasesForContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -717,7 +732,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -737,6 +752,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +766,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +786,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFieldOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +800,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +820,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFields") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +834,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +854,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLayouts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +868,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +888,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -881,7 +901,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -901,6 +921,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -914,7 +935,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -934,6 +955,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putCaseEventConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -949,7 +971,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -969,6 +991,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchCases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1007,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1027,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchRelatedItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1019,7 +1043,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1039,6 +1063,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1054,7 +1079,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1074,6 +1099,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1087,7 +1113,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1107,6 +1133,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1122,7 +1149,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1142,6 +1169,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateField") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1185,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1177,6 +1205,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLayout") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1192,7 +1221,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1212,6 +1241,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cases") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1227,7 +1257,7 @@ extension ConnectCasesClient: ConnectCasesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSConnectCases/models/Models.swift b/Sources/Services/AWSConnectCases/models/Models.swift index cf9d2a15f70..0b557181f82 100644 --- a/Sources/Services/AWSConnectCases/models/Models.swift +++ b/Sources/Services/AWSConnectCases/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -200,9 +199,8 @@ public enum BatchGetFieldOutputError: Swift.Error, Swift.Equatable { extension BatchGetFieldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetFieldOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.fields = output.fields @@ -379,9 +377,8 @@ public enum BatchPutFieldOptionsOutputError: Swift.Error, Swift.Equatable { extension BatchPutFieldOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutFieldOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -689,9 +686,8 @@ extension ConnectCasesClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -705,7 +701,7 @@ extension ConflictException { } /// The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1018,9 +1014,8 @@ public enum CreateCaseOutputError: Swift.Error, Swift.Equatable { extension CreateCaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.caseArn = output.caseArn self.caseId = output.caseId @@ -1151,9 +1146,8 @@ public enum CreateDomainOutputError: Swift.Error, Swift.Equatable { extension CreateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainArn = output.domainArn self.domainId = output.domainId @@ -1330,9 +1324,8 @@ public enum CreateFieldOutputError: Swift.Error, Swift.Equatable { extension CreateFieldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFieldOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fieldArn = output.fieldArn self.fieldId = output.fieldId @@ -1486,9 +1479,8 @@ public enum CreateLayoutOutputError: Swift.Error, Swift.Equatable { extension CreateLayoutOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLayoutOutputResponseBody = try responseDecoder.decode(responseBody: data) self.layoutArn = output.layoutArn self.layoutId = output.layoutId @@ -1648,9 +1640,8 @@ public enum CreateRelatedItemOutputError: Swift.Error, Swift.Equatable { extension CreateRelatedItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRelatedItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.relatedItemArn = output.relatedItemArn self.relatedItemId = output.relatedItemId @@ -1851,9 +1842,8 @@ public enum CreateTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.templateArn = output.templateArn self.templateId = output.templateId @@ -2869,9 +2859,8 @@ public enum GetCaseEventConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetCaseEventConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCaseEventConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventBridge = output.eventBridge } else { @@ -3029,9 +3018,8 @@ public enum GetCaseOutputError: Swift.Error, Swift.Equatable { extension GetCaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.nextToken = output.nextToken @@ -3179,9 +3167,8 @@ public enum GetDomainOutputError: Swift.Error, Swift.Equatable { extension GetDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTime = output.createdTime self.domainArn = output.domainArn @@ -3465,9 +3452,8 @@ public enum GetLayoutOutputError: Swift.Error, Swift.Equatable { extension GetLayoutOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLayoutOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content self.layoutArn = output.layoutArn @@ -3626,9 +3612,8 @@ public enum GetTemplateOutputError: Swift.Error, Swift.Equatable { extension GetTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.layoutConfiguration = output.layoutConfiguration @@ -3762,9 +3747,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3778,7 +3762,7 @@ extension InternalServerException { } /// We couldn't process your request because of an issue with the server. Try again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4106,9 +4090,8 @@ public enum ListCasesForContactOutputError: Swift.Error, Swift.Equatable { extension ListCasesForContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCasesForContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cases = output.cases self.nextToken = output.nextToken @@ -4243,9 +4226,8 @@ public enum ListDomainsOutputError: Swift.Error, Swift.Equatable { extension ListDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domains = output.domains self.nextToken = output.nextToken @@ -4408,9 +4390,8 @@ public enum ListFieldOptionsOutputError: Swift.Error, Swift.Equatable { extension ListFieldOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFieldOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.options = output.options @@ -4555,9 +4536,8 @@ public enum ListFieldsOutputError: Swift.Error, Swift.Equatable { extension ListFieldsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFieldsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.nextToken = output.nextToken @@ -4702,9 +4682,8 @@ public enum ListLayoutsOutputError: Swift.Error, Swift.Equatable { extension ListLayoutsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLayoutsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.layouts = output.layouts self.nextToken = output.nextToken @@ -4824,9 +4803,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4968,9 +4946,8 @@ public enum ListTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templates = output.templates @@ -5402,9 +5379,8 @@ extension ConnectCasesClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -5422,7 +5398,7 @@ extension ResourceNotFoundException { } /// We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5646,9 +5622,8 @@ public enum SearchCasesOutputError: Swift.Error, Swift.Equatable { extension SearchCasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchCasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cases = output.cases self.nextToken = output.nextToken @@ -5928,9 +5903,8 @@ public enum SearchRelatedItemsOutputError: Swift.Error, Swift.Equatable { extension SearchRelatedItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchRelatedItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.relatedItems = output.relatedItems @@ -6117,9 +6091,8 @@ extension ConnectCasesClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6133,7 +6106,7 @@ extension ServiceQuotaExceededException { } /// The service quota has been exceeded. For a list of service quotas, see [Amazon Connect Service Quotas](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) in the Amazon Connect Administrator Guide. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6428,9 +6401,8 @@ extension ConnectCasesClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6444,7 +6416,7 @@ extension ThrottlingException { } /// The rate has been exceeded for this API. Please try again after a few minutes. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7091,9 +7063,8 @@ public struct UpdateTemplateOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7107,7 +7078,7 @@ extension ValidationException { } /// The request isn't valid. Check the syntax and try again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSConnectContactLens/ConnectContactLensClient.swift b/Sources/Services/AWSConnectContactLens/ConnectContactLensClient.swift index 79f4cc8f997..0564bef4ed4 100644 --- a/Sources/Services/AWSConnectContactLens/ConnectContactLensClient.swift +++ b/Sources/Services/AWSConnectContactLens/ConnectContactLensClient.swift @@ -208,6 +208,7 @@ extension ConnectContactLensClient: ConnectContactLensClientProtocol { .withRegion(value: config.region) .withSigningName(value: "connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRealtimeContactAnalysisSegments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ConnectContactLensClient: ConnectContactLensClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSConnectContactLens/models/Models.swift b/Sources/Services/AWSConnectContactLens/models/Models.swift index d5aed0f56a7..8a69a218f14 100644 --- a/Sources/Services/AWSConnectContactLens/models/Models.swift +++ b/Sources/Services/AWSConnectContactLens/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -223,9 +222,8 @@ extension ConnectContactLensClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -239,7 +237,7 @@ extension InternalServiceException { } /// Request processing failed due to an error or failure with the service. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -275,9 +273,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -291,7 +288,7 @@ extension InvalidRequestException { } /// The request is not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -478,9 +475,8 @@ public enum ListRealtimeContactAnalysisSegmentsOutputError: Swift.Error, Swift.E extension ListRealtimeContactAnalysisSegmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRealtimeContactAnalysisSegmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.segments = output.segments @@ -638,9 +634,8 @@ extension ConnectContactLensClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -654,7 +649,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -725,9 +720,8 @@ extension ConnectContactLensClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -741,7 +735,7 @@ extension ThrottlingException { } /// The throttling limit has been exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSConnectParticipant/ConnectParticipantClient.swift b/Sources/Services/AWSConnectParticipant/ConnectParticipantClient.swift index 6a0cdb9c180..b57a53a4b12 100644 --- a/Sources/Services/AWSConnectParticipant/ConnectParticipantClient.swift +++ b/Sources/Services/AWSConnectParticipant/ConnectParticipantClient.swift @@ -208,6 +208,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeAttachmentUpload") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createParticipantConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disconnectParticipant") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -312,7 +315,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -332,6 +335,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -348,7 +352,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +372,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTranscript") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +389,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +409,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendEvent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -428,7 +434,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -448,6 +454,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendMessage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -472,7 +479,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -492,6 +499,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAttachmentUpload") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -516,7 +524,7 @@ extension ConnectParticipantClient: ConnectParticipantClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSConnectParticipant/models/Models.swift b/Sources/Services/AWSConnectParticipant/models/Models.swift index ff9d5f1bbba..d3fa4cb5f19 100644 --- a/Sources/Services/AWSConnectParticipant/models/Models.swift +++ b/Sources/Services/AWSConnectParticipant/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -349,9 +348,8 @@ public struct CompleteAttachmentUploadOutputResponse: Swift.Equatable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -365,7 +363,7 @@ extension ConflictException { } /// An attachment with that identifier is already being uploaded. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -593,9 +591,8 @@ public enum CreateParticipantConnectionOutputError: Swift.Error, Swift.Equatable extension CreateParticipantConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateParticipantConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionCredentials = output.connectionCredentials self.websocket = output.websocket @@ -835,9 +832,8 @@ public enum GetAttachmentOutputError: Swift.Error, Swift.Equatable { extension GetAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.url = output.url self.urlExpiry = output.urlExpiry @@ -1036,9 +1032,8 @@ public enum GetTranscriptOutputError: Swift.Error, Swift.Equatable { extension GetTranscriptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTranscriptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.initialContactId = output.initialContactId self.nextToken = output.nextToken @@ -1106,9 +1101,8 @@ extension GetTranscriptOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1122,7 +1116,7 @@ extension InternalServerException { } /// This exception occurs when there is an internal failure in the Amazon Connect service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1618,9 +1612,8 @@ public enum SendEventOutputError: Swift.Error, Swift.Equatable { extension SendEventOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendEventOutputResponseBody = try responseDecoder.decode(responseBody: data) self.absoluteTime = output.absoluteTime self.id = output.id @@ -1791,9 +1784,8 @@ public enum SendMessageOutputError: Swift.Error, Swift.Equatable { extension SendMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.absoluteTime = output.absoluteTime self.id = output.id @@ -1842,9 +1834,8 @@ extension SendMessageOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1858,7 +1849,7 @@ extension ServiceQuotaExceededException { } /// The number of attachments per contact exceeds the quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2059,9 +2050,8 @@ public enum StartAttachmentUploadOutputError: Swift.Error, Swift.Equatable { extension StartAttachmentUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAttachmentUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachmentId = output.attachmentId self.uploadMetadata = output.uploadMetadata @@ -2165,9 +2155,8 @@ extension ConnectParticipantClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2181,7 +2170,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2285,9 +2274,8 @@ extension ConnectParticipantClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2301,7 +2289,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by Amazon Connect. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSControlTower/ControlTowerClient.swift b/Sources/Services/AWSControlTower/ControlTowerClient.swift index f5028ba0de7..f5c5b690753 100644 --- a/Sources/Services/AWSControlTower/ControlTowerClient.swift +++ b/Sources/Services/AWSControlTower/ControlTowerClient.swift @@ -208,6 +208,7 @@ extension ControlTowerClient: ControlTowerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "controltower") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ControlTowerClient: ControlTowerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ControlTowerClient: ControlTowerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "controltower") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension ControlTowerClient: ControlTowerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension ControlTowerClient: ControlTowerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "controltower") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getControlOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension ControlTowerClient: ControlTowerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension ControlTowerClient: ControlTowerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "controltower") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnabledControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension ControlTowerClient: ControlTowerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSControlTower/models/Models.swift b/Sources/Services/AWSControlTower/models/Models.swift index a52773a1497..654157fca3a 100644 --- a/Sources/Services/AWSControlTower/models/Models.swift +++ b/Sources/Services/AWSControlTower/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// User does not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -57,9 +56,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -73,7 +71,7 @@ extension ConflictException { } /// Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -347,9 +345,8 @@ public enum DisableControlOutputError: Swift.Error, Swift.Equatable { extension DisableControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationIdentifier = output.operationIdentifier } else { @@ -484,9 +481,8 @@ public enum EnableControlOutputError: Swift.Error, Swift.Equatable { extension EnableControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationIdentifier = output.operationIdentifier } else { @@ -639,9 +635,8 @@ public enum GetControlOperationOutputError: Swift.Error, Swift.Equatable { extension GetControlOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetControlOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlOperation = output.controlOperation } else { @@ -681,9 +676,8 @@ extension GetControlOperationOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -697,7 +691,7 @@ extension InternalServerException { } /// Unexpected error during processing of request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -836,9 +830,8 @@ public enum ListEnabledControlsOutputError: Swift.Error, Swift.Equatable { extension ListEnabledControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnabledControlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.enabledControls = output.enabledControls self.nextToken = output.nextToken @@ -897,9 +890,8 @@ extension ListEnabledControlsOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -913,7 +905,7 @@ extension ResourceNotFoundException { } /// Request references a resource which does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -950,9 +942,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -966,7 +957,7 @@ extension ServiceQuotaExceededException { } /// Request would cause a service quota to be exceeded. The limit is 10 concurrent operations. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1008,9 +999,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -1028,7 +1018,7 @@ extension ThrottlingException { } /// Request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1085,9 +1075,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1101,7 +1090,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCostExplorer/CostExplorerClient.swift b/Sources/Services/AWSCostExplorer/CostExplorerClient.swift index e0a97aae03f..de8b667419e 100644 --- a/Sources/Services/AWSCostExplorer/CostExplorerClient.swift +++ b/Sources/Services/AWSCostExplorer/CostExplorerClient.swift @@ -208,6 +208,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAnomalyMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAnomalySubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCostCategoryDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAnomalyMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAnomalySubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCostCategoryDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCostCategoryDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnomalies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnomalyMonitors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnomalySubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCostAndUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCostAndUsageWithResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCostCategories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCostForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDimensionValues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -775,6 +790,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReservationCoverage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -791,7 +807,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -811,6 +827,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReservationPurchaseRecommendation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -827,7 +844,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -847,6 +864,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReservationUtilization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -863,7 +881,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -883,6 +901,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRightsizingRecommendation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -899,7 +918,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -930,6 +949,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSavingsPlansCoverage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -946,7 +966,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -966,6 +986,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSavingsPlansPurchaseRecommendation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -982,7 +1003,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1002,6 +1023,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSavingsPlansUtilization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1018,7 +1040,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1038,6 +1060,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSavingsPlansUtilizationDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1054,7 +1077,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1074,6 +1097,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1090,7 +1114,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1110,6 +1134,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsageForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1126,7 +1151,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1146,6 +1171,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCostAllocationTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1162,7 +1188,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1182,6 +1208,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCostCategoryDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1198,7 +1225,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1218,6 +1245,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSavingsPlansPurchaseRecommendationGeneration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1234,7 +1262,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1254,6 +1282,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1270,7 +1299,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1290,6 +1319,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "provideAnomalyFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1306,7 +1336,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1326,6 +1356,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSavingsPlansPurchaseRecommendationGeneration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1342,7 +1373,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1362,6 +1393,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1378,7 +1410,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1398,6 +1430,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1414,7 +1447,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1434,6 +1467,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAnomalyMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1450,7 +1484,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1470,6 +1504,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAnomalySubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1486,7 +1521,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1506,6 +1541,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCostAllocationTagsStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1522,7 +1558,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1542,6 +1578,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCostCategoryDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1558,7 +1595,7 @@ extension CostExplorerClient: CostExplorerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCostExplorer/models/Models.swift b/Sources/Services/AWSCostExplorer/models/Models.swift index 50a7b42bcbc..1d2a9a79d63 100644 --- a/Sources/Services/AWSCostExplorer/models/Models.swift +++ b/Sources/Services/AWSCostExplorer/models/Models.swift @@ -639,9 +639,8 @@ extension CostExplorerClientTypes { extension BillExpirationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BillExpirationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -655,7 +654,7 @@ extension BillExpirationException { } /// The requested report expired. Update the date interval and try again. -public struct BillExpirationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BillExpirationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2179,9 +2178,8 @@ public enum CreateAnomalyMonitorOutputError: Swift.Error, Swift.Equatable { extension CreateAnomalyMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAnomalyMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitorArn = output.monitorArn } else { @@ -2331,9 +2329,8 @@ public enum CreateAnomalySubscriptionOutputError: Swift.Error, Swift.Equatable { extension CreateAnomalySubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAnomalySubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscriptionArn = output.subscriptionArn } else { @@ -2569,9 +2566,8 @@ public enum CreateCostCategoryDefinitionOutputError: Swift.Error, Swift.Equatabl extension CreateCostCategoryDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCostCategoryDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.costCategoryArn = output.costCategoryArn self.effectiveStart = output.effectiveStart @@ -2767,9 +2763,8 @@ extension CostExplorerClientTypes { extension DataUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DataUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2783,7 +2778,7 @@ extension DataUnavailableException { } /// The requested data is unavailable. -public struct DataUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DataUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3102,9 +3097,8 @@ public enum DeleteCostCategoryDefinitionOutputError: Swift.Error, Swift.Equatabl extension DeleteCostCategoryDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCostCategoryDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.costCategoryArn = output.costCategoryArn self.effectiveEnd = output.effectiveEnd @@ -3237,9 +3231,8 @@ public enum DescribeCostCategoryDefinitionOutputError: Swift.Error, Swift.Equata extension DescribeCostCategoryDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCostCategoryDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.costCategory = output.costCategory } else { @@ -4470,9 +4463,8 @@ extension CostExplorerClientTypes { extension GenerationExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerationExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4486,7 +4478,7 @@ extension GenerationExistsException { } /// A request to generate a recommendation is already in progress. -public struct GenerationExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GenerationExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4764,9 +4756,8 @@ public enum GetAnomaliesOutputError: Swift.Error, Swift.Equatable { extension GetAnomaliesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnomaliesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalies = output.anomalies self.nextPageToken = output.nextPageToken @@ -4934,9 +4925,8 @@ public enum GetAnomalyMonitorsOutputError: Swift.Error, Swift.Equatable { extension GetAnomalyMonitorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnomalyMonitorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyMonitors = output.anomalyMonitors self.nextPageToken = output.nextPageToken @@ -5116,9 +5106,8 @@ public enum GetAnomalySubscriptionsOutputError: Swift.Error, Swift.Equatable { extension GetAnomalySubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnomalySubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalySubscriptions = output.anomalySubscriptions self.nextPageToken = output.nextPageToken @@ -5341,9 +5330,8 @@ public enum GetCostAndUsageOutputError: Swift.Error, Swift.Equatable { extension GetCostAndUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCostAndUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dimensionValueAttributes = output.dimensionValueAttributes self.groupDefinitions = output.groupDefinitions @@ -5603,9 +5591,8 @@ public enum GetCostAndUsageWithResourcesOutputError: Swift.Error, Swift.Equatabl extension GetCostAndUsageWithResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCostAndUsageWithResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dimensionValueAttributes = output.dimensionValueAttributes self.groupDefinitions = output.groupDefinitions @@ -5930,9 +5917,8 @@ public enum GetCostCategoriesOutputError: Swift.Error, Swift.Equatable { extension GetCostCategoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCostCategoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.costCategoryNames = output.costCategoryNames self.costCategoryValues = output.costCategoryValues @@ -6209,9 +6195,8 @@ public enum GetCostForecastOutputError: Swift.Error, Swift.Equatable { extension GetCostForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCostForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.forecastResultsByTime = output.forecastResultsByTime self.total = output.total @@ -6597,9 +6582,8 @@ public enum GetDimensionValuesOutputError: Swift.Error, Swift.Equatable { extension GetDimensionValuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDimensionValuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dimensionValues = output.dimensionValues self.nextPageToken = output.nextPageToken @@ -7001,9 +6985,8 @@ public enum GetReservationCoverageOutputError: Swift.Error, Swift.Equatable { extension GetReservationCoverageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReservationCoverageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coveragesByTime = output.coveragesByTime self.nextPageToken = output.nextPageToken @@ -7304,9 +7287,8 @@ public enum GetReservationPurchaseRecommendationOutputError: Swift.Error, Swift. extension GetReservationPurchaseRecommendationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReservationPurchaseRecommendationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata self.nextPageToken = output.nextPageToken @@ -7594,9 +7576,8 @@ public enum GetReservationUtilizationOutputError: Swift.Error, Swift.Equatable { extension GetReservationUtilizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReservationUtilizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.total = output.total @@ -7835,9 +7816,8 @@ public enum GetRightsizingRecommendationOutputError: Swift.Error, Swift.Equatabl extension GetRightsizingRecommendationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRightsizingRecommendationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration self.metadata = output.metadata @@ -8135,9 +8115,8 @@ public enum GetSavingsPlansCoverageOutputError: Swift.Error, Swift.Equatable { extension GetSavingsPlansCoverageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSavingsPlansCoverageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.savingsPlansCoverages = output.savingsPlansCoverages @@ -8355,9 +8334,8 @@ public enum GetSavingsPlansPurchaseRecommendationOutputError: Swift.Error, Swift extension GetSavingsPlansPurchaseRecommendationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSavingsPlansPurchaseRecommendationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata self.nextPageToken = output.nextPageToken @@ -8592,9 +8570,8 @@ public enum GetSavingsPlansUtilizationDetailsOutputError: Swift.Error, Swift.Equ extension GetSavingsPlansUtilizationDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSavingsPlansUtilizationDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.savingsPlansUtilizationDetails = output.savingsPlansUtilizationDetails @@ -8810,9 +8787,8 @@ public enum GetSavingsPlansUtilizationOutputError: Swift.Error, Swift.Equatable extension GetSavingsPlansUtilizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSavingsPlansUtilizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.savingsPlansUtilizationsByTime = output.savingsPlansUtilizationsByTime self.total = output.total @@ -9100,9 +9076,8 @@ public enum GetTagsOutputError: Swift.Error, Swift.Equatable { extension GetTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.returnSize = output.returnSize @@ -9357,9 +9332,8 @@ public enum GetUsageForecastOutputError: Swift.Error, Swift.Equatable { extension GetUsageForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsageForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.forecastResultsByTime = output.forecastResultsByTime self.total = output.total @@ -9752,9 +9726,8 @@ extension CostExplorerClientTypes { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9768,7 +9741,7 @@ extension InvalidNextTokenException { } /// The pagination token is invalid. Try again without a pagination token. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9804,9 +9777,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9820,7 +9792,7 @@ extension LimitExceededException { } /// You made too many calls in a short period of time. Try again later. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9987,9 +9959,8 @@ public enum ListCostAllocationTagsOutputError: Swift.Error, Swift.Equatable { extension ListCostAllocationTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCostAllocationTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.costAllocationTags = output.costAllocationTags self.nextToken = output.nextToken @@ -10140,9 +10111,8 @@ public enum ListCostCategoryDefinitionsOutputError: Swift.Error, Swift.Equatable extension ListCostCategoryDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCostCategoryDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.costCategoryReferences = output.costCategoryReferences self.nextToken = output.nextToken @@ -10319,9 +10289,8 @@ public enum ListSavingsPlansPurchaseRecommendationGenerationOutputError: Swift.E extension ListSavingsPlansPurchaseRecommendationGenerationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSavingsPlansPurchaseRecommendationGenerationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.generationSummaryList = output.generationSummaryList self.nextPageToken = output.nextPageToken @@ -10451,9 +10420,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceTags = output.resourceTags } else { @@ -11095,9 +11063,8 @@ public enum ProvideAnomalyFeedbackOutputError: Swift.Error, Swift.Equatable { extension ProvideAnomalyFeedbackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvideAnomalyFeedbackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyId = output.anomalyId } else { @@ -11359,9 +11326,8 @@ extension CostExplorerClientTypes { extension RequestChangedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestChangedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11375,7 +11341,7 @@ extension RequestChangedException { } /// Your request parameters changed between pages. Try again with the old parameters or without a pagination token. -public struct RequestChangedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestChangedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12197,9 +12163,8 @@ extension CostExplorerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -12215,7 +12180,7 @@ extension ResourceNotFoundException { } /// The specified ARN in the request doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13892,9 +13857,8 @@ extension CostExplorerClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13908,7 +13872,7 @@ extension ServiceQuotaExceededException { } /// You've reached the limit on the number of resources you can create, or exceeded the size of an individual resource. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14111,9 +14075,8 @@ public enum StartSavingsPlansPurchaseRecommendationGenerationOutputError: Swift. extension StartSavingsPlansPurchaseRecommendationGenerationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSavingsPlansPurchaseRecommendationGenerationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.estimatedCompletionTime = output.estimatedCompletionTime self.generationStartedTime = output.generationStartedTime @@ -14712,9 +14675,8 @@ extension CostExplorerClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -14730,7 +14692,7 @@ extension TooManyTagsException { } /// Can occur if you specify a number of tags for a resource greater than the maximum 50 user tags per resource. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14830,9 +14792,8 @@ extension CostExplorerClientTypes { extension UnknownMonitorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnknownMonitorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14846,7 +14807,7 @@ extension UnknownMonitorException { } /// The cost anomaly monitor does not exist for the account. -public struct UnknownMonitorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnknownMonitorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14882,9 +14843,8 @@ extension UnknownMonitorExceptionBody: Swift.Decodable { extension UnknownSubscriptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnknownSubscriptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14898,7 +14858,7 @@ extension UnknownSubscriptionException { } /// The cost anomaly subscription does not exist for the account. -public struct UnknownSubscriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnknownSubscriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14934,9 +14894,8 @@ extension UnknownSubscriptionExceptionBody: Swift.Decodable { extension UnresolvableUsageUnitException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnresolvableUsageUnitExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14950,7 +14909,7 @@ extension UnresolvableUsageUnitException { } /// Cost Explorer was unable to identify the usage unit. Provide UsageType/UsageTypeGroup filter selections that contain matching units, for example: hours. -public struct UnresolvableUsageUnitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnresolvableUsageUnitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15177,9 +15136,8 @@ public enum UpdateAnomalyMonitorOutputError: Swift.Error, Swift.Equatable { extension UpdateAnomalyMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAnomalyMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitorArn = output.monitorArn } else { @@ -15398,9 +15356,8 @@ public enum UpdateAnomalySubscriptionOutputError: Swift.Error, Swift.Equatable { extension UpdateAnomalySubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAnomalySubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscriptionArn = output.subscriptionArn } else { @@ -15577,9 +15534,8 @@ public enum UpdateCostAllocationTagsStatusOutputError: Swift.Error, Swift.Equata extension UpdateCostAllocationTagsStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCostAllocationTagsStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -15787,9 +15743,8 @@ public enum UpdateCostCategoryDefinitionOutputError: Swift.Error, Swift.Equatabl extension UpdateCostCategoryDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCostCategoryDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.costCategoryArn = output.costCategoryArn self.effectiveStart = output.effectiveStart diff --git a/Sources/Services/AWSCostandUsageReportService/CostandUsageReportClient.swift b/Sources/Services/AWSCostandUsageReportService/CostandUsageReportClient.swift index d89436c103c..2c5e3eb9929 100644 --- a/Sources/Services/AWSCostandUsageReportService/CostandUsageReportClient.swift +++ b/Sources/Services/AWSCostandUsageReportService/CostandUsageReportClient.swift @@ -208,6 +208,7 @@ extension CostandUsageReportClient: CostandUsageReportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cur") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReportDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension CostandUsageReportClient: CostandUsageReportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension CostandUsageReportClient: CostandUsageReportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cur") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReportDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension CostandUsageReportClient: CostandUsageReportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension CostandUsageReportClient: CostandUsageReportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cur") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyReportDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension CostandUsageReportClient: CostandUsageReportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension CostandUsageReportClient: CostandUsageReportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cur") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putReportDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension CostandUsageReportClient: CostandUsageReportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCostandUsageReportService/models/Models.swift b/Sources/Services/AWSCostandUsageReportService/models/Models.swift index 66fcd0e1d6c..eb69f7e5495 100644 --- a/Sources/Services/AWSCostandUsageReportService/models/Models.swift +++ b/Sources/Services/AWSCostandUsageReportService/models/Models.swift @@ -253,9 +253,8 @@ public enum DeleteReportDefinitionOutputError: Swift.Error, Swift.Equatable { extension DeleteReportDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteReportDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.responseMessage = output.responseMessage } else { @@ -377,9 +376,8 @@ public enum DescribeReportDefinitionsOutputError: Swift.Error, Swift.Equatable { extension DescribeReportDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReportDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportDefinitions = output.reportDefinitions @@ -438,9 +436,8 @@ extension DescribeReportDefinitionsOutputResponseBody: Swift.Decodable { extension DuplicateReportNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateReportNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -454,7 +451,7 @@ extension DuplicateReportNameException { } /// A report with the specified name already exists in the account. Specify a different report name. -public struct DuplicateReportNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateReportNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -491,9 +488,8 @@ extension DuplicateReportNameExceptionBody: Swift.Decodable { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -507,7 +503,7 @@ extension InternalErrorException { } /// An error on the server occurred during the processing of your request. Try again later. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -937,9 +933,8 @@ extension CostandUsageReportClientTypes { extension ReportLimitReachedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReportLimitReachedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -953,7 +948,7 @@ extension ReportLimitReachedException { } /// This account already has five reports defined. To define a new report, you must delete an existing report. -public struct ReportLimitReachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReportLimitReachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1088,9 +1083,8 @@ extension CostandUsageReportClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1104,7 +1098,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSCustomerProfiles/CustomerProfilesClient.swift b/Sources/Services/AWSCustomerProfiles/CustomerProfilesClient.swift index b0cfe1acf41..ce01a11f156 100644 --- a/Sources/Services/AWSCustomerProfiles/CustomerProfilesClient.swift +++ b/Sources/Services/AWSCustomerProfiles/CustomerProfilesClient.swift @@ -208,6 +208,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addProfileKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIntegrationWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +401,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +421,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProfileKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +473,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +493,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProfileObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +509,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +529,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProfileObjectType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -532,7 +542,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -552,6 +562,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +575,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +595,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAutoMergingPreview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +611,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -619,6 +631,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -631,7 +644,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -651,6 +664,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityResolutionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -663,7 +677,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -683,6 +697,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -698,7 +713,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -737,6 +752,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMatches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +766,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +786,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProfileObjectType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -782,7 +799,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -802,6 +819,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProfileObjectTypeTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +832,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +852,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -846,7 +865,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -866,6 +885,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowSteps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +899,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +919,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountIntegrations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +936,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +956,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -948,7 +970,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -968,6 +990,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentityResolutionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -981,7 +1004,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1001,6 +1024,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIntegrations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1014,7 +1038,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1034,6 +1058,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProfileObjectTypeTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1047,7 +1072,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1067,6 +1092,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProfileObjectTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1080,7 +1106,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1100,6 +1126,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProfileObjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1116,7 +1143,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1136,6 +1163,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1148,7 +1176,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1168,6 +1196,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1184,7 +1213,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1231,6 +1260,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergeProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1246,7 +1276,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1266,6 +1296,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1281,7 +1312,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1301,6 +1332,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putProfileObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1316,7 +1348,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1336,6 +1368,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putProfileObjectType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1351,7 +1384,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1371,6 +1404,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1387,7 +1421,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1407,6 +1441,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1422,7 +1457,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1442,6 +1477,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1455,7 +1491,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1475,6 +1511,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1490,7 +1527,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1510,6 +1547,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "profile") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1525,7 +1563,7 @@ extension CustomerProfilesClient: CustomerProfilesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSCustomerProfiles/models/Models.swift b/Sources/Services/AWSCustomerProfiles/models/Models.swift index 568ee5a59f2..6545cb0c78e 100644 --- a/Sources/Services/AWSCustomerProfiles/models/Models.swift +++ b/Sources/Services/AWSCustomerProfiles/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -180,9 +179,8 @@ public enum AddProfileKeyOutputError: Swift.Error, Swift.Equatable { extension AddProfileKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddProfileKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyName = output.keyName self.values = output.values @@ -776,9 +774,8 @@ extension CustomerProfilesClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -792,7 +789,7 @@ extension BadRequestException { } /// The input you provided is invalid. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1238,9 +1235,8 @@ public enum CreateDomainOutputError: Swift.Error, Swift.Equatable { extension CreateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.deadLetterQueueUrl = output.deadLetterQueueUrl @@ -1511,9 +1507,8 @@ public enum CreateIntegrationWorkflowOutputError: Swift.Error, Swift.Equatable { extension CreateIntegrationWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIntegrationWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.workflowId = output.workflowId @@ -1927,9 +1922,8 @@ public enum CreateProfileOutputError: Swift.Error, Swift.Equatable { extension CreateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profileId = output.profileId } else { @@ -2062,9 +2056,8 @@ public enum DeleteDomainOutputError: Swift.Error, Swift.Equatable { extension DeleteDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2190,9 +2183,8 @@ public enum DeleteIntegrationOutputError: Swift.Error, Swift.Equatable { extension DeleteIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2412,9 +2404,8 @@ public enum DeleteProfileKeyOutputError: Swift.Error, Swift.Equatable { extension DeleteProfileKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProfileKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2565,9 +2556,8 @@ public enum DeleteProfileObjectOutputError: Swift.Error, Swift.Equatable { extension DeleteProfileObjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProfileObjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2675,9 +2665,8 @@ public enum DeleteProfileObjectTypeOutputError: Swift.Error, Swift.Equatable { extension DeleteProfileObjectTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProfileObjectTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2747,9 +2736,8 @@ public enum DeleteProfileOutputError: Swift.Error, Swift.Equatable { extension DeleteProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3596,9 +3584,8 @@ public enum GetAutoMergingPreviewOutputError: Swift.Error, Swift.Equatable { extension GetAutoMergingPreviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAutoMergingPreviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainName = output.domainName self.numberOfMatchesInSample = output.numberOfMatchesInSample @@ -3729,9 +3716,8 @@ public enum GetDomainOutputError: Swift.Error, Swift.Equatable { extension GetDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.deadLetterQueueUrl = output.deadLetterQueueUrl @@ -3931,9 +3917,8 @@ public enum GetIdentityResolutionJobOutputError: Swift.Error, Swift.Equatable { extension GetIdentityResolutionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityResolutionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoMerging = output.autoMerging self.domainName = output.domainName @@ -4172,9 +4157,8 @@ public enum GetIntegrationOutputError: Swift.Error, Swift.Equatable { extension GetIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.domainName = output.domainName @@ -4401,9 +4385,8 @@ public enum GetMatchesOutputError: Swift.Error, Swift.Equatable { extension GetMatchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMatchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.matchGenerationDate = output.matchGenerationDate self.matches = output.matches @@ -4550,9 +4533,8 @@ public enum GetProfileObjectTypeOutputError: Swift.Error, Swift.Equatable { extension GetProfileObjectTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProfileObjectTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowProfileCreation = output.allowProfileCreation self.createdAt = output.createdAt @@ -4798,9 +4780,8 @@ public enum GetProfileObjectTypeTemplateOutputError: Swift.Error, Swift.Equatabl extension GetProfileObjectTypeTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProfileObjectTypeTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowProfileCreation = output.allowProfileCreation self.fields = output.fields @@ -4993,9 +4974,8 @@ public enum GetWorkflowOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.errorDescription = output.errorDescription @@ -5198,9 +5178,8 @@ public enum GetWorkflowStepsOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowStepsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowStepsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5514,9 +5493,8 @@ extension CustomerProfilesClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5530,7 +5508,7 @@ extension InternalServerException { } /// An internal service error occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5826,9 +5804,8 @@ public enum ListAccountIntegrationsOutputError: Swift.Error, Swift.Equatable { extension ListAccountIntegrationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountIntegrationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6044,9 +6021,8 @@ public enum ListDomainsOutputError: Swift.Error, Swift.Equatable { extension ListDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6190,9 +6166,8 @@ public enum ListIdentityResolutionJobsOutputError: Swift.Error, Swift.Equatable extension ListIdentityResolutionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentityResolutionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityResolutionJobsList = output.identityResolutionJobsList self.nextToken = output.nextToken @@ -6487,9 +6462,8 @@ public enum ListIntegrationsOutputError: Swift.Error, Swift.Equatable { extension ListIntegrationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIntegrationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6769,9 +6743,8 @@ public enum ListProfileObjectTypeTemplatesOutputError: Swift.Error, Swift.Equata extension ListProfileObjectTypeTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProfileObjectTypeTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6915,9 +6888,8 @@ public enum ListProfileObjectTypesOutputError: Swift.Error, Swift.Equatable { extension ListProfileObjectTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProfileObjectTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7166,9 +7138,8 @@ public enum ListProfileObjectsOutputError: Swift.Error, Swift.Equatable { extension ListProfileObjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProfileObjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7283,9 +7254,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7570,9 +7540,8 @@ public enum ListWorkflowsOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -8091,9 +8060,8 @@ public enum MergeProfilesOutputError: Swift.Error, Swift.Equatable { extension MergeProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MergeProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8884,9 +8852,8 @@ public enum PutIntegrationOutputError: Swift.Error, Swift.Equatable { extension PutIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.domainName = output.domainName @@ -9126,9 +9093,8 @@ public enum PutProfileObjectOutputError: Swift.Error, Swift.Equatable { extension PutProfileObjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutProfileObjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profileObjectUniqueKey = output.profileObjectUniqueKey } else { @@ -9403,9 +9369,8 @@ public enum PutProfileObjectTypeOutputError: Swift.Error, Swift.Equatable { extension PutProfileObjectTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutProfileObjectTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowProfileCreation = output.allowProfileCreation self.createdAt = output.createdAt @@ -9590,9 +9555,8 @@ extension PutProfileObjectTypeOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9606,7 +9570,7 @@ extension ResourceNotFoundException { } /// The requested resource does not exist, or access was denied. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10285,9 +10249,8 @@ public enum SearchProfilesOutputError: Swift.Error, Swift.Equatable { extension SearchProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -11002,9 +10965,8 @@ extension CustomerProfilesClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11018,7 +10980,7 @@ extension ThrottlingException { } /// You exceeded the maximum number of requests. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11529,9 +11491,8 @@ public enum UpdateDomainOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.deadLetterQueueUrl = output.deadLetterQueueUrl @@ -12028,9 +11989,8 @@ public enum UpdateProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profileId = output.profileId } else { diff --git a/Sources/Services/AWSDAX/DAXClient.swift b/Sources/Services/AWSDAX/DAXClient.swift index 4fcf7800295..bc03700d4a3 100644 --- a/Sources/Services/AWSDAX/DAXClient.swift +++ b/Sources/Services/AWSDAX/DAXClient.swift @@ -208,6 +208,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "decreaseReplicationFactor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDefaultParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSubnetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "increaseReplicationFactor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension DAXClient: DAXClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dax") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension DAXClient: DAXClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDAX/models/Models.swift b/Sources/Services/AWSDAX/models/Models.swift index 42cf9d129ca..87fd08b8452 100644 --- a/Sources/Services/AWSDAX/models/Models.swift +++ b/Sources/Services/AWSDAX/models/Models.swift @@ -279,9 +279,8 @@ extension DAXClientTypes { extension ClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -295,7 +294,7 @@ extension ClusterAlreadyExistsFault { } /// You already have a DAX cluster with the given identifier. -public struct ClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -363,9 +362,8 @@ extension DAXClientTypes { extension ClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -379,7 +377,7 @@ extension ClusterNotFoundFault { } /// The requested cluster ID does not refer to an existing DAX cluster. -public struct ClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -415,9 +413,8 @@ extension ClusterNotFoundFaultBody: Swift.Decodable { extension ClusterQuotaForCustomerExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterQuotaForCustomerExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -431,7 +428,7 @@ extension ClusterQuotaForCustomerExceededFault { } /// You have attempted to exceed the maximum number of DAX clusters for your AWS account. -public struct ClusterQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -787,9 +784,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -920,9 +916,8 @@ public enum CreateParameterGroupOutputError: Swift.Error, Swift.Equatable { extension CreateParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterGroup = output.parameterGroup } else { @@ -1076,9 +1071,8 @@ public enum CreateSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnetGroup = output.subnetGroup } else { @@ -1258,9 +1252,8 @@ public enum DecreaseReplicationFactorOutputError: Swift.Error, Swift.Equatable { extension DecreaseReplicationFactorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DecreaseReplicationFactorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -1377,9 +1370,8 @@ public enum DeleteClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -1496,9 +1488,8 @@ public enum DeleteParameterGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletionMessage = output.deletionMessage } else { @@ -1611,9 +1602,8 @@ public enum DeleteSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletionMessage = output.deletionMessage } else { @@ -1763,9 +1753,8 @@ public enum DescribeClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.nextToken = output.nextToken @@ -1908,9 +1897,8 @@ public enum DescribeDefaultParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeDefaultParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDefaultParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parameters = output.parameters @@ -2113,9 +2101,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -2284,9 +2271,8 @@ public enum DescribeParameterGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parameterGroups = output.parameterGroups @@ -2456,9 +2442,8 @@ public enum DescribeParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parameters = output.parameters @@ -2623,9 +2608,8 @@ public enum DescribeSubnetGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeSubnetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSubnetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subnetGroups = output.subnetGroups @@ -2926,9 +2910,8 @@ public enum IncreaseReplicationFactorOutputError: Swift.Error, Swift.Equatable { extension IncreaseReplicationFactorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncreaseReplicationFactorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -2967,9 +2950,8 @@ extension IncreaseReplicationFactorOutputResponseBody: Swift.Decodable { extension InsufficientClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientClusterCapacityFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2983,7 +2965,7 @@ extension InsufficientClusterCapacityFault { } /// There are not enough system resources to create the cluster you requested (or to resize an already-existing cluster). -public struct InsufficientClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3019,9 +3001,8 @@ extension InsufficientClusterCapacityFaultBody: Swift.Decodable { extension InvalidARNFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidARNFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3035,7 +3016,7 @@ extension InvalidARNFault { } /// The Amazon Resource Name (ARN) supplied in the request is not valid. -public struct InvalidARNFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidARNFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3071,9 +3052,8 @@ extension InvalidARNFaultBody: Swift.Decodable { extension InvalidClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClusterStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3087,7 +3067,7 @@ extension InvalidClusterStateFault { } /// The requested DAX cluster is not in the available state. -public struct InvalidClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3123,9 +3103,8 @@ extension InvalidClusterStateFaultBody: Swift.Decodable { extension InvalidParameterCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterCombinationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3139,7 +3118,7 @@ extension InvalidParameterCombinationException { } /// Two or more incompatible parameters were specified. -public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3175,9 +3154,8 @@ extension InvalidParameterCombinationExceptionBody: Swift.Decodable { extension InvalidParameterGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterGroupStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3191,7 +3169,7 @@ extension InvalidParameterGroupStateFault { } /// One or more parameters in a parameter group are in an invalid state. -public struct InvalidParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3227,9 +3205,8 @@ extension InvalidParameterGroupStateFaultBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3243,7 +3220,7 @@ extension InvalidParameterValueException { } /// The value for a parameter is invalid. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3279,9 +3256,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSubnetBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3295,7 +3271,7 @@ extension InvalidSubnet { } /// An invalid subnet identifier was specified. -public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3331,9 +3307,8 @@ extension InvalidSubnetBody: Swift.Decodable { extension InvalidVPCNetworkStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidVPCNetworkStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3347,7 +3322,7 @@ extension InvalidVPCNetworkStateFault { } /// The VPC network is in an invalid state. -public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3510,9 +3485,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -3655,9 +3629,8 @@ extension DAXClientTypes { extension NodeNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NodeNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3671,7 +3644,7 @@ extension NodeNotFoundFault { } /// None of the nodes in the cluster have the given node ID. -public struct NodeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3707,9 +3680,8 @@ extension NodeNotFoundFaultBody: Swift.Decodable { extension NodeQuotaForClusterExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NodeQuotaForClusterExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3723,7 +3695,7 @@ extension NodeQuotaForClusterExceededFault { } /// You have attempted to exceed the maximum number of nodes for a DAX cluster. -public struct NodeQuotaForClusterExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeQuotaForClusterExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3759,9 +3731,8 @@ extension NodeQuotaForClusterExceededFaultBody: Swift.Decodable { extension NodeQuotaForCustomerExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NodeQuotaForCustomerExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3775,7 +3746,7 @@ extension NodeQuotaForCustomerExceededFault { } /// You have attempted to exceed the maximum number of nodes for your AWS account. -public struct NodeQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4083,9 +4054,8 @@ extension DAXClientTypes { extension ParameterGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterGroupAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4099,7 +4069,7 @@ extension ParameterGroupAlreadyExistsFault { } /// The specified parameter group already exists. -public struct ParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4135,9 +4105,8 @@ extension ParameterGroupAlreadyExistsFaultBody: Swift.Decodable { extension ParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterGroupNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4151,7 +4120,7 @@ extension ParameterGroupNotFoundFault { } /// The specified parameter group does not exist. -public struct ParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4187,9 +4156,8 @@ extension ParameterGroupNotFoundFaultBody: Swift.Decodable { extension ParameterGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterGroupQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4203,7 +4171,7 @@ extension ParameterGroupQuotaExceededFault { } /// You have attempted to exceed the maximum number of parameter groups. -public struct ParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4476,9 +4444,8 @@ public enum RebootNodeOutputError: Swift.Error, Swift.Equatable { extension RebootNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootNodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -4679,9 +4646,8 @@ extension DAXClientTypes { extension ServiceLinkedRoleNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLinkedRoleNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4695,7 +4661,7 @@ extension ServiceLinkedRoleNotFoundFault { } /// The specified service linked role (SLR) was not found. -public struct ServiceLinkedRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLinkedRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4739,7 +4705,7 @@ extension ServiceQuotaExceededException { } /// You have reached the maximum number of x509 certificates that can be created for encrypted clusters in a 30 day period. Contact AWS customer support to discuss options for continuing to create encrypted clusters. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4914,9 +4880,8 @@ extension DAXClientTypes { extension SubnetGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetGroupAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4930,7 +4895,7 @@ extension SubnetGroupAlreadyExistsFault { } /// The specified subnet group already exists. -public struct SubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4966,9 +4931,8 @@ extension SubnetGroupAlreadyExistsFaultBody: Swift.Decodable { extension SubnetGroupInUseFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetGroupInUseFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4982,7 +4946,7 @@ extension SubnetGroupInUseFault { } /// The specified subnet group is currently in use. -public struct SubnetGroupInUseFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetGroupInUseFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5018,9 +4982,8 @@ extension SubnetGroupInUseFaultBody: Swift.Decodable { extension SubnetGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetGroupNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5034,7 +4997,7 @@ extension SubnetGroupNotFoundFault { } /// The requested subnet group name does not refer to an existing subnet group. -public struct SubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5070,9 +5033,8 @@ extension SubnetGroupNotFoundFaultBody: Swift.Decodable { extension SubnetGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetGroupQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5086,7 +5048,7 @@ extension SubnetGroupQuotaExceededFault { } /// The request cannot be processed because it would exceed the allowed number of subnets in a subnet group. -public struct SubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5122,9 +5084,8 @@ extension SubnetGroupQuotaExceededFaultBody: Swift.Decodable { extension SubnetInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetInUseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5138,7 +5099,7 @@ extension SubnetInUse { } /// The requested subnet is being used by another subnet group. -public struct SubnetInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5174,9 +5135,8 @@ extension SubnetInUseBody: Swift.Decodable { extension SubnetQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5190,7 +5150,7 @@ extension SubnetQuotaExceededFault { } /// The request cannot be processed because it would exceed the allowed number of subnets in a subnet group. -public struct SubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5271,9 +5231,8 @@ extension DAXClientTypes { extension TagNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5287,7 +5246,7 @@ extension TagNotFoundFault { } /// The tag does not exist. -public struct TagNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5323,9 +5282,8 @@ extension TagNotFoundFaultBody: Swift.Decodable { extension TagQuotaPerResourceExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagQuotaPerResourceExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5339,7 +5297,7 @@ extension TagQuotaPerResourceExceeded { } /// You have exceeded the maximum number of tags for this DAX cluster. -public struct TagQuotaPerResourceExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagQuotaPerResourceExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5482,9 +5440,8 @@ public enum TagResourceOutputError: Swift.Error, Swift.Equatable { extension TagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5639,9 +5596,8 @@ public enum UntagResourceOutputError: Swift.Error, Swift.Equatable { extension UntagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UntagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5855,9 +5811,8 @@ public enum UpdateClusterOutputError: Swift.Error, Swift.Equatable { extension UpdateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -5999,9 +5954,8 @@ public enum UpdateParameterGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterGroup = output.parameterGroup } else { @@ -6154,9 +6108,8 @@ public enum UpdateSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnetGroup = output.subnetGroup } else { diff --git a/Sources/Services/AWSDLM/DLMClient.swift b/Sources/Services/AWSDLM/DLMClient.swift index 83f3a7159ca..d2ebb280f54 100644 --- a/Sources/Services/AWSDLM/DLMClient.swift +++ b/Sources/Services/AWSDLM/DLMClient.swift @@ -208,6 +208,7 @@ extension DLMClient: DLMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dlm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension DLMClient: DLMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension DLMClient: DLMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dlm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension DLMClient: DLMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension DLMClient: DLMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dlm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLifecyclePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -288,7 +291,7 @@ extension DLMClient: DLMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -308,6 +311,7 @@ extension DLMClient: DLMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dlm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension DLMClient: DLMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension DLMClient: DLMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dlm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +357,7 @@ extension DLMClient: DLMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +377,7 @@ extension DLMClient: DLMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dlm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -387,7 +393,7 @@ extension DLMClient: DLMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +413,7 @@ extension DLMClient: DLMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dlm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +427,7 @@ extension DLMClient: DLMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +447,7 @@ extension DLMClient: DLMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dlm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +463,7 @@ extension DLMClient: DLMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDLM/models/Models.swift b/Sources/Services/AWSDLM/models/Models.swift index d4a9e083c02..b50c7c3f5c4 100644 --- a/Sources/Services/AWSDLM/models/Models.swift +++ b/Sources/Services/AWSDLM/models/Models.swift @@ -272,9 +272,8 @@ public enum CreateLifecyclePolicyOutputError: Swift.Error, Swift.Equatable { extension CreateLifecyclePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLifecyclePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyId = output.policyId } else { @@ -1175,9 +1174,8 @@ public enum GetLifecyclePoliciesOutputError: Swift.Error, Swift.Equatable { extension GetLifecyclePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLifecyclePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policies = output.policies } else { @@ -1282,9 +1280,8 @@ public enum GetLifecyclePolicyOutputError: Swift.Error, Swift.Equatable { extension GetLifecyclePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLifecyclePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -1358,9 +1355,8 @@ extension DLMClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1376,7 +1372,7 @@ extension InternalServerException { } /// The service failed in an unexpected way. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1448,9 +1444,8 @@ extension DLMClientTypes { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1470,7 +1465,7 @@ extension InvalidRequestException { } /// Bad request. The request is missing required parameters or has invalid parameters. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1771,9 +1766,8 @@ extension DLMClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1791,7 +1785,7 @@ extension LimitExceededException { } /// The request failed because a limit was exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1899,9 +1893,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2280,9 +2273,8 @@ extension DLMClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2302,7 +2294,7 @@ extension ResourceNotFoundException { } /// A requested resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDataBrew/DataBrewClient.swift b/Sources/Services/AWSDataBrew/DataBrewClient.swift index b544eca6ac9..7c2a77ef91a 100644 --- a/Sources/Services/AWSDataBrew/DataBrewClient.swift +++ b/Sources/Services/AWSDataBrew/DataBrewClient.swift @@ -232,6 +232,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteRecipeVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -247,7 +248,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -267,6 +268,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -282,7 +284,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -302,6 +304,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProfileJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -317,7 +320,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +356,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +376,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -387,7 +392,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +412,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRecipeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -422,7 +428,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +448,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRuleset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -457,7 +464,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -477,6 +484,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -492,7 +500,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -512,6 +520,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -524,7 +533,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -544,6 +553,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +566,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +599,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +619,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecipeVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRuleset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -652,7 +665,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -672,6 +685,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -684,7 +698,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -704,6 +718,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -716,7 +731,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -736,6 +751,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +764,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +784,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +797,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +817,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -812,7 +830,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -832,6 +850,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -845,7 +864,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -865,6 +884,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRuleset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -877,7 +897,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -897,6 +917,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -909,7 +930,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -929,6 +950,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -942,7 +964,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -962,6 +984,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -975,7 +998,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -995,6 +1018,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1008,7 +1032,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1028,6 +1052,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1041,7 +1066,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1061,6 +1086,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecipeVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1074,7 +1100,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1094,6 +1120,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecipes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1107,7 +1134,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1127,6 +1154,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRulesets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1140,7 +1168,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1188,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchedules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1173,7 +1202,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1193,6 +1222,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1205,7 +1235,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1225,6 +1255,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1271,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1291,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendProjectSessionAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1307,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1327,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1307,7 +1340,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1327,6 +1360,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startProjectSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1342,7 +1376,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1362,6 +1396,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1374,7 +1409,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1394,6 +1429,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1409,7 +1445,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1429,6 +1465,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1442,7 +1479,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1462,6 +1499,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1477,7 +1515,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1497,6 +1535,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProfileJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1512,7 +1551,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1532,6 +1571,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1547,7 +1587,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1567,6 +1607,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1582,7 +1623,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1602,6 +1643,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRecipeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1617,7 +1659,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1637,6 +1679,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRuleset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1652,7 +1695,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1672,6 +1715,7 @@ extension DataBrewClient: DataBrewClientProtocol { .withRegion(value: config.region) .withSigningName(value: "databrew") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1687,7 +1731,7 @@ extension DataBrewClient: DataBrewClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDataBrew/models/Models.swift b/Sources/Services/AWSDataBrew/models/Models.swift index 2d594b10743..449d4d8ab41 100644 --- a/Sources/Services/AWSDataBrew/models/Models.swift +++ b/Sources/Services/AWSDataBrew/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access to the specified resource was denied. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -230,9 +229,8 @@ public enum BatchDeleteRecipeVersionOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteRecipeVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteRecipeVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.name = output.name @@ -504,9 +502,8 @@ extension DataBrewClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -520,7 +517,7 @@ extension ConflictException { } /// Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -705,9 +702,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -1012,9 +1008,8 @@ public enum CreateProfileJobOutputError: Swift.Error, Swift.Equatable { extension CreateProfileJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProfileJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -1205,9 +1200,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -1655,9 +1649,8 @@ public enum CreateRecipeJobOutputError: Swift.Error, Swift.Equatable { extension CreateRecipeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRecipeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -1723,9 +1716,8 @@ public enum CreateRecipeOutputError: Swift.Error, Swift.Equatable { extension CreateRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -1913,9 +1905,8 @@ public enum CreateRulesetOutputError: Swift.Error, Swift.Equatable { extension CreateRulesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRulesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -2090,9 +2081,8 @@ public enum CreateScheduleOutputError: Swift.Error, Swift.Equatable { extension CreateScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -2923,9 +2913,8 @@ public enum DeleteDatasetOutputError: Swift.Error, Swift.Equatable { extension DeleteDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -3022,9 +3011,8 @@ public enum DeleteJobOutputError: Swift.Error, Swift.Equatable { extension DeleteJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -3121,9 +3109,8 @@ public enum DeleteProjectOutputError: Swift.Error, Swift.Equatable { extension DeleteProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -3228,9 +3215,8 @@ public enum DeleteRecipeVersionOutputError: Swift.Error, Swift.Equatable { extension DeleteRecipeVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRecipeVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name self.recipeVersion = output.recipeVersion @@ -3338,9 +3324,8 @@ public enum DeleteRulesetOutputError: Swift.Error, Swift.Equatable { extension DeleteRulesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRulesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -3435,9 +3420,8 @@ public enum DeleteScheduleOutputError: Swift.Error, Swift.Equatable { extension DeleteScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -3532,9 +3516,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createDate = output.createDate self.createdBy = output.createdBy @@ -3749,9 +3732,8 @@ public enum DescribeJobOutputError: Swift.Error, Swift.Equatable { extension DescribeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createDate = output.createDate self.createdBy = output.createdBy @@ -4137,9 +4119,8 @@ public enum DescribeJobRunOutputError: Swift.Error, Swift.Equatable { extension DescribeJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attempt = output.attempt self.completedOn = output.completedOn @@ -4450,9 +4431,8 @@ public enum DescribeProjectOutputError: Swift.Error, Swift.Equatable { extension DescribeProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createDate = output.createDate self.createdBy = output.createdBy @@ -4709,9 +4689,8 @@ public enum DescribeRecipeOutputError: Swift.Error, Swift.Equatable { extension DescribeRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createDate = output.createDate self.createdBy = output.createdBy @@ -4944,9 +4923,8 @@ public enum DescribeRulesetOutputError: Swift.Error, Swift.Equatable { extension DescribeRulesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRulesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createDate = output.createDate self.createdBy = output.createdBy @@ -5149,9 +5127,8 @@ public enum DescribeScheduleOutputError: Swift.Error, Swift.Equatable { extension DescribeScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createDate = output.createDate self.createdBy = output.createdBy @@ -5787,9 +5764,8 @@ extension DataBrewClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5803,7 +5779,7 @@ extension InternalServerException { } /// An internal service failure occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6659,9 +6635,8 @@ public enum ListDatasetsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasets = output.datasets self.nextToken = output.nextToken @@ -6800,9 +6775,8 @@ public enum ListJobRunsOutputError: Swift.Error, Swift.Equatable { extension ListJobRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobRuns = output.jobRuns self.nextToken = output.nextToken @@ -6947,9 +6921,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -7078,9 +7051,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -7220,9 +7192,8 @@ public enum ListRecipeVersionsOutputError: Swift.Error, Swift.Equatable { extension ListRecipeVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecipeVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recipes = output.recipes @@ -7359,9 +7330,8 @@ public enum ListRecipesOutputError: Swift.Error, Swift.Equatable { extension ListRecipesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecipesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recipes = output.recipes @@ -7500,9 +7470,8 @@ public enum ListRulesetsOutputError: Swift.Error, Swift.Equatable { extension ListRulesetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rulesets = output.rulesets @@ -7639,9 +7608,8 @@ public enum ListSchedulesOutputError: Swift.Error, Swift.Equatable { extension ListSchedulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchedulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schedules = output.schedules @@ -7757,9 +7725,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8579,9 +8546,8 @@ public enum PublishRecipeOutputError: Swift.Error, Swift.Equatable { extension PublishRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -9024,9 +8990,8 @@ extension DataBrewClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9040,7 +9005,7 @@ extension ResourceNotFoundException { } /// One or more resources can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9825,9 +9790,8 @@ public enum SendProjectSessionActionOutputError: Swift.Error, Swift.Equatable { extension SendProjectSessionActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendProjectSessionActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionId = output.actionId self.name = output.name @@ -9887,9 +9851,8 @@ extension SendProjectSessionActionOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9903,7 +9866,7 @@ extension ServiceQuotaExceededException { } /// A service quota is exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10089,9 +10052,8 @@ public enum StartJobRunOutputError: Swift.Error, Swift.Equatable { extension StartJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runId = output.runId } else { @@ -10219,9 +10181,8 @@ extension StartProjectSessionOutputResponse: Swift.CustomDebugStringConvertible extension StartProjectSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartProjectSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientSessionId = output.clientSessionId self.name = output.name @@ -10462,9 +10423,8 @@ public enum StopJobRunOutputError: Swift.Error, Swift.Equatable { extension StopJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runId = output.runId } else { @@ -10941,9 +10901,8 @@ public enum UpdateDatasetOutputError: Swift.Error, Swift.Equatable { extension UpdateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -11202,9 +11161,8 @@ public enum UpdateProfileJobOutputError: Swift.Error, Swift.Equatable { extension UpdateProfileJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProfileJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -11336,9 +11294,8 @@ public enum UpdateProjectOutputError: Swift.Error, Swift.Equatable { extension UpdateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastModifiedDate = output.lastModifiedDate self.name = output.name @@ -11697,9 +11654,8 @@ public enum UpdateRecipeJobOutputError: Swift.Error, Swift.Equatable { extension UpdateRecipeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRecipeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -11763,9 +11719,8 @@ public enum UpdateRecipeOutputError: Swift.Error, Swift.Equatable { extension UpdateRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -11909,9 +11864,8 @@ public enum UpdateRulesetOutputError: Swift.Error, Swift.Equatable { extension UpdateRulesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRulesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -12057,9 +12011,8 @@ public enum UpdateScheduleOutputError: Swift.Error, Swift.Equatable { extension UpdateScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -12145,9 +12098,8 @@ extension DataBrewClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12161,7 +12113,7 @@ extension ValidationException { } /// The input parameters for this request failed validation. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDataExchange/DataExchangeClient.swift b/Sources/Services/AWSDataExchange/DataExchangeClient.swift index 7ba38b8999c..3bcf18f44b2 100644 --- a/Sources/Services/AWSDataExchange/DataExchangeClient.swift +++ b/Sources/Services/AWSDataExchange/DataExchangeClient.swift @@ -208,6 +208,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -392,7 +398,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +418,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +431,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +451,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +464,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +484,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +497,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +517,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +530,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +550,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -552,7 +563,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -572,6 +583,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +596,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +616,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -616,7 +629,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +649,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +662,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -668,6 +682,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSetRevisions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -681,7 +696,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -701,6 +716,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -714,7 +730,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -734,6 +750,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -747,7 +764,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -767,6 +784,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +798,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +818,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRevisionAssets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -813,7 +832,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -833,6 +852,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -845,7 +865,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -865,6 +885,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +901,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +921,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendApiAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api-fulfill.")) @@ -917,7 +939,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -937,6 +959,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -949,7 +972,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -969,6 +992,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1008,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1028,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1017,7 +1042,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1037,6 +1062,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1078,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1098,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1087,7 +1114,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1107,6 +1134,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1122,7 +1150,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1142,6 +1170,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dataexchange") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1186,7 @@ extension DataExchangeClient: DataExchangeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDataExchange/models/Models.swift b/Sources/Services/AWSDataExchange/models/Models.swift index 4475c9caf7b..b9f061f46e4 100644 --- a/Sources/Services/AWSDataExchange/models/Models.swift +++ b/Sources/Services/AWSDataExchange/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access to the resource is denied. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -772,9 +771,8 @@ extension DataExchangeClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -792,7 +790,7 @@ extension ConflictException { } /// The request couldn't be completed because it conflicted with the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -974,9 +972,8 @@ public enum CreateDataSetOutputError: Swift.Error, Swift.Equatable { extension CreateDataSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.assetType = output.assetType @@ -1215,9 +1212,8 @@ public enum CreateEventActionOutputError: Swift.Error, Swift.Equatable { extension CreateEventActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.arn = output.arn @@ -1399,9 +1395,8 @@ public enum CreateJobOutputError: Swift.Error, Swift.Equatable { extension CreateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -1628,9 +1623,8 @@ public enum CreateRevisionOutputError: Swift.Error, Swift.Equatable { extension CreateRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.comment = output.comment @@ -3277,9 +3271,8 @@ public enum GetAssetOutputError: Swift.Error, Swift.Equatable { extension GetAssetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.assetDetails = output.assetDetails @@ -3467,9 +3460,8 @@ public enum GetDataSetOutputError: Swift.Error, Swift.Equatable { extension GetDataSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.assetType = output.assetType @@ -3676,9 +3668,8 @@ public enum GetEventActionOutputError: Swift.Error, Swift.Equatable { extension GetEventActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.arn = output.arn @@ -3826,9 +3817,8 @@ public enum GetJobOutputError: Swift.Error, Swift.Equatable { extension GetJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -4013,9 +4003,8 @@ public enum GetRevisionOutputError: Swift.Error, Swift.Equatable { extension GetRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.comment = output.comment @@ -5090,9 +5079,8 @@ extension DataExchangeClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5106,7 +5094,7 @@ extension InternalServerException { } /// An exception occurred with the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6041,9 +6029,8 @@ public enum ListDataSetRevisionsOutputError: Swift.Error, Swift.Equatable { extension ListDataSetRevisionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSetRevisionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.revisions = output.revisions @@ -6185,9 +6172,8 @@ public enum ListDataSetsOutputError: Swift.Error, Swift.Equatable { extension ListDataSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSets = output.dataSets self.nextToken = output.nextToken @@ -6329,9 +6315,8 @@ public enum ListEventActionsOutputError: Swift.Error, Swift.Equatable { extension ListEventActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventActions = output.eventActions self.nextToken = output.nextToken @@ -6481,9 +6466,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -6633,9 +6617,8 @@ public enum ListRevisionAssetsOutputError: Swift.Error, Swift.Equatable { extension ListRevisionAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRevisionAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assets = output.assets self.nextToken = output.nextToken @@ -6744,9 +6727,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7078,9 +7060,8 @@ extension DataExchangeClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -7098,7 +7079,7 @@ extension ResourceNotFoundException { } /// The resource couldn't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7637,9 +7618,8 @@ public enum RevokeRevisionOutputError: Swift.Error, Swift.Equatable { extension RevokeRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.comment = output.comment @@ -8050,9 +8030,9 @@ public struct SendApiAssetInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body.data(using: .utf8) - let bodybody = ClientRuntime.HttpBody.data(bodydata) - input.builder.withBody(bodybody) + let bodyData = body.data(using: .utf8) + let bodyBody = ClientRuntime.HttpBody.data(bodyData) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -8228,12 +8208,8 @@ extension SendApiAssetOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.responseHeaders = [:] } - if let data = httpResponse.body.toBytes()?.getData() { - if let output = Swift.String(data: data, encoding: .utf8) { - self.body = output - } else { - self.body = nil - } + if let data = try httpResponse.body.toData(), let output = Swift.String(data: data, encoding: .utf8) { + self.body = output } else { self.body = nil } @@ -8306,9 +8282,8 @@ extension DataExchangeClientTypes { extension ServiceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.limitName = output.limitName self.limitValue = output.limitValue @@ -8326,7 +8301,7 @@ extension ServiceLimitExceededException { } /// The request has exceeded the quotas imposed by the service. -public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8746,9 +8721,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8762,7 +8736,7 @@ extension ThrottlingException { } /// The limit on the number of requests per second was exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9040,9 +9014,8 @@ public enum UpdateAssetOutputError: Swift.Error, Swift.Equatable { extension UpdateAssetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.assetDetails = output.assetDetails @@ -9268,9 +9241,8 @@ public enum UpdateDataSetOutputError: Swift.Error, Swift.Equatable { extension UpdateDataSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.assetType = output.assetType @@ -9484,9 +9456,8 @@ public enum UpdateEventActionOutputError: Swift.Error, Swift.Equatable { extension UpdateEventActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEventActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.arn = output.arn @@ -9682,9 +9653,8 @@ public enum UpdateRevisionOutputError: Swift.Error, Swift.Equatable { extension UpdateRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.comment = output.comment @@ -9823,9 +9793,8 @@ extension UpdateRevisionOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionCause = output.exceptionCause self.message = output.message @@ -9841,7 +9810,7 @@ extension ValidationException { } /// The request was invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDataPipeline/DataPipelineClient.swift b/Sources/Services/AWSDataPipeline/DataPipelineClient.swift index 9ce0403724f..701f1d7e5a6 100644 --- a/Sources/Services/AWSDataPipeline/DataPipelineClient.swift +++ b/Sources/Services/AWSDataPipeline/DataPipelineClient.swift @@ -208,6 +208,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activatePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivatePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeObjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "evaluateExpression") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPipelineDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pollForTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -615,6 +626,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPipelineDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -631,7 +643,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -651,6 +663,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "queryObjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -667,7 +680,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -687,6 +700,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -703,7 +717,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -723,6 +737,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reportTaskProgress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -739,7 +754,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -759,6 +774,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reportTaskRunnerHeartbeat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -775,7 +791,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -795,6 +811,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -811,7 +828,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -831,6 +848,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setTaskStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -847,7 +865,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -867,6 +885,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datapipeline") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validatePipelineDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -883,7 +902,7 @@ extension DataPipelineClient: DataPipelineClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDataPipeline/models/Models.swift b/Sources/Services/AWSDataPipeline/models/Models.swift index f6980b72d7a..145f2b0ef38 100644 --- a/Sources/Services/AWSDataPipeline/models/Models.swift +++ b/Sources/Services/AWSDataPipeline/models/Models.swift @@ -363,9 +363,8 @@ public enum CreatePipelineOutputError: Swift.Error, Swift.Equatable { extension CreatePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineId = output.pipelineId } else { @@ -717,9 +716,8 @@ public enum DescribeObjectsOutputError: Swift.Error, Swift.Equatable { extension DescribeObjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeObjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hasMoreResults = output.hasMoreResults self.marker = output.marker @@ -878,9 +876,8 @@ public enum DescribePipelinesOutputError: Swift.Error, Swift.Equatable { extension DescribePipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineDescriptionList = output.pipelineDescriptionList } else { @@ -1035,9 +1032,8 @@ public enum EvaluateExpressionOutputError: Swift.Error, Swift.Equatable { extension EvaluateExpressionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EvaluateExpressionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluatedExpression = output.evaluatedExpression } else { @@ -1223,9 +1219,8 @@ public enum GetPipelineDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetPipelineDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPipelineDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterObjects = output.parameterObjects self.parameterValues = output.parameterValues @@ -1357,9 +1352,8 @@ extension DataPipelineClientTypes { extension InternalServiceError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1373,7 +1367,7 @@ extension InternalServiceError { } /// An internal service error occurred. -public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1410,9 +1404,8 @@ extension InternalServiceErrorBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1426,7 +1419,7 @@ extension InvalidRequestException { } /// The request was not valid. Verify that your request was properly formatted, that the signature was generated with the correct credentials, and that you haven't exceeded any of the service limits for your account. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1535,9 +1528,8 @@ public enum ListPipelinesOutputError: Swift.Error, Swift.Equatable { extension ListPipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hasMoreResults = output.hasMoreResults self.marker = output.marker @@ -1892,9 +1884,8 @@ extension DataPipelineClientTypes { extension PipelineDeletedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PipelineDeletedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1908,7 +1899,7 @@ extension PipelineDeletedException { } /// The specified pipeline has been deleted. -public struct PipelineDeletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PipelineDeletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2092,9 +2083,8 @@ extension DataPipelineClientTypes { extension PipelineNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PipelineNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2108,7 +2098,7 @@ extension PipelineNotFoundException { } /// The specified pipeline was not found. Verify that you used the correct user and account identifiers. -public struct PipelineNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PipelineNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2314,9 +2304,8 @@ public enum PollForTaskOutputError: Swift.Error, Swift.Equatable { extension PollForTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PollForTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskObject = output.taskObject } else { @@ -2506,9 +2495,8 @@ public enum PutPipelineDefinitionOutputError: Swift.Error, Swift.Equatable { extension PutPipelineDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutPipelineDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errored = output.errored self.validationErrors = output.validationErrors @@ -2760,9 +2748,8 @@ public enum QueryObjectsOutputError: Swift.Error, Swift.Equatable { extension QueryObjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryObjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hasMoreResults = output.hasMoreResults self.ids = output.ids @@ -3047,9 +3034,8 @@ public enum ReportTaskProgressOutputError: Swift.Error, Swift.Equatable { extension ReportTaskProgressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReportTaskProgressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.canceled = output.canceled } else { @@ -3187,9 +3173,8 @@ public enum ReportTaskRunnerHeartbeatOutputError: Swift.Error, Swift.Equatable { extension ReportTaskRunnerHeartbeatOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReportTaskRunnerHeartbeatOutputResponseBody = try responseDecoder.decode(responseBody: data) self.terminate = output.terminate } else { @@ -3586,9 +3571,8 @@ extension DataPipelineClientTypes { extension TaskNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TaskNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3602,7 +3586,7 @@ extension TaskNotFoundException { } /// The specified task was not found. -public struct TaskNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TaskNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3901,9 +3885,8 @@ public enum ValidatePipelineDefinitionOutputError: Swift.Error, Swift.Equatable extension ValidatePipelineDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidatePipelineDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errored = output.errored self.validationErrors = output.validationErrors diff --git a/Sources/Services/AWSDataSync/DataSyncClient.swift b/Sources/Services/AWSDataSync/DataSyncClient.swift index 3d24e047d71..93774801a0c 100644 --- a/Sources/Services/AWSDataSync/DataSyncClient.swift +++ b/Sources/Services/AWSDataSync/DataSyncClient.swift @@ -208,6 +208,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelTaskExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAgent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationEfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationFsxLustre") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationFsxOntap") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationFsxOpenZfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationFsxWindows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationHdfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationNfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationObjectStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationS3") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocationSmb") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAgent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAgent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationEfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationFsxLustre") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationFsxOntap") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationFsxOpenZfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationFsxWindows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationHdfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationNfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationObjectStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationS3") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocationSmb") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTaskExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAgents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTaskExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTaskExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAgent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLocationHdfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLocationNfs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLocationObjectStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLocationSmb") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension DataSyncClient: DataSyncClientProtocol { .withRegion(value: config.region) .withSigningName(value: "datasync") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTaskExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension DataSyncClient: DataSyncClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDataSync/models/Models.swift b/Sources/Services/AWSDataSync/models/Models.swift index 430f51fbde6..e1029b6ae6c 100644 --- a/Sources/Services/AWSDataSync/models/Models.swift +++ b/Sources/Services/AWSDataSync/models/Models.swift @@ -375,9 +375,8 @@ public enum CreateAgentOutputError: Swift.Error, Swift.Equatable { extension CreateAgentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAgentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentArn = output.agentArn } else { @@ -575,9 +574,8 @@ public enum CreateLocationEfsOutputError: Swift.Error, Swift.Equatable { extension CreateLocationEfsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationEfsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -750,9 +748,8 @@ public enum CreateLocationFsxLustreOutputError: Swift.Error, Swift.Equatable { extension CreateLocationFsxLustreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationFsxLustreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -944,9 +941,8 @@ public enum CreateLocationFsxOntapOutputError: Swift.Error, Swift.Equatable { extension CreateLocationFsxOntapOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationFsxOntapOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -1131,9 +1127,8 @@ public enum CreateLocationFsxOpenZfsOutputError: Swift.Error, Swift.Equatable { extension CreateLocationFsxOpenZfsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationFsxOpenZfsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -1352,9 +1347,8 @@ public enum CreateLocationFsxWindowsOutputError: Swift.Error, Swift.Equatable { extension CreateLocationFsxWindowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationFsxWindowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -1647,9 +1641,8 @@ public enum CreateLocationHdfsOutputError: Swift.Error, Swift.Equatable { extension CreateLocationHdfsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationHdfsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -1823,9 +1816,8 @@ public enum CreateLocationNfsOutputError: Swift.Error, Swift.Equatable { extension CreateLocationNfsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationNfsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -2077,9 +2069,8 @@ public enum CreateLocationObjectStorageOutputError: Swift.Error, Swift.Equatable extension CreateLocationObjectStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationObjectStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -2277,9 +2268,8 @@ public enum CreateLocationS3OutputError: Swift.Error, Swift.Equatable { extension CreateLocationS3OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationS3OutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -2509,9 +2499,8 @@ public enum CreateLocationSmbOutputError: Swift.Error, Swift.Equatable { extension CreateLocationSmbOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationSmbOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationArn = output.locationArn } else { @@ -2757,9 +2746,8 @@ public enum CreateTaskOutputError: Swift.Error, Swift.Equatable { extension CreateTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskArn = output.taskArn } else { @@ -3121,9 +3109,8 @@ public enum DescribeAgentOutputError: Swift.Error, Swift.Equatable { extension DescribeAgentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAgentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentArn = output.agentArn self.creationTime = output.creationTime @@ -3296,9 +3283,8 @@ public enum DescribeLocationEfsOutputError: Swift.Error, Swift.Equatable { extension DescribeLocationEfsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationEfsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPointArn = output.accessPointArn self.creationTime = output.creationTime @@ -3470,9 +3456,8 @@ public enum DescribeLocationFsxLustreOutputError: Swift.Error, Swift.Equatable { extension DescribeLocationFsxLustreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationFsxLustreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.locationArn = output.locationArn @@ -3622,9 +3607,8 @@ public enum DescribeLocationFsxOntapOutputError: Swift.Error, Swift.Equatable { extension DescribeLocationFsxOntapOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationFsxOntapOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`protocol` = output.`protocol` self.creationTime = output.creationTime @@ -3804,9 +3788,8 @@ public enum DescribeLocationFsxOpenZfsOutputError: Swift.Error, Swift.Equatable extension DescribeLocationFsxOpenZfsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationFsxOpenZfsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`protocol` = output.`protocol` self.creationTime = output.creationTime @@ -3966,9 +3949,8 @@ public enum DescribeLocationFsxWindowsOutputError: Swift.Error, Swift.Equatable extension DescribeLocationFsxWindowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationFsxWindowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.domain = output.domain @@ -4138,9 +4120,8 @@ public enum DescribeLocationHdfsOutputError: Swift.Error, Swift.Equatable { extension DescribeLocationHdfsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationHdfsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentArns = output.agentArns self.authenticationType = output.authenticationType @@ -4380,9 +4361,8 @@ public enum DescribeLocationNfsOutputError: Swift.Error, Swift.Equatable { extension DescribeLocationNfsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationNfsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.locationArn = output.locationArn @@ -4535,9 +4515,8 @@ public enum DescribeLocationObjectStorageOutputError: Swift.Error, Swift.Equatab extension DescribeLocationObjectStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationObjectStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKey = output.accessKey self.agentArns = output.agentArns @@ -4729,9 +4708,8 @@ public enum DescribeLocationS3OutputError: Swift.Error, Swift.Equatable { extension DescribeLocationS3OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationS3OutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentArns = output.agentArns self.creationTime = output.creationTime @@ -4903,9 +4881,8 @@ public enum DescribeLocationSmbOutputError: Swift.Error, Swift.Equatable { extension DescribeLocationSmbOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationSmbOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentArns = output.agentArns self.creationTime = output.creationTime @@ -5087,9 +5064,8 @@ public enum DescribeTaskExecutionOutputError: Swift.Error, Swift.Equatable { extension DescribeTaskExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTaskExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bytesCompressed = output.bytesCompressed self.bytesTransferred = output.bytesTransferred @@ -5340,9 +5316,8 @@ public enum DescribeTaskOutputError: Swift.Error, Swift.Equatable { extension DescribeTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudWatchLogGroupArn = output.cloudWatchLogGroupArn self.creationTime = output.creationTime @@ -6131,9 +6106,8 @@ extension DataSyncClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -6149,7 +6123,7 @@ extension InternalException { } /// This exception is thrown when an error occurs in the DataSync service. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6192,9 +6166,8 @@ extension InternalExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.datasyncErrorCode = output.datasyncErrorCode self.errorCode = output.errorCode @@ -6212,7 +6185,7 @@ extension InvalidRequestException { } /// This exception is thrown when the client submits a malformed request. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6346,9 +6319,8 @@ public enum ListAgentsOutputError: Swift.Error, Swift.Equatable { extension ListAgentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAgentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agents = output.agents self.nextToken = output.nextToken @@ -6515,9 +6487,8 @@ public enum ListLocationsOutputError: Swift.Error, Swift.Equatable { extension ListLocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locations = output.locations self.nextToken = output.nextToken @@ -6673,9 +6644,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -6830,9 +6800,8 @@ public enum ListTaskExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListTaskExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTaskExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.taskExecutions = output.taskExecutions @@ -6999,9 +6968,8 @@ public enum ListTasksOutputError: Swift.Error, Swift.Equatable { extension ListTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tasks = output.tasks @@ -8381,9 +8349,8 @@ public enum StartTaskExecutionOutputError: Swift.Error, Swift.Equatable { extension StartTaskExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTaskExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskExecutionArn = output.taskExecutionArn } else { diff --git a/Sources/Services/AWSDatabaseMigrationService/DatabaseMigrationClient.swift b/Sources/Services/AWSDatabaseMigrationService/DatabaseMigrationClient.swift index 86032e5fb65..044b8569952 100644 --- a/Sources/Services/AWSDatabaseMigrationService/DatabaseMigrationClient.swift +++ b/Sources/Services/AWSDatabaseMigrationService/DatabaseMigrationClient.swift @@ -208,6 +208,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applyPendingMaintenanceAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchStartRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelReplicationTaskAssessmentRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleetAdvisorCollector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleetAdvisorCollector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleetAdvisorDatabases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationTaskAssessmentRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplicableIndividualAssessments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpointSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpointTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventCategories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetAdvisorCollectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetAdvisorDatabases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetAdvisorLsaAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetAdvisorSchemaObjectSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetAdvisorSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrderableReplicationInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePendingMaintenanceActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecommendationLimitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRefreshSchemasStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationInstanceTaskLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationSubnetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationTaskAssessmentResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1836,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationTaskAssessmentRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1873,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationTaskIndividualAssessments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1890,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1864,6 +1910,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1880,7 +1927,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1900,6 +1947,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1916,7 +1964,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1936,6 +1984,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTableStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +2001,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2021,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2038,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2008,6 +2058,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2024,7 +2075,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2044,6 +2095,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2060,7 +2112,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2132,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2096,7 +2149,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2116,6 +2169,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyReplicationInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2132,7 +2186,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2152,6 +2206,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyReplicationSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2223,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2243,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyReplicationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2204,7 +2260,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2224,6 +2280,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "moveReplicationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2240,7 +2297,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2260,6 +2317,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootReplicationInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2276,7 +2334,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2296,6 +2354,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "refreshSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2312,7 +2371,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2332,6 +2391,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reloadTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2348,7 +2408,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2368,6 +2428,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2384,7 +2445,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2404,6 +2465,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "runFleetAdvisorLsaAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2420,7 +2482,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2440,6 +2502,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2456,7 +2519,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2476,6 +2539,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReplicationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2492,7 +2556,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2519,6 +2583,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReplicationTaskAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2535,7 +2600,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2555,6 +2620,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReplicationTaskAssessmentRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2571,7 +2637,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2591,6 +2657,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopReplicationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2607,7 +2674,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2627,6 +2694,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2643,7 +2711,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2663,6 +2731,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubscriptionsToEventBridge") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2679,7 +2748,7 @@ extension DatabaseMigrationClient: DatabaseMigrationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDatabaseMigrationService/models/Models.swift b/Sources/Services/AWSDatabaseMigrationService/models/Models.swift index 61d771370a5..e5a0a47cd80 100644 --- a/Sources/Services/AWSDatabaseMigrationService/models/Models.swift +++ b/Sources/Services/AWSDatabaseMigrationService/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedFault { } /// DMS was denied access to the endpoint. Check that the role is correctly configured. -public struct AccessDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -322,9 +321,8 @@ public enum ApplyPendingMaintenanceActionOutputError: Swift.Error, Swift.Equatab extension ApplyPendingMaintenanceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplyPendingMaintenanceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePendingMaintenanceActions = output.resourcePendingMaintenanceActions } else { @@ -606,9 +604,8 @@ public enum BatchStartRecommendationsOutputError: Swift.Error, Swift.Equatable { extension BatchStartRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchStartRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -731,9 +728,8 @@ public enum CancelReplicationTaskAssessmentRunOutputError: Swift.Error, Swift.Eq extension CancelReplicationTaskAssessmentRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelReplicationTaskAssessmentRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTaskAssessmentRun = output.replicationTaskAssessmentRun } else { @@ -1048,9 +1044,8 @@ extension DatabaseMigrationClientTypes { extension CollectorNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CollectorNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1064,7 +1059,7 @@ extension CollectorNotFoundFault { } /// The specified collector doesn't exist. -public struct CollectorNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CollectorNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1962,9 +1957,8 @@ public enum CreateEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -2202,9 +2196,8 @@ public enum CreateEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension CreateEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -2360,9 +2353,8 @@ public enum CreateFleetAdvisorCollectorOutputError: Swift.Error, Swift.Equatable extension CreateFleetAdvisorCollectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetAdvisorCollectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectorName = output.collectorName self.collectorReferencedId = output.collectorReferencedId @@ -2744,9 +2736,8 @@ public enum CreateReplicationInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateReplicationInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationInstance = output.replicationInstance } else { @@ -2929,9 +2920,8 @@ public enum CreateReplicationSubnetGroupOutputError: Swift.Error, Swift.Equatabl extension CreateReplicationSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationSubnetGroup = output.replicationSubnetGroup } else { @@ -3219,9 +3209,8 @@ public enum CreateReplicationTaskOutputError: Swift.Error, Swift.Equatable { extension CreateReplicationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTask = output.replicationTask } else { @@ -3711,9 +3700,8 @@ public enum DeleteCertificateOutputError: Swift.Error, Swift.Equatable { extension DeleteCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate } else { @@ -3840,9 +3828,8 @@ public enum DeleteConnectionOutputError: Swift.Error, Swift.Equatable { extension DeleteConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -3955,9 +3942,8 @@ public enum DeleteEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -4070,9 +4056,8 @@ public enum DeleteEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension DeleteEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -4278,9 +4263,8 @@ public enum DeleteFleetAdvisorDatabasesOutputError: Swift.Error, Swift.Equatable extension DeleteFleetAdvisorDatabasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFleetAdvisorDatabasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databaseIds = output.databaseIds } else { @@ -4401,9 +4385,8 @@ public enum DeleteReplicationInstanceOutputError: Swift.Error, Swift.Equatable { extension DeleteReplicationInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteReplicationInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationInstance = output.replicationInstance } else { @@ -4602,9 +4585,8 @@ public enum DeleteReplicationTaskAssessmentRunOutputError: Swift.Error, Swift.Eq extension DeleteReplicationTaskAssessmentRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteReplicationTaskAssessmentRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTaskAssessmentRun = output.replicationTaskAssessmentRun } else { @@ -4717,9 +4699,8 @@ public enum DeleteReplicationTaskOutputError: Swift.Error, Swift.Equatable { extension DeleteReplicationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteReplicationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTask = output.replicationTask } else { @@ -4808,9 +4789,8 @@ public enum DescribeAccountAttributesOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountQuotas = output.accountQuotas self.uniqueAccountIdentifier = output.uniqueAccountIdentifier @@ -5015,9 +4995,8 @@ public enum DescribeApplicableIndividualAssessmentsOutputError: Swift.Error, Swi extension DescribeApplicableIndividualAssessmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicableIndividualAssessmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.individualAssessmentNames = output.individualAssessmentNames self.marker = output.marker @@ -5181,9 +5160,8 @@ public enum DescribeCertificatesOutputError: Swift.Error, Swift.Equatable { extension DescribeCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.marker = output.marker @@ -5347,9 +5325,8 @@ public enum DescribeConnectionsOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections self.marker = output.marker @@ -5500,9 +5477,8 @@ public enum DescribeEndpointSettingsOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointSettings = output.endpointSettings self.marker = output.marker @@ -5664,9 +5640,8 @@ public enum DescribeEndpointTypesOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.supportedEndpointTypes = output.supportedEndpointTypes @@ -5843,9 +5818,8 @@ public enum DescribeEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.marker = output.marker @@ -5996,9 +5970,8 @@ public enum DescribeEventCategoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeEventCategoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventCategoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventCategoryGroupList = output.eventCategoryGroupList } else { @@ -6165,9 +6138,8 @@ public enum DescribeEventSubscriptionsOutputError: Swift.Error, Swift.Equatable extension DescribeEventSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscriptionsList = output.eventSubscriptionsList self.marker = output.marker @@ -6414,9 +6386,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.marker = output.marker @@ -6587,9 +6558,8 @@ public enum DescribeFleetAdvisorCollectorsOutputError: Swift.Error, Swift.Equata extension DescribeFleetAdvisorCollectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetAdvisorCollectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectors = output.collectors self.nextToken = output.nextToken @@ -6767,9 +6737,8 @@ public enum DescribeFleetAdvisorDatabasesOutputError: Swift.Error, Swift.Equatab extension DescribeFleetAdvisorDatabasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetAdvisorDatabasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databases = output.databases self.nextToken = output.nextToken @@ -6908,9 +6877,8 @@ public enum DescribeFleetAdvisorLsaAnalysisOutputError: Swift.Error, Swift.Equat extension DescribeFleetAdvisorLsaAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetAdvisorLsaAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysis = output.analysis self.nextToken = output.nextToken @@ -7078,9 +7046,8 @@ public enum DescribeFleetAdvisorSchemaObjectSummaryOutputError: Swift.Error, Swi extension DescribeFleetAdvisorSchemaObjectSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetAdvisorSchemaObjectSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetAdvisorSchemaObjects = output.fleetAdvisorSchemaObjects self.nextToken = output.nextToken @@ -7264,9 +7231,8 @@ public enum DescribeFleetAdvisorSchemasOutputError: Swift.Error, Swift.Equatable extension DescribeFleetAdvisorSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetAdvisorSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetAdvisorSchemas = output.fleetAdvisorSchemas self.nextToken = output.nextToken @@ -7404,9 +7370,8 @@ public enum DescribeOrderableReplicationInstancesOutputError: Swift.Error, Swift extension DescribeOrderableReplicationInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrderableReplicationInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.orderableReplicationInstances = output.orderableReplicationInstances @@ -7583,9 +7548,8 @@ public enum DescribePendingMaintenanceActionsOutputError: Swift.Error, Swift.Equ extension DescribePendingMaintenanceActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePendingMaintenanceActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.pendingMaintenanceActions = output.pendingMaintenanceActions @@ -7751,9 +7715,8 @@ public enum DescribeRecommendationLimitationsOutputError: Swift.Error, Swift.Equ extension DescribeRecommendationLimitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecommendationLimitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.limitations = output.limitations self.nextToken = output.nextToken @@ -7918,9 +7881,8 @@ public enum DescribeRecommendationsOutputError: Swift.Error, Swift.Equatable { extension DescribeRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendations = output.recommendations @@ -8051,9 +8013,8 @@ public enum DescribeRefreshSchemasStatusOutputError: Swift.Error, Swift.Equatabl extension DescribeRefreshSchemasStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRefreshSchemasStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.refreshSchemasStatus = output.refreshSchemasStatus } else { @@ -8189,9 +8150,8 @@ public enum DescribeReplicationInstanceTaskLogsOutputError: Swift.Error, Swift.E extension DescribeReplicationInstanceTaskLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationInstanceTaskLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.replicationInstanceArn = output.replicationInstanceArn @@ -8377,9 +8337,8 @@ public enum DescribeReplicationInstancesOutputError: Swift.Error, Swift.Equatabl extension DescribeReplicationInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.replicationInstances = output.replicationInstances @@ -8544,9 +8503,8 @@ public enum DescribeReplicationSubnetGroupsOutputError: Swift.Error, Swift.Equat extension DescribeReplicationSubnetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationSubnetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.replicationSubnetGroups = output.replicationSubnetGroups @@ -8699,9 +8657,8 @@ public enum DescribeReplicationTaskAssessmentResultsOutputError: Swift.Error, Sw extension DescribeReplicationTaskAssessmentResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationTaskAssessmentResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucketName = output.bucketName self.marker = output.marker @@ -8876,9 +8833,8 @@ public enum DescribeReplicationTaskAssessmentRunsOutputError: Swift.Error, Swift extension DescribeReplicationTaskAssessmentRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationTaskAssessmentRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.replicationTaskAssessmentRuns = output.replicationTaskAssessmentRuns @@ -9043,9 +8999,8 @@ public enum DescribeReplicationTaskIndividualAssessmentsOutputError: Swift.Error extension DescribeReplicationTaskIndividualAssessmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationTaskIndividualAssessmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.replicationTaskIndividualAssessments = output.replicationTaskIndividualAssessments @@ -9234,9 +9189,8 @@ public enum DescribeReplicationTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeReplicationTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.replicationTasks = output.replicationTasks @@ -9392,9 +9346,8 @@ public enum DescribeSchemasOutputError: Swift.Error, Swift.Equatable { extension DescribeSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.schemas = output.schemas @@ -9574,9 +9527,8 @@ public enum DescribeTableStatisticsOutputError: Swift.Error, Swift.Equatable { extension DescribeTableStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTableStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.replicationTaskArn = output.replicationTaskArn @@ -11491,9 +11443,8 @@ public enum ImportCertificateOutputError: Swift.Error, Swift.Equatable { extension ImportCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate } else { @@ -11532,9 +11483,8 @@ extension ImportCertificateOutputResponseBody: Swift.Decodable { extension InsufficientResourceCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientResourceCapacityFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11548,7 +11498,7 @@ extension InsufficientResourceCapacityFault { } /// There are not enough resources allocated to the database migration. -public struct InsufficientResourceCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientResourceCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11585,9 +11535,8 @@ extension InsufficientResourceCapacityFaultBody: Swift.Decodable { extension InvalidCertificateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCertificateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11601,7 +11550,7 @@ extension InvalidCertificateFault { } /// The certificate was not valid. -public struct InvalidCertificateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCertificateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11637,9 +11586,8 @@ extension InvalidCertificateFaultBody: Swift.Decodable { extension InvalidOperationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOperationFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11653,7 +11601,7 @@ extension InvalidOperationFault { } /// The action or operation requested isn't valid. -public struct InvalidOperationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11689,9 +11637,8 @@ extension InvalidOperationFaultBody: Swift.Decodable { extension InvalidResourceStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11705,7 +11652,7 @@ extension InvalidResourceStateFault { } /// The resource is in a state that prevents it from being used for database migration. -public struct InvalidResourceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11742,9 +11689,8 @@ extension InvalidResourceStateFaultBody: Swift.Decodable { extension InvalidSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSubnetBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11758,7 +11704,7 @@ extension InvalidSubnet { } /// The subnet provided is invalid. -public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11840,9 +11786,8 @@ extension DatabaseMigrationClientTypes { extension KMSAccessDeniedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSAccessDeniedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11856,7 +11801,7 @@ extension KMSAccessDeniedFault { } /// The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to. -public struct KMSAccessDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSAccessDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11892,9 +11837,8 @@ extension KMSAccessDeniedFaultBody: Swift.Decodable { extension KMSDisabledFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSDisabledFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11908,7 +11852,7 @@ extension KMSDisabledFault { } /// The specified KMS key isn't enabled. -public struct KMSDisabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSDisabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11944,9 +11888,8 @@ extension KMSDisabledFaultBody: Swift.Decodable { extension KMSFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11960,7 +11903,7 @@ extension KMSFault { } /// An Key Management Service (KMS) error is preventing access to KMS. -public struct KMSFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11996,9 +11939,8 @@ extension KMSFaultBody: Swift.Decodable { extension KMSInvalidStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSInvalidStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12012,7 +11954,7 @@ extension KMSInvalidStateFault { } /// The state of the specified KMS resource isn't valid for this request. -public struct KMSInvalidStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInvalidStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12048,9 +11990,8 @@ extension KMSInvalidStateFaultBody: Swift.Decodable { extension KMSKeyNotAccessibleFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSKeyNotAccessibleFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12064,7 +12005,7 @@ extension KMSKeyNotAccessibleFault { } /// DMS cannot access the KMS key. -public struct KMSKeyNotAccessibleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSKeyNotAccessibleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12101,9 +12042,8 @@ extension KMSKeyNotAccessibleFaultBody: Swift.Decodable { extension KMSNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12117,7 +12057,7 @@ extension KMSNotFoundFault { } /// The specified KMS entity or resource can't be found. -public struct KMSNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12153,9 +12093,8 @@ extension KMSNotFoundFaultBody: Swift.Decodable { extension KMSThrottlingFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSThrottlingFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12169,7 +12108,7 @@ extension KMSThrottlingFault { } /// This request triggered KMS request throttling. -public struct KMSThrottlingFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSThrottlingFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12799,9 +12738,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -13599,9 +13537,8 @@ public enum ModifyEndpointOutputError: Swift.Error, Swift.Equatable { extension ModifyEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -13788,9 +13725,8 @@ public enum ModifyEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension ModifyEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -14066,9 +14002,8 @@ public enum ModifyReplicationInstanceOutputError: Swift.Error, Swift.Equatable { extension ModifyReplicationInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyReplicationInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationInstance = output.replicationInstance } else { @@ -14226,9 +14161,8 @@ public enum ModifyReplicationSubnetGroupOutputError: Swift.Error, Swift.Equatabl extension ModifyReplicationSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyReplicationSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationSubnetGroup = output.replicationSubnetGroup } else { @@ -14447,9 +14381,8 @@ public enum ModifyReplicationTaskOutputError: Swift.Error, Swift.Equatable { extension ModifyReplicationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyReplicationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTask = output.replicationTask } else { @@ -14751,9 +14684,8 @@ public enum MoveReplicationTaskOutputError: Swift.Error, Swift.Equatable { extension MoveReplicationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MoveReplicationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTask = output.replicationTask } else { @@ -16394,9 +16326,8 @@ public enum RebootReplicationInstanceOutputError: Swift.Error, Swift.Equatable { extension RebootReplicationInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootReplicationInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationInstance = output.replicationInstance } else { @@ -17179,9 +17110,8 @@ public enum RefreshSchemasOutputError: Swift.Error, Swift.Equatable { extension RefreshSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RefreshSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.refreshSchemasStatus = output.refreshSchemasStatus } else { @@ -17504,9 +17434,8 @@ public enum ReloadTablesOutputError: Swift.Error, Swift.Equatable { extension ReloadTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReloadTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTaskArn = output.replicationTaskArn } else { @@ -18283,9 +18212,8 @@ extension DatabaseMigrationClientTypes { extension ReplicationSubnetGroupDoesNotCoverEnoughAZs { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicationSubnetGroupDoesNotCoverEnoughAZsBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18299,7 +18227,7 @@ extension ReplicationSubnetGroupDoesNotCoverEnoughAZs { } /// The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs. -public struct ReplicationSubnetGroupDoesNotCoverEnoughAZs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationSubnetGroupDoesNotCoverEnoughAZs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19136,9 +19064,8 @@ extension DatabaseMigrationClientTypes { extension ResourceAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceArn = output.resourceArn @@ -19154,7 +19081,7 @@ extension ResourceAlreadyExistsFault { } /// The resource you are attempting to create already exists. -public struct ResourceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19198,9 +19125,8 @@ extension ResourceAlreadyExistsFaultBody: Swift.Decodable { extension ResourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19214,7 +19140,7 @@ extension ResourceNotFoundFault { } /// The resource could not be found. -public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19308,9 +19234,8 @@ extension DatabaseMigrationClientTypes { extension ResourceQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19324,7 +19249,7 @@ extension ResourceQuotaExceededFault { } /// The quota for this resource quota has been exceeded. -public struct ResourceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19413,9 +19338,8 @@ public enum RunFleetAdvisorLsaAnalysisOutputError: Swift.Error, Swift.Equatable extension RunFleetAdvisorLsaAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RunFleetAdvisorLsaAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lsaAnalysisId = output.lsaAnalysisId self.status = output.status @@ -19464,9 +19388,8 @@ extension RunFleetAdvisorLsaAnalysisOutputResponseBody: Swift.Decodable { extension S3AccessDeniedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: S3AccessDeniedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19480,7 +19403,7 @@ extension S3AccessDeniedFault { } /// Insufficient privileges are preventing access to an Amazon S3 object. -public struct S3AccessDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct S3AccessDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19516,9 +19439,8 @@ extension S3AccessDeniedFaultBody: Swift.Decodable { extension S3ResourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: S3ResourceNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19532,7 +19454,7 @@ extension S3ResourceNotFoundFault { } /// A specified Amazon S3 bucket, bucket folder, or other object can't be found. -public struct S3ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct S3ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20035,9 +19957,8 @@ extension DatabaseMigrationClientTypes { extension SNSInvalidTopicFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SNSInvalidTopicFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20051,7 +19972,7 @@ extension SNSInvalidTopicFault { } /// The SNS topic is invalid. -public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20088,9 +20009,8 @@ extension SNSInvalidTopicFaultBody: Swift.Decodable { extension SNSNoAuthorizationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SNSNoAuthorizationFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20104,7 +20024,7 @@ extension SNSNoAuthorizationFault { } /// You are not authorized for the SNS subscription. -public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20699,9 +20619,8 @@ public enum StartReplicationTaskAssessmentOutputError: Swift.Error, Swift.Equata extension StartReplicationTaskAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReplicationTaskAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTask = output.replicationTask } else { @@ -20961,9 +20880,8 @@ public enum StartReplicationTaskAssessmentRunOutputError: Swift.Error, Swift.Equ extension StartReplicationTaskAssessmentRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReplicationTaskAssessmentRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTaskAssessmentRun = output.replicationTaskAssessmentRun } else { @@ -21127,9 +21045,8 @@ public enum StartReplicationTaskOutputError: Swift.Error, Swift.Equatable { extension StartReplicationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReplicationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTask = output.replicationTask } else { @@ -21277,9 +21194,8 @@ public enum StopReplicationTaskOutputError: Swift.Error, Swift.Equatable { extension StopReplicationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopReplicationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationTask = output.replicationTask } else { @@ -21319,9 +21235,8 @@ extension StopReplicationTaskOutputResponseBody: Swift.Decodable { extension StorageQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StorageQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21335,7 +21250,7 @@ extension StorageQuotaExceededFault { } /// The storage quota has been exceeded. -public struct StorageQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21427,9 +21342,8 @@ extension DatabaseMigrationClientTypes { extension SubnetAlreadyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetAlreadyInUseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21443,7 +21357,7 @@ extension SubnetAlreadyInUse { } /// The specified subnet is already in use. -public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22164,9 +22078,8 @@ public enum TestConnectionOutputError: Swift.Error, Swift.Equatable { extension TestConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -22316,9 +22229,8 @@ public enum UpdateSubscriptionsToEventBridgeOutputError: Swift.Error, Swift.Equa extension UpdateSubscriptionsToEventBridgeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSubscriptionsToEventBridgeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.result = output.result } else { @@ -22358,9 +22270,8 @@ extension UpdateSubscriptionsToEventBridgeOutputResponseBody: Swift.Decodable { extension UpgradeDependencyFailureFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpgradeDependencyFailureFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22374,7 +22285,7 @@ extension UpgradeDependencyFailureFault { } /// An upgrade dependency is preventing the database migration. -public struct UpgradeDependencyFailureFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UpgradeDependencyFailureFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDetective/DetectiveClient.swift b/Sources/Services/AWSDetective/DetectiveClient.swift index b373ff357b6..d5cb70b6e5b 100644 --- a/Sources/Services/AWSDetective/DetectiveClient.swift +++ b/Sources/Services/AWSDetective/DetectiveClient.swift @@ -208,6 +208,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetGraphMemberDatasources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetMembershipDatasources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGraph") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -367,7 +372,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -387,6 +392,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGraph") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -402,7 +408,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -422,6 +428,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -437,7 +444,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -457,6 +464,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -472,7 +480,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -492,6 +500,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -504,7 +513,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -524,6 +533,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -539,7 +549,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -559,6 +569,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -574,7 +585,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -594,6 +605,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -609,7 +621,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -629,6 +641,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasourcePackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -644,7 +657,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -664,6 +677,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGraphs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -679,7 +693,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -699,6 +713,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -714,7 +729,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -734,6 +749,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -749,7 +765,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -769,6 +785,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizationAdminAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -784,7 +801,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -804,6 +821,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +834,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +854,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -851,7 +870,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -875,6 +894,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMonitoringMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -890,7 +910,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -910,6 +930,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -925,7 +946,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -945,6 +966,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -958,7 +980,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -978,6 +1000,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatasourcePackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -993,7 +1016,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1013,6 +1036,7 @@ extension DetectiveClient: DetectiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "detective") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1028,7 +1052,7 @@ extension DetectiveClient: DetectiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDetective/models/Models.swift b/Sources/Services/AWSDetective/models/Models.swift index cc0caf012cb..ebb0d73974e 100644 --- a/Sources/Services/AWSDetective/models/Models.swift +++ b/Sources/Services/AWSDetective/models/Models.swift @@ -92,9 +92,8 @@ public struct AcceptInvitationOutputResponse: Swift.Equatable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.errorCodeReason = output.errorCodeReason @@ -116,7 +115,7 @@ extension AccessDeniedException { } /// The request issuer does not have permission to access this resource or perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -387,9 +386,8 @@ public enum BatchGetGraphMemberDatasourcesOutputError: Swift.Error, Swift.Equata extension BatchGetGraphMemberDatasourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetGraphMemberDatasourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberDatasources = output.memberDatasources self.unprocessedAccounts = output.unprocessedAccounts @@ -544,9 +542,8 @@ public enum BatchGetMembershipDatasourcesOutputError: Swift.Error, Swift.Equatab extension BatchGetMembershipDatasourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetMembershipDatasourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.membershipDatasources = output.membershipDatasources self.unprocessedGraphs = output.unprocessedGraphs @@ -613,9 +610,8 @@ extension BatchGetMembershipDatasourcesOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -629,7 +625,7 @@ extension ConflictException { } /// The request attempted an invalid action. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -752,9 +748,8 @@ public enum CreateGraphOutputError: Swift.Error, Swift.Equatable { extension CreateGraphOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGraphOutputResponseBody = try responseDecoder.decode(responseBody: data) self.graphArn = output.graphArn } else { @@ -920,9 +915,8 @@ public enum CreateMembersOutputError: Swift.Error, Swift.Equatable { extension CreateMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.unprocessedAccounts = output.unprocessedAccounts @@ -1347,9 +1341,8 @@ public enum DeleteMembersOutputError: Swift.Error, Swift.Equatable { extension DeleteMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountIds = output.accountIds self.unprocessedAccounts = output.unprocessedAccounts @@ -1492,9 +1485,8 @@ public enum DescribeOrganizationConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeOrganizationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnable = output.autoEnable } else { @@ -1901,9 +1893,8 @@ public enum GetMembersOutputError: Swift.Error, Swift.Equatable { extension GetMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberDetails = output.memberDetails self.unprocessedAccounts = output.unprocessedAccounts @@ -2015,9 +2006,8 @@ extension DetectiveClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2031,7 +2021,7 @@ extension InternalServerException { } /// The request was valid but failed because of a problem with the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2199,9 +2189,8 @@ public enum ListDatasourcePackagesOutputError: Swift.Error, Swift.Equatable { extension ListDatasourcePackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasourcePackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasourcePackages = output.datasourcePackages self.nextToken = output.nextToken @@ -2344,9 +2333,8 @@ public enum ListGraphsOutputError: Swift.Error, Swift.Equatable { extension ListGraphsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGraphsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.graphList = output.graphList self.nextToken = output.nextToken @@ -2489,9 +2477,8 @@ public enum ListInvitationsOutputError: Swift.Error, Swift.Equatable { extension ListInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invitations = output.invitations self.nextToken = output.nextToken @@ -2649,9 +2636,8 @@ public enum ListMembersOutputError: Swift.Error, Swift.Equatable { extension ListMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberDetails = output.memberDetails self.nextToken = output.nextToken @@ -2796,9 +2782,8 @@ public enum ListOrganizationAdminAccountsOutputError: Swift.Error, Swift.Equatab extension ListOrganizationAdminAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationAdminAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.administrators = output.administrators self.nextToken = output.nextToken @@ -2915,9 +2900,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3434,9 +3418,8 @@ public struct RejectInvitationOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3450,7 +3433,7 @@ extension ResourceNotFoundException { } /// The request refers to a nonexistent resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3486,9 +3469,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resources = output.resources @@ -3510,7 +3492,7 @@ extension ServiceQuotaExceededException { /// * The request would cause the data rate for the behavior graph to exceed the maximum allowed. /// /// * Detective is unable to verify the data rate for the member account. This is usually because the member account is not enrolled in Amazon GuardDuty. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3807,9 +3789,8 @@ extension DetectiveClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3823,7 +3804,7 @@ extension TooManyRequestsException { } /// The request cannot be completed because too many other requests are occurring at the same time. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4251,9 +4232,8 @@ public struct UpdateOrganizationConfigurationOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.errorCodeReason = output.errorCodeReason @@ -4271,7 +4251,7 @@ extension ValidationException { } /// The request parameters are invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDevOpsGuru/DevOpsGuruClient.swift b/Sources/Services/AWSDevOpsGuru/DevOpsGuruClient.swift index a45f644b015..dfc5813c1b6 100644 --- a/Sources/Services/AWSDevOpsGuru/DevOpsGuruClient.swift +++ b/Sources/Services/AWSDevOpsGuru/DevOpsGuruClient.swift @@ -208,6 +208,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addNotificationChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInsight") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountOverview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -322,7 +326,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -342,6 +346,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAnomaly") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -355,7 +360,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -375,6 +380,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventSourcesConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -387,7 +393,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +413,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -422,7 +429,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +449,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInsight") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +463,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +483,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -490,7 +499,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -510,6 +519,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationOverview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -525,7 +535,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -545,6 +555,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationResourceCollectionHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -560,7 +571,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -580,6 +591,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourceCollectionHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +605,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +625,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServiceIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -625,7 +638,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -645,6 +658,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCostEstimation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -658,7 +672,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -678,6 +692,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -691,7 +706,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -711,6 +726,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnomaliesForInsight") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -726,7 +742,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -746,6 +762,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnomalousLogGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -761,7 +778,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -781,6 +798,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -796,7 +814,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -816,6 +834,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -831,7 +850,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -851,6 +870,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMonitoredResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -866,7 +886,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -886,6 +906,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotificationChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -901,7 +922,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -921,6 +942,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizationInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -936,7 +958,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -956,6 +978,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -971,7 +994,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -991,6 +1014,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1006,7 +1030,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1026,6 +1050,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeNotificationChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1038,7 +1063,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1058,6 +1083,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1073,7 +1099,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1093,6 +1119,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchOrganizationInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1108,7 +1135,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1128,6 +1155,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCostEstimation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1151,7 +1179,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1171,6 +1199,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventSourcesConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1186,7 +1215,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1206,6 +1235,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1221,7 +1251,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1241,6 +1271,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devops-guru") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceIntegration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1256,7 +1287,7 @@ extension DevOpsGuruClient: DevOpsGuruClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDevOpsGuru/models/Models.swift b/Sources/Services/AWSDevOpsGuru/models/Models.swift index 49088d018c5..703fbe55c03 100644 --- a/Sources/Services/AWSDevOpsGuru/models/Models.swift +++ b/Sources/Services/AWSDevOpsGuru/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see [Access Management](https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM User Guide. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -229,9 +228,8 @@ public enum AddNotificationChannelOutputError: Swift.Error, Swift.Equatable { extension AddNotificationChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddNotificationChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -1243,9 +1241,8 @@ extension DevOpsGuruClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1263,7 +1260,7 @@ extension ConflictException { } /// An exception that is thrown when a conflict occurs. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1612,9 +1609,8 @@ public enum DescribeAccountHealthOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzedResourceCount = output.analyzedResourceCount self.metricsAnalyzed = output.metricsAnalyzed @@ -1785,9 +1781,8 @@ public enum DescribeAccountOverviewOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountOverviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountOverviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.meanTimeToRecoverInMilliseconds = output.meanTimeToRecoverInMilliseconds self.proactiveInsights = output.proactiveInsights @@ -1927,9 +1922,8 @@ public enum DescribeAnomalyOutputError: Swift.Error, Swift.Equatable { extension DescribeAnomalyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAnomalyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proactiveAnomaly = output.proactiveAnomaly self.reactiveAnomaly = output.reactiveAnomaly @@ -2026,9 +2020,8 @@ public enum DescribeEventSourcesConfigOutputError: Swift.Error, Swift.Equatable extension DescribeEventSourcesConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventSourcesConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSources = output.eventSources } else { @@ -2144,9 +2137,8 @@ public enum DescribeFeedbackOutputError: Swift.Error, Swift.Equatable { extension DescribeFeedbackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFeedbackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightFeedback = output.insightFeedback } else { @@ -2263,9 +2255,8 @@ public enum DescribeInsightOutputError: Swift.Error, Swift.Equatable { extension DescribeInsightOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInsightOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proactiveInsight = output.proactiveInsight self.reactiveInsight = output.reactiveInsight @@ -2425,9 +2416,8 @@ public enum DescribeOrganizationHealthOutputError: Swift.Error, Swift.Equatable extension DescribeOrganizationHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricsAnalyzed = output.metricsAnalyzed self.openProactiveInsights = output.openProactiveInsights @@ -2636,9 +2626,8 @@ public enum DescribeOrganizationOverviewOutputError: Swift.Error, Swift.Equatabl extension DescribeOrganizationOverviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationOverviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proactiveInsights = output.proactiveInsights self.reactiveInsights = output.reactiveInsights @@ -2837,9 +2826,8 @@ public enum DescribeOrganizationResourceCollectionHealthOutputError: Swift.Error extension DescribeOrganizationResourceCollectionHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationResourceCollectionHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.account = output.account self.cloudFormation = output.cloudFormation @@ -3037,9 +3025,8 @@ public enum DescribeResourceCollectionHealthOutputError: Swift.Error, Swift.Equa extension DescribeResourceCollectionHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourceCollectionHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudFormation = output.cloudFormation self.nextToken = output.nextToken @@ -3192,9 +3179,8 @@ public enum DescribeServiceIntegrationOutputError: Swift.Error, Swift.Equatable extension DescribeServiceIntegrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServiceIntegrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceIntegration = output.serviceIntegration } else { @@ -3707,9 +3693,8 @@ public enum GetCostEstimationOutputError: Swift.Error, Swift.Equatable { extension GetCostEstimationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCostEstimationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.costs = output.costs self.nextToken = output.nextToken @@ -3885,9 +3870,8 @@ public enum GetResourceCollectionOutputError: Swift.Error, Swift.Equatable { extension GetResourceCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceCollection = output.resourceCollection @@ -4227,9 +4211,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4243,7 +4226,7 @@ extension InternalServerException { } /// An internal failure in an Amazon service occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4452,9 +4435,8 @@ public enum ListAnomaliesForInsightOutputError: Swift.Error, Swift.Equatable { extension ListAnomaliesForInsightOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnomaliesForInsightOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proactiveAnomalies = output.proactiveAnomalies @@ -4633,9 +4615,8 @@ public enum ListAnomalousLogGroupsOutputError: Swift.Error, Swift.Equatable { extension ListAnomalousLogGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnomalousLogGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalousLogGroups = output.anomalousLogGroups self.insightId = output.insightId @@ -4904,9 +4885,8 @@ public enum ListEventsOutputError: Swift.Error, Swift.Equatable { extension ListEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -5195,9 +5175,8 @@ public enum ListInsightsOutputError: Swift.Error, Swift.Equatable { extension ListInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proactiveInsights = output.proactiveInsights @@ -5487,9 +5466,8 @@ public enum ListMonitoredResourcesOutputError: Swift.Error, Swift.Equatable { extension ListMonitoredResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMonitoredResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitoredResourceIdentifiers = output.monitoredResourceIdentifiers self.nextToken = output.nextToken @@ -5623,9 +5601,8 @@ public enum ListNotificationChannelsOutputError: Swift.Error, Swift.Equatable { extension ListNotificationChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotificationChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -5831,9 +5808,8 @@ public enum ListOrganizationInsightsOutputError: Swift.Error, Swift.Equatable { extension ListOrganizationInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proactiveInsights = output.proactiveInsights @@ -6024,9 +6000,8 @@ public enum ListRecommendationsOutputError: Swift.Error, Swift.Equatable { extension ListRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendations = output.recommendations @@ -9565,9 +9540,8 @@ extension DevOpsGuruClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -9585,7 +9559,7 @@ extension ResourceNotFoundException { } /// A requested resource could not be found -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9993,9 +9967,8 @@ public enum SearchInsightsOutputError: Swift.Error, Swift.Equatable { extension SearchInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proactiveInsights = output.proactiveInsights @@ -10311,9 +10284,8 @@ public enum SearchOrganizationInsightsOutputError: Swift.Error, Swift.Equatable extension SearchOrganizationInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchOrganizationInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proactiveInsights = output.proactiveInsights @@ -10683,9 +10655,8 @@ extension DevOpsGuruClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10699,7 +10670,7 @@ extension ServiceQuotaExceededException { } /// The request contains a value that exceeds a maximum quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11246,9 +11217,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -11266,7 +11236,7 @@ extension ThrottlingException { } /// The request was denied due to a request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11889,9 +11859,8 @@ extension DevOpsGuruClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -11909,7 +11878,7 @@ extension ValidationException { } /// Contains information about data passed in to a field during a request that is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDeviceFarm/DeviceFarmClient.swift b/Sources/Services/AWSDeviceFarm/DeviceFarmClient.swift index 3ffd02f6fc4..84c5aff1b26 100644 --- a/Sources/Services/AWSDeviceFarm/DeviceFarmClient.swift +++ b/Sources/Services/AWSDeviceFarm/DeviceFarmClient.swift @@ -208,6 +208,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDevicePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRemoteAccessSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTestGridProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTestGridUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVPCEConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDevicePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRemoteAccessSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTestGridProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVPCEConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeviceInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevicePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevicePoolCompatibility") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOfferingStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRemoteAccessSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSuite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTestGridProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1400,6 +1433,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTestGridSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1416,7 +1450,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1436,6 +1470,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1452,7 +1487,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1472,6 +1507,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVPCEConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1488,7 +1524,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1508,6 +1544,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "installToRemoteAccessSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1524,7 +1561,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1544,6 +1581,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listArtifacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1560,7 +1598,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1580,6 +1618,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1596,7 +1635,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1616,6 +1655,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevicePools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1632,7 +1672,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1652,6 +1692,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1668,7 +1709,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1688,6 +1729,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1704,7 +1746,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1724,6 +1766,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1740,7 +1783,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1760,6 +1803,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNetworkProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1776,7 +1820,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1796,6 +1840,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOfferingPromotions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1812,7 +1857,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1832,6 +1877,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOfferingTransactions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1848,7 +1894,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1868,6 +1914,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1884,7 +1931,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1904,6 +1951,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1920,7 +1968,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1940,6 +1988,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRemoteAccessSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1956,7 +2005,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1976,6 +2025,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1992,7 +2042,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2012,6 +2062,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSamples") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2028,7 +2079,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2048,6 +2099,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSuites") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2064,7 +2116,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2084,6 +2136,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2100,7 +2153,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2120,6 +2173,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTestGridProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2136,7 +2190,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2156,6 +2210,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTestGridSessionActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2172,7 +2227,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2192,6 +2247,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTestGridSessionArtifacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2208,7 +2264,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2228,6 +2284,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTestGridSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2244,7 +2301,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2264,6 +2321,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2280,7 +2338,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2300,6 +2358,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUniqueProblems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2316,7 +2375,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2336,6 +2395,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUploads") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2352,7 +2412,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2372,6 +2432,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVPCEConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2388,7 +2449,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2408,6 +2469,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2424,7 +2486,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2444,6 +2506,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "renewOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2460,7 +2523,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2480,6 +2543,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "scheduleRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2496,7 +2560,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2516,6 +2580,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2532,7 +2597,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2552,6 +2617,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopRemoteAccessSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2568,7 +2634,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2588,6 +2654,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2604,7 +2671,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2624,6 +2691,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2640,7 +2708,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2660,6 +2728,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2676,7 +2745,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2696,6 +2765,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeviceInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2712,7 +2782,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2732,6 +2802,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDevicePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2748,7 +2819,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2768,6 +2839,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2784,7 +2856,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2804,6 +2876,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNetworkProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2820,7 +2893,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2840,6 +2913,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2856,7 +2930,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2876,6 +2950,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTestGridProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2892,7 +2967,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2912,6 +2987,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2928,7 +3004,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2948,6 +3024,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { .withRegion(value: config.region) .withSigningName(value: "devicefarm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVPCEConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2964,7 +3041,7 @@ extension DeviceFarmClient: DeviceFarmClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDeviceFarm/models/Models.swift b/Sources/Services/AWSDeviceFarm/models/Models.swift index ce20df24856..9ad71258d8a 100644 --- a/Sources/Services/AWSDeviceFarm/models/Models.swift +++ b/Sources/Services/AWSDeviceFarm/models/Models.swift @@ -145,9 +145,8 @@ extension DeviceFarmClientTypes { extension ArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -161,7 +160,7 @@ extension ArgumentException { } /// An invalid argument was specified. -public struct ArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -561,9 +560,8 @@ extension DeviceFarmClientTypes { extension CannotDeleteException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CannotDeleteExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -577,7 +575,7 @@ extension CannotDeleteException { } /// The requested object could not be deleted. -public struct CannotDeleteException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CannotDeleteException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -847,9 +845,8 @@ public enum CreateDevicePoolOutputError: Swift.Error, Swift.Equatable { extension CreateDevicePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDevicePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devicePool = output.devicePool } else { @@ -1025,9 +1022,8 @@ public enum CreateInstanceProfileOutputError: Swift.Error, Swift.Equatable { extension CreateInstanceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstanceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceProfile = output.instanceProfile } else { @@ -1275,9 +1271,8 @@ public enum CreateNetworkProfileOutputError: Swift.Error, Swift.Equatable { extension CreateNetworkProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkProfile = output.networkProfile } else { @@ -1419,9 +1414,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -1734,9 +1728,8 @@ public enum CreateRemoteAccessSessionOutputError: Swift.Error, Swift.Equatable { extension CreateRemoteAccessSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRemoteAccessSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.remoteAccessSession = output.remoteAccessSession } else { @@ -1874,9 +1867,8 @@ public enum CreateTestGridProjectOutputError: Swift.Error, Swift.Equatable { extension CreateTestGridProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTestGridProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.testGridProject = output.testGridProject } else { @@ -2007,9 +1999,8 @@ extension CreateTestGridUrlOutputResponse: Swift.CustomDebugStringConvertible { extension CreateTestGridUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTestGridUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expires = output.expires self.url = output.url @@ -2240,9 +2231,8 @@ public enum CreateUploadOutputError: Swift.Error, Swift.Equatable { extension CreateUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.upload = output.upload } else { @@ -2394,9 +2384,8 @@ public enum CreateVPCEConfigurationOutputError: Swift.Error, Swift.Equatable { extension CreateVPCEConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVPCEConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpceConfiguration = output.vpceConfiguration } else { @@ -4709,9 +4698,8 @@ public enum GetAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension GetAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettings = output.accountSettings } else { @@ -4876,9 +4864,8 @@ public enum GetDeviceInstanceOutputError: Swift.Error, Swift.Equatable { extension GetDeviceInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceInstance = output.deviceInstance } else { @@ -4945,9 +4932,8 @@ public enum GetDeviceOutputError: Swift.Error, Swift.Equatable { extension GetDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.device = output.device } else { @@ -5148,9 +5134,8 @@ public enum GetDevicePoolCompatibilityOutputError: Swift.Error, Swift.Equatable extension GetDevicePoolCompatibilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevicePoolCompatibilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibleDevices = output.compatibleDevices self.incompatibleDevices = output.incompatibleDevices @@ -5295,9 +5280,8 @@ public enum GetDevicePoolOutputError: Swift.Error, Swift.Equatable { extension GetDevicePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevicePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devicePool = output.devicePool } else { @@ -5413,9 +5397,8 @@ public enum GetInstanceProfileOutputError: Swift.Error, Swift.Equatable { extension GetInstanceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceProfile = output.instanceProfile } else { @@ -5531,9 +5514,8 @@ public enum GetJobOutputError: Swift.Error, Swift.Equatable { extension GetJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -5649,9 +5631,8 @@ public enum GetNetworkProfileOutputError: Swift.Error, Swift.Equatable { extension GetNetworkProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkProfile = output.networkProfile } else { @@ -5768,9 +5749,8 @@ public enum GetOfferingStatusOutputError: Swift.Error, Swift.Equatable { extension GetOfferingStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOfferingStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.current = output.current self.nextPeriod = output.nextPeriod @@ -5925,9 +5905,8 @@ public enum GetProjectOutputError: Swift.Error, Swift.Equatable { extension GetProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -6044,9 +6023,8 @@ public enum GetRemoteAccessSessionOutputError: Swift.Error, Swift.Equatable { extension GetRemoteAccessSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRemoteAccessSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.remoteAccessSession = output.remoteAccessSession } else { @@ -6163,9 +6141,8 @@ public enum GetRunOutputError: Swift.Error, Swift.Equatable { extension GetRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.run = output.run } else { @@ -6282,9 +6259,8 @@ public enum GetSuiteOutputError: Swift.Error, Swift.Equatable { extension GetSuiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSuiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.suite = output.suite } else { @@ -6398,9 +6374,8 @@ public enum GetTestGridProjectOutputError: Swift.Error, Swift.Equatable { extension GetTestGridProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTestGridProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.testGridProject = output.testGridProject } else { @@ -6536,9 +6511,8 @@ public enum GetTestGridSessionOutputError: Swift.Error, Swift.Equatable { extension GetTestGridSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTestGridSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.testGridSession = output.testGridSession } else { @@ -6654,9 +6628,8 @@ public enum GetTestOutputError: Swift.Error, Swift.Equatable { extension GetTestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.test = output.test } else { @@ -6773,9 +6746,8 @@ public enum GetUploadOutputError: Swift.Error, Swift.Equatable { extension GetUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.upload = output.upload } else { @@ -6889,9 +6861,8 @@ public enum GetVPCEConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetVPCEConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVPCEConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpceConfiguration = output.vpceConfiguration } else { @@ -6930,9 +6901,8 @@ extension GetVPCEConfigurationOutputResponseBody: Swift.Decodable { extension IdempotencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6946,7 +6916,7 @@ extension IdempotencyException { } /// An entity with the same name already exists. -public struct IdempotencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7130,9 +7100,8 @@ public enum InstallToRemoteAccessSessionOutputError: Swift.Error, Swift.Equatabl extension InstallToRemoteAccessSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstallToRemoteAccessSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appUpload = output.appUpload } else { @@ -7342,9 +7311,8 @@ extension DeviceFarmClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7358,7 +7326,7 @@ extension InternalServiceException { } /// An internal exception was raised in the service. Contact [aws-devicefarm-support@amazon.com](mailto:aws-devicefarm-support@amazon.com) if you see this error. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7394,9 +7362,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7410,7 +7377,7 @@ extension InvalidOperationException { } /// There was an error with the update request, or you do not have sufficient permissions to update this VPC endpoint configuration. -public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7689,9 +7656,8 @@ extension DeviceFarmClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7705,7 +7671,7 @@ extension LimitExceededException { } /// A limit was exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7850,9 +7816,8 @@ public enum ListArtifactsOutputError: Swift.Error, Swift.Equatable { extension ListArtifactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListArtifactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifacts = output.artifacts self.nextToken = output.nextToken @@ -7998,9 +7963,8 @@ public enum ListDeviceInstancesOutputError: Swift.Error, Swift.Equatable { extension ListDeviceInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceInstances = output.deviceInstances self.nextToken = output.nextToken @@ -8163,9 +8127,8 @@ public enum ListDevicePoolsOutputError: Swift.Error, Swift.Equatable { extension ListDevicePoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicePoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devicePools = output.devicePools self.nextToken = output.nextToken @@ -8386,9 +8349,8 @@ public enum ListDevicesOutputError: Swift.Error, Swift.Equatable { extension ListDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.nextToken = output.nextToken @@ -8534,9 +8496,8 @@ public enum ListInstanceProfilesOutputError: Swift.Error, Swift.Equatable { extension ListInstanceProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceProfiles = output.instanceProfiles self.nextToken = output.nextToken @@ -8683,9 +8644,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -8844,9 +8804,8 @@ public enum ListNetworkProfilesOutputError: Swift.Error, Swift.Equatable { extension ListNetworkProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNetworkProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkProfiles = output.networkProfiles self.nextToken = output.nextToken @@ -8981,9 +8940,8 @@ public enum ListOfferingPromotionsOutputError: Swift.Error, Swift.Equatable { extension ListOfferingPromotionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOfferingPromotionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.offeringPromotions = output.offeringPromotions @@ -9119,9 +9077,8 @@ public enum ListOfferingTransactionsOutputError: Swift.Error, Swift.Equatable { extension ListOfferingTransactionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOfferingTransactionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.offeringTransactions = output.offeringTransactions @@ -9258,9 +9215,8 @@ public enum ListOfferingsOutputError: Swift.Error, Swift.Equatable { extension ListOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.offerings = output.offerings @@ -9407,9 +9363,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -9557,9 +9512,8 @@ public enum ListRemoteAccessSessionsOutputError: Swift.Error, Swift.Equatable { extension ListRemoteAccessSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRemoteAccessSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.remoteAccessSessions = output.remoteAccessSessions @@ -9707,9 +9661,8 @@ public enum ListRunsOutputError: Swift.Error, Swift.Equatable { extension ListRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.runs = output.runs @@ -9857,9 +9810,8 @@ public enum ListSamplesOutputError: Swift.Error, Swift.Equatable { extension ListSamplesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSamplesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.samples = output.samples @@ -10007,9 +9959,8 @@ public enum ListSuitesOutputError: Swift.Error, Swift.Equatable { extension ListSuitesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSuitesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.suites = output.suites @@ -10142,9 +10093,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10275,9 +10225,8 @@ public enum ListTestGridProjectsOutputError: Swift.Error, Swift.Equatable { extension ListTestGridProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTestGridProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.testGridProjects = output.testGridProjects @@ -10433,9 +10382,8 @@ public enum ListTestGridSessionActionsOutputError: Swift.Error, Swift.Equatable extension ListTestGridSessionActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTestGridSessionActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actions = output.actions self.nextToken = output.nextToken @@ -10603,9 +10551,8 @@ public enum ListTestGridSessionArtifactsOutputError: Swift.Error, Swift.Equatabl extension ListTestGridSessionArtifactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTestGridSessionArtifactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifacts = output.artifacts self.nextToken = output.nextToken @@ -10821,9 +10768,8 @@ public enum ListTestGridSessionsOutputError: Swift.Error, Swift.Equatable { extension ListTestGridSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTestGridSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.testGridSessions = output.testGridSessions @@ -10970,9 +10916,8 @@ public enum ListTestsOutputError: Swift.Error, Swift.Equatable { extension ListTestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tests = output.tests @@ -11120,9 +11065,8 @@ public enum ListUniqueProblemsOutputError: Swift.Error, Swift.Equatable { extension ListUniqueProblemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUniqueProblemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.uniqueProblems = output.uniqueProblems @@ -11367,9 +11311,8 @@ public enum ListUploadsOutputError: Swift.Error, Swift.Equatable { extension ListUploadsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUploadsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.uploads = output.uploads @@ -11511,9 +11454,8 @@ public enum ListVPCEConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListVPCEConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVPCEConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpceConfigurations = output.vpceConfigurations @@ -11840,9 +11782,8 @@ extension DeviceFarmClientTypes { extension NotEligibleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotEligibleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11856,7 +11797,7 @@ extension NotEligibleException { } /// Exception gets thrown when a user is not eligible to perform the specified transaction. -public struct NotEligibleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotEligibleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11893,9 +11834,8 @@ extension NotEligibleExceptionBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11909,7 +11849,7 @@ extension NotFoundException { } /// The specified entity was not found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12615,9 +12555,8 @@ public enum PurchaseOfferingOutputError: Swift.Error, Swift.Equatable { extension PurchaseOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.offeringTransaction = output.offeringTransaction } else { @@ -13171,9 +13110,8 @@ public enum RenewOfferingOutputError: Swift.Error, Swift.Equatable { extension RenewOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RenewOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.offeringTransaction = output.offeringTransaction } else { @@ -14249,9 +14187,8 @@ public enum ScheduleRunOutputError: Swift.Error, Swift.Equatable { extension ScheduleRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ScheduleRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.run = output.run } else { @@ -14495,9 +14432,8 @@ extension DeviceFarmClientTypes { extension ServiceAccountException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceAccountExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14511,7 +14447,7 @@ extension ServiceAccountException { } /// There was a problem with the service account. -public struct ServiceAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14624,9 +14560,8 @@ public enum StopJobOutputError: Swift.Error, Swift.Equatable { extension StopJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -14742,9 +14677,8 @@ public enum StopRemoteAccessSessionOutputError: Swift.Error, Swift.Equatable { extension StopRemoteAccessSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopRemoteAccessSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.remoteAccessSession = output.remoteAccessSession } else { @@ -14861,9 +14795,8 @@ public enum StopRunOutputError: Swift.Error, Swift.Equatable { extension StopRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.run = output.run } else { @@ -15153,9 +15086,8 @@ extension DeviceFarmClientTypes { extension TagOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -15171,7 +15103,7 @@ extension TagOperationException { } /// The operation was not successful. Try again. -public struct TagOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15214,9 +15146,8 @@ extension TagOperationExceptionBody: Swift.Decodable { extension TagPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -15232,7 +15163,7 @@ extension TagPolicyException { } /// The request doesn't comply with the AWS Identity and Access Management (IAM) tag policy. Correct your request and then retry it. -public struct TagPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16159,9 +16090,8 @@ extension DeviceFarmClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -16177,7 +16107,7 @@ extension TooManyTagsException { } /// The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16543,9 +16473,8 @@ public enum UpdateDeviceInstanceOutputError: Swift.Error, Swift.Equatable { extension UpdateDeviceInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDeviceInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceInstance = output.deviceInstance } else { @@ -16733,9 +16662,8 @@ public enum UpdateDevicePoolOutputError: Swift.Error, Swift.Equatable { extension UpdateDevicePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDevicePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devicePool = output.devicePool } else { @@ -16923,9 +16851,8 @@ public enum UpdateInstanceProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateInstanceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInstanceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceProfile = output.instanceProfile } else { @@ -17172,9 +17099,8 @@ public enum UpdateNetworkProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateNetworkProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNetworkProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkProfile = output.networkProfile } else { @@ -17326,9 +17252,8 @@ public enum UpdateProjectOutputError: Swift.Error, Swift.Equatable { extension UpdateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -17480,9 +17405,8 @@ public enum UpdateTestGridProjectOutputError: Swift.Error, Swift.Equatable { extension UpdateTestGridProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTestGridProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.testGridProject = output.testGridProject } else { @@ -17633,9 +17557,8 @@ public enum UpdateUploadOutputError: Swift.Error, Swift.Equatable { extension UpdateUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.upload = output.upload } else { @@ -17798,9 +17721,8 @@ public enum UpdateVPCEConfigurationOutputError: Swift.Error, Swift.Equatable { extension UpdateVPCEConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVPCEConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpceConfiguration = output.vpceConfiguration } else { diff --git a/Sources/Services/AWSDirectConnect/DirectConnectClient.swift b/Sources/Services/AWSDirectConnect/DirectConnectClient.swift index f219b3d83bf..2dd6940cdbf 100644 --- a/Sources/Services/AWSDirectConnect/DirectConnectClient.swift +++ b/Sources/Services/AWSDirectConnect/DirectConnectClient.swift @@ -208,6 +208,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptDirectConnectGatewayAssociationProposal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -245,6 +246,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocateConnectionOnInterconnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -261,7 +263,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -281,6 +283,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocateHostedConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -297,7 +300,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -317,6 +320,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocatePrivateVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -333,7 +337,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -353,6 +357,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocatePublicVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -369,7 +374,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -389,6 +394,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocateTransitVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -405,7 +411,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -425,6 +431,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateConnectionWithLag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -441,7 +448,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -461,6 +468,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateHostedConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +485,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +505,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateMacSecKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -513,7 +522,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -533,6 +542,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +559,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "confirmConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +596,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +616,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "confirmCustomerAgreement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -621,7 +633,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -641,6 +653,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "confirmPrivateVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -657,7 +670,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -677,6 +690,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "confirmPublicVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -693,7 +707,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +727,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "confirmTransitVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -729,7 +744,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -749,6 +764,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBGPPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -765,7 +781,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -785,6 +801,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -801,7 +818,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -821,6 +838,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDirectConnectGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -837,7 +855,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -857,6 +875,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDirectConnectGatewayAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -873,7 +892,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -893,6 +912,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDirectConnectGatewayAssociationProposal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -909,7 +929,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -929,6 +949,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInterconnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -945,7 +966,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -965,6 +986,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -981,7 +1003,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1001,6 +1023,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPrivateVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1017,7 +1040,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1037,6 +1060,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPublicVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1053,7 +1077,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1073,6 +1097,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1089,7 +1114,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1109,6 +1134,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBGPPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1125,7 +1151,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1145,6 +1171,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1161,7 +1188,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1181,6 +1208,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDirectConnectGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1197,7 +1225,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1217,6 +1245,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDirectConnectGatewayAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1233,7 +1262,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1253,6 +1282,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDirectConnectGatewayAssociationProposal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1269,7 +1299,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1289,6 +1319,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInterconnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1305,7 +1336,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1325,6 +1356,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1341,7 +1373,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1361,6 +1393,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVirtualInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1377,7 +1410,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1398,6 +1431,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnectionLoa") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1414,7 +1448,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1434,6 +1468,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1450,7 +1485,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1471,6 +1506,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnectionsOnInterconnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1487,7 +1523,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1507,6 +1543,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomerMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1523,7 +1560,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1543,6 +1580,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDirectConnectGatewayAssociationProposals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1559,7 +1597,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1589,6 +1627,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDirectConnectGatewayAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1605,7 +1644,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1625,6 +1664,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDirectConnectGatewayAttachments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1641,7 +1681,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1661,6 +1701,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDirectConnectGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1677,7 +1718,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1697,6 +1738,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHostedConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1713,7 +1755,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1734,6 +1776,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInterconnectLoa") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1750,7 +1793,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1770,6 +1813,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInterconnects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1786,7 +1830,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1806,6 +1850,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1822,7 +1867,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1842,6 +1887,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoa") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1858,7 +1904,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1878,6 +1924,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1894,7 +1941,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1914,6 +1961,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRouterConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1930,7 +1978,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1950,6 +1998,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1966,7 +2015,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1986,6 +2035,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVirtualGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2002,7 +2052,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2022,6 +2072,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVirtualInterfaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2038,7 +2089,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2058,6 +2109,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateConnectionFromLag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2074,7 +2126,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2094,6 +2146,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMacSecKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2110,7 +2163,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2130,6 +2183,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVirtualInterfaceTestHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2146,7 +2200,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2166,6 +2220,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBgpFailoverTest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2182,7 +2237,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2202,6 +2257,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopBgpFailoverTest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2218,7 +2274,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2238,6 +2294,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2254,7 +2311,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2274,6 +2331,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2290,7 +2348,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2314,6 +2372,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2330,7 +2389,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2350,6 +2409,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDirectConnectGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2366,7 +2426,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2386,6 +2446,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDirectConnectGatewayAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2402,7 +2463,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2433,6 +2494,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2449,7 +2511,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2469,6 +2531,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "directconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVirtualInterfaceAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2485,7 +2548,7 @@ extension DirectConnectClient: DirectConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDirectConnect/models/Models.swift b/Sources/Services/AWSDirectConnect/models/Models.swift index b717561a9cf..496d53ab64b 100644 --- a/Sources/Services/AWSDirectConnect/models/Models.swift +++ b/Sources/Services/AWSDirectConnect/models/Models.swift @@ -126,9 +126,8 @@ public enum AcceptDirectConnectGatewayAssociationProposalOutputError: Swift.Erro extension AcceptDirectConnectGatewayAssociationProposalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptDirectConnectGatewayAssociationProposalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAssociation = output.directConnectGatewayAssociation } else { @@ -323,9 +322,8 @@ public enum AllocateConnectionOnInterconnectOutputError: Swift.Error, Swift.Equa extension AllocateConnectionOnInterconnectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocateConnectionOnInterconnectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -764,9 +762,8 @@ public enum AllocateHostedConnectionOutputError: Swift.Error, Swift.Equatable { extension AllocateHostedConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocateHostedConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -1155,9 +1152,8 @@ public enum AllocatePrivateVirtualInterfaceOutputError: Swift.Error, Swift.Equat extension AllocatePrivateVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocatePrivateVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressFamily = output.addressFamily self.amazonAddress = output.amazonAddress @@ -1594,9 +1590,8 @@ public enum AllocatePublicVirtualInterfaceOutputError: Swift.Error, Swift.Equata extension AllocatePublicVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocatePublicVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressFamily = output.addressFamily self.amazonAddress = output.amazonAddress @@ -2033,9 +2028,8 @@ public enum AllocateTransitVirtualInterfaceOutputError: Swift.Error, Swift.Equat extension AllocateTransitVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocateTransitVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterface = output.virtualInterface } else { @@ -2159,9 +2153,8 @@ public enum AssociateConnectionWithLagOutputError: Swift.Error, Swift.Equatable extension AssociateConnectionWithLagOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateConnectionWithLagOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -2533,9 +2526,8 @@ public enum AssociateHostedConnectionOutputError: Swift.Error, Swift.Equatable { extension AssociateHostedConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateHostedConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -2930,9 +2922,8 @@ public enum AssociateMacSecKeyOutputError: Swift.Error, Swift.Equatable { extension AssociateMacSecKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateMacSecKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionId = output.connectionId self.macSecKeys = output.macSecKeys @@ -3075,9 +3066,8 @@ public enum AssociateVirtualInterfaceOutputError: Swift.Error, Swift.Equatable { extension AssociateVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressFamily = output.addressFamily self.amazonAddress = output.amazonAddress @@ -3766,9 +3756,8 @@ public enum ConfirmConnectionOutputError: Swift.Error, Swift.Equatable { extension ConfirmConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfirmConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionState = output.connectionState } else { @@ -3896,9 +3885,8 @@ public enum ConfirmCustomerAgreementOutputError: Swift.Error, Swift.Equatable { extension ConfirmCustomerAgreementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfirmCustomerAgreementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -4033,9 +4021,8 @@ public enum ConfirmPrivateVirtualInterfaceOutputError: Swift.Error, Swift.Equata extension ConfirmPrivateVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfirmPrivateVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterfaceState = output.virtualInterfaceState } else { @@ -4164,9 +4151,8 @@ public enum ConfirmPublicVirtualInterfaceOutputError: Swift.Error, Swift.Equatab extension ConfirmPublicVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfirmPublicVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterfaceState = output.virtualInterfaceState } else { @@ -4308,9 +4294,8 @@ public enum ConfirmTransitVirtualInterfaceOutputError: Swift.Error, Swift.Equata extension ConfirmTransitVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfirmTransitVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterfaceState = output.virtualInterfaceState } else { @@ -4791,9 +4776,8 @@ public enum CreateBGPPeerOutputError: Swift.Error, Swift.Equatable { extension CreateBGPPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBGPPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterface = output.virtualInterface } else { @@ -4994,9 +4978,8 @@ public enum CreateConnectionOutputError: Swift.Error, Swift.Equatable { extension CreateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -5403,9 +5386,8 @@ public enum CreateDirectConnectGatewayAssociationOutputError: Swift.Error, Swift extension CreateDirectConnectGatewayAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDirectConnectGatewayAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAssociation = output.directConnectGatewayAssociation } else { @@ -5590,9 +5572,8 @@ public enum CreateDirectConnectGatewayAssociationProposalOutputError: Swift.Erro extension CreateDirectConnectGatewayAssociationProposalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDirectConnectGatewayAssociationProposalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAssociationProposal = output.directConnectGatewayAssociationProposal } else { @@ -5715,9 +5696,8 @@ public enum CreateDirectConnectGatewayOutputError: Swift.Error, Swift.Equatable extension CreateDirectConnectGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDirectConnectGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGateway = output.directConnectGateway } else { @@ -5906,9 +5886,8 @@ public enum CreateInterconnectOutputError: Swift.Error, Swift.Equatable { extension CreateInterconnectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInterconnectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -6311,9 +6290,8 @@ public enum CreateLagOutputError: Swift.Error, Swift.Equatable { extension CreateLagOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLagOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowsHostedConnections = output.allowsHostedConnections self.awsDevice = output.awsDevice @@ -6684,9 +6662,8 @@ public enum CreatePrivateVirtualInterfaceOutputError: Swift.Error, Swift.Equatab extension CreatePrivateVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePrivateVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressFamily = output.addressFamily self.amazonAddress = output.amazonAddress @@ -7110,9 +7087,8 @@ public enum CreatePublicVirtualInterfaceOutputError: Swift.Error, Swift.Equatabl extension CreatePublicVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePublicVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressFamily = output.addressFamily self.amazonAddress = output.amazonAddress @@ -7536,9 +7512,8 @@ public enum CreateTransitVirtualInterfaceOutputError: Swift.Error, Swift.Equatab extension CreateTransitVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterface = output.virtualInterface } else { @@ -7729,9 +7704,8 @@ public enum DeleteBGPPeerOutputError: Swift.Error, Swift.Equatable { extension DeleteBGPPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBGPPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterface = output.virtualInterface } else { @@ -7842,9 +7816,8 @@ public enum DeleteConnectionOutputError: Swift.Error, Swift.Equatable { extension DeleteConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -8226,9 +8199,8 @@ public enum DeleteDirectConnectGatewayAssociationOutputError: Swift.Error, Swift extension DeleteDirectConnectGatewayAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDirectConnectGatewayAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAssociation = output.directConnectGatewayAssociation } else { @@ -8339,9 +8311,8 @@ public enum DeleteDirectConnectGatewayAssociationProposalOutputError: Swift.Erro extension DeleteDirectConnectGatewayAssociationProposalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDirectConnectGatewayAssociationProposalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAssociationProposal = output.directConnectGatewayAssociationProposal } else { @@ -8452,9 +8423,8 @@ public enum DeleteDirectConnectGatewayOutputError: Swift.Error, Swift.Equatable extension DeleteDirectConnectGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDirectConnectGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGateway = output.directConnectGateway } else { @@ -8565,9 +8535,8 @@ public enum DeleteInterconnectOutputError: Swift.Error, Swift.Equatable { extension DeleteInterconnectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInterconnectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.interconnectState = output.interconnectState } else { @@ -8692,9 +8661,8 @@ public enum DeleteLagOutputError: Swift.Error, Swift.Equatable { extension DeleteLagOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLagOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowsHostedConnections = output.allowsHostedConnections self.awsDevice = output.awsDevice @@ -9048,9 +9016,8 @@ public enum DeleteVirtualInterfaceOutputError: Swift.Error, Swift.Equatable { extension DeleteVirtualInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVirtualInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterfaceState = output.virtualInterfaceState } else { @@ -9203,9 +9170,8 @@ public enum DescribeConnectionLoaOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectionLoaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectionLoaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loa = output.loa } else { @@ -9363,9 +9329,8 @@ public enum DescribeConnectionsOnInterconnectOutputError: Swift.Error, Swift.Equ extension DescribeConnectionsOnInterconnectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectionsOnInterconnectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections } else { @@ -9437,9 +9402,8 @@ public enum DescribeConnectionsOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections } else { @@ -9539,9 +9503,8 @@ public enum DescribeCustomerMetadataOutputError: Swift.Error, Swift.Equatable { extension DescribeCustomerMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomerMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agreements = output.agreements self.nniPartnerType = output.nniPartnerType @@ -9724,9 +9687,8 @@ public enum DescribeDirectConnectGatewayAssociationProposalsOutputError: Swift.E extension DescribeDirectConnectGatewayAssociationProposalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDirectConnectGatewayAssociationProposalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAssociationProposals = output.directConnectGatewayAssociationProposals self.nextToken = output.nextToken @@ -9915,9 +9877,8 @@ public enum DescribeDirectConnectGatewayAssociationsOutputError: Swift.Error, Sw extension DescribeDirectConnectGatewayAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDirectConnectGatewayAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAssociations = output.directConnectGatewayAssociations self.nextToken = output.nextToken @@ -10082,9 +10043,8 @@ public enum DescribeDirectConnectGatewayAttachmentsOutputError: Swift.Error, Swi extension DescribeDirectConnectGatewayAttachmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDirectConnectGatewayAttachmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAttachments = output.directConnectGatewayAttachments self.nextToken = output.nextToken @@ -10237,9 +10197,8 @@ public enum DescribeDirectConnectGatewaysOutputError: Swift.Error, Swift.Equatab extension DescribeDirectConnectGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDirectConnectGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGateways = output.directConnectGateways self.nextToken = output.nextToken @@ -10369,9 +10328,8 @@ public enum DescribeHostedConnectionsOutputError: Swift.Error, Swift.Equatable { extension DescribeHostedConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHostedConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections } else { @@ -10515,9 +10473,8 @@ public enum DescribeInterconnectLoaOutputError: Swift.Error, Swift.Equatable { extension DescribeInterconnectLoaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInterconnectLoaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loa = output.loa } else { @@ -10627,9 +10584,8 @@ public enum DescribeInterconnectsOutputError: Swift.Error, Swift.Equatable { extension DescribeInterconnectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInterconnectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.interconnects = output.interconnects } else { @@ -10748,9 +10704,8 @@ public enum DescribeLagsOutputError: Swift.Error, Swift.Equatable { extension DescribeLagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lags = output.lags } else { @@ -10894,9 +10849,8 @@ public enum DescribeLoaOutputError: Swift.Error, Swift.Equatable { extension DescribeLoaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loaContent = output.loaContent self.loaContentType = output.loaContentType @@ -10998,9 +10952,8 @@ public enum DescribeLocationsOutputError: Swift.Error, Swift.Equatable { extension DescribeLocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locations = output.locations } else { @@ -11133,9 +11086,8 @@ public enum DescribeRouterConfigurationOutputError: Swift.Error, Swift.Equatable extension DescribeRouterConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRouterConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerRouterConfig = output.customerRouterConfig self.router = output.router @@ -11288,9 +11240,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceTags = output.resourceTags } else { @@ -11390,9 +11341,8 @@ public enum DescribeVirtualGatewaysOutputError: Swift.Error, Swift.Equatable { extension DescribeVirtualGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVirtualGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualGateways = output.virtualGateways } else { @@ -11523,9 +11473,8 @@ public enum DescribeVirtualInterfacesOutputError: Swift.Error, Swift.Equatable { extension DescribeVirtualInterfacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVirtualInterfacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterfaces = output.virtualInterfaces } else { @@ -11573,9 +11522,8 @@ extension DescribeVirtualInterfacesOutputResponseBody: Swift.Decodable { extension DirectConnectClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectConnectClientExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11589,7 +11537,7 @@ extension DirectConnectClientException { } /// One or more parameters are not valid. -public struct DirectConnectClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectConnectClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12278,9 +12226,8 @@ extension DirectConnectClientTypes { extension DirectConnectServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectConnectServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12294,7 +12241,7 @@ extension DirectConnectServerException { } /// A server-side error occurred. -public struct DirectConnectServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectConnectServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12415,9 +12362,8 @@ public enum DisassociateConnectionFromLagOutputError: Swift.Error, Swift.Equatab extension DisassociateConnectionFromLagOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateConnectionFromLagOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -12789,9 +12735,8 @@ public enum DisassociateMacSecKeyOutputError: Swift.Error, Swift.Equatable { extension DisassociateMacSecKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateMacSecKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionId = output.connectionId self.macSecKeys = output.macSecKeys @@ -12849,9 +12794,8 @@ extension DisassociateMacSecKeyOutputResponseBody: Swift.Decodable { extension DuplicateTagKeysException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateTagKeysExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12865,7 +12809,7 @@ extension DuplicateTagKeysException { } /// A tag key was specified more than once. -public struct DuplicateTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13693,9 +13637,8 @@ public enum ListVirtualInterfaceTestHistoryOutputError: Swift.Error, Swift.Equat extension ListVirtualInterfaceTestHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVirtualInterfaceTestHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.virtualInterfaceTestHistory = output.virtualInterfaceTestHistory @@ -15264,9 +15207,8 @@ public enum StartBgpFailoverTestOutputError: Swift.Error, Swift.Equatable { extension StartBgpFailoverTestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartBgpFailoverTestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterfaceTest = output.virtualInterfaceTest } else { @@ -15377,9 +15319,8 @@ public enum StopBgpFailoverTestOutputError: Swift.Error, Swift.Equatable { extension StopBgpFailoverTestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopBgpFailoverTestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualInterfaceTest = output.virtualInterfaceTest } else { @@ -15575,9 +15516,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15591,7 +15531,7 @@ extension TooManyTagsException { } /// You have reached the limit on the number of tags that can be assigned. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15830,9 +15770,8 @@ public enum UpdateConnectionOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsDevice = output.awsDevice self.awsDeviceV2 = output.awsDeviceV2 @@ -16238,9 +16177,8 @@ public enum UpdateDirectConnectGatewayAssociationOutputError: Swift.Error, Swift extension UpdateDirectConnectGatewayAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDirectConnectGatewayAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGatewayAssociation = output.directConnectGatewayAssociation } else { @@ -16364,9 +16302,8 @@ public enum UpdateDirectConnectGatewayOutputError: Swift.Error, Swift.Equatable extension UpdateDirectConnectGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDirectConnectGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directConnectGateway = output.directConnectGateway } else { @@ -16513,9 +16450,8 @@ public enum UpdateLagOutputError: Swift.Error, Swift.Equatable { extension UpdateLagOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLagOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowsHostedConnections = output.allowsHostedConnections self.awsDevice = output.awsDevice @@ -16905,9 +16841,8 @@ public enum UpdateVirtualInterfaceAttributesOutputError: Swift.Error, Swift.Equa extension UpdateVirtualInterfaceAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVirtualInterfaceAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressFamily = output.addressFamily self.amazonAddress = output.amazonAddress diff --git a/Sources/Services/AWSDirectoryService/DirectoryClient.swift b/Sources/Services/AWSDirectoryService/DirectoryClient.swift index 92099270346..a1369551e25 100644 --- a/Sources/Services/AWSDirectoryService/DirectoryClient.swift +++ b/Sources/Services/AWSDirectoryService/DirectoryClient.swift @@ -208,6 +208,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptSharedDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addIpRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addRegion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelSchemaExtension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "connectDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComputer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConditionalForwarder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLogSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMicrosoftAD") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrust") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConditionalForwarder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLogSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrust") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterEventTopic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClientAuthenticationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConditionalForwarders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDirectories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomainControllers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventTopics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLDAPSSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRegions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSharedDirectories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrusts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUpdateDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableClientAuthentication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableLDAPS") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableRadius") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableSso") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableClientAuthentication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableLDAPS") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableRadius") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableSso") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDirectoryLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSnapshotLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1836,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1873,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIpRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1890,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1864,6 +1910,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLogSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1880,7 +1927,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1900,6 +1947,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchemaExtensions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1916,7 +1964,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1936,6 +1984,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +2001,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2021,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2038,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2008,6 +2058,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerEventTopic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2024,7 +2075,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2044,6 +2095,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectSharedDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2060,7 +2112,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2132,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeIpRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2096,7 +2149,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2116,6 +2169,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeRegion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2132,7 +2186,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2152,6 +2206,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2223,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2192,6 +2247,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetUserPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2208,7 +2264,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2228,6 +2284,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2244,7 +2301,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2264,6 +2321,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "shareDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2280,7 +2338,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2300,6 +2358,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSchemaExtension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2316,7 +2375,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2336,6 +2395,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unshareDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2352,7 +2412,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2372,6 +2432,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConditionalForwarder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2388,7 +2449,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2408,6 +2469,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDirectorySetup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2424,7 +2486,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2444,6 +2506,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNumberOfDomainControllers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2460,7 +2523,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2480,6 +2543,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRadius") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2496,7 +2560,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2516,6 +2580,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2532,7 +2597,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2552,6 +2617,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrust") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2568,7 +2634,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2588,6 +2654,7 @@ extension DirectoryClient: DirectoryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verifyTrust") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2604,7 +2671,7 @@ extension DirectoryClient: DirectoryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDirectoryService/models/Models.swift b/Sources/Services/AWSDirectoryService/models/Models.swift index 7945c9d96b0..b6381f4f331 100644 --- a/Sources/Services/AWSDirectoryService/models/Models.swift +++ b/Sources/Services/AWSDirectoryService/models/Models.swift @@ -82,9 +82,8 @@ public enum AcceptSharedDirectoryOutputError: Swift.Error, Swift.Equatable { extension AcceptSharedDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptSharedDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sharedDirectory = output.sharedDirectory } else { @@ -123,9 +122,8 @@ extension AcceptSharedDirectoryOutputResponseBody: Swift.Decodable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -141,7 +139,7 @@ extension AccessDeniedException { } /// Client authentication is not available in this region at this time. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -639,9 +637,8 @@ extension DirectoryClientTypes { extension AuthenticationFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthenticationFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -657,7 +654,7 @@ extension AuthenticationFailedException { } /// An authentication error occurred. -public struct AuthenticationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthenticationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -904,9 +901,8 @@ extension DirectoryClientTypes { extension CertificateAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -922,7 +918,7 @@ extension CertificateAlreadyExistsException { } /// The certificate has already been registered into the system. -public struct CertificateAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -967,9 +963,8 @@ extension CertificateAlreadyExistsExceptionBody: Swift.Decodable { extension CertificateDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -985,7 +980,7 @@ extension CertificateDoesNotExistException { } /// The certificate is not present in the system for describe or deregister activities. -public struct CertificateDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1030,9 +1025,8 @@ extension CertificateDoesNotExistExceptionBody: Swift.Decodable { extension CertificateInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -1048,7 +1042,7 @@ extension CertificateInUseException { } /// The certificate is being used for the LDAP security connection and cannot be removed without disabling LDAP security. -public struct CertificateInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1168,9 +1162,8 @@ extension DirectoryClientTypes { extension CertificateLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -1186,7 +1179,7 @@ extension CertificateLimitExceededException { } /// The certificate could not be added because the certificate limit has been reached. -public struct CertificateLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1461,9 +1454,8 @@ extension DirectoryClientTypes { extension ClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -1479,7 +1471,7 @@ extension ClientException { } /// A client exception has occurred. -public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1827,9 +1819,8 @@ public enum ConnectDirectoryOutputError: Swift.Error, Swift.Equatable { extension ConnectDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConnectDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryId = output.directoryId } else { @@ -1961,9 +1952,8 @@ public enum CreateAliasOutputError: Swift.Error, Swift.Equatable { extension CreateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.directoryId = output.directoryId @@ -2165,9 +2155,8 @@ public enum CreateComputerOutputError: Swift.Error, Swift.Equatable { extension CreateComputerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateComputerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computer = output.computer } else { @@ -2523,9 +2512,8 @@ public enum CreateDirectoryOutputError: Swift.Error, Swift.Equatable { extension CreateDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryId = output.directoryId } else { @@ -2838,9 +2826,8 @@ public enum CreateMicrosoftADOutputError: Swift.Error, Swift.Equatable { extension CreateMicrosoftADOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMicrosoftADOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryId = output.directoryId } else { @@ -2971,9 +2958,8 @@ public enum CreateSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotId = output.snapshotId } else { @@ -3186,9 +3172,8 @@ public enum CreateTrustOutputError: Swift.Error, Swift.Equatable { extension CreateTrustOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrustOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustId = output.trustId } else { @@ -3408,9 +3393,8 @@ public enum DeleteDirectoryOutputError: Swift.Error, Swift.Equatable { extension DeleteDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryId = output.directoryId } else { @@ -3613,9 +3597,8 @@ public enum DeleteSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotId = output.snapshotId } else { @@ -3746,9 +3729,8 @@ public enum DeleteTrustOutputError: Swift.Error, Swift.Equatable { extension DeleteTrustOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTrustOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustId = output.trustId } else { @@ -4089,9 +4071,8 @@ public enum DescribeCertificateOutputError: Swift.Error, Swift.Equatable { extension DescribeCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate } else { @@ -4246,9 +4227,8 @@ public enum DescribeClientAuthenticationSettingsOutputError: Swift.Error, Swift. extension DescribeClientAuthenticationSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClientAuthenticationSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientAuthenticationSettingsInfo = output.clientAuthenticationSettingsInfo self.nextToken = output.nextToken @@ -4411,9 +4391,8 @@ public enum DescribeConditionalForwardersOutputError: Swift.Error, Swift.Equatab extension DescribeConditionalForwardersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConditionalForwardersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conditionalForwarders = output.conditionalForwarders } else { @@ -4576,9 +4555,8 @@ public enum DescribeDirectoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeDirectoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDirectoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryDescriptions = output.directoryDescriptions self.nextToken = output.nextToken @@ -4765,9 +4743,8 @@ public enum DescribeDomainControllersOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainControllersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainControllersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainControllers = output.domainControllers self.nextToken = output.nextToken @@ -4925,9 +4902,8 @@ public enum DescribeEventTopicsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventTopicsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventTopicsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTopics = output.eventTopics } else { @@ -5092,9 +5068,8 @@ public enum DescribeLDAPSSettingsOutputError: Swift.Error, Swift.Equatable { extension DescribeLDAPSSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLDAPSSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ldapsSettingsInfo = output.ldapsSettingsInfo self.nextToken = output.nextToken @@ -5258,9 +5233,8 @@ public enum DescribeRegionsOutputError: Swift.Error, Swift.Equatable { extension DescribeRegionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRegionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.regionsDescription = output.regionsDescription @@ -5422,9 +5396,8 @@ public enum DescribeSettingsOutputError: Swift.Error, Swift.Equatable { extension DescribeSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryId = output.directoryId self.nextToken = output.nextToken @@ -5620,9 +5593,8 @@ public enum DescribeSharedDirectoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeSharedDirectoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSharedDirectoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sharedDirectories = output.sharedDirectories @@ -5806,9 +5778,8 @@ public enum DescribeSnapshotsOutputError: Swift.Error, Swift.Equatable { extension DescribeSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshots = output.snapshots @@ -5995,9 +5966,8 @@ public enum DescribeTrustsOutputError: Swift.Error, Swift.Equatable { extension DescribeTrustsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrustsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trusts = output.trusts @@ -6173,9 +6143,8 @@ public enum DescribeUpdateDirectoryOutputError: Swift.Error, Swift.Equatable { extension DescribeUpdateDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUpdateDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.updateActivities = output.updateActivities @@ -6233,9 +6202,8 @@ extension DescribeUpdateDirectoryOutputResponseBody: Swift.Decodable { extension DirectoryAlreadyInRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryAlreadyInRegionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -6251,7 +6219,7 @@ extension DirectoryAlreadyInRegionException { } /// The Region you specified is the same Region where the Managed Microsoft AD directory was created. Specify a different Region and try again. -public struct DirectoryAlreadyInRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryAlreadyInRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6296,9 +6264,8 @@ extension DirectoryAlreadyInRegionExceptionBody: Swift.Decodable { extension DirectoryAlreadySharedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryAlreadySharedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -6314,7 +6281,7 @@ extension DirectoryAlreadySharedException { } /// The specified directory has already been shared with this Amazon Web Services account. -public struct DirectoryAlreadySharedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryAlreadySharedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6922,9 +6889,8 @@ extension DirectoryClientTypes { extension DirectoryDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -6940,7 +6906,7 @@ extension DirectoryDoesNotExistException { } /// The specified directory does not exist in the system. -public struct DirectoryDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7017,9 +6983,8 @@ extension DirectoryClientTypes { extension DirectoryInDesiredStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryInDesiredStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -7035,7 +7000,7 @@ extension DirectoryInDesiredStateException { } /// The directory is already updated to desired update type settings. -public struct DirectoryInDesiredStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryInDesiredStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7080,9 +7045,8 @@ extension DirectoryInDesiredStateExceptionBody: Swift.Decodable { extension DirectoryLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -7098,7 +7062,7 @@ extension DirectoryLimitExceededException { } /// The maximum number of directories in the region has been reached. You can use the [GetDirectoryLimits] operation to determine your directory limits in the region. -public struct DirectoryLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7258,9 +7222,8 @@ extension DirectoryClientTypes { extension DirectoryNotSharedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryNotSharedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -7276,7 +7239,7 @@ extension DirectoryNotSharedException { } /// The specified directory has not been shared with this Amazon Web Services account. -public struct DirectoryNotSharedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryNotSharedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7450,9 +7413,8 @@ extension DirectoryClientTypes { extension DirectoryUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -7468,7 +7430,7 @@ extension DirectoryUnavailableException { } /// The specified directory is unavailable or could not be found. -public struct DirectoryUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8199,9 +8161,8 @@ extension DirectoryClientTypes { extension DomainControllerLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DomainControllerLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -8217,7 +8178,7 @@ extension DomainControllerLimitExceededException { } /// The maximum allowed number of domain controllers per directory was exceeded. The default limit per directory is 20 domain controllers. -public struct DomainControllerLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DomainControllerLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8743,9 +8704,8 @@ public struct EnableSsoOutputResponse: Swift.Equatable { extension EntityAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -8761,7 +8721,7 @@ extension EntityAlreadyExistsException { } /// The specified entity already exists. -public struct EntityAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8806,9 +8766,8 @@ extension EntityAlreadyExistsExceptionBody: Swift.Decodable { extension EntityDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -8824,7 +8783,7 @@ extension EntityDoesNotExistException { } /// The specified entity could not be found. -public struct EntityDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8999,9 +8958,8 @@ public enum GetDirectoryLimitsOutputError: Swift.Error, Swift.Equatable { extension GetDirectoryLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDirectoryLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryLimits = output.directoryLimits } else { @@ -9116,9 +9074,8 @@ public enum GetSnapshotLimitsOutputError: Swift.Error, Swift.Equatable { extension GetSnapshotLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSnapshotLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotLimits = output.snapshotLimits } else { @@ -9158,9 +9115,8 @@ extension GetSnapshotLimitsOutputResponseBody: Swift.Decodable { extension IncompatibleSettingsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncompatibleSettingsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9176,7 +9132,7 @@ extension IncompatibleSettingsException { } /// The specified directory setting is not compatible with other settings. -public struct IncompatibleSettingsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleSettingsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9221,9 +9177,8 @@ extension IncompatibleSettingsExceptionBody: Swift.Decodable { extension InsufficientPermissionsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientPermissionsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9239,7 +9194,7 @@ extension InsufficientPermissionsException { } /// The account does not have sufficient permission to perform the operation. -public struct InsufficientPermissionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientPermissionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9284,9 +9239,8 @@ extension InsufficientPermissionsExceptionBody: Swift.Decodable { extension InvalidCertificateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCertificateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9302,7 +9256,7 @@ extension InvalidCertificateException { } /// The certificate PEM that was provided has incorrect encoding. -public struct InvalidCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9347,9 +9301,8 @@ extension InvalidCertificateExceptionBody: Swift.Decodable { extension InvalidClientAuthStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClientAuthStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9365,7 +9318,7 @@ extension InvalidClientAuthStatusException { } /// Client authentication is already enabled. -public struct InvalidClientAuthStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClientAuthStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9410,9 +9363,8 @@ extension InvalidClientAuthStatusExceptionBody: Swift.Decodable { extension InvalidLDAPSStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLDAPSStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9428,7 +9380,7 @@ extension InvalidLDAPSStatusException { } /// The LDAP activities could not be performed because they are limited by the LDAPS status. -public struct InvalidLDAPSStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLDAPSStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9473,9 +9425,8 @@ extension InvalidLDAPSStatusExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9491,7 +9442,7 @@ extension InvalidNextTokenException { } /// The NextToken value is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9536,9 +9487,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9554,7 +9504,7 @@ extension InvalidParameterException { } /// One or more parameters are not valid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9599,9 +9549,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidPasswordException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPasswordExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9617,7 +9566,7 @@ extension InvalidPasswordException { } /// The new password provided by the user does not meet the password complexity requirements defined in your directory. -public struct InvalidPasswordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPasswordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9662,9 +9611,8 @@ extension InvalidPasswordExceptionBody: Swift.Decodable { extension InvalidTargetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9680,7 +9628,7 @@ extension InvalidTargetException { } /// The specified shared target is not valid. -public struct InvalidTargetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9855,9 +9803,8 @@ extension DirectoryClientTypes { extension IpRouteLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IpRouteLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -9873,7 +9820,7 @@ extension IpRouteLimitExceededException { } /// The maximum allowed number of IP addresses was exceeded. The default limit is 100 IP address blocks. -public struct IpRouteLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IpRouteLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10188,9 +10135,8 @@ public enum ListCertificatesOutputError: Swift.Error, Swift.Equatable { extension ListCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificatesInfo = output.certificatesInfo self.nextToken = output.nextToken @@ -10350,9 +10296,8 @@ public enum ListIpRoutesOutputError: Swift.Error, Swift.Equatable { extension ListIpRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIpRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipRoutesInfo = output.ipRoutesInfo self.nextToken = output.nextToken @@ -10509,9 +10454,8 @@ public enum ListLogSubscriptionsOutputError: Swift.Error, Swift.Equatable { extension ListLogSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLogSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logSubscriptions = output.logSubscriptions self.nextToken = output.nextToken @@ -10669,9 +10613,8 @@ public enum ListSchemaExtensionsOutputError: Swift.Error, Swift.Equatable { extension ListSchemaExtensionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchemaExtensionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemaExtensionsInfo = output.schemaExtensionsInfo @@ -10831,9 +10774,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -10946,9 +10888,8 @@ extension DirectoryClientTypes { extension NoAvailableCertificateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoAvailableCertificateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -10964,7 +10905,7 @@ extension NoAvailableCertificateException { } /// Client authentication setup could not be completed because at least one valid certificate must be registered in the system. -public struct NoAvailableCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoAvailableCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11076,9 +11017,8 @@ extension DirectoryClientTypes { extension OrganizationsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -11094,7 +11034,7 @@ extension OrganizationsException { } /// Exception encountered while trying to access your Amazon Web Services organization. -public struct OrganizationsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11546,9 +11486,8 @@ extension DirectoryClientTypes { extension RegionLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegionLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -11564,7 +11503,7 @@ extension RegionLimitExceededException { } /// You have reached the limit for maximum number of simultaneous Region replications per directory. -public struct RegionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RegionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11821,9 +11760,8 @@ public enum RegisterCertificateOutputError: Swift.Error, Swift.Equatable { extension RegisterCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateId = output.certificateId } else { @@ -12041,9 +11979,8 @@ public enum RejectSharedDirectoryOutputError: Swift.Error, Swift.Equatable { extension RejectSharedDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectSharedDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sharedDirectoryId = output.sharedDirectoryId } else { @@ -12816,9 +12753,8 @@ extension DirectoryClientTypes { extension ServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -12834,7 +12770,7 @@ extension ServiceException { } /// An exception has occurred in Directory Service. -public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13194,9 +13130,8 @@ public enum ShareDirectoryOutputError: Swift.Error, Swift.Equatable { extension ShareDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ShareDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sharedDirectoryId = output.sharedDirectoryId } else { @@ -13235,9 +13170,8 @@ extension ShareDirectoryOutputResponseBody: Swift.Decodable { extension ShareLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ShareLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -13253,7 +13187,7 @@ extension ShareLimitExceededException { } /// The maximum number of Amazon Web Services accounts that you can share with this directory has been reached. -public struct ShareLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ShareLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13635,9 +13569,8 @@ extension DirectoryClientTypes { extension SnapshotLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SnapshotLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -13653,7 +13586,7 @@ extension SnapshotLimitExceededException { } /// The maximum number of manual snapshots for the directory has been reached. You can use the [GetSnapshotLimits] operation to determine the snapshot limits for a directory. -public struct SnapshotLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13939,9 +13872,8 @@ public enum StartSchemaExtensionOutputError: Swift.Error, Swift.Equatable { extension StartSchemaExtensionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSchemaExtensionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schemaExtensionId = output.schemaExtensionId } else { @@ -14027,9 +13959,8 @@ extension DirectoryClientTypes { extension TagLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -14045,7 +13976,7 @@ extension TagLimitExceededException { } /// The maximum allowed number of tags was exceeded. -public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14509,9 +14440,8 @@ public enum UnshareDirectoryOutputError: Swift.Error, Swift.Equatable { extension UnshareDirectoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnshareDirectoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sharedDirectoryId = output.sharedDirectoryId } else { @@ -14597,9 +14527,8 @@ extension DirectoryClientTypes { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -14615,7 +14544,7 @@ extension UnsupportedOperationException { } /// The operation is not supported. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14660,9 +14589,8 @@ extension UnsupportedOperationExceptionBody: Swift.Decodable { extension UnsupportedSettingsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedSettingsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -14678,7 +14606,7 @@ extension UnsupportedSettingsException { } /// The specified directory setting is not supported. -public struct UnsupportedSettingsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedSettingsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15406,9 +15334,8 @@ public enum UpdateSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directoryId = output.directoryId } else { @@ -15570,9 +15497,8 @@ public enum UpdateTrustOutputError: Swift.Error, Swift.Equatable { extension UpdateTrustOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrustOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.trustId = output.trustId @@ -15685,9 +15611,8 @@ extension DirectoryClientTypes { extension UserDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserDoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -15703,7 +15628,7 @@ extension UserDoesNotExistException { } /// The user provided a username that does not exist in your directory. -public struct UserDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15827,9 +15752,8 @@ public enum VerifyTrustOutputError: Swift.Error, Swift.Equatable { extension VerifyTrustOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VerifyTrustOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustId = output.trustId } else { diff --git a/Sources/Services/AWSDocDB/DocDBClient.swift b/Sources/Services/AWSDocDB/DocDBClient.swift index de64c8a508b..7680ed70538 100644 --- a/Sources/Services/AWSDocDB/DocDBClient.swift +++ b/Sources/Services/AWSDocDB/DocDBClient.swift @@ -204,6 +204,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addSourceIdentifierToSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applyPendingMaintenanceAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +580,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +600,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +616,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +636,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +688,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +724,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +744,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +760,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +780,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -779,7 +796,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -799,6 +816,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +832,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +852,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +868,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +888,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +904,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +924,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -919,7 +940,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -939,6 +960,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +976,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +996,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterSnapshotAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1012,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1032,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1048,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1068,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1084,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1104,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBEngineVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1120,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1114,6 +1140,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1129,7 +1156,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1149,6 +1176,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBSubnetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1164,7 +1192,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1184,6 +1212,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEngineDefaultClusterParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1199,7 +1228,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1219,6 +1248,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventCategories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1234,7 +1264,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1254,6 +1284,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1269,7 +1300,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1289,6 +1320,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1336,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1356,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGlobalClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1339,7 +1372,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1359,6 +1392,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrderableDBInstanceOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1374,7 +1408,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1394,6 +1428,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePendingMaintenanceActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1409,7 +1444,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1429,6 +1464,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "failoverDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1444,7 +1480,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1464,6 +1500,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1479,7 +1516,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1499,6 +1536,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1514,7 +1552,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1534,6 +1572,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1549,7 +1588,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1569,6 +1608,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBClusterSnapshotAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1584,7 +1624,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1604,6 +1644,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1619,7 +1660,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1639,6 +1680,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1654,7 +1696,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1674,6 +1716,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1689,7 +1732,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1709,6 +1752,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1724,7 +1768,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1744,6 +1788,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1759,7 +1804,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1779,6 +1824,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeFromGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1794,7 +1840,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1814,6 +1860,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeSourceIdentifierFromSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1829,7 +1876,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1849,6 +1896,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1864,7 +1912,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1884,6 +1932,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1899,7 +1948,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1919,6 +1968,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBClusterFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1934,7 +1984,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1954,6 +2004,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBClusterToPointInTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1969,7 +2020,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1989,6 +2040,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2004,7 +2056,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2024,6 +2076,7 @@ extension DocDBClient: DocDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2039,7 +2092,7 @@ extension DocDBClient: DocDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDocDB/models/Models.swift b/Sources/Services/AWSDocDB/models/Models.swift index f32deec2946..3817d5c334e 100644 --- a/Sources/Services/AWSDocDB/models/Models.swift +++ b/Sources/Services/AWSDocDB/models/Models.swift @@ -94,9 +94,8 @@ public enum AddSourceIdentifierToSubscriptionOutputError: Swift.Error, Swift.Equ extension AddSourceIdentifierToSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddSourceIdentifierToSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -390,9 +389,8 @@ public enum ApplyPendingMaintenanceActionOutputError: Swift.Error, Swift.Equatab extension ApplyPendingMaintenanceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplyPendingMaintenanceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePendingMaintenanceActions = output.resourcePendingMaintenanceActions } else { @@ -432,7 +430,7 @@ extension ApplyPendingMaintenanceActionOutputResponseBody: Swift.Decodable { extension AuthorizationNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -447,7 +445,7 @@ extension AuthorizationNotFoundFault { } /// The specified CIDR IP or Amazon EC2 security group isn't authorized for the specified security group. Amazon DocumentDB also might not be authorized to perform necessary actions on your behalf using IAM. -public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -603,7 +601,7 @@ extension DocDBClientTypes { extension CertificateNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -618,7 +616,7 @@ extension CertificateNotFoundFault { } /// CertificateIdentifier doesn't refer to an existing certificate. -public struct CertificateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -901,9 +899,8 @@ public enum CopyDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatable extension CopyDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroup = output.dbClusterParameterGroup } else { @@ -1127,9 +1124,8 @@ public enum CopyDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CopyDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -1613,9 +1609,8 @@ public enum CreateDBClusterOutputError: Swift.Error, Swift.Equatable { extension CreateDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -1791,9 +1786,8 @@ public enum CreateDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatab extension CreateDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroup = output.dbClusterParameterGroup } else { @@ -1972,9 +1966,8 @@ public enum CreateDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -2269,9 +2262,8 @@ public enum CreateDBInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -2474,9 +2466,8 @@ public enum CreateDBSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDBSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroup = output.dbSubnetGroup } else { @@ -2751,9 +2742,8 @@ public enum CreateEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension CreateEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -2933,9 +2923,8 @@ public enum CreateGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension CreateGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -3476,7 +3465,7 @@ extension DocDBClientTypes { extension DBClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3491,7 +3480,7 @@ extension DBClusterAlreadyExistsFault { } /// You already have a cluster with the given identifier. -public struct DBClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3592,7 +3581,7 @@ extension DocDBClientTypes { extension DBClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3607,7 +3596,7 @@ extension DBClusterNotFoundFault { } /// DBClusterIdentifier doesn't refer to an existing cluster. -public struct DBClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3708,7 +3697,7 @@ extension DocDBClientTypes { extension DBClusterParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3723,7 +3712,7 @@ extension DBClusterParameterGroupNotFoundFault { } /// DBClusterParameterGroupName doesn't refer to an existing cluster parameter group. -public struct DBClusterParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3759,7 +3748,7 @@ extension DBClusterParameterGroupNotFoundFaultBody: Swift.Decodable { extension DBClusterQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3774,7 +3763,7 @@ extension DBClusterQuotaExceededFault { } /// The cluster can't be created because you have reached the maximum allowed quota of clusters. -public struct DBClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4082,7 +4071,7 @@ extension DocDBClientTypes { extension DBClusterSnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4097,7 +4086,7 @@ extension DBClusterSnapshotAlreadyExistsFault { } /// You already have a cluster snapshot with the given identifier. -public struct DBClusterSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4275,7 +4264,7 @@ extension DocDBClientTypes { extension DBClusterSnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4290,7 +4279,7 @@ extension DBClusterSnapshotNotFoundFault { } /// DBClusterSnapshotIdentifier doesn't refer to an existing cluster snapshot. -public struct DBClusterSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4856,7 +4845,7 @@ extension DocDBClientTypes { extension DBInstanceAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4871,7 +4860,7 @@ extension DBInstanceAlreadyExistsFault { } /// You already have a instance with the given identifier. -public struct DBInstanceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4907,7 +4896,7 @@ extension DBInstanceAlreadyExistsFaultBody: Swift.Decodable { extension DBInstanceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4922,7 +4911,7 @@ extension DBInstanceNotFoundFault { } /// DBInstanceIdentifier doesn't refer to an existing instance. -public struct DBInstanceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5023,7 +5012,7 @@ extension DocDBClientTypes { extension DBParameterGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5038,7 +5027,7 @@ extension DBParameterGroupAlreadyExistsFault { } /// A parameter group with the same name already exists. -public struct DBParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5074,7 +5063,7 @@ extension DBParameterGroupAlreadyExistsFaultBody: Swift.Decodable { extension DBParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5089,7 +5078,7 @@ extension DBParameterGroupNotFoundFault { } /// DBParameterGroupName doesn't refer to an existing parameter group. -public struct DBParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5125,7 +5114,7 @@ extension DBParameterGroupNotFoundFaultBody: Swift.Decodable { extension DBParameterGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5140,7 +5129,7 @@ extension DBParameterGroupQuotaExceededFault { } /// This request would cause you to exceed the allowed number of parameter groups. -public struct DBParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5176,7 +5165,7 @@ extension DBParameterGroupQuotaExceededFaultBody: Swift.Decodable { extension DBSecurityGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5191,7 +5180,7 @@ extension DBSecurityGroupNotFoundFault { } /// DBSecurityGroupName doesn't refer to an existing security group. -public struct DBSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5227,7 +5216,7 @@ extension DBSecurityGroupNotFoundFaultBody: Swift.Decodable { extension DBSnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5242,7 +5231,7 @@ extension DBSnapshotAlreadyExistsFault { } /// DBSnapshotIdentifier is already being used by an existing snapshot. -public struct DBSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5278,7 +5267,7 @@ extension DBSnapshotAlreadyExistsFaultBody: Swift.Decodable { extension DBSnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5293,7 +5282,7 @@ extension DBSnapshotNotFoundFault { } /// DBSnapshotIdentifier doesn't refer to an existing snapshot. -public struct DBSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5440,7 +5429,7 @@ extension DocDBClientTypes { extension DBSubnetGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5455,7 +5444,7 @@ extension DBSubnetGroupAlreadyExistsFault { } /// DBSubnetGroupName is already being used by an existing subnet group. -public struct DBSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5491,7 +5480,7 @@ extension DBSubnetGroupAlreadyExistsFaultBody: Swift.Decodable { extension DBSubnetGroupDoesNotCoverEnoughAZs { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5506,7 +5495,7 @@ extension DBSubnetGroupDoesNotCoverEnoughAZs { } /// Subnets in the subnet group should cover at least two Availability Zones unless there is only one Availability Zone. -public struct DBSubnetGroupDoesNotCoverEnoughAZs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupDoesNotCoverEnoughAZs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5542,7 +5531,7 @@ extension DBSubnetGroupDoesNotCoverEnoughAZsBody: Swift.Decodable { extension DBSubnetGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5557,7 +5546,7 @@ extension DBSubnetGroupNotFoundFault { } /// DBSubnetGroupName doesn't refer to an existing subnet group. -public struct DBSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5593,7 +5582,7 @@ extension DBSubnetGroupNotFoundFaultBody: Swift.Decodable { extension DBSubnetGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5608,7 +5597,7 @@ extension DBSubnetGroupQuotaExceededFault { } /// The request would cause you to exceed the allowed number of subnet groups. -public struct DBSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5644,7 +5633,7 @@ extension DBSubnetGroupQuotaExceededFaultBody: Swift.Decodable { extension DBSubnetQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5659,7 +5648,7 @@ extension DBSubnetQuotaExceededFault { } /// The request would cause you to exceed the allowed number of subnets in a subnet group. -public struct DBSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5695,7 +5684,7 @@ extension DBSubnetQuotaExceededFaultBody: Swift.Decodable { extension DBUpgradeDependencyFailureFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5710,7 +5699,7 @@ extension DBUpgradeDependencyFailureFault { } /// The upgrade failed because a resource that the depends on can't be modified. -public struct DBUpgradeDependencyFailureFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBUpgradeDependencyFailureFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5852,9 +5841,8 @@ public enum DeleteDBClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -6050,9 +6038,8 @@ public enum DeleteDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -6170,9 +6157,8 @@ public enum DeleteDBInstanceOutputError: Swift.Error, Swift.Equatable { extension DeleteDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -6364,9 +6350,8 @@ public enum DeleteEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension DeleteEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -6476,9 +6461,8 @@ public enum DeleteGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -6649,9 +6633,8 @@ public enum DescribeCertificatesOutputError: Swift.Error, Swift.Equatable { extension DescribeCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.marker = output.marker @@ -6846,9 +6829,8 @@ public enum DescribeDBClusterParameterGroupsOutputError: Swift.Error, Swift.Equa extension DescribeDBClusterParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroups = output.dbClusterParameterGroups self.marker = output.marker @@ -7056,9 +7038,8 @@ public enum DescribeDBClusterParametersOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.parameters = output.parameters @@ -7194,9 +7175,8 @@ public enum DescribeDBClusterSnapshotAttributesOutputError: Swift.Error, Swift.E extension DescribeDBClusterSnapshotAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterSnapshotAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshotAttributesResult = output.dbClusterSnapshotAttributesResult } else { @@ -7423,9 +7403,8 @@ public enum DescribeDBClusterSnapshotsOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshots = output.dbClusterSnapshots self.marker = output.marker @@ -7623,9 +7602,8 @@ public enum DescribeDBClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeDBClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusters = output.dbClusters self.marker = output.marker @@ -7874,9 +7852,8 @@ public enum DescribeDBEngineVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBEngineVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBEngineVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbEngineVersions = output.dbEngineVersions self.marker = output.marker @@ -8088,9 +8065,8 @@ public enum DescribeDBInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeDBInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstances = output.dbInstances self.marker = output.marker @@ -8284,9 +8260,8 @@ public enum DescribeDBSubnetGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBSubnetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBSubnetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroups = output.dbSubnetGroups self.marker = output.marker @@ -8479,9 +8454,8 @@ public enum DescribeEngineDefaultClusterParametersOutputError: Swift.Error, Swif extension DescribeEngineDefaultClusterParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEngineDefaultClusterParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineDefaults = output.engineDefaults } else { @@ -8623,9 +8597,8 @@ public enum DescribeEventCategoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeEventCategoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventCategoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventCategoriesMapList = output.eventCategoriesMapList } else { @@ -8809,9 +8782,8 @@ public enum DescribeEventSubscriptionsOutputError: Swift.Error, Swift.Equatable extension DescribeEventSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscriptionsList = output.eventSubscriptionsList self.marker = output.marker @@ -9096,9 +9068,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.marker = output.marker @@ -9291,9 +9262,8 @@ public enum DescribeGlobalClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeGlobalClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGlobalClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalClusters = output.globalClusters self.marker = output.marker @@ -9529,9 +9499,8 @@ public enum DescribeOrderableDBInstanceOptionsOutputError: Swift.Error, Swift.Eq extension DescribeOrderableDBInstanceOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrderableDBInstanceOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.orderableDBInstanceOptions = output.orderableDBInstanceOptions @@ -9729,9 +9698,8 @@ public enum DescribePendingMaintenanceActionsOutputError: Swift.Error, Swift.Equ extension DescribePendingMaintenanceActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePendingMaintenanceActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.pendingMaintenanceActions = output.pendingMaintenanceActions @@ -10294,7 +10262,7 @@ extension DocDBClientTypes { extension EventSubscriptionQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10309,7 +10277,7 @@ extension EventSubscriptionQuotaExceededFault { } /// You have reached the maximum number of event subscriptions. -public struct EventSubscriptionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventSubscriptionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10429,9 +10397,8 @@ public enum FailoverDBClusterOutputError: Swift.Error, Swift.Equatable { extension FailoverDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailoverDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -10695,7 +10662,7 @@ extension DocDBClientTypes { extension GlobalClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10710,7 +10677,7 @@ extension GlobalClusterAlreadyExistsFault { } /// The GlobalClusterIdentifier already exists. Choose a new global cluster identifier (unique name) to create a new global cluster. -public struct GlobalClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10827,7 +10794,7 @@ extension DocDBClientTypes { extension GlobalClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10842,7 +10809,7 @@ extension GlobalClusterNotFoundFault { } /// The GlobalClusterIdentifier doesn't refer to an existing global cluster. -public struct GlobalClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10878,7 +10845,7 @@ extension GlobalClusterNotFoundFaultBody: Swift.Decodable { extension GlobalClusterQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10893,7 +10860,7 @@ extension GlobalClusterQuotaExceededFault { } /// The number of global clusters for this account is already at the maximum allowed. -public struct GlobalClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10929,7 +10896,7 @@ extension GlobalClusterQuotaExceededFaultBody: Swift.Decodable { extension InstanceQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10944,7 +10911,7 @@ extension InstanceQuotaExceededFault { } /// The request would cause you to exceed the allowed number of instances. -public struct InstanceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10980,7 +10947,7 @@ extension InstanceQuotaExceededFaultBody: Swift.Decodable { extension InsufficientDBClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10995,7 +10962,7 @@ extension InsufficientDBClusterCapacityFault { } /// The cluster doesn't have enough capacity for the current operation. -public struct InsufficientDBClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientDBClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11031,7 +10998,7 @@ extension InsufficientDBClusterCapacityFaultBody: Swift.Decodable { extension InsufficientDBInstanceCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11046,7 +11013,7 @@ extension InsufficientDBInstanceCapacityFault { } /// The specified instance class isn't available in the specified Availability Zone. -public struct InsufficientDBInstanceCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientDBInstanceCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11082,7 +11049,7 @@ extension InsufficientDBInstanceCapacityFaultBody: Swift.Decodable { extension InsufficientStorageClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11097,7 +11064,7 @@ extension InsufficientStorageClusterCapacityFault { } /// There is not enough storage available for the current action. You might be able to resolve this error by updating your subnet group to use different Availability Zones that have more storage available. -public struct InsufficientStorageClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientStorageClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11133,7 +11100,7 @@ extension InsufficientStorageClusterCapacityFaultBody: Swift.Decodable { extension InvalidDBClusterSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11148,7 +11115,7 @@ extension InvalidDBClusterSnapshotStateFault { } /// The provided value isn't a valid cluster snapshot state. -public struct InvalidDBClusterSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11184,7 +11151,7 @@ extension InvalidDBClusterSnapshotStateFaultBody: Swift.Decodable { extension InvalidDBClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11199,7 +11166,7 @@ extension InvalidDBClusterStateFault { } /// The cluster isn't in a valid state. -public struct InvalidDBClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11235,7 +11202,7 @@ extension InvalidDBClusterStateFaultBody: Swift.Decodable { extension InvalidDBInstanceStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11250,7 +11217,7 @@ extension InvalidDBInstanceStateFault { } /// The specified instance isn't in the available state. -public struct InvalidDBInstanceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBInstanceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11286,7 +11253,7 @@ extension InvalidDBInstanceStateFaultBody: Swift.Decodable { extension InvalidDBParameterGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11301,7 +11268,7 @@ extension InvalidDBParameterGroupStateFault { } /// The parameter group is in use, or it is in a state that is not valid. If you are trying to delete the parameter group, you can't delete it when the parameter group is in this state. -public struct InvalidDBParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11337,7 +11304,7 @@ extension InvalidDBParameterGroupStateFaultBody: Swift.Decodable { extension InvalidDBSecurityGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11352,7 +11319,7 @@ extension InvalidDBSecurityGroupStateFault { } /// The state of the security group doesn't allow deletion. -public struct InvalidDBSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11388,7 +11355,7 @@ extension InvalidDBSecurityGroupStateFaultBody: Swift.Decodable { extension InvalidDBSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11403,7 +11370,7 @@ extension InvalidDBSnapshotStateFault { } /// The state of the snapshot doesn't allow deletion. -public struct InvalidDBSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11439,7 +11406,7 @@ extension InvalidDBSnapshotStateFaultBody: Swift.Decodable { extension InvalidDBSubnetGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11454,7 +11421,7 @@ extension InvalidDBSubnetGroupStateFault { } /// The subnet group can't be deleted because it's in use. -public struct InvalidDBSubnetGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSubnetGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11490,7 +11457,7 @@ extension InvalidDBSubnetGroupStateFaultBody: Swift.Decodable { extension InvalidDBSubnetStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11505,7 +11472,7 @@ extension InvalidDBSubnetStateFault { } /// The subnet isn't in the available state. -public struct InvalidDBSubnetStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSubnetStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11541,7 +11508,7 @@ extension InvalidDBSubnetStateFaultBody: Swift.Decodable { extension InvalidEventSubscriptionStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11556,7 +11523,7 @@ extension InvalidEventSubscriptionStateFault { } /// Someone else might be modifying a subscription. Wait a few seconds, and try again. -public struct InvalidEventSubscriptionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventSubscriptionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11592,7 +11559,7 @@ extension InvalidEventSubscriptionStateFaultBody: Swift.Decodable { extension InvalidGlobalClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11607,7 +11574,7 @@ extension InvalidGlobalClusterStateFault { } /// The requested operation can't be performed while the cluster is in this state. -public struct InvalidGlobalClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGlobalClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11643,7 +11610,7 @@ extension InvalidGlobalClusterStateFaultBody: Swift.Decodable { extension InvalidRestoreFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11658,7 +11625,7 @@ extension InvalidRestoreFault { } /// You cannot restore from a virtual private cloud (VPC) backup to a non-VPC DB instance. -public struct InvalidRestoreFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRestoreFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11694,7 +11661,7 @@ extension InvalidRestoreFaultBody: Swift.Decodable { extension InvalidSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11709,7 +11676,7 @@ extension InvalidSubnet { } /// The requested subnet is not valid, or multiple subnets were requested that are not all in a common virtual private cloud (VPC). -public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11745,7 +11712,7 @@ extension InvalidSubnetBody: Swift.Decodable { extension InvalidVPCNetworkStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11760,7 +11727,7 @@ extension InvalidVPCNetworkStateFault { } /// The subnet group doesn't cover all Availability Zones after it is created because of changes that were made. -public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11796,7 +11763,7 @@ extension InvalidVPCNetworkStateFaultBody: Swift.Decodable { extension KMSKeyNotAccessibleFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11811,7 +11778,7 @@ extension KMSKeyNotAccessibleFault { } /// An error occurred when accessing an KMS key. -public struct KMSKeyNotAccessibleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSKeyNotAccessibleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11956,9 +11923,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -12283,9 +12249,8 @@ public enum ModifyDBClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -12433,9 +12398,8 @@ public enum ModifyDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatab extension ModifyDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroupName = output.dbClusterParameterGroupName } else { @@ -12643,9 +12607,8 @@ public enum ModifyDBClusterSnapshotAttributeOutputError: Swift.Error, Swift.Equa extension ModifyDBClusterSnapshotAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterSnapshotAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshotAttributesResult = output.dbClusterSnapshotAttributesResult } else { @@ -12898,9 +12861,8 @@ public enum ModifyDBInstanceOutputError: Swift.Error, Swift.Equatable { extension ModifyDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -13065,9 +13027,8 @@ public enum ModifyDBSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyDBSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroup = output.dbSubnetGroup } else { @@ -13255,9 +13216,8 @@ public enum ModifyEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension ModifyEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -13396,9 +13356,8 @@ public enum ModifyGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -14104,9 +14063,8 @@ public enum RebootDBInstanceOutputError: Swift.Error, Swift.Equatable { extension RebootDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -14230,9 +14188,8 @@ public enum RemoveFromGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension RemoveFromGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveFromGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -14354,9 +14311,8 @@ public enum RemoveSourceIdentifierFromSubscriptionOutputError: Swift.Error, Swif extension RemoveSourceIdentifierFromSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveSourceIdentifierFromSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -14634,9 +14590,8 @@ public enum ResetDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatabl extension ResetDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroupName = output.dbClusterParameterGroupName } else { @@ -14686,7 +14641,7 @@ extension ResetDBClusterParameterGroupOutputResponseBody: Swift.Decodable { extension ResourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14701,7 +14656,7 @@ extension ResourceNotFoundFault { } /// The specified resource ID was not found. -public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15155,9 +15110,8 @@ public enum RestoreDBClusterFromSnapshotOutputError: Swift.Error, Swift.Equatabl extension RestoreDBClusterFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBClusterFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -15526,9 +15480,8 @@ public enum RestoreDBClusterToPointInTimeOutputError: Swift.Error, Swift.Equatab extension RestoreDBClusterToPointInTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBClusterToPointInTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -15568,7 +15521,7 @@ extension RestoreDBClusterToPointInTimeOutputResponseBody: Swift.Decodable { extension SNSInvalidTopicFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15583,7 +15536,7 @@ extension SNSInvalidTopicFault { } /// Amazon SNS has responded that there is a problem with the specified topic. -public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15619,7 +15572,7 @@ extension SNSInvalidTopicFaultBody: Swift.Decodable { extension SNSNoAuthorizationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15634,7 +15587,7 @@ extension SNSNoAuthorizationFault { } /// You do not have permission to publish to the SNS topic Amazon Resource Name (ARN). -public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15670,7 +15623,7 @@ extension SNSNoAuthorizationFaultBody: Swift.Decodable { extension SNSTopicArnNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15685,7 +15638,7 @@ extension SNSTopicArnNotFoundFault { } /// The SNS topic Amazon Resource Name (ARN) does not exist. -public struct SNSTopicArnNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSTopicArnNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15721,7 +15674,7 @@ extension SNSTopicArnNotFoundFaultBody: Swift.Decodable { extension SharedSnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15736,7 +15689,7 @@ extension SharedSnapshotQuotaExceededFault { } /// You have exceeded the maximum number of accounts that you can share a manual DB snapshot with. -public struct SharedSnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SharedSnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15772,7 +15725,7 @@ extension SharedSnapshotQuotaExceededFaultBody: Swift.Decodable { extension SnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15787,7 +15740,7 @@ extension SnapshotQuotaExceededFault { } /// The request would cause you to exceed the allowed number of snapshots. -public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15823,7 +15776,7 @@ extension SnapshotQuotaExceededFaultBody: Swift.Decodable { extension SourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15838,7 +15791,7 @@ extension SourceNotFoundFault { } /// The requested source could not be found. -public struct SourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15989,9 +15942,8 @@ public enum StartDBClusterOutputError: Swift.Error, Swift.Equatable { extension StartDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -16102,9 +16054,8 @@ public enum StopDBClusterOutputError: Swift.Error, Swift.Equatable { extension StopDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -16144,7 +16095,7 @@ extension StopDBClusterOutputResponseBody: Swift.Decodable { extension StorageQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16159,7 +16110,7 @@ extension StorageQuotaExceededFault { } /// The request would cause you to exceed the allowed amount of storage available across all instances. -public struct StorageQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16195,7 +16146,7 @@ extension StorageQuotaExceededFaultBody: Swift.Decodable { extension StorageTypeNotSupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16210,7 +16161,7 @@ extension StorageTypeNotSupportedFault { } /// Storage of the specified StorageType can't be associated with the DB instance. -public struct StorageTypeNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageTypeNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16301,7 +16252,7 @@ extension DocDBClientTypes { extension SubnetAlreadyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16316,7 +16267,7 @@ extension SubnetAlreadyInUse { } /// The subnet is already in use in the Availability Zone. -public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16352,7 +16303,7 @@ extension SubnetAlreadyInUseBody: Swift.Decodable { extension SubscriptionAlreadyExistFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16367,7 +16318,7 @@ extension SubscriptionAlreadyExistFault { } /// The provided subscription name already exists. -public struct SubscriptionAlreadyExistFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionAlreadyExistFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16403,7 +16354,7 @@ extension SubscriptionAlreadyExistFaultBody: Swift.Decodable { extension SubscriptionCategoryNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16418,7 +16369,7 @@ extension SubscriptionCategoryNotFoundFault { } /// The provided category does not exist. -public struct SubscriptionCategoryNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionCategoryNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16454,7 +16405,7 @@ extension SubscriptionCategoryNotFoundFaultBody: Swift.Decodable { extension SubscriptionNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16469,7 +16420,7 @@ extension SubscriptionNotFoundFault { } /// The subscription name does not exist. -public struct SubscriptionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDocDBElastic/DocDBElasticClient.swift b/Sources/Services/AWSDocDBElastic/DocDBElasticClient.swift index 3c276e591e2..ae7d75302ef 100644 --- a/Sources/Services/AWSDocDBElastic/DocDBElasticClient.swift +++ b/Sources/Services/AWSDocDBElastic/DocDBElasticClient.swift @@ -208,6 +208,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -266,7 +268,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -298,7 +301,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -318,6 +321,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -330,7 +334,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -350,6 +354,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -362,7 +367,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -382,6 +387,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusterSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -427,7 +434,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -447,6 +454,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -460,7 +468,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -480,6 +488,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -492,7 +501,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -512,6 +521,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreClusterFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -527,7 +537,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -547,6 +557,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -562,7 +573,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -582,6 +593,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -595,7 +607,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -615,6 +627,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { .withRegion(value: config.region) .withSigningName(value: "docdb-elastic") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCluster") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -638,7 +651,7 @@ extension DocDBElasticClient: DocDBElasticClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDocDBElastic/models/Models.swift b/Sources/Services/AWSDocDBElastic/models/Models.swift index 3bef1174362..1a1f8b6c326 100644 --- a/Sources/Services/AWSDocDBElastic/models/Models.swift +++ b/Sources/Services/AWSDocDBElastic/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// An exception that occurs when there are not sufficient permissions to perform an action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -579,9 +578,8 @@ extension DocDBElasticClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -599,7 +597,7 @@ extension ConflictException { } /// There was an access conflict. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -931,9 +929,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -1092,9 +1089,8 @@ public enum CreateClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -1197,9 +1193,8 @@ public enum DeleteClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -1302,9 +1297,8 @@ public enum DeleteClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -1405,9 +1399,8 @@ public enum GetClusterOutputError: Swift.Error, Swift.Equatable { extension GetClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -1508,9 +1501,8 @@ public enum GetClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension GetClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -1550,9 +1542,8 @@ extension GetClusterSnapshotOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1566,7 +1557,7 @@ extension InternalServerException { } /// There was an internal server error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1687,9 +1678,8 @@ public enum ListClusterSnapshotsOutputError: Swift.Error, Swift.Equatable { extension ListClusterSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClusterSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshots = output.snapshots @@ -1823,9 +1813,8 @@ public enum ListClustersOutputError: Swift.Error, Swift.Equatable { extension ListClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.nextToken = output.nextToken @@ -1942,9 +1931,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1992,9 +1980,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -2012,7 +1999,7 @@ extension ResourceNotFoundException { } /// The specified resource could not be located. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2242,9 +2229,8 @@ public enum RestoreClusterFromSnapshotOutputError: Swift.Error, Swift.Equatable extension RestoreClusterFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreClusterFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -2284,9 +2270,8 @@ extension RestoreClusterFromSnapshotOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2300,7 +2285,7 @@ extension ServiceQuotaExceededException { } /// The service quota for the action was exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2501,9 +2486,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2517,7 +2501,7 @@ extension ThrottlingException { } /// ThrottlingException will be thrown when request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2849,9 +2833,8 @@ public enum UpdateClusterOutputError: Swift.Error, Swift.Equatable { extension UpdateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -2891,9 +2874,8 @@ extension UpdateClusterOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -2911,7 +2893,7 @@ extension ValidationException { } /// A structure defining a validation exception. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDrs/DrsClient.swift b/Sources/Services/AWSDrs/DrsClient.swift index f1ae7b5933b..85ec79652f6 100644 --- a/Sources/Services/AWSDrs/DrsClient.swift +++ b/Sources/Services/AWSDrs/DrsClient.swift @@ -208,6 +208,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExtendedSourceServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLaunchConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLaunchConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecoveryInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSourceServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobLogItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLaunchConfigurationTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecoveryInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecoverySnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -643,7 +656,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -663,6 +676,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationConfigurationTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +692,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +712,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSourceServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +728,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +748,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disconnectRecoveryInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +764,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +784,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disconnectSourceServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +800,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +820,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFailbackReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +872,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +892,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +908,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +928,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initializeService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -920,7 +941,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -940,6 +961,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExtensibleSourceServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -955,7 +977,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -975,6 +997,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStagingAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -988,7 +1011,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1008,6 +1031,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1020,7 +1044,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1041,6 +1065,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retryDataReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1056,7 +1081,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1076,6 +1101,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reverseReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1091,7 +1117,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1111,6 +1137,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFailbackLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1126,7 +1153,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1146,6 +1173,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRecovery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1161,7 +1189,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1181,6 +1209,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1225,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1245,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopFailback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1231,7 +1261,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1251,6 +1281,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1266,7 +1297,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1286,6 +1317,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1301,7 +1333,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1321,6 +1353,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateRecoveryInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1336,7 +1369,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1356,6 +1389,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1369,7 +1403,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1389,6 +1423,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFailbackReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1404,7 +1439,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1424,6 +1459,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1439,7 +1475,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1459,6 +1495,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLaunchConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1474,7 +1511,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1494,6 +1531,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1509,7 +1547,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1529,6 +1567,7 @@ extension DrsClient: DrsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "drs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReplicationConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1544,7 +1583,7 @@ extension DrsClient: DrsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDrs/models/Models.swift b/Sources/Services/AWSDrs/models/Models.swift index 799694e0f8f..0c509005823 100644 --- a/Sources/Services/AWSDrs/models/Models.swift +++ b/Sources/Services/AWSDrs/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -145,9 +144,8 @@ extension DrsClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -167,7 +165,7 @@ extension ConflictException { } /// The request could not be completed due to a conflict with the current state of the target resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -446,9 +444,8 @@ public enum CreateExtendedSourceServerOutputError: Swift.Error, Swift.Equatable extension CreateExtendedSourceServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExtendedSourceServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sourceServer = output.sourceServer } else { @@ -643,9 +640,8 @@ public enum CreateLaunchConfigurationTemplateOutputError: Swift.Error, Swift.Equ extension CreateLaunchConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLaunchConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchConfigurationTemplate = output.launchConfigurationTemplate } else { @@ -1001,9 +997,8 @@ extension CreateReplicationConfigurationTemplateOutputResponse: Swift.CustomDebu extension CreateReplicationConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associateDefaultSecurityGroup = output.associateDefaultSecurityGroup @@ -2342,9 +2337,8 @@ public enum DescribeJobLogItemsOutputError: Swift.Error, Swift.Equatable { extension DescribeJobLogItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobLogItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -2501,9 +2495,8 @@ public enum DescribeJobsOutputError: Swift.Error, Swift.Equatable { extension DescribeJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -2741,9 +2734,8 @@ public enum DescribeLaunchConfigurationTemplatesOutputError: Swift.Error, Swift. extension DescribeLaunchConfigurationTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLaunchConfigurationTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -2900,9 +2892,8 @@ public enum DescribeRecoveryInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeRecoveryInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecoveryInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -3155,9 +3146,8 @@ public enum DescribeRecoverySnapshotsOutputError: Swift.Error, Swift.Equatable { extension DescribeRecoverySnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecoverySnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -3373,9 +3363,8 @@ public enum DescribeReplicationConfigurationTemplatesOutputError: Swift.Error, S extension DescribeReplicationConfigurationTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationConfigurationTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -3532,9 +3521,8 @@ public enum DescribeSourceServersOutputError: Swift.Error, Swift.Equatable { extension DescribeSourceServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSourceServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -3844,9 +3832,8 @@ extension DisconnectSourceServerOutputResponse: Swift.CustomDebugStringConvertib extension DisconnectSourceServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisconnectSourceServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.dataReplicationInfo = output.dataReplicationInfo @@ -4375,9 +4362,8 @@ public enum GetFailbackReplicationConfigurationOutputError: Swift.Error, Swift.E extension GetFailbackReplicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFailbackReplicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bandwidthThrottling = output.bandwidthThrottling self.name = output.name @@ -4523,9 +4509,8 @@ public enum GetLaunchConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetLaunchConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLaunchConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.copyPrivateIp = output.copyPrivateIp self.copyTags = output.copyTags @@ -4717,9 +4702,8 @@ extension GetReplicationConfigurationOutputResponse: Swift.CustomDebugStringConv extension GetReplicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReplicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associateDefaultSecurityGroup = output.associateDefaultSecurityGroup self.autoReplicateNewDisks = output.autoReplicateNewDisks @@ -5126,9 +5110,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5142,7 +5125,7 @@ extension InternalServerException { } /// The request processing has failed because of an unknown error, exception or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6182,9 +6165,8 @@ public enum ListExtensibleSourceServersOutputError: Swift.Error, Swift.Equatable extension ListExtensibleSourceServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExtensibleSourceServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6320,9 +6302,8 @@ public enum ListStagingAccountsOutputError: Swift.Error, Swift.Equatable { extension ListStagingAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStagingAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.nextToken = output.nextToken @@ -6446,9 +6427,8 @@ extension ListTagsForResourceOutputResponse: Swift.CustomDebugStringConvertible extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8440,9 +8420,8 @@ extension DrsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -8462,7 +8441,7 @@ extension ResourceNotFoundException { } /// The resource for this operation was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8605,9 +8584,8 @@ extension RetryDataReplicationOutputResponse: Swift.CustomDebugStringConvertible extension RetryDataReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryDataReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.dataReplicationInfo = output.dataReplicationInfo @@ -8847,9 +8825,8 @@ public enum ReverseReplicationOutputError: Swift.Error, Swift.Equatable { extension ReverseReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReverseReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reversedDirectionSourceServerArn = output.reversedDirectionSourceServerArn } else { @@ -8888,9 +8865,8 @@ extension ReverseReplicationOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -8914,7 +8890,7 @@ extension ServiceQuotaExceededException { } /// The request could not be completed because its exceeded the service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9614,9 +9590,8 @@ public enum StartFailbackLaunchOutputError: Swift.Error, Swift.Equatable { extension StartFailbackLaunchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFailbackLaunchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -9786,9 +9761,8 @@ public enum StartRecoveryOutputError: Swift.Error, Swift.Equatable { extension StartRecoveryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRecoveryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -9951,9 +9925,8 @@ public enum StartReplicationOutputError: Swift.Error, Swift.Equatable { extension StartReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sourceServer = output.sourceServer } else { @@ -10156,9 +10129,8 @@ public enum StopReplicationOutputError: Swift.Error, Swift.Equatable { extension StopReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sourceServer = output.sourceServer } else { @@ -10432,9 +10404,8 @@ public enum TerminateRecoveryInstancesOutputError: Swift.Error, Swift.Equatable extension TerminateRecoveryInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateRecoveryInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -10478,9 +10449,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -10498,7 +10468,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10555,9 +10525,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension UninitializedAccountException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UninitializedAccountExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -10573,7 +10542,7 @@ extension UninitializedAccountException { } /// The account performing the request has not been initialized. -public struct UninitializedAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UninitializedAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10990,9 +10959,8 @@ public enum UpdateLaunchConfigurationOutputError: Swift.Error, Swift.Equatable { extension UpdateLaunchConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLaunchConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.copyPrivateIp = output.copyPrivateIp self.copyTags = output.copyTags @@ -11241,9 +11209,8 @@ public enum UpdateLaunchConfigurationTemplateOutputError: Swift.Error, Swift.Equ extension UpdateLaunchConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLaunchConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchConfigurationTemplate = output.launchConfigurationTemplate } else { @@ -11614,9 +11581,8 @@ extension UpdateReplicationConfigurationOutputResponse: Swift.CustomDebugStringC extension UpdateReplicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReplicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associateDefaultSecurityGroup = output.associateDefaultSecurityGroup self.autoReplicateNewDisks = output.autoReplicateNewDisks @@ -12157,9 +12123,8 @@ extension UpdateReplicationConfigurationTemplateOutputResponse: Swift.CustomDebu extension UpdateReplicationConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReplicationConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associateDefaultSecurityGroup = output.associateDefaultSecurityGroup @@ -12395,9 +12360,8 @@ extension UpdateReplicationConfigurationTemplateOutputResponseBody: Swift.Decoda extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.fieldList = output.fieldList @@ -12417,7 +12381,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by the AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSDynamoDB/DynamoDBClient.swift b/Sources/Services/AWSDynamoDB/DynamoDBClient.swift index 55688071131..899a6b26446 100644 --- a/Sources/Services/AWSDynamoDB/DynamoDBClient.swift +++ b/Sources/Services/AWSDynamoDB/DynamoDBClient.swift @@ -208,6 +208,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchExecuteStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchWriteItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -310,7 +313,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -338,6 +341,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -354,7 +358,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -399,6 +403,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGlobalTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -415,7 +420,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -435,6 +440,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -451,7 +457,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +477,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +494,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +514,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +531,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -543,6 +551,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -559,7 +568,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -579,6 +588,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -595,7 +605,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -615,6 +625,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContinuousBackups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -631,7 +642,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -651,6 +662,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContributorInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -667,7 +679,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -687,6 +699,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -703,7 +716,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -723,6 +736,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -739,7 +753,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -759,6 +773,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGlobalTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -775,7 +790,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -795,6 +810,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGlobalTableSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -811,7 +827,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -831,6 +847,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -847,7 +864,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -867,6 +884,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeKinesisStreamingDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -883,7 +901,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -925,6 +943,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -941,7 +960,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -961,6 +980,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -977,7 +997,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -997,6 +1017,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTableReplicaAutoScaling") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1013,7 +1034,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1033,6 +1054,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTimeToLive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1049,7 +1071,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1069,6 +1091,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableKinesisStreamingDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1085,7 +1108,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1105,6 +1128,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableKinesisStreamingDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1121,7 +1145,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1141,6 +1165,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1182,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1177,6 +1202,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeTransaction") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1201,7 +1227,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1221,6 +1247,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportTableToPointInTime") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1245,7 +1272,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1265,6 +1292,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1281,7 +1309,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1301,6 +1329,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importTable") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1325,7 +1354,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1345,6 +1374,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBackups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1361,7 +1391,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1381,6 +1411,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContributorInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1397,7 +1428,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1417,6 +1448,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1433,7 +1465,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1453,6 +1485,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGlobalTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1469,7 +1502,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1489,6 +1522,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1505,7 +1539,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1525,6 +1559,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1541,7 +1576,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1561,6 +1596,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsOfResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1577,7 +1613,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1597,6 +1633,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1613,7 +1650,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1633,6 +1670,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "query") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1649,7 +1687,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1681,6 +1719,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreTableFromBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1697,7 +1736,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1742,6 +1781,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreTableToPointInTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1758,7 +1798,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1778,6 +1818,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "scan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1794,7 +1835,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1814,6 +1855,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1830,7 +1872,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1858,6 +1900,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "transactGetItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1874,7 +1917,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1917,6 +1960,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "transactWriteItems") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1941,7 +1985,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1961,6 +2005,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1977,7 +2022,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1997,6 +2042,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContinuousBackups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2013,7 +2059,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2033,6 +2079,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContributorInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2049,7 +2096,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2075,6 +2122,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGlobalTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2091,7 +2139,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2111,6 +2159,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGlobalTableSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2127,7 +2176,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2147,6 +2196,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2163,7 +2213,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2192,6 +2242,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2208,7 +2259,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2228,6 +2279,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTableReplicaAutoScaling") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2244,7 +2296,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2264,6 +2316,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTimeToLive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2280,7 +2333,7 @@ extension DynamoDBClient: DynamoDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDynamoDB/models/Models.swift b/Sources/Services/AWSDynamoDB/models/Models.swift index bc9a06791bb..7d13d0ba3ac 100644 --- a/Sources/Services/AWSDynamoDB/models/Models.swift +++ b/Sources/Services/AWSDynamoDB/models/Models.swift @@ -949,9 +949,8 @@ extension DynamoDBClientTypes { extension BackupInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BackupInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -965,7 +964,7 @@ extension BackupInUseException { } /// There is another ongoing conflicting backup control plane operation on the table. The backup is either being created, deleted or restored to a table. -public struct BackupInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BackupInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1001,9 +1000,8 @@ extension BackupInUseExceptionBody: Swift.Decodable { extension BackupNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BackupNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1017,7 +1015,7 @@ extension BackupNotFoundException { } /// Backup not found for the given BackupARN. -public struct BackupNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BackupNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1394,9 +1392,8 @@ public enum BatchExecuteStatementOutputError: Swift.Error, Swift.Equatable { extension BatchExecuteStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchExecuteStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.responses = output.responses @@ -1606,9 +1603,8 @@ public enum BatchGetItemOutputError: Swift.Error, Swift.Equatable { extension BatchGetItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.responses = output.responses @@ -2107,9 +2103,8 @@ public enum BatchWriteItemOutputError: Swift.Error, Swift.Equatable { extension BatchWriteItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchWriteItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.itemCollectionMetrics = output.itemCollectionMetrics @@ -2718,9 +2713,8 @@ extension DynamoDBClientTypes { extension ConditionalCheckFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConditionalCheckFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2734,7 +2728,7 @@ extension ConditionalCheckFailedException { } /// A condition specified in the operation could not be evaluated. -public struct ConditionalCheckFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConditionalCheckFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3000,9 +2994,8 @@ extension DynamoDBClientTypes { extension ContinuousBackupsUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ContinuousBackupsUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3016,7 +3009,7 @@ extension ContinuousBackupsUnavailableException { } /// Backups have not yet been enabled for this table. -public struct ContinuousBackupsUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ContinuousBackupsUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3275,9 +3268,8 @@ public enum CreateBackupOutputError: Swift.Error, Swift.Equatable { extension CreateBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupDetails = output.backupDetails } else { @@ -3499,9 +3491,8 @@ public enum CreateGlobalTableOutputError: Swift.Error, Swift.Equatable { extension CreateGlobalTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGlobalTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalTableDescription = output.globalTableDescription } else { @@ -4008,9 +3999,8 @@ public enum CreateTableOutputError: Swift.Error, Swift.Equatable { extension CreateTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableDescription = output.tableDescription } else { @@ -4308,9 +4298,8 @@ public enum DeleteBackupOutputError: Swift.Error, Swift.Equatable { extension DeleteBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupDescription = output.backupDescription } else { @@ -4673,9 +4662,8 @@ public enum DeleteItemOutputError: Swift.Error, Swift.Equatable { extension DeleteItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.consumedCapacity = output.consumedCapacity @@ -4947,9 +4935,8 @@ public enum DeleteTableOutputError: Swift.Error, Swift.Equatable { extension DeleteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableDescription = output.tableDescription } else { @@ -5063,9 +5050,8 @@ public enum DescribeBackupOutputError: Swift.Error, Swift.Equatable { extension DescribeBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupDescription = output.backupDescription } else { @@ -5178,9 +5164,8 @@ public enum DescribeContinuousBackupsOutputError: Swift.Error, Swift.Equatable { extension DescribeContinuousBackupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContinuousBackupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.continuousBackupsDescription = output.continuousBackupsDescription } else { @@ -5303,9 +5288,8 @@ public enum DescribeContributorInsightsOutputError: Swift.Error, Swift.Equatable extension DescribeContributorInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContributorInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contributorInsightsRuleList = output.contributorInsightsRuleList self.contributorInsightsStatus = output.contributorInsightsStatus @@ -5459,9 +5443,8 @@ public enum DescribeEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints } else { @@ -5584,9 +5567,8 @@ public enum DescribeExportOutputError: Swift.Error, Swift.Equatable { extension DescribeExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportDescription = output.exportDescription } else { @@ -5699,9 +5681,8 @@ public enum DescribeGlobalTableOutputError: Swift.Error, Swift.Equatable { extension DescribeGlobalTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGlobalTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalTableDescription = output.globalTableDescription } else { @@ -5814,9 +5795,8 @@ public enum DescribeGlobalTableSettingsOutputError: Swift.Error, Swift.Equatable extension DescribeGlobalTableSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGlobalTableSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalTableName = output.globalTableName self.replicaSettings = output.replicaSettings @@ -5944,9 +5924,8 @@ public enum DescribeImportOutputError: Swift.Error, Swift.Equatable { extension DescribeImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importTableDescription = output.importTableDescription } else { @@ -6060,9 +6039,8 @@ public enum DescribeKinesisStreamingDestinationOutputError: Swift.Error, Swift.E extension DescribeKinesisStreamingDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeKinesisStreamingDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.kinesisDataStreamDestinations = output.kinesisDataStreamDestinations self.tableName = output.tableName @@ -6173,9 +6151,8 @@ public enum DescribeLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountMaxReadCapacityUnits = output.accountMaxReadCapacityUnits self.accountMaxWriteCapacityUnits = output.accountMaxWriteCapacityUnits @@ -6334,9 +6311,8 @@ public enum DescribeTableOutputError: Swift.Error, Swift.Equatable { extension DescribeTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.table = output.table } else { @@ -6448,9 +6424,8 @@ public enum DescribeTableReplicaAutoScalingOutputError: Swift.Error, Swift.Equat extension DescribeTableReplicaAutoScalingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTableReplicaAutoScalingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableAutoScalingDescription = output.tableAutoScalingDescription } else { @@ -6563,9 +6538,8 @@ public enum DescribeTimeToLiveOutputError: Swift.Error, Swift.Equatable { extension DescribeTimeToLiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTimeToLiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.timeToLiveDescription = output.timeToLiveDescription } else { @@ -6736,9 +6710,8 @@ public enum DisableKinesisStreamingDestinationOutputError: Swift.Error, Swift.Eq extension DisableKinesisStreamingDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableKinesisStreamingDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationStatus = output.destinationStatus self.streamArn = output.streamArn @@ -6797,9 +6770,8 @@ extension DisableKinesisStreamingDestinationOutputResponseBody: Swift.Decodable extension DuplicateItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6813,7 +6785,7 @@ extension DuplicateItemException { } /// There was an attempt to insert an item with the same primary key as an item that already exists in the DynamoDB table. -public struct DuplicateItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6940,9 +6912,8 @@ public enum EnableKinesisStreamingDestinationOutputError: Swift.Error, Swift.Equ extension EnableKinesisStreamingDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableKinesisStreamingDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationStatus = output.destinationStatus self.streamArn = output.streamArn @@ -7210,9 +7181,8 @@ public enum ExecuteStatementOutputError: Swift.Error, Swift.Equatable { extension ExecuteStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.items = output.items @@ -7426,9 +7396,8 @@ public enum ExecuteTransactionOutputError: Swift.Error, Swift.Equatable { extension ExecuteTransactionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteTransactionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.responses = output.responses @@ -7616,9 +7585,8 @@ extension DynamoDBClientTypes { extension ExportConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7632,7 +7600,7 @@ extension ExportConflictException { } /// There was a conflict when writing to the specified S3 bucket. -public struct ExportConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExportConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7919,9 +7887,8 @@ extension DynamoDBClientTypes { extension ExportNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7935,7 +7902,7 @@ extension ExportNotFoundException { } /// The specified export was not found. -public struct ExportNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExportNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8232,9 +8199,8 @@ public enum ExportTableToPointInTimeOutputError: Swift.Error, Swift.Equatable { extension ExportTableToPointInTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportTableToPointInTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportDescription = output.exportDescription } else { @@ -8627,9 +8593,8 @@ public enum GetItemOutputError: Swift.Error, Swift.Equatable { extension GetItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.item = output.item @@ -9174,9 +9139,8 @@ extension DynamoDBClientTypes { extension GlobalTableAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GlobalTableAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9190,7 +9154,7 @@ extension GlobalTableAlreadyExistsException { } /// The specified global table already exists. -public struct GlobalTableAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalTableAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9377,9 +9341,8 @@ extension DynamoDBClientTypes { extension GlobalTableNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GlobalTableNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9393,7 +9356,7 @@ extension GlobalTableNotFoundException { } /// The specified global table does not exist. -public struct GlobalTableNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalTableNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9467,9 +9430,8 @@ extension DynamoDBClientTypes { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9483,7 +9445,7 @@ extension IdempotentParameterMismatchException { } /// DynamoDB rejected the request because you retried a request with a different payload but with an idempotent token that was already used. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9519,9 +9481,8 @@ extension IdempotentParameterMismatchExceptionBody: Swift.Decodable { extension ImportConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9535,7 +9496,7 @@ extension ImportConflictException { } /// There was a conflict when importing from the specified S3 source. This can occur when the current import conflicts with a previous import request that had the same client token. -public struct ImportConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImportConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9571,9 +9532,8 @@ extension ImportConflictExceptionBody: Swift.Decodable { extension ImportNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9587,7 +9547,7 @@ extension ImportNotFoundException { } /// The specified import was not found. -public struct ImportNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImportNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10120,9 +10080,8 @@ public enum ImportTableOutputError: Swift.Error, Swift.Equatable { extension ImportTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importTableDescription = output.importTableDescription } else { @@ -10162,9 +10121,8 @@ extension ImportTableOutputResponseBody: Swift.Decodable { extension IndexNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IndexNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10178,7 +10136,7 @@ extension IndexNotFoundException { } /// The operation tried to access a nonexistent index. -public struct IndexNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IndexNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10357,9 +10315,8 @@ extension DynamoDBClientTypes { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10373,7 +10330,7 @@ extension InternalServerError { } /// An error occurred on the server side. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10410,9 +10367,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidEndpointException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEndpointExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10425,7 +10381,7 @@ extension InvalidEndpointException { } } -public struct InvalidEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10461,9 +10417,8 @@ extension InvalidEndpointExceptionBody: Swift.Decodable { extension InvalidExportTimeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidExportTimeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10477,7 +10432,7 @@ extension InvalidExportTimeException { } /// The specified ExportTime is outside of the point in time recovery window. -public struct InvalidExportTimeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidExportTimeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10513,9 +10468,8 @@ extension InvalidExportTimeExceptionBody: Swift.Decodable { extension InvalidRestoreTimeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRestoreTimeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10529,7 +10483,7 @@ extension InvalidRestoreTimeException { } /// An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime and LatestRestorableDateTime. -public struct InvalidRestoreTimeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRestoreTimeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10634,9 +10588,8 @@ extension DynamoDBClientTypes { extension ItemCollectionSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ItemCollectionSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10650,7 +10603,7 @@ extension ItemCollectionSizeLimitExceededException { } /// An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes. -public struct ItemCollectionSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ItemCollectionSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11023,9 +10976,8 @@ extension DynamoDBClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11039,7 +10991,7 @@ extension LimitExceededException { } /// There is no limit to the number of daily on-demand backups that can be taken. For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, and RestoreTableToPointInTime. When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations. When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account. There is a soft account quota of 2,500 tables. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11213,9 +11165,8 @@ public enum ListBackupsOutputError: Swift.Error, Swift.Equatable { extension ListBackupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBackupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupSummaries = output.backupSummaries self.lastEvaluatedBackupArn = output.lastEvaluatedBackupArn @@ -11368,9 +11319,8 @@ public enum ListContributorInsightsOutputError: Swift.Error, Swift.Equatable { extension ListContributorInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContributorInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contributorInsightsSummaries = output.contributorInsightsSummaries self.nextToken = output.nextToken @@ -11523,9 +11473,8 @@ public enum ListExportsOutputError: Swift.Error, Swift.Equatable { extension ListExportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportSummaries = output.exportSummaries self.nextToken = output.nextToken @@ -11678,9 +11627,8 @@ public enum ListGlobalTablesOutputError: Swift.Error, Swift.Equatable { extension ListGlobalTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGlobalTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalTables = output.globalTables self.lastEvaluatedGlobalTableName = output.lastEvaluatedGlobalTableName @@ -11831,9 +11779,8 @@ public enum ListImportsOutputError: Swift.Error, Swift.Equatable { extension ListImportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importSummaryList = output.importSummaryList self.nextToken = output.nextToken @@ -11975,9 +11922,8 @@ public enum ListTablesOutputError: Swift.Error, Swift.Equatable { extension ListTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastEvaluatedTableName = output.lastEvaluatedTableName self.tableNames = output.tableNames @@ -12122,9 +12068,8 @@ public enum ListTagsOfResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsOfResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOfResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -12622,9 +12567,8 @@ extension DynamoDBClientTypes { extension PointInTimeRecoveryUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PointInTimeRecoveryUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12638,7 +12582,7 @@ extension PointInTimeRecoveryUnavailableException { } /// Point in time recovery has not yet been enabled for this source table. -public struct PointInTimeRecoveryUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PointInTimeRecoveryUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12894,9 +12838,8 @@ extension DynamoDBClientTypes { extension ProvisionedThroughputExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionedThroughputExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12910,7 +12853,7 @@ extension ProvisionedThroughputExceededException { } /// Your request rate is too high. The Amazon Web Services SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to [Error Retries and Exponential Backoff](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) in the Amazon DynamoDB Developer Guide. -public struct ProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13393,9 +13336,8 @@ public enum PutItemOutputError: Swift.Error, Swift.Equatable { extension PutItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.consumedCapacity = output.consumedCapacity @@ -13942,9 +13884,8 @@ public enum QueryOutputError: Swift.Error, Swift.Equatable { extension QueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.count = output.count @@ -14086,9 +14027,8 @@ extension DynamoDBClientTypes { extension ReplicaAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicaAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14102,7 +14042,7 @@ extension ReplicaAlreadyExistsException { } /// The specified replica is already part of the global table. -public struct ReplicaAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicaAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14799,9 +14739,8 @@ extension DynamoDBClientTypes { extension ReplicaNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicaNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14815,7 +14754,7 @@ extension ReplicaNotFoundException { } /// The specified replica is no longer part of the global table. -public struct ReplicaNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicaNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15237,9 +15176,8 @@ extension DynamoDBClientTypes { extension RequestLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15253,7 +15191,7 @@ extension RequestLimitExceeded { } /// Throughput exceeds the current throughput quota for your account. Please contact [Amazon Web Services Support](https://aws.amazon.com/support) to request a quota increase. -public struct RequestLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15289,9 +15227,8 @@ extension RequestLimitExceededBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15305,7 +15242,7 @@ extension ResourceInUseException { } /// The operation conflicts with the resource's availability. For example, you attempted to recreate an existing table, or tried to delete a table currently in the CREATING state. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15342,9 +15279,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15358,7 +15294,7 @@ extension ResourceNotFoundException { } /// The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15641,9 +15577,8 @@ public enum RestoreTableFromBackupOutputError: Swift.Error, Swift.Equatable { extension RestoreTableFromBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreTableFromBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableDescription = output.tableDescription } else { @@ -15898,9 +15833,8 @@ public enum RestoreTableToPointInTimeOutputError: Swift.Error, Swift.Equatable { extension RestoreTableToPointInTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreTableToPointInTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableDescription = output.tableDescription } else { @@ -16777,9 +16711,8 @@ public enum ScanOutputError: Swift.Error, Swift.Equatable { extension ScanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ScanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.count = output.count @@ -17251,9 +17184,8 @@ extension DynamoDBClientTypes { extension TableAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TableAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17267,7 +17199,7 @@ extension TableAlreadyExistsException { } /// A target table with the specified name already exists. -public struct TableAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TableAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18017,9 +17949,8 @@ extension DynamoDBClientTypes { extension TableInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TableInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18033,7 +17964,7 @@ extension TableInUseException { } /// A target table with the specified name is either being created or deleted. -public struct TableInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TableInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18069,9 +18000,8 @@ extension TableInUseExceptionBody: Swift.Decodable { extension TableNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TableNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18085,7 +18015,7 @@ extension TableNotFoundException { } /// A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region. -public struct TableNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TableNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18598,9 +18528,8 @@ public enum TransactGetItemsOutputError: Swift.Error, Swift.Equatable { extension TransactGetItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactGetItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.responses = output.responses @@ -18870,9 +18799,8 @@ public enum TransactWriteItemsOutputError: Swift.Error, Swift.Equatable { extension TransactWriteItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactWriteItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumedCapacity = output.consumedCapacity self.itemCollectionMetrics = output.itemCollectionMetrics @@ -18946,9 +18874,8 @@ extension TransactWriteItemsOutputResponseBody: Swift.Decodable { extension TransactionCanceledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactionCanceledExceptionBody = try responseDecoder.decode(responseBody: data) self.cancellationReasons = output.cancellationReasons self.message = output.message @@ -19084,7 +19011,7 @@ extension TransactionCanceledException { /// * The document path provided in the update expression is invalid for update. /// /// * The provided expression refers to an attribute that does not exist in the item. -public struct TransactionCanceledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransactionCanceledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19137,9 +19064,8 @@ extension TransactionCanceledExceptionBody: Swift.Decodable { extension TransactionConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactionConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19153,7 +19079,7 @@ extension TransactionConflictException { } /// Operation was rejected because there is an ongoing transaction for the item. -public struct TransactionConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransactionConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19189,9 +19115,8 @@ extension TransactionConflictExceptionBody: Swift.Decodable { extension TransactionInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactionInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19230,7 +19155,7 @@ extension TransactionInProgressException { /// * 4500-6500 third sleep/delay (500 * 2^2) /// /// * 6500-7500 fourth attempt (this can trigger inline recovery since 5 seconds have elapsed since the first attempt reached TC) -public struct TransactionInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransactionInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19602,9 +19527,8 @@ public enum UpdateContinuousBackupsOutputError: Swift.Error, Swift.Equatable { extension UpdateContinuousBackupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateContinuousBackupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.continuousBackupsDescription = output.continuousBackupsDescription } else { @@ -19740,9 +19664,8 @@ public enum UpdateContributorInsightsOutputError: Swift.Error, Swift.Equatable { extension UpdateContributorInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateContributorInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contributorInsightsStatus = output.contributorInsightsStatus self.indexName = output.indexName @@ -19953,9 +19876,8 @@ public enum UpdateGlobalTableOutputError: Swift.Error, Swift.Equatable { extension UpdateGlobalTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGlobalTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalTableDescription = output.globalTableDescription } else { @@ -20164,9 +20086,8 @@ public enum UpdateGlobalTableSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateGlobalTableSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGlobalTableSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalTableName = output.globalTableName self.replicaSettings = output.replicaSettings @@ -20579,9 +20500,8 @@ public enum UpdateItemOutputError: Swift.Error, Swift.Equatable { extension UpdateItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.consumedCapacity = output.consumedCapacity @@ -20978,9 +20898,8 @@ public enum UpdateTableOutputError: Swift.Error, Swift.Equatable { extension UpdateTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableDescription = output.tableDescription } else { @@ -21156,9 +21075,8 @@ public enum UpdateTableReplicaAutoScalingOutputError: Swift.Error, Swift.Equatab extension UpdateTableReplicaAutoScalingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTableReplicaAutoScalingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableAutoScalingDescription = output.tableAutoScalingDescription } else { @@ -21289,9 +21207,8 @@ public enum UpdateTimeToLiveOutputError: Swift.Error, Swift.Equatable { extension UpdateTimeToLiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTimeToLiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.timeToLiveSpecification = output.timeToLiveSpecification } else { diff --git a/Sources/Services/AWSDynamoDBStreams/DynamoDBStreamsClient.swift b/Sources/Services/AWSDynamoDBStreams/DynamoDBStreamsClient.swift index 7de94ade42a..5e095f81555 100644 --- a/Sources/Services/AWSDynamoDBStreams/DynamoDBStreamsClient.swift +++ b/Sources/Services/AWSDynamoDBStreams/DynamoDBStreamsClient.swift @@ -208,6 +208,7 @@ extension DynamoDBStreamsClient: DynamoDBStreamsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension DynamoDBStreamsClient: DynamoDBStreamsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension DynamoDBStreamsClient: DynamoDBStreamsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension DynamoDBStreamsClient: DynamoDBStreamsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension DynamoDBStreamsClient: DynamoDBStreamsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getShardIterator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension DynamoDBStreamsClient: DynamoDBStreamsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension DynamoDBStreamsClient: DynamoDBStreamsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "dynamodb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension DynamoDBStreamsClient: DynamoDBStreamsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSDynamoDBStreams/models/Models.swift b/Sources/Services/AWSDynamoDBStreams/models/Models.swift index 9b9aff4754f..a050a50e394 100644 --- a/Sources/Services/AWSDynamoDBStreams/models/Models.swift +++ b/Sources/Services/AWSDynamoDBStreams/models/Models.swift @@ -288,9 +288,8 @@ public enum DescribeStreamOutputError: Swift.Error, Swift.Equatable { extension DescribeStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamDescription = output.streamDescription } else { @@ -330,9 +329,8 @@ extension DescribeStreamOutputResponseBody: Swift.Decodable { extension ExpiredIteratorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredIteratorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -346,7 +344,7 @@ extension ExpiredIteratorException { } /// The shard iterator has expired and can no longer be used to retrieve stream records. A shard iterator expires 15 minutes after it is retrieved using the GetShardIterator action. -public struct ExpiredIteratorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredIteratorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -474,9 +472,8 @@ public enum GetRecordsOutputError: Swift.Error, Swift.Equatable { extension GetRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextShardIterator = output.nextShardIterator self.records = output.records @@ -656,9 +653,8 @@ public enum GetShardIteratorOutputError: Swift.Error, Swift.Equatable { extension GetShardIteratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetShardIteratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.shardIterator = output.shardIterator } else { @@ -743,9 +739,8 @@ extension DynamoDBStreamsClientTypes { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -759,7 +754,7 @@ extension InternalServerError { } /// An error occurred on the server side. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -882,9 +877,8 @@ extension DynamoDBStreamsClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -898,7 +892,7 @@ extension LimitExceededException { } /// There is no limit to the number of daily on-demand backups that can be taken. For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, and RestoreTableToPointInTime. When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations. When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account. There is a soft account quota of 2,500 tables. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1031,9 +1025,8 @@ public enum ListStreamsOutputError: Swift.Error, Swift.Equatable { extension ListStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastEvaluatedStreamArn = output.lastEvaluatedStreamArn self.streams = output.streams @@ -1232,9 +1225,8 @@ extension DynamoDBStreamsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1248,7 +1240,7 @@ extension ResourceNotFoundException { } /// The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1860,9 +1852,8 @@ extension DynamoDBStreamsClientTypes { extension TrimmedDataAccessException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TrimmedDataAccessExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1880,7 +1871,7 @@ extension TrimmedDataAccessException { /// * You request a shard iterator with a sequence number older than the trim point (24 hours). /// /// * You obtain a shard iterator, but before you use the iterator in a GetRecords request, a stream record in the shard exceeds the 24 hour period and is trimmed. This causes the iterator to access a record that no longer exists. -public struct TrimmedDataAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrimmedDataAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSEBS/EBSClient.swift b/Sources/Services/AWSEBS/EBSClient.swift index 6145077e961..e530ce611c7 100644 --- a/Sources/Services/AWSEBS/EBSClient.swift +++ b/Sources/Services/AWSEBS/EBSClient.swift @@ -208,6 +208,7 @@ extension EBSClient: EBSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ebs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension EBSClient: EBSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension EBSClient: EBSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ebs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSnapshotBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension EBSClient: EBSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension EBSClient: EBSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ebs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChangedBlocks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension EBSClient: EBSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension EBSClient: EBSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ebs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSnapshotBlocks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension EBSClient: EBSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension EBSClient: EBSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ebs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSnapshotBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -356,7 +361,7 @@ extension EBSClient: EBSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -376,6 +381,7 @@ extension EBSClient: EBSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ebs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSnapshot") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -399,7 +405,7 @@ extension EBSClient: EBSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEBS/models/Models.swift b/Sources/Services/AWSEBS/models/Models.swift index 789d58fffd6..1c19b2aad4e 100644 --- a/Sources/Services/AWSEBS/models/Models.swift +++ b/Sources/Services/AWSEBS/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -362,9 +361,8 @@ public enum CompleteSnapshotOutputError: Swift.Error, Swift.Equatable { extension CompleteSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CompleteSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -403,9 +401,8 @@ extension CompleteSnapshotOutputResponseBody: Swift.Decodable { extension ConcurrentLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -419,7 +416,7 @@ extension ConcurrentLimitExceededException { } /// You have reached the limit for concurrent API requests. For more information, see [Optimizing performance of the EBS direct APIs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance) in the Amazon Elastic Compute Cloud User Guide. -public struct ConcurrentLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -455,9 +452,8 @@ extension ConcurrentLimitExceededExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -471,7 +467,7 @@ extension ConflictException { } /// The request uses the same client token as a previous, but non-identical request. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -618,9 +614,12 @@ extension GetSnapshotBlockOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.dataLength = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.blockData = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.blockData = .data(data) + case .stream(let stream): + self.blockData = .stream(stream) + case .none: self.blockData = nil } } @@ -668,9 +667,8 @@ extension GetSnapshotBlockOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -684,7 +682,7 @@ extension InternalServerException { } /// An internal error has occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -824,9 +822,8 @@ public enum ListChangedBlocksOutputError: Swift.Error, Swift.Equatable { extension ListChangedBlocksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChangedBlocksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blockSize = output.blockSize self.changedBlocks = output.changedBlocks @@ -1015,9 +1012,8 @@ extension ListSnapshotBlocksOutputResponse: Swift.CustomDebugStringConvertible { extension ListSnapshotBlocksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSnapshotBlocksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blockSize = output.blockSize self.blocks = output.blocks @@ -1117,9 +1113,8 @@ public struct PutSnapshotBlockInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let blockData = input.operationInput.blockData { - let blockDatadata = blockData - let blockDatabody = ClientRuntime.HttpBody.stream(blockDatadata) - input.builder.withBody(blockDatabody) + let blockDataBody = ClientRuntime.HttpBody(byteStream: blockData) + input.builder.withBody(blockDataBody) } return try await next.handle(context: context, input: input) } @@ -1142,7 +1137,7 @@ extension PutSnapshotBlockInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let blockData = self.blockData { - try encodeContainer.encode(blockData.toBytes().getData(), forKey: .blockData) + try encodeContainer.encode(blockData, forKey: .blockData) } } } @@ -1301,9 +1296,8 @@ public struct PutSnapshotBlockOutputResponse: Swift.Equatable { extension RequestThrottledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestThrottledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -1319,7 +1313,7 @@ extension RequestThrottledException { } /// The number of API requests has exceed the maximum allowed API request throttling limit. -public struct RequestThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1398,9 +1392,8 @@ extension EBSClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -1416,7 +1409,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1492,9 +1485,8 @@ extension EBSClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -1510,7 +1502,7 @@ extension ServiceQuotaExceededException { } /// Your current service quotas do not allow you to perform this action. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1780,9 +1772,8 @@ extension StartSnapshotOutputResponse: Swift.CustomDebugStringConvertible { extension StartSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blockSize = output.blockSize self.description = output.description @@ -2000,9 +1991,8 @@ extension EBSClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -2018,7 +2008,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints of the EBS direct APIs. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSEC2/EC2Client.swift b/Sources/Services/AWSEC2/EC2Client.swift index aeed6782233..89ace9172d8 100644 --- a/Sources/Services/AWSEC2/EC2Client.swift +++ b/Sources/Services/AWSEC2/EC2Client.swift @@ -204,6 +204,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptAddressTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptReservedInstancesExchangeQuote") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptTransitGatewayMulticastDomainAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptTransitGatewayPeeringAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptTransitGatewayVpcAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptVpcEndpointConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptVpcPeeringConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "advertiseByoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocateAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocateHosts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocateIpamPoolCidr") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -577,7 +588,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -597,6 +608,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applySecurityGroupsToClientVpnTargetNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -612,7 +624,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -632,6 +644,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assignIpv6Addresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -647,7 +660,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -667,6 +680,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assignPrivateIpAddresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -682,7 +696,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -702,6 +716,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assignPrivateNatGatewayAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -717,7 +732,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -737,6 +752,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -752,7 +768,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -772,6 +788,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateClientVpnTargetNetwork") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -795,7 +812,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -815,6 +832,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDhcpOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -830,7 +848,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -850,6 +868,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateEnclaveCertificateIamRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -865,7 +884,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -885,6 +904,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateIamInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -900,7 +920,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -920,6 +940,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateInstanceEventWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -935,7 +956,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -955,6 +976,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateIpamResourceDiscovery") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -978,7 +1000,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1020,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateNatGatewayAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1013,7 +1036,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1033,6 +1056,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1048,7 +1072,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1068,6 +1092,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateSubnetCidrBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1083,7 +1108,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1103,6 +1128,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTransitGatewayMulticastDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1118,7 +1144,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1138,6 +1164,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTransitGatewayPolicyTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1153,7 +1180,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1173,6 +1200,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTransitGatewayRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1188,7 +1216,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1208,6 +1236,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTrunkInterface") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1231,7 +1260,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1251,6 +1280,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateVpcCidrBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1266,7 +1296,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1286,6 +1316,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachClassicLinkVpc") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1301,7 +1332,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1321,6 +1352,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachInternetGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1336,7 +1368,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1356,6 +1388,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachNetworkInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1371,7 +1404,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1391,6 +1424,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachVerifiedAccessTrustProvider") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1414,7 +1448,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1445,6 +1479,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1460,7 +1495,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1480,6 +1515,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachVpnGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1495,7 +1531,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1515,6 +1551,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeClientVpnIngress") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1538,7 +1575,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1558,6 +1595,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeSecurityGroupEgress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1573,7 +1611,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1593,6 +1631,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeSecurityGroupIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1608,7 +1647,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1628,6 +1667,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "bundleInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1643,7 +1683,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1663,6 +1703,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelBundleTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1678,7 +1719,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1698,6 +1739,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelCapacityReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1713,7 +1755,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1739,6 +1781,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelCapacityReservationFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1754,7 +1797,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1774,6 +1817,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelConversionTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1789,7 +1833,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1809,6 +1853,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelExportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1824,7 +1869,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1844,6 +1889,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelImageLaunchPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1859,7 +1905,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1879,6 +1925,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelImportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1894,7 +1941,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1914,6 +1961,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelReservedInstancesListing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1929,7 +1977,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1949,6 +1997,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelSpotFleetRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1964,7 +2013,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1984,6 +2033,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelSpotInstanceRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1999,7 +2049,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2019,6 +2069,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "confirmProductInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2034,7 +2085,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2054,6 +2105,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyFpgaImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2069,7 +2121,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2089,6 +2141,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2104,7 +2157,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2124,6 +2177,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copySnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2139,7 +2193,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2159,6 +2213,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCapacityReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2174,7 +2229,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2194,6 +2249,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCapacityReservationFleet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2217,7 +2273,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2237,6 +2293,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCarrierGateway") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2260,7 +2317,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2280,6 +2337,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClientVpnEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2303,7 +2361,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2323,6 +2381,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClientVpnRoute") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2346,7 +2405,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2366,6 +2425,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2381,7 +2441,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2401,6 +2461,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCoipPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2416,7 +2477,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2436,6 +2497,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomerGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2451,7 +2513,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2471,6 +2533,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDefaultSubnet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2486,7 +2549,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2506,6 +2569,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDefaultVpc") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2521,7 +2585,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2554,6 +2618,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDhcpOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2569,7 +2634,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2589,6 +2654,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEgressOnlyInternetGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2604,7 +2670,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2624,6 +2690,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2639,7 +2706,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2659,6 +2726,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFlowLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2674,7 +2742,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2694,6 +2762,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFpgaImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2709,7 +2778,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2729,6 +2798,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2744,7 +2814,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2771,6 +2841,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstanceEventWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2786,7 +2857,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2806,6 +2877,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstanceExportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2821,7 +2893,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2841,6 +2913,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInternetGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2856,7 +2929,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2876,6 +2949,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIpam") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2899,7 +2973,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2919,6 +2993,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIpamPool") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2942,7 +3017,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2962,6 +3037,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIpamResourceDiscovery") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2985,7 +3061,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3005,6 +3081,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIpamScope") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3028,7 +3105,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3048,6 +3125,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3063,7 +3141,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3083,6 +3161,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLaunchTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3098,7 +3177,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3118,6 +3197,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLaunchTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3133,7 +3213,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3157,6 +3237,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocalGatewayRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3172,7 +3253,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3192,6 +3273,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocalGatewayRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3207,7 +3289,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3227,6 +3309,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocalGatewayRouteTableVirtualInterfaceGroupAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3242,7 +3325,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3262,6 +3345,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocalGatewayRouteTableVpcAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3277,7 +3361,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3297,6 +3381,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createManagedPrefixList") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3320,7 +3405,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3340,6 +3425,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNatGateway") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3363,7 +3449,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3383,6 +3469,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkAcl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3398,7 +3485,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3418,6 +3505,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkAclEntry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3433,7 +3521,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3453,6 +3541,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkInsightsAccessScope") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3476,7 +3565,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3496,6 +3585,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkInsightsPath") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3519,7 +3609,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3539,6 +3629,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkInterface") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3562,7 +3653,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3582,6 +3673,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkInterfacePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3597,7 +3689,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3617,6 +3709,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPlacementGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3632,7 +3725,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3652,6 +3745,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPublicIpv4Pool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3667,7 +3761,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3687,6 +3781,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplaceRootVolumeTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3710,7 +3805,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3730,6 +3825,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReservedInstancesListing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3745,7 +3841,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3765,6 +3861,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRestoreImageTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3780,7 +3877,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3807,6 +3904,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3822,7 +3920,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3842,6 +3940,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3857,7 +3956,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3877,6 +3976,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3892,7 +3992,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3912,6 +4012,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3927,7 +4028,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3947,6 +4048,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3962,7 +4064,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3982,6 +4084,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSpotDatafeedSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3997,7 +4100,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4017,6 +4120,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStoreImageTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4032,7 +4136,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4052,6 +4156,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubnet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4067,7 +4172,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4087,6 +4192,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubnetCidrReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4102,7 +4208,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4122,6 +4228,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4137,7 +4244,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4157,6 +4264,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrafficMirrorFilter") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4180,7 +4288,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4200,6 +4308,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrafficMirrorFilterRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4223,7 +4332,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4243,6 +4352,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrafficMirrorSession") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4266,7 +4376,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4286,6 +4396,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrafficMirrorTarget") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4309,7 +4420,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4329,6 +4440,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4344,7 +4456,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4364,6 +4476,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayConnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4379,7 +4492,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4399,6 +4512,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayConnectPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4414,7 +4528,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4434,6 +4548,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayMulticastDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4449,7 +4564,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4469,6 +4584,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayPeeringAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4484,7 +4600,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4504,6 +4620,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayPolicyTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4519,7 +4636,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4539,6 +4656,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayPrefixListReference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4554,7 +4672,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4574,6 +4692,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4589,7 +4708,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4609,6 +4728,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4624,7 +4744,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4644,6 +4764,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayRouteTableAnnouncement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4659,7 +4780,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4679,6 +4800,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayVpcAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4694,7 +4816,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4714,6 +4836,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVerifiedAccessEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4737,7 +4860,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4757,6 +4880,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVerifiedAccessGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4780,7 +4904,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4800,6 +4924,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVerifiedAccessInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4823,7 +4948,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4843,6 +4968,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVerifiedAccessTrustProvider") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4866,7 +4992,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4886,6 +5012,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVolume") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4909,7 +5036,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4929,6 +5056,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpc") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4944,7 +5072,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4964,6 +5092,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4979,7 +5108,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4999,6 +5128,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcEndpointConnectionNotification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5014,7 +5144,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5041,6 +5171,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcEndpointServiceConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5056,7 +5187,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5076,6 +5207,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcPeeringConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5091,7 +5223,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5111,6 +5243,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpnConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5126,7 +5259,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5146,6 +5279,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpnConnectionRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5161,7 +5295,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5181,6 +5315,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpnGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5196,7 +5331,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5216,6 +5351,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCarrierGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5231,7 +5367,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5251,6 +5387,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClientVpnEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5266,7 +5403,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5286,6 +5423,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClientVpnRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5301,7 +5439,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5321,6 +5459,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5336,7 +5475,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5356,6 +5495,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCoipPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5371,7 +5511,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5391,6 +5531,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomerGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5406,7 +5547,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5426,6 +5567,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDhcpOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5441,7 +5583,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5461,6 +5603,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEgressOnlyInternetGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5476,7 +5619,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5503,6 +5646,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5518,7 +5662,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5538,6 +5682,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFlowLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5553,7 +5698,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5573,6 +5718,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFpgaImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5588,7 +5734,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5608,6 +5754,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstanceEventWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5623,7 +5770,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5643,6 +5790,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInternetGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5658,7 +5806,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5678,6 +5826,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIpam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5693,7 +5842,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5713,6 +5862,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIpamPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5728,7 +5878,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5748,6 +5898,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIpamResourceDiscovery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5763,7 +5914,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5783,6 +5934,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIpamScope") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5798,7 +5950,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5818,6 +5970,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5833,7 +5986,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5853,6 +6006,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLaunchTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5868,7 +6022,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5888,6 +6042,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLaunchTemplateVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5903,7 +6058,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5923,6 +6078,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLocalGatewayRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5938,7 +6094,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5958,6 +6114,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLocalGatewayRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5973,7 +6130,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5993,6 +6150,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6008,7 +6166,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6028,6 +6186,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLocalGatewayRouteTableVpcAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6043,7 +6202,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6063,6 +6222,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteManagedPrefixList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6078,7 +6238,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6098,6 +6258,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNatGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6113,7 +6274,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6133,6 +6294,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkAcl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6148,7 +6310,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6168,6 +6330,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkAclEntry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6183,7 +6346,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6203,6 +6366,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkInsightsAccessScope") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6218,7 +6382,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6238,6 +6402,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkInsightsAccessScopeAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6253,7 +6418,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6273,6 +6438,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkInsightsAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6288,7 +6454,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6308,6 +6474,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkInsightsPath") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6323,7 +6490,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6343,6 +6510,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6358,7 +6526,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6378,6 +6546,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkInterfacePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6393,7 +6562,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6413,6 +6582,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePlacementGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6428,7 +6598,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6448,6 +6618,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePublicIpv4Pool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6463,7 +6634,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6483,6 +6654,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQueuedReservedInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6498,7 +6670,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6518,6 +6690,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6533,7 +6706,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6553,6 +6726,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6568,7 +6742,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6588,6 +6762,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6603,7 +6778,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6623,6 +6798,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6638,7 +6814,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6658,6 +6834,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSpotDatafeedSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6673,7 +6850,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6693,6 +6870,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubnet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6708,7 +6886,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6728,6 +6906,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubnetCidrReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6743,7 +6922,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6763,6 +6942,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6778,7 +6958,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6798,6 +6978,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrafficMirrorFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6813,7 +6994,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6833,6 +7014,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrafficMirrorFilterRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6848,7 +7030,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6868,6 +7050,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrafficMirrorSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6883,7 +7066,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6903,6 +7086,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrafficMirrorTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6918,7 +7102,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6938,6 +7122,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6953,7 +7138,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6973,6 +7158,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayConnect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6988,7 +7174,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7008,6 +7194,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayConnectPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7023,7 +7210,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7043,6 +7230,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayMulticastDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7058,7 +7246,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7078,6 +7266,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayPeeringAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7093,7 +7282,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7113,6 +7302,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayPolicyTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7128,7 +7318,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7148,6 +7338,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayPrefixListReference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7163,7 +7354,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7183,6 +7374,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7198,7 +7390,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7218,6 +7410,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7233,7 +7426,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7253,6 +7446,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayRouteTableAnnouncement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7268,7 +7462,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7288,6 +7482,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTransitGatewayVpcAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7303,7 +7498,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7323,6 +7518,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVerifiedAccessEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -7346,7 +7542,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7366,6 +7562,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVerifiedAccessGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -7389,7 +7586,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7409,6 +7606,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVerifiedAccessInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -7432,7 +7630,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7452,6 +7650,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVerifiedAccessTrustProvider") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -7475,7 +7674,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7495,6 +7694,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7510,7 +7710,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7530,6 +7730,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpc") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7545,7 +7746,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7565,6 +7766,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcEndpointConnectionNotifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7580,7 +7782,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7600,6 +7802,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcEndpointServiceConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7615,7 +7818,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7635,6 +7838,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7650,7 +7854,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7670,6 +7874,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcPeeringConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7685,7 +7890,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7705,6 +7910,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpnConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7720,7 +7926,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7740,6 +7946,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpnConnectionRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7755,7 +7962,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7775,6 +7982,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpnGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7790,7 +7998,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7810,6 +8018,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprovisionByoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7825,7 +8034,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7845,6 +8054,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprovisionIpamPoolCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7860,7 +8070,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7880,6 +8090,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprovisionPublicIpv4PoolCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7895,7 +8106,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7915,6 +8126,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7930,7 +8142,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7950,6 +8162,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterInstanceEventNotificationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7965,7 +8178,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7985,6 +8198,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterTransitGatewayMulticastGroupMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8000,7 +8214,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8020,6 +8234,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterTransitGatewayMulticastGroupSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8035,7 +8250,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8070,6 +8285,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8085,7 +8301,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8105,6 +8321,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAddressTransfers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8120,7 +8337,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8140,6 +8357,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAddresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8155,7 +8373,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8175,6 +8393,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAddressesAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8190,7 +8409,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8210,6 +8429,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAggregateIdFormat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8225,7 +8445,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8245,6 +8465,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAvailabilityZones") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8260,7 +8481,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8280,6 +8501,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAwsNetworkPerformanceMetricSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8295,7 +8517,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8315,6 +8537,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBundleTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8330,7 +8553,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8350,6 +8573,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeByoipCidrs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8365,7 +8589,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8385,6 +8609,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCapacityReservationFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8400,7 +8625,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8420,6 +8645,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCapacityReservations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8435,7 +8661,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8455,6 +8681,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCarrierGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8470,7 +8697,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8490,6 +8717,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClassicLinkInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8505,7 +8733,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8525,6 +8753,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClientVpnAuthorizationRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8540,7 +8769,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8560,6 +8789,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClientVpnConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8575,7 +8805,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8595,6 +8825,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClientVpnEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8610,7 +8841,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8630,6 +8861,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClientVpnRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8645,7 +8877,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8665,6 +8897,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClientVpnTargetNetworks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8680,7 +8913,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8700,6 +8933,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCoipPools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8715,7 +8949,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8735,6 +8969,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConversionTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8750,7 +8985,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8770,6 +9005,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomerGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8785,7 +9021,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8805,6 +9041,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDhcpOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8820,7 +9057,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8840,6 +9077,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEgressOnlyInternetGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8855,7 +9093,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8875,6 +9113,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeElasticGpus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8890,7 +9129,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8910,6 +9149,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExportImageTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8925,7 +9165,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8945,6 +9185,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExportTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8960,7 +9201,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8980,6 +9221,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFastLaunchImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8995,7 +9237,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9015,6 +9257,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFastSnapshotRestores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9030,7 +9273,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9050,6 +9293,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9065,7 +9309,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9085,6 +9329,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9100,7 +9345,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9120,6 +9365,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9135,7 +9381,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9155,6 +9401,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFlowLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9170,7 +9417,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9190,6 +9437,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFpgaImageAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9205,7 +9453,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9225,6 +9473,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFpgaImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9240,7 +9489,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9260,6 +9509,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHostReservationOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9275,7 +9525,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9295,6 +9545,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHostReservations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9310,7 +9561,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9330,6 +9581,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHosts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9345,7 +9597,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9365,6 +9617,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIamInstanceProfileAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9380,7 +9633,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9400,6 +9653,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdFormat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9415,7 +9669,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9435,6 +9689,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdentityIdFormat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9450,7 +9705,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9470,6 +9725,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImageAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9485,7 +9741,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9505,6 +9761,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9520,7 +9777,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9540,6 +9797,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImportImageTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9555,7 +9813,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9575,6 +9833,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImportSnapshotTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9590,7 +9849,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9610,6 +9869,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9625,7 +9885,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9645,6 +9905,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceCreditSpecifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9660,7 +9921,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9680,6 +9941,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceEventNotificationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9695,7 +9957,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9715,6 +9977,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceEventWindows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9730,7 +9993,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9756,6 +10019,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9771,7 +10035,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9791,6 +10055,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceTypeOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9806,7 +10071,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9826,6 +10091,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9841,7 +10107,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9861,6 +10127,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9876,7 +10143,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9896,6 +10163,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInternetGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9911,7 +10179,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9931,6 +10199,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIpamPools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9946,7 +10215,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9966,6 +10235,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIpamResourceDiscoveries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9981,7 +10251,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10001,6 +10271,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIpamResourceDiscoveryAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10016,7 +10287,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10036,6 +10307,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIpamScopes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10051,7 +10323,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10071,6 +10343,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIpams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10086,7 +10359,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10106,6 +10379,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIpv6Pools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10121,7 +10395,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10141,6 +10415,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeKeyPairs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10156,7 +10431,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10176,6 +10451,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLaunchTemplateVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10191,7 +10467,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10211,6 +10487,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLaunchTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10226,7 +10503,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10246,6 +10523,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10261,7 +10539,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10281,6 +10559,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocalGatewayRouteTableVpcAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10296,7 +10575,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10316,6 +10595,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocalGatewayRouteTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10331,7 +10611,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10351,6 +10631,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocalGatewayVirtualInterfaceGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10366,7 +10647,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10386,6 +10667,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocalGatewayVirtualInterfaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10401,7 +10683,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10421,6 +10703,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLocalGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10436,7 +10719,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10456,6 +10739,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeManagedPrefixLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10471,7 +10755,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10491,6 +10775,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMovingAddresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10506,7 +10791,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10526,6 +10811,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNatGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10541,7 +10827,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10561,6 +10847,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNetworkAcls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10576,7 +10863,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10596,6 +10883,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNetworkInsightsAccessScopeAnalyses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10611,7 +10899,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10631,6 +10919,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNetworkInsightsAccessScopes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10646,7 +10935,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10666,6 +10955,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNetworkInsightsAnalyses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10681,7 +10971,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10701,6 +10991,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNetworkInsightsPaths") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10716,7 +11007,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10736,6 +11027,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNetworkInterfaceAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10751,7 +11043,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10771,6 +11063,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNetworkInterfacePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10786,7 +11079,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10806,6 +11099,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNetworkInterfaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10821,7 +11115,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10841,6 +11135,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePlacementGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10856,7 +11151,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10876,6 +11171,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePrefixLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10891,7 +11187,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10911,6 +11207,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePrincipalIdFormat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10926,7 +11223,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10946,6 +11243,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePublicIpv4Pools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10961,7 +11259,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10981,6 +11279,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRegions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10996,7 +11295,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11016,6 +11315,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplaceRootVolumeTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11031,7 +11331,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11051,6 +11351,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11066,7 +11367,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11086,6 +11387,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedInstancesListings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11101,7 +11403,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11121,6 +11423,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedInstancesModifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11136,7 +11439,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11156,6 +11459,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedInstancesOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11171,7 +11475,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11191,6 +11495,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRouteTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11206,7 +11511,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11226,6 +11531,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScheduledInstanceAvailability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11241,7 +11547,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11261,6 +11567,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScheduledInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11276,7 +11583,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11296,6 +11603,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSecurityGroupReferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11311,7 +11619,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11331,6 +11639,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSecurityGroupRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11346,7 +11655,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11366,6 +11675,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11381,7 +11691,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11401,6 +11711,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshotAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11416,7 +11727,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11436,6 +11747,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshotTierStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11451,7 +11763,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11480,6 +11792,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11495,7 +11808,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11515,6 +11828,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpotDatafeedSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11530,7 +11844,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11550,6 +11864,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpotFleetInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11565,7 +11880,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11585,6 +11900,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpotFleetRequestHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11600,7 +11916,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11620,6 +11936,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpotFleetRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11635,7 +11952,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11655,6 +11972,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpotInstanceRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11670,7 +11988,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11690,6 +12008,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpotPriceHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11705,7 +12024,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11725,6 +12044,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStaleSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11740,7 +12060,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11760,6 +12080,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStoreImageTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11775,7 +12096,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11795,6 +12116,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSubnets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11810,7 +12132,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11830,6 +12152,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11845,7 +12168,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11865,6 +12188,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrafficMirrorFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11880,7 +12204,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11900,6 +12224,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrafficMirrorSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11915,7 +12240,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11935,6 +12260,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrafficMirrorTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11950,7 +12276,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11970,6 +12296,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayAttachments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11985,7 +12312,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12005,6 +12332,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayConnectPeers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12020,7 +12348,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12040,6 +12368,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayConnects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12055,7 +12384,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12075,6 +12404,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayMulticastDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12090,7 +12420,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12110,6 +12440,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayPeeringAttachments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12125,7 +12456,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12145,6 +12476,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayPolicyTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12160,7 +12492,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12180,6 +12512,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayRouteTableAnnouncements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12195,7 +12528,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12215,6 +12548,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayRouteTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12230,7 +12564,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12250,6 +12584,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGatewayVpcAttachments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12265,7 +12600,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12285,6 +12620,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransitGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12300,7 +12636,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12320,6 +12656,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrunkInterfaceAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12335,7 +12672,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12355,6 +12692,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVerifiedAccessEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12370,7 +12708,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12390,6 +12728,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVerifiedAccessGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12405,7 +12744,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12425,6 +12764,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVerifiedAccessInstanceLoggingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12440,7 +12780,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12460,6 +12800,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVerifiedAccessInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12475,7 +12816,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12495,6 +12836,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVerifiedAccessTrustProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12510,7 +12852,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12530,6 +12872,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVolumeAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12545,7 +12888,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12565,6 +12908,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVolumeStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12580,7 +12924,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12600,6 +12944,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVolumes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12615,7 +12960,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12635,6 +12980,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVolumesModifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12650,7 +12996,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12670,6 +13016,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12685,7 +13032,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12705,6 +13052,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcClassicLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12720,7 +13068,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12740,6 +13088,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcClassicLinkDnsSupport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12755,7 +13104,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12775,6 +13124,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcEndpointConnectionNotifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12790,7 +13140,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12810,6 +13160,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcEndpointConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12825,7 +13176,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12845,6 +13196,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcEndpointServiceConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12860,7 +13212,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12880,6 +13232,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcEndpointServicePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12895,7 +13248,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12915,6 +13268,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcEndpointServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12930,7 +13284,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12950,6 +13304,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -12965,7 +13320,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -12985,6 +13340,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcPeeringConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13000,7 +13356,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13020,6 +13376,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13035,7 +13392,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13055,6 +13412,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpnConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13070,7 +13428,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13090,6 +13448,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpnGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13105,7 +13464,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13125,6 +13484,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachClassicLinkVpc") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13140,7 +13500,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13160,6 +13520,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachInternetGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13175,7 +13536,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13195,6 +13556,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachNetworkInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13210,7 +13572,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13230,6 +13592,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachVerifiedAccessTrustProvider") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -13253,7 +13616,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13273,6 +13636,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13288,7 +13652,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13308,6 +13672,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachVpnGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13323,7 +13688,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13343,6 +13708,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableAddressTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13358,7 +13724,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13378,6 +13744,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableAwsNetworkPerformanceMetricSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13393,7 +13760,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13413,6 +13780,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableEbsEncryptionByDefault") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13428,7 +13796,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13448,6 +13816,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableFastLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13463,7 +13832,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13483,6 +13852,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableFastSnapshotRestores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13498,7 +13868,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13518,6 +13888,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableImageDeprecation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13533,7 +13904,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13553,6 +13924,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableIpamOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13568,7 +13940,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13588,6 +13960,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableSerialConsoleAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13603,7 +13976,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13623,6 +13996,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableTransitGatewayRouteTablePropagation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13638,7 +14012,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13658,6 +14032,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableVgwRoutePropagation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13673,7 +14048,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13693,6 +14068,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableVpcClassicLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13708,7 +14084,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13728,6 +14104,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableVpcClassicLinkDnsSupport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13743,7 +14120,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13763,6 +14140,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13778,7 +14156,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13806,6 +14184,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateClientVpnTargetNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13821,7 +14200,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13841,6 +14220,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateEnclaveCertificateIamRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13856,7 +14236,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13876,6 +14256,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateIamInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13891,7 +14272,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13911,6 +14292,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateInstanceEventWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13926,7 +14308,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13946,6 +14328,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateIpamResourceDiscovery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13961,7 +14344,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -13981,6 +14364,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateNatGatewayAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -13996,7 +14380,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14016,6 +14400,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14031,7 +14416,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14051,6 +14436,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateSubnetCidrBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14066,7 +14452,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14086,6 +14472,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTransitGatewayMulticastDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14101,7 +14488,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14121,6 +14508,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTransitGatewayPolicyTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14136,7 +14524,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14156,6 +14544,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTransitGatewayRouteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14171,7 +14560,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14191,6 +14580,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTrunkInterface") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -14214,7 +14604,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14234,6 +14624,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateVpcCidrBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14249,7 +14640,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14269,6 +14660,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableAddressTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14284,7 +14676,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14304,6 +14696,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableAwsNetworkPerformanceMetricSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14319,7 +14712,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14339,6 +14732,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableEbsEncryptionByDefault") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14354,7 +14748,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14374,6 +14768,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableFastLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14389,7 +14784,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14409,6 +14804,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableFastSnapshotRestores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14424,7 +14820,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14444,6 +14840,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableImageDeprecation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14459,7 +14856,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14479,6 +14876,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableIpamOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14494,7 +14892,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14514,6 +14912,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableReachabilityAnalyzerOrganizationSharing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14529,7 +14928,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14549,6 +14948,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableSerialConsoleAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14564,7 +14964,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14584,6 +14984,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableTransitGatewayRouteTablePropagation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14599,7 +15000,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14619,6 +15020,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableVgwRoutePropagation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14634,7 +15036,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14654,6 +15056,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableVolumeIO") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14669,7 +15072,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14689,6 +15092,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableVpcClassicLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14704,7 +15108,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14724,6 +15128,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableVpcClassicLinkDnsSupport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14739,7 +15144,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14759,6 +15164,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportClientVpnClientCertificateRevocationList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14774,7 +15180,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14794,6 +15200,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportClientVpnClientConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14809,7 +15216,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14829,6 +15236,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportImage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -14852,7 +15260,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14872,6 +15280,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportTransitGatewayRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14887,7 +15296,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14907,6 +15316,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssociatedEnclaveCertificateIamRoles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14922,7 +15332,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14942,6 +15352,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssociatedIpv6PoolCidrs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14957,7 +15368,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -14977,6 +15388,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAwsNetworkPerformanceData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -14992,7 +15404,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15012,6 +15424,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCapacityReservationUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15027,7 +15440,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15047,6 +15460,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoipPoolUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15062,7 +15476,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15082,6 +15496,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConsoleOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15097,7 +15512,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15117,6 +15532,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConsoleScreenshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15132,7 +15548,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15152,6 +15568,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDefaultCreditSpecification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15167,7 +15584,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15187,6 +15604,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEbsDefaultKmsKeyId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15202,7 +15620,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15222,6 +15640,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEbsEncryptionByDefault") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15237,7 +15656,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15265,6 +15684,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFlowLogsIntegrationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15280,7 +15700,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15300,6 +15720,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupsForCapacityReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15315,7 +15736,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15335,6 +15756,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHostReservationPurchasePreview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15350,7 +15772,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15370,6 +15792,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceTypesFromInstanceRequirements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15385,7 +15808,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15405,6 +15828,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceUefiData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15420,7 +15844,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15440,6 +15864,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIpamAddressHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15455,7 +15880,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15475,6 +15900,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIpamDiscoveredAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15490,7 +15916,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15510,6 +15936,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIpamDiscoveredResourceCidrs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15525,7 +15952,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15545,6 +15972,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIpamPoolAllocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15560,7 +15988,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15580,6 +16008,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIpamPoolCidrs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15595,7 +16024,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15615,6 +16044,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIpamResourceCidrs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15630,7 +16060,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15650,6 +16080,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLaunchTemplateData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15665,7 +16096,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15685,6 +16116,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getManagedPrefixListAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15700,7 +16132,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15720,6 +16152,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getManagedPrefixListEntries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15735,7 +16168,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15755,6 +16188,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkInsightsAccessScopeAnalysisFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15770,7 +16204,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15790,6 +16224,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkInsightsAccessScopeContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15805,7 +16240,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15825,6 +16260,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPasswordData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15840,7 +16276,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15860,6 +16296,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReservedInstancesExchangeQuote") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15875,7 +16312,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15895,6 +16332,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSerialConsoleAccessStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15910,7 +16348,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15930,6 +16368,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSpotPlacementScores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15945,7 +16384,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -15965,6 +16404,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSubnetCidrReservations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -15980,7 +16420,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16000,6 +16440,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayAttachmentPropagations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16015,7 +16456,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16035,6 +16476,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayMulticastDomainAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16050,7 +16492,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16070,6 +16512,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayPolicyTableAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16085,7 +16528,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16105,6 +16548,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayPolicyTableEntries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16120,7 +16564,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16140,6 +16584,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayPrefixListReferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16155,7 +16600,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16175,6 +16620,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayRouteTableAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16190,7 +16636,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16210,6 +16656,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayRouteTablePropagations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16225,7 +16672,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16245,6 +16692,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVerifiedAccessEndpointPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16260,7 +16708,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16280,6 +16728,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVerifiedAccessGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16295,7 +16744,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16315,6 +16764,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVpnConnectionDeviceSampleConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16330,7 +16780,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16350,6 +16800,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVpnConnectionDeviceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16365,7 +16816,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16385,6 +16836,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVpnTunnelReplacementStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16400,7 +16852,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16420,6 +16872,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importClientVpnClientCertificateRevocationList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16435,7 +16888,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16455,6 +16908,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16470,7 +16924,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16490,6 +16944,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16505,7 +16960,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16525,6 +16980,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16540,7 +16996,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16560,6 +17016,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16575,7 +17032,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16595,6 +17052,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16610,7 +17068,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16630,6 +17088,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImagesInRecycleBin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16645,7 +17104,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16665,6 +17124,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSnapshotsInRecycleBin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16680,7 +17140,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16700,6 +17160,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyAddressAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16715,7 +17176,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16735,6 +17196,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyAvailabilityZoneGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16750,7 +17212,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16770,6 +17232,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCapacityReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16785,7 +17248,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16805,6 +17268,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCapacityReservationFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16820,7 +17284,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16840,6 +17304,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClientVpnEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16855,7 +17320,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16875,6 +17340,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDefaultCreditSpecification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16890,7 +17356,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16910,6 +17376,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyEbsDefaultKmsKeyId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16925,7 +17392,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16945,6 +17412,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16960,7 +17428,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -16980,6 +17448,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyFpgaImageAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -16995,7 +17464,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17015,6 +17484,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyHosts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17030,7 +17500,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17050,6 +17520,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyIdFormat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17065,7 +17536,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17085,6 +17556,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyIdentityIdFormat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17100,7 +17572,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17120,6 +17592,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyImageAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17135,7 +17608,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17155,6 +17628,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17170,7 +17644,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17190,6 +17664,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceCapacityReservationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17205,7 +17680,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17225,6 +17700,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceCreditSpecification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17240,7 +17716,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17260,6 +17736,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceEventStartTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17275,7 +17752,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17295,6 +17772,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceEventWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17310,7 +17788,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17330,6 +17808,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceMaintenanceOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17345,7 +17824,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17365,6 +17844,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceMetadataOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17380,7 +17860,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17411,6 +17891,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstancePlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17426,7 +17907,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17446,6 +17927,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyIpam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17461,7 +17943,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17481,6 +17963,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyIpamPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17496,7 +17979,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17516,6 +17999,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyIpamResourceCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17531,7 +18015,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17551,6 +18035,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyIpamResourceDiscovery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17566,7 +18051,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17586,6 +18071,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyIpamScope") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17601,7 +18087,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17621,6 +18107,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyLaunchTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17636,7 +18123,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17656,6 +18143,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyLocalGatewayRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17671,7 +18159,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17691,6 +18179,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyManagedPrefixList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17706,7 +18195,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17726,6 +18215,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyNetworkInterfaceAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17741,7 +18231,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17761,6 +18251,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyPrivateDnsNameOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17776,7 +18267,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17796,6 +18287,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyReservedInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17811,7 +18303,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17831,6 +18323,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySecurityGroupRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17846,7 +18339,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17866,6 +18359,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySnapshotAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17881,7 +18375,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17901,6 +18395,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySnapshotTier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17916,7 +18411,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17936,6 +18431,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySpotFleetRequest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17951,7 +18447,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -17982,6 +18478,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySubnetAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -17997,7 +18494,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18017,6 +18514,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyTrafficMirrorFilterNetworkServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18032,7 +18530,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18052,6 +18550,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyTrafficMirrorFilterRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18067,7 +18566,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18087,6 +18586,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyTrafficMirrorSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18102,7 +18602,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18122,6 +18622,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyTransitGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18137,7 +18638,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18157,6 +18658,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyTransitGatewayPrefixListReference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18172,7 +18674,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18192,6 +18694,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyTransitGatewayVpcAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18207,7 +18710,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18227,6 +18730,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVerifiedAccessEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -18250,7 +18754,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18270,6 +18774,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVerifiedAccessEndpointPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -18293,7 +18798,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18313,6 +18818,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVerifiedAccessGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -18336,7 +18842,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18356,6 +18862,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVerifiedAccessGroupPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -18379,7 +18886,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18399,6 +18906,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVerifiedAccessInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -18422,7 +18930,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18442,6 +18950,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVerifiedAccessInstanceLoggingConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -18465,7 +18974,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18485,6 +18994,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVerifiedAccessTrustProvider") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -18508,7 +19018,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18528,6 +19038,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18543,7 +19054,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18563,6 +19074,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVolumeAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18578,7 +19090,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18598,6 +19110,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpcAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18613,7 +19126,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18633,6 +19146,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18648,7 +19162,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18668,6 +19182,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpcEndpointConnectionNotification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18683,7 +19198,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18703,6 +19218,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpcEndpointServiceConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18718,7 +19234,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18738,6 +19254,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpcEndpointServicePayerResponsibility") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18753,7 +19270,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18773,6 +19290,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpcEndpointServicePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18788,7 +19306,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18817,6 +19335,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpcPeeringConnectionOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18832,7 +19351,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18852,6 +19371,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpcTenancy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18867,7 +19387,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18898,6 +19418,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpnConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18913,7 +19434,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18933,6 +19454,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpnConnectionOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18948,7 +19470,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -18968,6 +19490,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpnTunnelCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -18983,7 +19506,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19003,6 +19526,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyVpnTunnelOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19018,7 +19542,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19038,6 +19562,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "monitorInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19053,7 +19578,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19073,6 +19598,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "moveAddressToVpc") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19088,7 +19614,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19108,6 +19634,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "moveByoipCidrToIpam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19123,7 +19650,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19143,6 +19670,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "provisionByoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19158,7 +19686,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19178,6 +19706,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "provisionIpamPoolCidr") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -19201,7 +19730,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19221,6 +19750,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "provisionPublicIpv4PoolCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19236,7 +19766,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19256,6 +19786,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseHostReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19271,7 +19802,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19291,6 +19822,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseReservedInstancesOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19306,7 +19838,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19326,6 +19858,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseScheduledInstances") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -19349,7 +19882,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19369,6 +19902,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19384,7 +19918,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19413,6 +19947,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19428,7 +19963,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19448,6 +19983,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerInstanceEventNotificationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19463,7 +19999,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19483,6 +20019,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerTransitGatewayMulticastGroupMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19498,7 +20035,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19518,6 +20055,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerTransitGatewayMulticastGroupSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19533,7 +20071,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19553,6 +20091,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectTransitGatewayMulticastDomainAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19568,7 +20107,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19588,6 +20127,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectTransitGatewayPeeringAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19603,7 +20143,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19623,6 +20163,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectTransitGatewayVpcAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19638,7 +20179,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19658,6 +20199,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectVpcEndpointConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19673,7 +20215,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19693,6 +20235,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectVpcPeeringConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19708,7 +20251,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19728,6 +20271,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "releaseAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19743,7 +20287,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19763,6 +20307,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "releaseHosts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19778,7 +20323,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19798,6 +20343,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "releaseIpamPoolAllocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19813,7 +20359,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19833,6 +20379,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replaceIamInstanceProfileAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19848,7 +20395,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19868,6 +20415,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replaceNetworkAclAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19883,7 +20431,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19903,6 +20451,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replaceNetworkAclEntry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19918,7 +20467,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19938,6 +20487,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replaceRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19953,7 +20503,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -19973,6 +20523,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replaceRouteTableAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -19988,7 +20539,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20008,6 +20559,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replaceTransitGatewayRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20023,7 +20575,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20043,6 +20595,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replaceVpnTunnel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20058,7 +20611,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20078,6 +20631,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reportInstanceStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20093,7 +20647,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20113,6 +20667,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "requestSpotFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20128,7 +20683,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20148,6 +20703,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "requestSpotInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20163,7 +20719,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20183,6 +20739,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetAddressAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20198,7 +20755,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20218,6 +20775,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetEbsDefaultKmsKeyId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20233,7 +20791,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20253,6 +20811,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetFpgaImageAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20268,7 +20827,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20288,6 +20847,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetImageAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20303,7 +20863,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20323,6 +20883,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetInstanceAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20338,7 +20899,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20358,6 +20919,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetNetworkInterfaceAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20373,7 +20935,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20393,6 +20955,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetSnapshotAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20408,7 +20971,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20428,6 +20991,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreAddressToClassic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20443,7 +21007,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20463,6 +21027,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreImageFromRecycleBin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20478,7 +21043,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20498,6 +21063,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreManagedPrefixListVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20513,7 +21079,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20533,6 +21099,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreSnapshotFromRecycleBin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20548,7 +21115,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20568,6 +21135,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreSnapshotTier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20583,7 +21151,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20603,6 +21171,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeClientVpnIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20618,7 +21187,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20638,6 +21207,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeSecurityGroupEgress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20653,7 +21223,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20673,6 +21243,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeSecurityGroupIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20688,7 +21259,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20725,6 +21296,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "runInstances") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -20748,7 +21320,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20768,6 +21340,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "runScheduledInstances") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -20791,7 +21364,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20811,6 +21384,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchLocalGatewayRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20826,7 +21400,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20846,6 +21420,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchTransitGatewayMulticastGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20861,7 +21436,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20881,6 +21456,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchTransitGatewayRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20896,7 +21472,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20916,6 +21492,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendDiagnosticInterrupt") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20931,7 +21508,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20951,6 +21528,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -20966,7 +21544,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -20986,6 +21564,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startNetworkInsightsAccessScopeAnalysis") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -21009,7 +21588,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21029,6 +21608,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startNetworkInsightsAnalysis") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -21052,7 +21632,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21072,6 +21652,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startVpcEndpointServicePrivateDnsVerification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21087,7 +21668,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21107,6 +21688,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21122,7 +21704,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21142,6 +21724,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateClientVpnConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21157,7 +21740,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21202,6 +21785,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21217,7 +21801,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21237,6 +21821,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unassignIpv6Addresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21252,7 +21837,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21272,6 +21857,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unassignPrivateIpAddresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21287,7 +21873,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21307,6 +21893,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unassignPrivateNatGatewayAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21322,7 +21909,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21342,6 +21929,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unmonitorInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21357,7 +21945,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21377,6 +21965,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecurityGroupRuleDescriptionsEgress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21392,7 +21981,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21412,6 +22001,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecurityGroupRuleDescriptionsIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21427,7 +22017,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -21447,6 +22037,7 @@ extension EC2Client: EC2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "withdrawByoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -21462,7 +22053,7 @@ extension EC2Client: EC2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEC2/models/Models.swift b/Sources/Services/AWSEC2/models/Models.swift index 6394a8ae592..f353335b2dd 100644 --- a/Sources/Services/AWSEC2/models/Models.swift +++ b/Sources/Services/AWSEC2/models/Models.swift @@ -423,9 +423,8 @@ public enum AcceptAddressTransferOutputError: Swift.Error, Swift.Equatable { extension AcceptAddressTransferOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptAddressTransferOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressTransfer = output.addressTransfer } else { @@ -604,9 +603,8 @@ public enum AcceptReservedInstancesExchangeQuoteOutputError: Swift.Error, Swift. extension AcceptReservedInstancesExchangeQuoteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptReservedInstancesExchangeQuoteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exchangeId = output.exchangeId } else { @@ -769,9 +767,8 @@ public enum AcceptTransitGatewayMulticastDomainAssociationsOutputError: Swift.Er extension AcceptTransitGatewayMulticastDomainAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptTransitGatewayMulticastDomainAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations } else { @@ -886,9 +883,8 @@ public enum AcceptTransitGatewayPeeringAttachmentOutputError: Swift.Error, Swift extension AcceptTransitGatewayPeeringAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptTransitGatewayPeeringAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPeeringAttachment = output.transitGatewayPeeringAttachment } else { @@ -1003,9 +999,8 @@ public enum AcceptTransitGatewayVpcAttachmentOutputError: Swift.Error, Swift.Equ extension AcceptTransitGatewayVpcAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptTransitGatewayVpcAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayVpcAttachment = output.transitGatewayVpcAttachment } else { @@ -1158,9 +1153,8 @@ public enum AcceptVpcEndpointConnectionsOutputError: Swift.Error, Swift.Equatabl extension AcceptVpcEndpointConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptVpcEndpointConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unsuccessful = output.unsuccessful } else { @@ -1292,9 +1286,8 @@ public enum AcceptVpcPeeringConnectionOutputError: Swift.Error, Swift.Equatable extension AcceptVpcPeeringConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptVpcPeeringConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcPeeringConnection = output.vpcPeeringConnection } else { @@ -2695,9 +2688,8 @@ public enum AdvertiseByoipCidrOutputError: Swift.Error, Swift.Equatable { extension AdvertiseByoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdvertiseByoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { @@ -2924,9 +2916,8 @@ public enum AllocateAddressOutputError: Swift.Error, Swift.Equatable { extension AllocateAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocateAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allocationId = output.allocationId self.carrierIp = output.carrierIp @@ -3226,9 +3217,8 @@ public enum AllocateHostsOutputError: Swift.Error, Swift.Equatable { extension AllocateHostsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocateHostsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostIds = output.hostIds } else { @@ -3467,9 +3457,8 @@ public enum AllocateIpamPoolCidrOutputError: Swift.Error, Swift.Equatable { extension AllocateIpamPoolCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocateIpamPoolCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPoolAllocation = output.ipamPoolAllocation } else { @@ -4686,9 +4675,8 @@ public enum ApplySecurityGroupsToClientVpnTargetNetworkOutputError: Swift.Error, extension ApplySecurityGroupsToClientVpnTargetNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplySecurityGroupsToClientVpnTargetNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityGroupIds = output.securityGroupIds } else { @@ -4987,9 +4975,8 @@ public enum AssignIpv6AddressesOutputError: Swift.Error, Swift.Equatable { extension AssignIpv6AddressesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssignIpv6AddressesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assignedIpv6Addresses = output.assignedIpv6Addresses self.assignedIpv6Prefixes = output.assignedIpv6Prefixes @@ -5255,9 +5242,8 @@ public enum AssignPrivateIpAddressesOutputError: Swift.Error, Swift.Equatable { extension AssignPrivateIpAddressesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssignPrivateIpAddressesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assignedIpv4Prefixes = output.assignedIpv4Prefixes self.assignedPrivateIpAddresses = output.assignedPrivateIpAddresses @@ -5474,9 +5460,8 @@ public enum AssignPrivateNatGatewayAddressOutputError: Swift.Error, Swift.Equata extension AssignPrivateNatGatewayAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssignPrivateNatGatewayAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.natGatewayAddresses = output.natGatewayAddresses self.natGatewayId = output.natGatewayId @@ -5707,9 +5692,8 @@ public enum AssociateAddressOutputError: Swift.Error, Swift.Equatable { extension AssociateAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationId = output.associationId } else { @@ -5847,9 +5831,8 @@ public enum AssociateClientVpnTargetNetworkOutputError: Swift.Error, Swift.Equat extension AssociateClientVpnTargetNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateClientVpnTargetNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationId = output.associationId self.status = output.status @@ -6084,9 +6067,8 @@ public enum AssociateEnclaveCertificateIamRoleOutputError: Swift.Error, Swift.Eq extension AssociateEnclaveCertificateIamRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateEnclaveCertificateIamRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateS3BucketName = output.certificateS3BucketName self.certificateS3ObjectKey = output.certificateS3ObjectKey @@ -6222,9 +6204,8 @@ public enum AssociateIamInstanceProfileOutputError: Swift.Error, Swift.Equatable extension AssociateIamInstanceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateIamInstanceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iamInstanceProfileAssociation = output.iamInstanceProfileAssociation } else { @@ -6351,9 +6332,8 @@ public enum AssociateInstanceEventWindowOutputError: Swift.Error, Swift.Equatabl extension AssociateInstanceEventWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateInstanceEventWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceEventWindow = output.instanceEventWindow } else { @@ -6528,9 +6508,8 @@ public enum AssociateIpamResourceDiscoveryOutputError: Swift.Error, Swift.Equata extension AssociateIpamResourceDiscoveryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateIpamResourceDiscoveryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceDiscoveryAssociation = output.ipamResourceDiscoveryAssociation } else { @@ -6720,9 +6699,8 @@ public enum AssociateNatGatewayAddressOutputError: Swift.Error, Swift.Equatable extension AssociateNatGatewayAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateNatGatewayAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.natGatewayAddresses = output.natGatewayAddresses self.natGatewayId = output.natGatewayId @@ -6886,9 +6864,8 @@ public enum AssociateRouteTableOutputError: Swift.Error, Swift.Equatable { extension AssociateRouteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateRouteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationId = output.associationId self.associationState = output.associationState @@ -7014,9 +6991,8 @@ public enum AssociateSubnetCidrBlockOutputError: Swift.Error, Swift.Equatable { extension AssociateSubnetCidrBlockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateSubnetCidrBlockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipv6CidrBlockAssociation = output.ipv6CidrBlockAssociation self.subnetId = output.subnetId @@ -7191,9 +7167,8 @@ public enum AssociateTransitGatewayMulticastDomainOutputError: Swift.Error, Swif extension AssociateTransitGatewayMulticastDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTransitGatewayMulticastDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations } else { @@ -7320,9 +7295,8 @@ public enum AssociateTransitGatewayPolicyTableOutputError: Swift.Error, Swift.Eq extension AssociateTransitGatewayPolicyTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTransitGatewayPolicyTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.association = output.association } else { @@ -7449,9 +7423,8 @@ public enum AssociateTransitGatewayRouteTableOutputError: Swift.Error, Swift.Equ extension AssociateTransitGatewayRouteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTransitGatewayRouteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.association = output.association } else { @@ -7611,9 +7584,8 @@ public enum AssociateTrunkInterfaceOutputError: Swift.Error, Swift.Equatable { extension AssociateTrunkInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTrunkInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.interfaceAssociation = output.interfaceAssociation @@ -7826,9 +7798,8 @@ public enum AssociateVpcCidrBlockOutputError: Swift.Error, Swift.Equatable { extension AssociateVpcCidrBlockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateVpcCidrBlockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cidrBlockAssociation = output.cidrBlockAssociation self.ipv6CidrBlockAssociation = output.ipv6CidrBlockAssociation @@ -8305,9 +8276,8 @@ public enum AttachClassicLinkVpcOutputError: Swift.Error, Swift.Equatable { extension AttachClassicLinkVpcOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachClassicLinkVpcOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -8567,9 +8537,8 @@ public enum AttachNetworkInterfaceOutputError: Swift.Error, Swift.Equatable { extension AttachNetworkInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachNetworkInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachmentId = output.attachmentId self.networkCardIndex = output.networkCardIndex @@ -8718,9 +8687,8 @@ public enum AttachVerifiedAccessTrustProviderOutputError: Swift.Error, Swift.Equ extension AttachVerifiedAccessTrustProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachVerifiedAccessTrustProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessInstance = output.verifiedAccessInstance self.verifiedAccessTrustProvider = output.verifiedAccessTrustProvider @@ -8869,9 +8837,8 @@ public enum AttachVolumeOutputError: Swift.Error, Swift.Equatable { extension AttachVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachTime = output.attachTime self.deleteOnTermination = output.deleteOnTermination @@ -9050,9 +9017,8 @@ public enum AttachVpnGatewayOutputError: Swift.Error, Swift.Equatable { extension AttachVpnGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachVpnGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcAttachment = output.vpcAttachment } else { @@ -9497,9 +9463,8 @@ public enum AuthorizeClientVpnIngressOutputError: Swift.Error, Swift.Equatable { extension AuthorizeClientVpnIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeClientVpnIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -9754,9 +9719,8 @@ public enum AuthorizeSecurityGroupEgressOutputError: Swift.Error, Swift.Equatabl extension AuthorizeSecurityGroupEgressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeSecurityGroupEgressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` self.securityGroupRules = output.securityGroupRules @@ -10048,9 +10012,8 @@ public enum AuthorizeSecurityGroupIngressOutputError: Swift.Error, Swift.Equatab extension AuthorizeSecurityGroupIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeSecurityGroupIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` self.securityGroupRules = output.securityGroupRules @@ -11018,9 +10981,8 @@ public enum BundleInstanceOutputError: Swift.Error, Swift.Equatable { extension BundleInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BundleInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundleTask = output.bundleTask } else { @@ -11522,9 +11484,8 @@ public enum CancelBundleTaskOutputError: Swift.Error, Swift.Equatable { extension CancelBundleTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelBundleTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundleTask = output.bundleTask } else { @@ -11711,9 +11672,8 @@ public enum CancelCapacityReservationFleetsOutputError: Swift.Error, Swift.Equat extension CancelCapacityReservationFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelCapacityReservationFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedFleetCancellations = output.failedFleetCancellations self.successfulFleetCancellations = output.successfulFleetCancellations @@ -11872,9 +11832,8 @@ public enum CancelCapacityReservationOutputError: Swift.Error, Swift.Equatable { extension CancelCapacityReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelCapacityReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -12161,9 +12120,8 @@ public enum CancelImageLaunchPermissionOutputError: Swift.Error, Swift.Equatable extension CancelImageLaunchPermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelImageLaunchPermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -12288,9 +12246,8 @@ public enum CancelImportTaskOutputError: Swift.Error, Swift.Equatable { extension CancelImportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelImportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importTaskId = output.importTaskId self.previousState = output.previousState @@ -12415,9 +12372,8 @@ public enum CancelReservedInstancesListingOutputError: Swift.Error, Swift.Equata extension CancelReservedInstancesListingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelReservedInstancesListingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedInstancesListings = output.reservedInstancesListings } else { @@ -12679,9 +12635,8 @@ public enum CancelSpotFleetRequestsOutputError: Swift.Error, Swift.Equatable { extension CancelSpotFleetRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelSpotFleetRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successfulFleetRequests = output.successfulFleetRequests self.unsuccessfulFleetRequests = output.unsuccessfulFleetRequests @@ -12964,9 +12919,8 @@ public enum CancelSpotInstanceRequestsOutputError: Swift.Error, Swift.Equatable extension CancelSpotInstanceRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelSpotInstanceRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cancelledSpotInstanceRequests = output.cancelledSpotInstanceRequests } else { @@ -16834,9 +16788,8 @@ public enum ConfirmProductInstanceOutputError: Swift.Error, Swift.Equatable { extension ConfirmProductInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfirmProductInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` self.ownerId = output.ownerId @@ -17518,9 +17471,8 @@ public enum CopyFpgaImageOutputError: Swift.Error, Swift.Equatable { extension CopyFpgaImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyFpgaImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fpgaImageId = output.fpgaImageId } else { @@ -17744,9 +17696,8 @@ public enum CopyImageOutputError: Swift.Error, Swift.Equatable { extension CopyImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId } else { @@ -17993,9 +17944,8 @@ public enum CopySnapshotOutputError: Swift.Error, Swift.Equatable { extension CopySnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopySnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotId = output.snapshotId self.tags = output.tags @@ -18425,9 +18375,8 @@ public enum CreateCapacityReservationFleetOutputError: Swift.Error, Swift.Equata extension CreateCapacityReservationFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCapacityReservationFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allocationStrategy = output.allocationStrategy self.capacityReservationFleetId = output.capacityReservationFleetId @@ -18873,9 +18822,8 @@ public enum CreateCapacityReservationOutputError: Swift.Error, Swift.Equatable { extension CreateCapacityReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCapacityReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityReservation = output.capacityReservation } else { @@ -19038,9 +18986,8 @@ public enum CreateCarrierGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateCarrierGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCarrierGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.carrierGateway = output.carrierGateway } else { @@ -19446,9 +19393,8 @@ public enum CreateClientVpnEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateClientVpnEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClientVpnEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientVpnEndpointId = output.clientVpnEndpointId self.dnsName = output.dnsName @@ -19637,9 +19583,8 @@ public enum CreateClientVpnRouteOutputError: Swift.Error, Swift.Equatable { extension CreateClientVpnRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClientVpnRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -19766,9 +19711,8 @@ public enum CreateCoipCidrOutputError: Swift.Error, Swift.Equatable { extension CreateCoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coipCidr = output.coipCidr } else { @@ -19920,9 +19864,8 @@ public enum CreateCoipPoolOutputError: Swift.Error, Swift.Equatable { extension CreateCoipPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCoipPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coipPool = output.coipPool } else { @@ -20130,9 +20073,8 @@ public enum CreateCustomerGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateCustomerGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomerGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerGateway = output.customerGateway } else { @@ -20259,9 +20201,8 @@ public enum CreateDefaultSubnetOutputError: Swift.Error, Swift.Equatable { extension CreateDefaultSubnetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDefaultSubnetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnet = output.subnet } else { @@ -20364,9 +20305,8 @@ public enum CreateDefaultVpcOutputError: Swift.Error, Swift.Equatable { extension CreateDefaultVpcOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDefaultVpcOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpc = output.vpc } else { @@ -20544,9 +20484,8 @@ public enum CreateDhcpOptionsOutputError: Swift.Error, Swift.Equatable { extension CreateDhcpOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDhcpOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dhcpOptions = output.dhcpOptions } else { @@ -20709,9 +20648,8 @@ public enum CreateEgressOnlyInternetGatewayOutputError: Swift.Error, Swift.Equat extension CreateEgressOnlyInternetGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEgressOnlyInternetGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.egressOnlyInternetGateway = output.egressOnlyInternetGateway @@ -21196,9 +21134,8 @@ public enum CreateFleetOutputError: Swift.Error, Swift.Equatable { extension CreateFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.fleetId = output.fleetId @@ -21558,9 +21495,8 @@ public enum CreateFlowLogsOutputError: Swift.Error, Swift.Equatable { extension CreateFlowLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFlowLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.flowLogIds = output.flowLogIds @@ -21810,9 +21746,8 @@ public enum CreateFpgaImageOutputError: Swift.Error, Swift.Equatable { extension CreateFpgaImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFpgaImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fpgaImageGlobalId = output.fpgaImageGlobalId self.fpgaImageId = output.fpgaImageId @@ -22052,9 +21987,8 @@ public enum CreateImageOutputError: Swift.Error, Swift.Equatable { extension CreateImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId } else { @@ -22268,9 +22202,8 @@ public enum CreateInstanceEventWindowOutputError: Swift.Error, Swift.Equatable { extension CreateInstanceEventWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstanceEventWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceEventWindow = output.instanceEventWindow } else { @@ -22446,9 +22379,8 @@ public enum CreateInstanceExportTaskOutputError: Swift.Error, Swift.Equatable { extension CreateInstanceExportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstanceExportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportTask = output.exportTask } else { @@ -22588,9 +22520,8 @@ public enum CreateInternetGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateInternetGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInternetGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.internetGateway = output.internetGateway } else { @@ -22789,9 +22720,8 @@ public enum CreateIpamOutputError: Swift.Error, Swift.Equatable { extension CreateIpamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIpamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipam = output.ipam } else { @@ -23113,9 +23043,8 @@ public enum CreateIpamPoolOutputError: Swift.Error, Swift.Equatable { extension CreateIpamPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIpamPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPool = output.ipamPool } else { @@ -23314,9 +23243,8 @@ public enum CreateIpamResourceDiscoveryOutputError: Swift.Error, Swift.Equatable extension CreateIpamResourceDiscoveryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIpamResourceDiscoveryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceDiscovery = output.ipamResourceDiscovery } else { @@ -23490,9 +23418,8 @@ public enum CreateIpamScopeOutputError: Swift.Error, Swift.Equatable { extension CreateIpamScopeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIpamScopeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamScope = output.ipamScope } else { @@ -23671,9 +23598,8 @@ extension CreateKeyPairOutputResponse: Swift.CustomDebugStringConvertible { extension CreateKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyFingerprint = output.keyFingerprint self.keyMaterial = output.keyMaterial @@ -23924,9 +23850,8 @@ public enum CreateLaunchTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateLaunchTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLaunchTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchTemplate = output.launchTemplate self.warning = output.warning @@ -24122,9 +24047,8 @@ public enum CreateLaunchTemplateVersionOutputError: Swift.Error, Swift.Equatable extension CreateLaunchTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLaunchTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchTemplateVersion = output.launchTemplateVersion self.warning = output.warning @@ -24293,9 +24217,8 @@ public enum CreateLocalGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension CreateLocalGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocalGatewayRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.route = output.route } else { @@ -24458,9 +24381,8 @@ public enum CreateLocalGatewayRouteTableOutputError: Swift.Error, Swift.Equatabl extension CreateLocalGatewayRouteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocalGatewayRouteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTable = output.localGatewayRouteTable } else { @@ -24624,9 +24546,8 @@ public enum CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputEr extension CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTableVirtualInterfaceGroupAssociation = output.localGatewayRouteTableVirtualInterfaceGroupAssociation } else { @@ -24790,9 +24711,8 @@ public enum CreateLocalGatewayRouteTableVpcAssociationOutputError: Swift.Error, extension CreateLocalGatewayRouteTableVpcAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocalGatewayRouteTableVpcAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTableVpcAssociation = output.localGatewayRouteTableVpcAssociation } else { @@ -25016,9 +24936,8 @@ public enum CreateManagedPrefixListOutputError: Swift.Error, Swift.Equatable { extension CreateManagedPrefixListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateManagedPrefixListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.prefixList = output.prefixList } else { @@ -25299,9 +25218,8 @@ public enum CreateNatGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateNatGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNatGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.natGateway = output.natGateway @@ -25641,9 +25559,8 @@ public enum CreateNetworkAclOutputError: Swift.Error, Swift.Equatable { extension CreateNetworkAclOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkAclOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkAcl = output.networkAcl } else { @@ -25869,9 +25786,8 @@ public enum CreateNetworkInsightsAccessScopeOutputError: Swift.Error, Swift.Equa extension CreateNetworkInsightsAccessScopeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkInsightsAccessScopeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAccessScope = output.networkInsightsAccessScope self.networkInsightsAccessScopeContent = output.networkInsightsAccessScopeContent @@ -26123,9 +26039,8 @@ public enum CreateNetworkInsightsPathOutputError: Swift.Error, Swift.Equatable { extension CreateNetworkInsightsPathOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkInsightsPathOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsPath = output.networkInsightsPath } else { @@ -26550,9 +26465,8 @@ public enum CreateNetworkInterfaceOutputError: Swift.Error, Swift.Equatable { extension CreateNetworkInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.networkInterface = output.networkInterface @@ -26712,9 +26626,8 @@ public enum CreateNetworkInterfacePermissionOutputError: Swift.Error, Swift.Equa extension CreateNetworkInterfacePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkInterfacePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.interfacePermission = output.interfacePermission } else { @@ -26903,9 +26816,8 @@ public enum CreatePlacementGroupOutputError: Swift.Error, Swift.Equatable { extension CreatePlacementGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePlacementGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.placementGroup = output.placementGroup } else { @@ -27045,9 +26957,8 @@ public enum CreatePublicIpv4PoolOutputError: Swift.Error, Swift.Equatable { extension CreatePublicIpv4PoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePublicIpv4PoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.poolId = output.poolId } else { @@ -27243,9 +27154,8 @@ public enum CreateReplaceRootVolumeTaskOutputError: Swift.Error, Swift.Equatable extension CreateReplaceRootVolumeTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplaceRootVolumeTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replaceRootVolumeTask = output.replaceRootVolumeTask } else { @@ -27412,9 +27322,8 @@ public enum CreateReservedInstancesListingOutputError: Swift.Error, Swift.Equata extension CreateReservedInstancesListingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReservedInstancesListingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedInstancesListings = output.reservedInstancesListings } else { @@ -27611,9 +27520,8 @@ public enum CreateRestoreImageTaskOutputError: Swift.Error, Swift.Equatable { extension CreateRestoreImageTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRestoreImageTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId } else { @@ -27882,9 +27790,8 @@ public enum CreateRouteOutputError: Swift.Error, Swift.Equatable { extension CreateRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -28036,9 +27943,8 @@ public enum CreateRouteTableOutputError: Swift.Error, Swift.Equatable { extension CreateRouteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRouteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routeTable = output.routeTable } else { @@ -28213,9 +28119,8 @@ public enum CreateSecurityGroupOutputError: Swift.Error, Swift.Equatable { extension CreateSecurityGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSecurityGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupId = output.groupId self.tags = output.tags @@ -28425,9 +28330,8 @@ public enum CreateSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataEncryptionKeyId = output.dataEncryptionKeyId self.description = output.description @@ -28799,9 +28703,8 @@ public enum CreateSnapshotsOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshots = output.snapshots } else { @@ -28945,9 +28848,8 @@ public enum CreateSpotDatafeedSubscriptionOutputError: Swift.Error, Swift.Equata extension CreateSpotDatafeedSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSpotDatafeedSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.spotDatafeedSubscription = output.spotDatafeedSubscription } else { @@ -29112,9 +29014,8 @@ public enum CreateStoreImageTaskOutputError: Swift.Error, Swift.Equatable { extension CreateStoreImageTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStoreImageTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.objectKey = output.objectKey } else { @@ -29305,9 +29206,8 @@ public enum CreateSubnetCidrReservationOutputError: Swift.Error, Swift.Equatable extension CreateSubnetCidrReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSubnetCidrReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnetCidrReservation = output.subnetCidrReservation } else { @@ -29525,9 +29425,8 @@ public enum CreateSubnetOutputError: Swift.Error, Swift.Equatable { extension CreateSubnetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSubnetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnet = output.subnet } else { @@ -29839,9 +29738,8 @@ public enum CreateTrafficMirrorFilterOutputError: Swift.Error, Swift.Equatable { extension CreateTrafficMirrorFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrafficMirrorFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.trafficMirrorFilter = output.trafficMirrorFilter @@ -30081,9 +29979,8 @@ public enum CreateTrafficMirrorFilterRuleOutputError: Swift.Error, Swift.Equatab extension CreateTrafficMirrorFilterRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrafficMirrorFilterRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.trafficMirrorFilterRule = output.trafficMirrorFilterRule @@ -30325,9 +30222,8 @@ public enum CreateTrafficMirrorSessionOutputError: Swift.Error, Swift.Equatable extension CreateTrafficMirrorSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrafficMirrorSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.trafficMirrorSession = output.trafficMirrorSession @@ -30532,9 +30428,8 @@ public enum CreateTrafficMirrorTargetOutputError: Swift.Error, Swift.Equatable { extension CreateTrafficMirrorTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrafficMirrorTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.trafficMirrorTarget = output.trafficMirrorTarget @@ -30708,9 +30603,8 @@ public enum CreateTransitGatewayConnectOutputError: Swift.Error, Swift.Equatable extension CreateTransitGatewayConnectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayConnectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayConnect = output.transitGatewayConnect } else { @@ -30934,9 +30828,8 @@ public enum CreateTransitGatewayConnectPeerOutputError: Swift.Error, Swift.Equat extension CreateTransitGatewayConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayConnectPeer = output.transitGatewayConnectPeer } else { @@ -31239,9 +31132,8 @@ public enum CreateTransitGatewayMulticastDomainOutputError: Swift.Error, Swift.E extension CreateTransitGatewayMulticastDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayMulticastDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayMulticastDomain = output.transitGatewayMulticastDomain } else { @@ -31354,9 +31246,8 @@ public enum CreateTransitGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateTransitGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGateway = output.transitGateway } else { @@ -31555,9 +31446,8 @@ public enum CreateTransitGatewayPeeringAttachmentOutputError: Swift.Error, Swift extension CreateTransitGatewayPeeringAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayPeeringAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPeeringAttachment = output.transitGatewayPeeringAttachment } else { @@ -31744,9 +31634,8 @@ public enum CreateTransitGatewayPolicyTableOutputError: Swift.Error, Swift.Equat extension CreateTransitGatewayPolicyTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayPolicyTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPolicyTable = output.transitGatewayPolicyTable } else { @@ -31895,9 +31784,8 @@ public enum CreateTransitGatewayPrefixListReferenceOutputError: Swift.Error, Swi extension CreateTransitGatewayPrefixListReferenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayPrefixListReferenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPrefixListReference = output.transitGatewayPrefixListReference } else { @@ -32046,9 +31934,8 @@ public enum CreateTransitGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension CreateTransitGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.route = output.route } else { @@ -32212,9 +32099,8 @@ public enum CreateTransitGatewayRouteTableAnnouncementOutputError: Swift.Error, extension CreateTransitGatewayRouteTableAnnouncementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayRouteTableAnnouncementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayRouteTableAnnouncement = output.transitGatewayRouteTableAnnouncement } else { @@ -32366,9 +32252,8 @@ public enum CreateTransitGatewayRouteTableOutputError: Swift.Error, Swift.Equata extension CreateTransitGatewayRouteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayRouteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayRouteTable = output.transitGatewayRouteTable } else { @@ -32581,9 +32466,8 @@ public enum CreateTransitGatewayVpcAttachmentOutputError: Swift.Error, Swift.Equ extension CreateTransitGatewayVpcAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayVpcAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayVpcAttachment = output.transitGatewayVpcAttachment } else { @@ -33088,9 +32972,8 @@ public enum CreateVerifiedAccessEndpointOutputError: Swift.Error, Swift.Equatabl extension CreateVerifiedAccessEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVerifiedAccessEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessEndpoint = output.verifiedAccessEndpoint } else { @@ -33275,9 +33158,8 @@ public enum CreateVerifiedAccessGroupOutputError: Swift.Error, Swift.Equatable { extension CreateVerifiedAccessGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVerifiedAccessGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessGroup = output.verifiedAccessGroup } else { @@ -33439,9 +33321,8 @@ public enum CreateVerifiedAccessInstanceOutputError: Swift.Error, Swift.Equatabl extension CreateVerifiedAccessInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVerifiedAccessInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessInstance = output.verifiedAccessInstance } else { @@ -33801,9 +33682,8 @@ public enum CreateVerifiedAccessTrustProviderOutputError: Swift.Error, Swift.Equ extension CreateVerifiedAccessTrustProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVerifiedAccessTrustProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessTrustProvider = output.verifiedAccessTrustProvider } else { @@ -34106,9 +33986,8 @@ public enum CreateVolumeOutputError: Swift.Error, Swift.Equatable { extension CreateVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachments = output.attachments self.availabilityZone = output.availabilityZone @@ -34621,9 +34500,8 @@ public enum CreateVpcEndpointConnectionNotificationOutputError: Swift.Error, Swi extension CreateVpcEndpointConnectionNotificationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcEndpointConnectionNotificationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.connectionNotification = output.connectionNotification @@ -34974,9 +34852,8 @@ public enum CreateVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.vpcEndpoint = output.vpcEndpoint @@ -35270,9 +35147,8 @@ public enum CreateVpcEndpointServiceConfigurationOutputError: Swift.Error, Swift extension CreateVpcEndpointServiceConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcEndpointServiceConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.serviceConfiguration = output.serviceConfiguration @@ -35532,9 +35408,8 @@ public enum CreateVpcOutputError: Swift.Error, Swift.Equatable { extension CreateVpcOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpc = output.vpc } else { @@ -35719,9 +35594,8 @@ public enum CreateVpcPeeringConnectionOutputError: Swift.Error, Swift.Equatable extension CreateVpcPeeringConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcPeeringConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcPeeringConnection = output.vpcPeeringConnection } else { @@ -35919,9 +35793,8 @@ public enum CreateVpnConnectionOutputError: Swift.Error, Swift.Equatable { extension CreateVpnConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpnConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnConnection = output.vpnConnection } else { @@ -36185,9 +36058,8 @@ public enum CreateVpnGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateVpnGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpnGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnGateway = output.vpnGateway } else { @@ -36868,9 +36740,8 @@ public enum DeleteCarrierGatewayOutputError: Swift.Error, Swift.Equatable { extension DeleteCarrierGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCarrierGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.carrierGateway = output.carrierGateway } else { @@ -36985,9 +36856,8 @@ public enum DeleteClientVpnEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteClientVpnEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClientVpnEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -37125,9 +36995,8 @@ public enum DeleteClientVpnRouteOutputError: Swift.Error, Swift.Equatable { extension DeleteClientVpnRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClientVpnRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -37254,9 +37123,8 @@ public enum DeleteCoipCidrOutputError: Swift.Error, Swift.Equatable { extension DeleteCoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coipCidr = output.coipCidr } else { @@ -37371,9 +37239,8 @@ public enum DeleteCoipPoolOutputError: Swift.Error, Swift.Equatable { extension DeleteCoipPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCoipPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coipPool = output.coipPool } else { @@ -37661,9 +37528,8 @@ public enum DeleteEgressOnlyInternetGatewayOutputError: Swift.Error, Swift.Equat extension DeleteEgressOnlyInternetGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEgressOnlyInternetGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnCode = output.returnCode } else { @@ -37999,9 +37865,8 @@ public enum DeleteFleetsOutputError: Swift.Error, Swift.Equatable { extension DeleteFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successfulFleetDeletions = output.successfulFleetDeletions self.unsuccessfulFleetDeletions = output.unsuccessfulFleetDeletions @@ -38186,9 +38051,8 @@ public enum DeleteFlowLogsOutputError: Swift.Error, Swift.Equatable { extension DeleteFlowLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFlowLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unsuccessful = output.unsuccessful } else { @@ -38320,9 +38184,8 @@ public enum DeleteFpgaImageOutputError: Swift.Error, Swift.Equatable { extension DeleteFpgaImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFpgaImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -38448,9 +38311,8 @@ public enum DeleteInstanceEventWindowOutputError: Swift.Error, Swift.Equatable { extension DeleteInstanceEventWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInstanceEventWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceEventWindowState = output.instanceEventWindowState } else { @@ -38672,9 +38534,8 @@ public enum DeleteIpamOutputError: Swift.Error, Swift.Equatable { extension DeleteIpamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIpamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipam = output.ipam } else { @@ -38789,9 +38650,8 @@ public enum DeleteIpamPoolOutputError: Swift.Error, Swift.Equatable { extension DeleteIpamPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIpamPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPool = output.ipamPool } else { @@ -38906,9 +38766,8 @@ public enum DeleteIpamResourceDiscoveryOutputError: Swift.Error, Swift.Equatable extension DeleteIpamResourceDiscoveryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIpamResourceDiscoveryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceDiscovery = output.ipamResourceDiscovery } else { @@ -39023,9 +38882,8 @@ public enum DeleteIpamScopeOutputError: Swift.Error, Swift.Equatable { extension DeleteIpamScopeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIpamScopeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamScope = output.ipamScope } else { @@ -39246,9 +39104,8 @@ public enum DeleteLaunchTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteLaunchTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLaunchTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchTemplate = output.launchTemplate } else { @@ -39411,9 +39268,8 @@ public enum DeleteLaunchTemplateVersionsOutputError: Swift.Error, Swift.Equatabl extension DeleteLaunchTemplateVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLaunchTemplateVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successfullyDeletedLaunchTemplateVersions = output.successfullyDeletedLaunchTemplateVersions self.unsuccessfullyDeletedLaunchTemplateVersions = output.unsuccessfullyDeletedLaunchTemplateVersions @@ -39714,9 +39570,8 @@ public enum DeleteLocalGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension DeleteLocalGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLocalGatewayRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.route = output.route } else { @@ -39831,9 +39686,8 @@ public enum DeleteLocalGatewayRouteTableOutputError: Swift.Error, Swift.Equatabl extension DeleteLocalGatewayRouteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLocalGatewayRouteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTable = output.localGatewayRouteTable } else { @@ -39948,9 +39802,8 @@ public enum DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputEr extension DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTableVirtualInterfaceGroupAssociation = output.localGatewayRouteTableVirtualInterfaceGroupAssociation } else { @@ -40065,9 +39918,8 @@ public enum DeleteLocalGatewayRouteTableVpcAssociationOutputError: Swift.Error, extension DeleteLocalGatewayRouteTableVpcAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLocalGatewayRouteTableVpcAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTableVpcAssociation = output.localGatewayRouteTableVpcAssociation } else { @@ -40182,9 +40034,8 @@ public enum DeleteManagedPrefixListOutputError: Swift.Error, Swift.Equatable { extension DeleteManagedPrefixListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteManagedPrefixListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.prefixList = output.prefixList } else { @@ -40299,9 +40150,8 @@ public enum DeleteNatGatewayOutputError: Swift.Error, Swift.Equatable { extension DeleteNatGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNatGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.natGatewayId = output.natGatewayId } else { @@ -40612,9 +40462,8 @@ public enum DeleteNetworkInsightsAccessScopeAnalysisOutputError: Swift.Error, Sw extension DeleteNetworkInsightsAccessScopeAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNetworkInsightsAccessScopeAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAccessScopeAnalysisId = output.networkInsightsAccessScopeAnalysisId } else { @@ -40729,9 +40578,8 @@ public enum DeleteNetworkInsightsAccessScopeOutputError: Swift.Error, Swift.Equa extension DeleteNetworkInsightsAccessScopeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNetworkInsightsAccessScopeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAccessScopeId = output.networkInsightsAccessScopeId } else { @@ -40846,9 +40694,8 @@ public enum DeleteNetworkInsightsAnalysisOutputError: Swift.Error, Swift.Equatab extension DeleteNetworkInsightsAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNetworkInsightsAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAnalysisId = output.networkInsightsAnalysisId } else { @@ -40963,9 +40810,8 @@ public enum DeleteNetworkInsightsPathOutputError: Swift.Error, Swift.Equatable { extension DeleteNetworkInsightsPathOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNetworkInsightsPathOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsPathId = output.networkInsightsPathId } else { @@ -41179,9 +41025,8 @@ public enum DeleteNetworkInterfacePermissionOutputError: Swift.Error, Swift.Equa extension DeleteNetworkInterfacePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNetworkInterfacePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -41383,9 +41228,8 @@ public enum DeletePublicIpv4PoolOutputError: Swift.Error, Swift.Equatable { extension DeletePublicIpv4PoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePublicIpv4PoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -41606,9 +41450,8 @@ public enum DeleteQueuedReservedInstancesOutputError: Swift.Error, Swift.Equatab extension DeleteQueuedReservedInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteQueuedReservedInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedQueuedPurchaseDeletions = output.failedQueuedPurchaseDeletions self.successfulQueuedPurchaseDeletions = output.successfulQueuedPurchaseDeletions @@ -42229,9 +42072,8 @@ public enum DeleteSubnetCidrReservationOutputError: Swift.Error, Swift.Equatable extension DeleteSubnetCidrReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSubnetCidrReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletedSubnetCidrReservation = output.deletedSubnetCidrReservation } else { @@ -42581,9 +42423,8 @@ public enum DeleteTrafficMirrorFilterOutputError: Swift.Error, Swift.Equatable { extension DeleteTrafficMirrorFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTrafficMirrorFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficMirrorFilterId = output.trafficMirrorFilterId } else { @@ -42698,9 +42539,8 @@ public enum DeleteTrafficMirrorFilterRuleOutputError: Swift.Error, Swift.Equatab extension DeleteTrafficMirrorFilterRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTrafficMirrorFilterRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficMirrorFilterRuleId = output.trafficMirrorFilterRuleId } else { @@ -42815,9 +42655,8 @@ public enum DeleteTrafficMirrorSessionOutputError: Swift.Error, Swift.Equatable extension DeleteTrafficMirrorSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTrafficMirrorSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficMirrorSessionId = output.trafficMirrorSessionId } else { @@ -42932,9 +42771,8 @@ public enum DeleteTrafficMirrorTargetOutputError: Swift.Error, Swift.Equatable { extension DeleteTrafficMirrorTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTrafficMirrorTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficMirrorTargetId = output.trafficMirrorTargetId } else { @@ -43049,9 +42887,8 @@ public enum DeleteTransitGatewayConnectOutputError: Swift.Error, Swift.Equatable extension DeleteTransitGatewayConnectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayConnectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayConnect = output.transitGatewayConnect } else { @@ -43166,9 +43003,8 @@ public enum DeleteTransitGatewayConnectPeerOutputError: Swift.Error, Swift.Equat extension DeleteTransitGatewayConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayConnectPeer = output.transitGatewayConnectPeer } else { @@ -43340,9 +43176,8 @@ public enum DeleteTransitGatewayMulticastDomainOutputError: Swift.Error, Swift.E extension DeleteTransitGatewayMulticastDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayMulticastDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayMulticastDomain = output.transitGatewayMulticastDomain } else { @@ -43400,9 +43235,8 @@ public enum DeleteTransitGatewayOutputError: Swift.Error, Swift.Equatable { extension DeleteTransitGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGateway = output.transitGateway } else { @@ -43517,9 +43351,8 @@ public enum DeleteTransitGatewayPeeringAttachmentOutputError: Swift.Error, Swift extension DeleteTransitGatewayPeeringAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayPeeringAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPeeringAttachment = output.transitGatewayPeeringAttachment } else { @@ -43634,9 +43467,8 @@ public enum DeleteTransitGatewayPolicyTableOutputError: Swift.Error, Swift.Equat extension DeleteTransitGatewayPolicyTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayPolicyTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPolicyTable = output.transitGatewayPolicyTable } else { @@ -43763,9 +43595,8 @@ public enum DeleteTransitGatewayPrefixListReferenceOutputError: Swift.Error, Swi extension DeleteTransitGatewayPrefixListReferenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayPrefixListReferenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPrefixListReference = output.transitGatewayPrefixListReference } else { @@ -43892,9 +43723,8 @@ public enum DeleteTransitGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension DeleteTransitGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.route = output.route } else { @@ -44009,9 +43839,8 @@ public enum DeleteTransitGatewayRouteTableAnnouncementOutputError: Swift.Error, extension DeleteTransitGatewayRouteTableAnnouncementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayRouteTableAnnouncementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayRouteTableAnnouncement = output.transitGatewayRouteTableAnnouncement } else { @@ -44126,9 +43955,8 @@ public enum DeleteTransitGatewayRouteTableOutputError: Swift.Error, Swift.Equata extension DeleteTransitGatewayRouteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayRouteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayRouteTable = output.transitGatewayRouteTable } else { @@ -44243,9 +44071,8 @@ public enum DeleteTransitGatewayVpcAttachmentOutputError: Swift.Error, Swift.Equ extension DeleteTransitGatewayVpcAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTransitGatewayVpcAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayVpcAttachment = output.transitGatewayVpcAttachment } else { @@ -44371,9 +44198,8 @@ public enum DeleteVerifiedAccessEndpointOutputError: Swift.Error, Swift.Equatabl extension DeleteVerifiedAccessEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVerifiedAccessEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessEndpoint = output.verifiedAccessEndpoint } else { @@ -44499,9 +44325,8 @@ public enum DeleteVerifiedAccessGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteVerifiedAccessGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVerifiedAccessGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessGroup = output.verifiedAccessGroup } else { @@ -44627,9 +44452,8 @@ public enum DeleteVerifiedAccessInstanceOutputError: Swift.Error, Swift.Equatabl extension DeleteVerifiedAccessInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVerifiedAccessInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessInstance = output.verifiedAccessInstance } else { @@ -44755,9 +44579,8 @@ public enum DeleteVerifiedAccessTrustProviderOutputError: Swift.Error, Swift.Equ extension DeleteVerifiedAccessTrustProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVerifiedAccessTrustProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessTrustProvider = output.verifiedAccessTrustProvider } else { @@ -44984,9 +44807,8 @@ public enum DeleteVpcEndpointConnectionNotificationsOutputError: Swift.Error, Sw extension DeleteVpcEndpointConnectionNotificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcEndpointConnectionNotificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unsuccessful = output.unsuccessful } else { @@ -45144,9 +44966,8 @@ public enum DeleteVpcEndpointServiceConfigurationsOutputError: Swift.Error, Swif extension DeleteVpcEndpointServiceConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcEndpointServiceConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unsuccessful = output.unsuccessful } else { @@ -45304,9 +45125,8 @@ public enum DeleteVpcEndpointsOutputError: Swift.Error, Swift.Equatable { extension DeleteVpcEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unsuccessful = output.unsuccessful } else { @@ -45524,9 +45344,8 @@ public enum DeleteVpcPeeringConnectionOutputError: Swift.Error, Swift.Equatable extension DeleteVpcPeeringConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcPeeringConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -45903,9 +45722,8 @@ public enum DeprovisionByoipCidrOutputError: Swift.Error, Swift.Equatable { extension DeprovisionByoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeprovisionByoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { @@ -46031,9 +45849,8 @@ public enum DeprovisionIpamPoolCidrOutputError: Swift.Error, Swift.Equatable { extension DeprovisionIpamPoolCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeprovisionIpamPoolCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPoolCidr = output.ipamPoolCidr } else { @@ -46160,9 +45977,8 @@ public enum DeprovisionPublicIpv4PoolCidrOutputError: Swift.Error, Swift.Equatab extension DeprovisionPublicIpv4PoolCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeprovisionPublicIpv4PoolCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deprovisionedAddresses = output.deprovisionedAddresses self.poolId = output.poolId @@ -46390,9 +46206,8 @@ public enum DeregisterInstanceEventNotificationAttributesOutputError: Swift.Erro extension DeregisterInstanceEventNotificationAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterInstanceEventNotificationAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceTagAttribute = output.instanceTagAttribute } else { @@ -46625,9 +46440,8 @@ public enum DeregisterTransitGatewayMulticastGroupMembersOutputError: Swift.Erro extension DeregisterTransitGatewayMulticastGroupMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterTransitGatewayMulticastGroupMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deregisteredMulticastGroupMembers = output.deregisteredMulticastGroupMembers } else { @@ -46789,9 +46603,8 @@ public enum DeregisterTransitGatewayMulticastGroupSourcesOutputError: Swift.Erro extension DeregisterTransitGatewayMulticastGroupSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterTransitGatewayMulticastGroupSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deregisteredMulticastGroupSources = output.deregisteredMulticastGroupSources } else { @@ -46931,9 +46744,8 @@ public enum DescribeAccountAttributesOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAttributes = output.accountAttributes } else { @@ -47112,9 +46924,8 @@ public enum DescribeAddressTransfersOutputError: Swift.Error, Swift.Equatable { extension DescribeAddressTransfersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAddressTransfersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressTransfers = output.addressTransfers self.nextToken = output.nextToken @@ -47314,9 +47125,8 @@ public enum DescribeAddressesAttributeOutputError: Swift.Error, Swift.Equatable extension DescribeAddressesAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAddressesAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addresses = output.addresses self.nextToken = output.nextToken @@ -47579,9 +47389,8 @@ public enum DescribeAddressesOutputError: Swift.Error, Swift.Equatable { extension DescribeAddressesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAddressesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addresses = output.addresses } else { @@ -47701,9 +47510,8 @@ public enum DescribeAggregateIdFormatOutputError: Swift.Error, Swift.Equatable { extension DescribeAggregateIdFormatOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAggregateIdFormatOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statuses = output.statuses self.useLongIdsAggregated = output.useLongIdsAggregated @@ -47975,9 +47783,8 @@ public enum DescribeAvailabilityZonesOutputError: Swift.Error, Swift.Equatable { extension DescribeAvailabilityZonesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAvailabilityZonesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityZones = output.availabilityZones } else { @@ -48156,9 +47963,8 @@ public enum DescribeAwsNetworkPerformanceMetricSubscriptionsOutputError: Swift.E extension DescribeAwsNetworkPerformanceMetricSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAwsNetworkPerformanceMetricSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscriptions = output.subscriptions @@ -48382,9 +48188,8 @@ public enum DescribeBundleTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeBundleTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBundleTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundleTasks = output.bundleTasks } else { @@ -48527,9 +48332,8 @@ public enum DescribeByoipCidrsOutputError: Swift.Error, Swift.Equatable { extension DescribeByoipCidrsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeByoipCidrsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidrs = output.byoipCidrs self.nextToken = output.nextToken @@ -48763,9 +48567,8 @@ public enum DescribeCapacityReservationFleetsOutputError: Swift.Error, Swift.Equ extension DescribeCapacityReservationFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCapacityReservationFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityReservationFleets = output.capacityReservationFleets self.nextToken = output.nextToken @@ -49049,9 +48852,8 @@ public enum DescribeCapacityReservationsOutputError: Swift.Error, Swift.Equatabl extension DescribeCapacityReservationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCapacityReservationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityReservations = output.capacityReservations self.nextToken = output.nextToken @@ -49289,9 +49091,8 @@ public enum DescribeCarrierGatewaysOutputError: Swift.Error, Swift.Equatable { extension DescribeCarrierGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCarrierGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.carrierGateways = output.carrierGateways self.nextToken = output.nextToken @@ -49527,9 +49328,8 @@ public enum DescribeClassicLinkInstancesOutputError: Swift.Error, Swift.Equatabl extension DescribeClassicLinkInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClassicLinkInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.nextToken = output.nextToken @@ -49736,9 +49536,8 @@ public enum DescribeClientVpnAuthorizationRulesOutputError: Swift.Error, Swift.E extension DescribeClientVpnAuthorizationRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClientVpnAuthorizationRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizationRules = output.authorizationRules self.nextToken = output.nextToken @@ -49943,9 +49742,8 @@ public enum DescribeClientVpnConnectionsOutputError: Swift.Error, Swift.Equatabl extension DescribeClientVpnConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClientVpnConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections self.nextToken = output.nextToken @@ -50175,9 +49973,8 @@ public enum DescribeClientVpnEndpointsOutputError: Swift.Error, Swift.Equatable extension DescribeClientVpnEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClientVpnEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientVpnEndpoints = output.clientVpnEndpoints self.nextToken = output.nextToken @@ -50384,9 +50181,8 @@ public enum DescribeClientVpnRoutesOutputError: Swift.Error, Swift.Equatable { extension DescribeClientVpnRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClientVpnRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routes = output.routes @@ -50630,9 +50426,8 @@ public enum DescribeClientVpnTargetNetworksOutputError: Swift.Error, Swift.Equat extension DescribeClientVpnTargetNetworksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClientVpnTargetNetworksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientVpnTargetNetworks = output.clientVpnTargetNetworks self.nextToken = output.nextToken @@ -50862,9 +50657,8 @@ public enum DescribeCoipPoolsOutputError: Swift.Error, Swift.Equatable { extension DescribeCoipPoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCoipPoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coipPools = output.coipPools self.nextToken = output.nextToken @@ -51031,9 +50825,8 @@ public enum DescribeConversionTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeConversionTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConversionTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conversionTasks = output.conversionTasks } else { @@ -51242,9 +51035,8 @@ public enum DescribeCustomerGatewaysOutputError: Swift.Error, Swift.Equatable { extension DescribeCustomerGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomerGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerGateways = output.customerGateways } else { @@ -51473,9 +51265,8 @@ public enum DescribeDhcpOptionsOutputError: Swift.Error, Swift.Equatable { extension DescribeDhcpOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDhcpOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dhcpOptions = output.dhcpOptions self.nextToken = output.nextToken @@ -51705,9 +51496,8 @@ public enum DescribeEgressOnlyInternetGatewaysOutputError: Swift.Error, Swift.Eq extension DescribeEgressOnlyInternetGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEgressOnlyInternetGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.egressOnlyInternetGateways = output.egressOnlyInternetGateways self.nextToken = output.nextToken @@ -51943,9 +51733,8 @@ public enum DescribeElasticGpusOutputError: Swift.Error, Swift.Equatable { extension DescribeElasticGpusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeElasticGpusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.elasticGpuSet = output.elasticGpuSet self.maxResults = output.maxResults @@ -52181,9 +51970,8 @@ public enum DescribeExportImageTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeExportImageTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExportImageTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportImageTasks = output.exportImageTasks self.nextToken = output.nextToken @@ -52376,9 +52164,8 @@ public enum DescribeExportTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeExportTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExportTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportTasks = output.exportTasks } else { @@ -52602,9 +52389,8 @@ public enum DescribeFastLaunchImagesOutputError: Swift.Error, Swift.Equatable { extension DescribeFastLaunchImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFastLaunchImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fastLaunchImages = output.fastLaunchImages self.nextToken = output.nextToken @@ -53055,9 +52841,8 @@ public enum DescribeFastSnapshotRestoresOutputError: Swift.Error, Swift.Equatabl extension DescribeFastSnapshotRestoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFastSnapshotRestoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fastSnapshotRestores = output.fastSnapshotRestores self.nextToken = output.nextToken @@ -53309,9 +53094,8 @@ public enum DescribeFleetHistoryOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetId = output.fleetId self.historyRecords = output.historyRecords @@ -53544,9 +53328,8 @@ public enum DescribeFleetInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeInstances = output.activeInstances self.fleetId = output.fleetId @@ -53893,9 +53676,8 @@ public enum DescribeFleetsOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleets = output.fleets self.nextToken = output.nextToken @@ -54137,9 +53919,8 @@ public enum DescribeFlowLogsOutputError: Swift.Error, Swift.Equatable { extension DescribeFlowLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFlowLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowLogs = output.flowLogs self.nextToken = output.nextToken @@ -54293,9 +54074,8 @@ public enum DescribeFpgaImageAttributeOutputError: Swift.Error, Swift.Equatable extension DescribeFpgaImageAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFpgaImageAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fpgaImageAttribute = output.fpgaImageAttribute } else { @@ -54553,9 +54333,8 @@ public enum DescribeFpgaImagesOutputError: Swift.Error, Swift.Equatable { extension DescribeFpgaImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFpgaImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fpgaImages = output.fpgaImages self.nextToken = output.nextToken @@ -54770,9 +54549,8 @@ public enum DescribeHostReservationOfferingsOutputError: Swift.Error, Swift.Equa extension DescribeHostReservationOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHostReservationOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.offeringSet = output.offeringSet @@ -54997,9 +54775,8 @@ public enum DescribeHostReservationsOutputError: Swift.Error, Swift.Equatable { extension DescribeHostReservationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHostReservationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostReservationSet = output.hostReservationSet self.nextToken = output.nextToken @@ -55228,9 +55005,8 @@ public enum DescribeHostsOutputError: Swift.Error, Swift.Equatable { extension DescribeHostsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHostsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hosts = output.hosts self.nextToken = output.nextToken @@ -55449,9 +55225,8 @@ public enum DescribeIamInstanceProfileAssociationsOutputError: Swift.Error, Swif extension DescribeIamInstanceProfileAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIamInstanceProfileAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iamInstanceProfileAssociations = output.iamInstanceProfileAssociations self.nextToken = output.nextToken @@ -55581,9 +55356,8 @@ public enum DescribeIdFormatOutputError: Swift.Error, Swift.Equatable { extension DescribeIdFormatOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdFormatOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statuses = output.statuses } else { @@ -55715,9 +55489,8 @@ public enum DescribeIdentityIdFormatOutputError: Swift.Error, Swift.Equatable { extension DescribeIdentityIdFormatOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdentityIdFormatOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statuses = output.statuses } else { @@ -55862,9 +55635,8 @@ public enum DescribeImageAttributeOutputError: Swift.Error, Swift.Equatable { extension DescribeImageAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImageAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blockDeviceMappings = output.blockDeviceMappings self.bootMode = output.bootMode @@ -56401,9 +56173,8 @@ public enum DescribeImagesOutputError: Swift.Error, Swift.Equatable { extension DescribeImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.images = output.images self.nextToken = output.nextToken @@ -56629,9 +56400,8 @@ public enum DescribeImportImageTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeImportImageTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImportImageTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importImageTasks = output.importImageTasks self.nextToken = output.nextToken @@ -56857,9 +56627,8 @@ public enum DescribeImportSnapshotTasksOutputError: Swift.Error, Swift.Equatable extension DescribeImportSnapshotTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImportSnapshotTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importSnapshotTasks = output.importSnapshotTasks self.nextToken = output.nextToken @@ -57013,9 +56782,8 @@ public enum DescribeInstanceAttributeOutputError: Swift.Error, Swift.Equatable { extension DescribeInstanceAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blockDeviceMappings = output.blockDeviceMappings self.disableApiStop = output.disableApiStop @@ -57428,9 +57196,8 @@ public enum DescribeInstanceCreditSpecificationsOutputError: Swift.Error, Swift. extension DescribeInstanceCreditSpecificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceCreditSpecificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceCreditSpecifications = output.instanceCreditSpecifications self.nextToken = output.nextToken @@ -57560,9 +57327,8 @@ public enum DescribeInstanceEventNotificationAttributesOutputError: Swift.Error, extension DescribeInstanceEventNotificationAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceEventNotificationAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceTagAttribute = output.instanceTagAttribute } else { @@ -57780,9 +57546,8 @@ public enum DescribeInstanceEventWindowsOutputError: Swift.Error, Swift.Equatabl extension DescribeInstanceEventWindowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceEventWindowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceEventWindows = output.instanceEventWindows self.nextToken = output.nextToken @@ -58056,9 +57821,8 @@ public enum DescribeInstanceStatusOutputError: Swift.Error, Swift.Equatable { extension DescribeInstanceStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceStatuses = output.instanceStatuses self.nextToken = output.nextToken @@ -58262,9 +58026,8 @@ public enum DescribeInstanceTypeOfferingsOutputError: Swift.Error, Swift.Equatab extension DescribeInstanceTypeOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceTypeOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceTypeOfferings = output.instanceTypeOfferings self.nextToken = output.nextToken @@ -58582,9 +58345,8 @@ public enum DescribeInstanceTypesOutputError: Swift.Error, Swift.Equatable { extension DescribeInstanceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceTypes = output.instanceTypes self.nextToken = output.nextToken @@ -59001,9 +58763,8 @@ public enum DescribeInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservations = output.reservations @@ -59252,9 +59013,8 @@ public enum DescribeInternetGatewaysOutputError: Swift.Error, Swift.Equatable { extension DescribeInternetGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInternetGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.internetGateways = output.internetGateways self.nextToken = output.nextToken @@ -59480,9 +59240,8 @@ public enum DescribeIpamPoolsOutputError: Swift.Error, Swift.Equatable { extension DescribeIpamPoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIpamPoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPools = output.ipamPools self.nextToken = output.nextToken @@ -59708,9 +59467,8 @@ public enum DescribeIpamResourceDiscoveriesOutputError: Swift.Error, Swift.Equat extension DescribeIpamResourceDiscoveriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIpamResourceDiscoveriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceDiscoveries = output.ipamResourceDiscoveries self.nextToken = output.nextToken @@ -59936,9 +59694,8 @@ public enum DescribeIpamResourceDiscoveryAssociationsOutputError: Swift.Error, S extension DescribeIpamResourceDiscoveryAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIpamResourceDiscoveryAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceDiscoveryAssociations = output.ipamResourceDiscoveryAssociations self.nextToken = output.nextToken @@ -60164,9 +59921,8 @@ public enum DescribeIpamScopesOutputError: Swift.Error, Swift.Equatable { extension DescribeIpamScopesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIpamScopesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamScopes = output.ipamScopes self.nextToken = output.nextToken @@ -60392,9 +60148,8 @@ public enum DescribeIpamsOutputError: Swift.Error, Swift.Equatable { extension DescribeIpamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIpamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipams = output.ipams self.nextToken = output.nextToken @@ -60624,9 +60379,8 @@ public enum DescribeIpv6PoolsOutputError: Swift.Error, Swift.Equatable { extension DescribeIpv6PoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIpv6PoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipv6Pools = output.ipv6Pools self.nextToken = output.nextToken @@ -60899,9 +60653,8 @@ public enum DescribeKeyPairsOutputError: Swift.Error, Swift.Equatable { extension DescribeKeyPairsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeKeyPairsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPairs = output.keyPairs } else { @@ -61200,9 +60953,8 @@ public enum DescribeLaunchTemplateVersionsOutputError: Swift.Error, Swift.Equata extension DescribeLaunchTemplateVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLaunchTemplateVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchTemplateVersions = output.launchTemplateVersions self.nextToken = output.nextToken @@ -61473,9 +61225,8 @@ public enum DescribeLaunchTemplatesOutputError: Swift.Error, Swift.Equatable { extension DescribeLaunchTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLaunchTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchTemplates = output.launchTemplates self.nextToken = output.nextToken @@ -61715,9 +61466,8 @@ public enum DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutpu extension DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTableVirtualInterfaceGroupAssociations = output.localGatewayRouteTableVirtualInterfaceGroupAssociations self.nextToken = output.nextToken @@ -61957,9 +61707,8 @@ public enum DescribeLocalGatewayRouteTableVpcAssociationsOutputError: Swift.Erro extension DescribeLocalGatewayRouteTableVpcAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocalGatewayRouteTableVpcAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTableVpcAssociations = output.localGatewayRouteTableVpcAssociations self.nextToken = output.nextToken @@ -62197,9 +61946,8 @@ public enum DescribeLocalGatewayRouteTablesOutputError: Swift.Error, Swift.Equat extension DescribeLocalGatewayRouteTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocalGatewayRouteTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayRouteTables = output.localGatewayRouteTables self.nextToken = output.nextToken @@ -62433,9 +62181,8 @@ public enum DescribeLocalGatewayVirtualInterfaceGroupsOutputError: Swift.Error, extension DescribeLocalGatewayVirtualInterfaceGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocalGatewayVirtualInterfaceGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayVirtualInterfaceGroups = output.localGatewayVirtualInterfaceGroups self.nextToken = output.nextToken @@ -62677,9 +62424,8 @@ public enum DescribeLocalGatewayVirtualInterfacesOutputError: Swift.Error, Swift extension DescribeLocalGatewayVirtualInterfacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocalGatewayVirtualInterfacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGatewayVirtualInterfaces = output.localGatewayVirtualInterfaces self.nextToken = output.nextToken @@ -62913,9 +62659,8 @@ public enum DescribeLocalGatewaysOutputError: Swift.Error, Swift.Equatable { extension DescribeLocalGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLocalGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.localGateways = output.localGateways self.nextToken = output.nextToken @@ -63147,9 +62892,8 @@ public enum DescribeManagedPrefixListsOutputError: Swift.Error, Swift.Equatable extension DescribeManagedPrefixListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeManagedPrefixListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.prefixLists = output.prefixLists @@ -63377,9 +63121,8 @@ public enum DescribeMovingAddressesOutputError: Swift.Error, Swift.Equatable { extension DescribeMovingAddressesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMovingAddressesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.movingAddressStatuses = output.movingAddressStatuses self.nextToken = output.nextToken @@ -63628,9 +63371,8 @@ public enum DescribeNatGatewaysOutputError: Swift.Error, Swift.Equatable { extension DescribeNatGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNatGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.natGateways = output.natGateways self.nextToken = output.nextToken @@ -63894,9 +63636,8 @@ public enum DescribeNetworkAclsOutputError: Swift.Error, Swift.Equatable { extension DescribeNetworkAclsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNetworkAclsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkAcls = output.networkAcls self.nextToken = output.nextToken @@ -64155,9 +63896,8 @@ public enum DescribeNetworkInsightsAccessScopeAnalysesOutputError: Swift.Error, extension DescribeNetworkInsightsAccessScopeAnalysesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNetworkInsightsAccessScopeAnalysesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAccessScopeAnalyses = output.networkInsightsAccessScopeAnalyses self.nextToken = output.nextToken @@ -64383,9 +64123,8 @@ public enum DescribeNetworkInsightsAccessScopesOutputError: Swift.Error, Swift.E extension DescribeNetworkInsightsAccessScopesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNetworkInsightsAccessScopesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAccessScopes = output.networkInsightsAccessScopes self.nextToken = output.nextToken @@ -64648,9 +64387,8 @@ public enum DescribeNetworkInsightsAnalysesOutputError: Swift.Error, Swift.Equat extension DescribeNetworkInsightsAnalysesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNetworkInsightsAnalysesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAnalyses = output.networkInsightsAnalyses self.nextToken = output.nextToken @@ -64898,9 +64636,8 @@ public enum DescribeNetworkInsightsPathsOutputError: Swift.Error, Swift.Equatabl extension DescribeNetworkInsightsPathsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNetworkInsightsPathsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsPaths = output.networkInsightsPaths self.nextToken = output.nextToken @@ -65054,9 +64791,8 @@ public enum DescribeNetworkInterfaceAttributeOutputError: Swift.Error, Swift.Equ extension DescribeNetworkInterfaceAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNetworkInterfaceAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachment = output.attachment self.description = output.description @@ -65313,9 +65049,8 @@ public enum DescribeNetworkInterfacePermissionsOutputError: Swift.Error, Swift.E extension DescribeNetworkInterfacePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNetworkInterfacePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInterfacePermissions = output.networkInterfacePermissions self.nextToken = output.nextToken @@ -65624,9 +65359,8 @@ public enum DescribeNetworkInterfacesOutputError: Swift.Error, Swift.Equatable { extension DescribeNetworkInterfacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNetworkInterfacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInterfaces = output.networkInterfaces self.nextToken = output.nextToken @@ -65881,9 +65615,8 @@ public enum DescribePlacementGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribePlacementGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePlacementGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.placementGroups = output.placementGroups } else { @@ -66103,9 +65836,8 @@ public enum DescribePrefixListsOutputError: Swift.Error, Swift.Equatable { extension DescribePrefixListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePrefixListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.prefixLists = output.prefixLists @@ -66294,9 +66026,8 @@ public enum DescribePrincipalIdFormatOutputError: Swift.Error, Swift.Equatable { extension DescribePrincipalIdFormatOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePrincipalIdFormatOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.principals = output.principals @@ -66515,9 +66246,8 @@ public enum DescribePublicIpv4PoolsOutputError: Swift.Error, Swift.Equatable { extension DescribePublicIpv4PoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePublicIpv4PoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.publicIpv4Pools = output.publicIpv4Pools @@ -66738,9 +66468,8 @@ public enum DescribeRegionsOutputError: Swift.Error, Swift.Equatable { extension DescribeRegionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRegionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.regions = output.regions } else { @@ -66958,9 +66687,8 @@ public enum DescribeReplaceRootVolumeTasksOutputError: Swift.Error, Swift.Equata extension DescribeReplaceRootVolumeTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplaceRootVolumeTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.replaceRootVolumeTasks = output.replaceRootVolumeTasks @@ -67315,9 +67043,8 @@ public enum DescribeReservedInstancesListingsOutputError: Swift.Error, Swift.Equ extension DescribeReservedInstancesListingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedInstancesListingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedInstancesListings = output.reservedInstancesListings } else { @@ -67539,9 +67266,8 @@ public enum DescribeReservedInstancesModificationsOutputError: Swift.Error, Swif extension DescribeReservedInstancesModificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedInstancesModificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservedInstancesModifications = output.reservedInstancesModifications @@ -67897,9 +67623,8 @@ public enum DescribeReservedInstancesOfferingsOutputError: Swift.Error, Swift.Eq extension DescribeReservedInstancesOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedInstancesOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservedInstancesOfferings = output.reservedInstancesOfferings @@ -67985,9 +67710,8 @@ public enum DescribeReservedInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeReservedInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedInstances = output.reservedInstances } else { @@ -68244,9 +67968,8 @@ public enum DescribeRouteTablesOutputError: Swift.Error, Swift.Equatable { extension DescribeRouteTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRouteTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routeTables = output.routeTables @@ -68491,9 +68214,8 @@ public enum DescribeScheduledInstanceAvailabilityOutputError: Swift.Error, Swift extension DescribeScheduledInstanceAvailabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduledInstanceAvailabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduledInstanceAvailabilitySet = output.scheduledInstanceAvailabilitySet @@ -68740,9 +68462,8 @@ public enum DescribeScheduledInstancesOutputError: Swift.Error, Swift.Equatable extension DescribeScheduledInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduledInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduledInstanceSet = output.scheduledInstanceSet @@ -68911,9 +68632,8 @@ public enum DescribeSecurityGroupReferencesOutputError: Swift.Error, Swift.Equat extension DescribeSecurityGroupReferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSecurityGroupReferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityGroupReferenceSet = output.securityGroupReferenceSet } else { @@ -69135,9 +68855,8 @@ public enum DescribeSecurityGroupRulesOutputError: Swift.Error, Swift.Equatable extension DescribeSecurityGroupRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSecurityGroupRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityGroupRules = output.securityGroupRules @@ -69461,9 +69180,8 @@ public enum DescribeSecurityGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeSecurityGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSecurityGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityGroups = output.securityGroups @@ -69617,9 +69335,8 @@ public enum DescribeSnapshotAttributeOutputError: Swift.Error, Swift.Equatable { extension DescribeSnapshotAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createVolumePermissions = output.createVolumePermissions self.productCodes = output.productCodes @@ -69841,9 +69558,8 @@ public enum DescribeSnapshotTierStatusOutputError: Swift.Error, Swift.Equatable extension DescribeSnapshotTierStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotTierStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshotTierStatuses = output.snapshotTierStatuses @@ -70169,9 +69885,8 @@ public enum DescribeSnapshotsOutputError: Swift.Error, Swift.Equatable { extension DescribeSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshots = output.snapshots @@ -70302,9 +70017,8 @@ public enum DescribeSpotDatafeedSubscriptionOutputError: Swift.Error, Swift.Equa extension DescribeSpotDatafeedSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpotDatafeedSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.spotDatafeedSubscription = output.spotDatafeedSubscription } else { @@ -70443,9 +70157,8 @@ public enum DescribeSpotFleetInstancesOutputError: Swift.Error, Swift.Equatable extension DescribeSpotFleetInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpotFleetInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeInstances = output.activeInstances self.nextToken = output.nextToken @@ -70644,9 +70357,8 @@ public enum DescribeSpotFleetRequestHistoryOutputError: Swift.Error, Swift.Equat extension DescribeSpotFleetRequestHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpotFleetRequestHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.historyRecords = output.historyRecords self.lastEvaluatedTime = output.lastEvaluatedTime @@ -70867,9 +70579,8 @@ public enum DescribeSpotFleetRequestsOutputError: Swift.Error, Swift.Equatable { extension DescribeSpotFleetRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpotFleetRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.spotFleetRequestConfigs = output.spotFleetRequestConfigs @@ -71186,9 +70897,8 @@ public enum DescribeSpotInstanceRequestsOutputError: Swift.Error, Swift.Equatabl extension DescribeSpotInstanceRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpotInstanceRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.spotInstanceRequests = output.spotInstanceRequests @@ -71496,9 +71206,8 @@ public enum DescribeSpotPriceHistoryOutputError: Swift.Error, Swift.Equatable { extension DescribeSpotPriceHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpotPriceHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.spotPriceHistory = output.spotPriceHistory @@ -71663,9 +71372,8 @@ public enum DescribeStaleSecurityGroupsOutputError: Swift.Error, Swift.Equatable extension DescribeStaleSecurityGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStaleSecurityGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.staleSecurityGroupSet = output.staleSecurityGroupSet @@ -71895,9 +71603,8 @@ public enum DescribeStoreImageTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeStoreImageTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStoreImageTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.storeImageTaskResults = output.storeImageTaskResults @@ -72173,9 +71880,8 @@ public enum DescribeSubnetsOutputError: Swift.Error, Swift.Equatable { extension DescribeSubnetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSubnetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subnets = output.subnets @@ -72374,9 +72080,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -72606,9 +72311,8 @@ public enum DescribeTrafficMirrorFiltersOutputError: Swift.Error, Swift.Equatabl extension DescribeTrafficMirrorFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrafficMirrorFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trafficMirrorFilters = output.trafficMirrorFilters @@ -72852,9 +72556,8 @@ public enum DescribeTrafficMirrorSessionsOutputError: Swift.Error, Swift.Equatab extension DescribeTrafficMirrorSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrafficMirrorSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trafficMirrorSessions = output.trafficMirrorSessions @@ -73090,9 +72793,8 @@ public enum DescribeTrafficMirrorTargetsOutputError: Swift.Error, Swift.Equatabl extension DescribeTrafficMirrorTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrafficMirrorTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trafficMirrorTargets = output.trafficMirrorTargets @@ -73336,9 +73038,8 @@ public enum DescribeTransitGatewayAttachmentsOutputError: Swift.Error, Swift.Equ extension DescribeTransitGatewayAttachmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayAttachmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayAttachments = output.transitGatewayAttachments @@ -73570,9 +73271,8 @@ public enum DescribeTransitGatewayConnectPeersOutputError: Swift.Error, Swift.Eq extension DescribeTransitGatewayConnectPeersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayConnectPeersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayConnectPeers = output.transitGatewayConnectPeers @@ -73808,9 +73508,8 @@ public enum DescribeTransitGatewayConnectsOutputError: Swift.Error, Swift.Equata extension DescribeTransitGatewayConnectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayConnectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayConnects = output.transitGatewayConnects @@ -74042,9 +73741,8 @@ public enum DescribeTransitGatewayMulticastDomainsOutputError: Swift.Error, Swif extension DescribeTransitGatewayMulticastDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayMulticastDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayMulticastDomains = output.transitGatewayMulticastDomains @@ -74284,9 +73982,8 @@ public enum DescribeTransitGatewayPeeringAttachmentsOutputError: Swift.Error, Sw extension DescribeTransitGatewayPeeringAttachmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayPeeringAttachmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayPeeringAttachments = output.transitGatewayPeeringAttachments @@ -74512,9 +74209,8 @@ public enum DescribeTransitGatewayPolicyTablesOutputError: Swift.Error, Swift.Eq extension DescribeTransitGatewayPolicyTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayPolicyTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayPolicyTables = output.transitGatewayPolicyTables @@ -74740,9 +74436,8 @@ public enum DescribeTransitGatewayRouteTableAnnouncementsOutputError: Swift.Erro extension DescribeTransitGatewayRouteTableAnnouncementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayRouteTableAnnouncementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayRouteTableAnnouncements = output.transitGatewayRouteTableAnnouncements @@ -74978,9 +74673,8 @@ public enum DescribeTransitGatewayRouteTablesOutputError: Swift.Error, Swift.Equ extension DescribeTransitGatewayRouteTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayRouteTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayRouteTables = output.transitGatewayRouteTables @@ -75214,9 +74908,8 @@ public enum DescribeTransitGatewayVpcAttachmentsOutputError: Swift.Error, Swift. extension DescribeTransitGatewayVpcAttachmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewayVpcAttachmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayVpcAttachments = output.transitGatewayVpcAttachments @@ -75464,9 +75157,8 @@ public enum DescribeTransitGatewaysOutputError: Swift.Error, Swift.Equatable { extension DescribeTransitGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransitGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGateways = output.transitGateways @@ -75696,9 +75388,8 @@ public enum DescribeTrunkInterfaceAssociationsOutputError: Swift.Error, Swift.Eq extension DescribeTrunkInterfaceAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrunkInterfaceAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.interfaceAssociations = output.interfaceAssociations self.nextToken = output.nextToken @@ -75946,9 +75637,8 @@ public enum DescribeVerifiedAccessEndpointsOutputError: Swift.Error, Swift.Equat extension DescribeVerifiedAccessEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVerifiedAccessEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.verifiedAccessEndpoints = output.verifiedAccessEndpoints @@ -76185,9 +75875,8 @@ public enum DescribeVerifiedAccessGroupsOutputError: Swift.Error, Swift.Equatabl extension DescribeVerifiedAccessGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVerifiedAccessGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.verifiedAccessGroups = output.verifiedAccessGroups @@ -76413,9 +76102,8 @@ public enum DescribeVerifiedAccessInstanceLoggingConfigurationsOutputError: Swif extension DescribeVerifiedAccessInstanceLoggingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVerifiedAccessInstanceLoggingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfigurations = output.loggingConfigurations self.nextToken = output.nextToken @@ -76641,9 +76329,8 @@ public enum DescribeVerifiedAccessInstancesOutputError: Swift.Error, Swift.Equat extension DescribeVerifiedAccessInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVerifiedAccessInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.verifiedAccessInstances = output.verifiedAccessInstances @@ -76869,9 +76556,8 @@ public enum DescribeVerifiedAccessTrustProvidersOutputError: Swift.Error, Swift. extension DescribeVerifiedAccessTrustProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVerifiedAccessTrustProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.verifiedAccessTrustProviders = output.verifiedAccessTrustProviders @@ -77025,9 +76711,8 @@ public enum DescribeVolumeAttributeOutputError: Swift.Error, Swift.Equatable { extension DescribeVolumeAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVolumeAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnableIO = output.autoEnableIO self.productCodes = output.productCodes @@ -77287,9 +76972,8 @@ public enum DescribeVolumeStatusOutputError: Swift.Error, Swift.Equatable { extension DescribeVolumeStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVolumeStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.volumeStatuses = output.volumeStatuses @@ -77712,9 +77396,8 @@ public enum DescribeVolumesModificationsOutputError: Swift.Error, Swift.Equatabl extension DescribeVolumesModificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVolumesModificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.volumesModifications = output.volumesModifications @@ -77810,9 +77493,8 @@ public enum DescribeVolumesOutputError: Swift.Error, Swift.Equatable { extension DescribeVolumesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVolumesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.volumes = output.volumes @@ -77966,9 +77648,8 @@ public enum DescribeVpcAttributeOutputError: Swift.Error, Swift.Equatable { extension DescribeVpcAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.enableDnsHostnames = output.enableDnsHostnames self.enableDnsSupport = output.enableDnsSupport @@ -78149,9 +77830,8 @@ public enum DescribeVpcClassicLinkDnsSupportOutputError: Swift.Error, Swift.Equa extension DescribeVpcClassicLinkDnsSupportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcClassicLinkDnsSupportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcs = output.vpcs @@ -78361,9 +78041,8 @@ public enum DescribeVpcClassicLinkOutputError: Swift.Error, Swift.Equatable { extension DescribeVpcClassicLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcClassicLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcs = output.vpcs } else { @@ -78565,9 +78244,8 @@ public enum DescribeVpcEndpointConnectionNotificationsOutputError: Swift.Error, extension DescribeVpcEndpointConnectionNotificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcEndpointConnectionNotificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionNotificationSet = output.connectionNotificationSet self.nextToken = output.nextToken @@ -78766,9 +78444,8 @@ public enum DescribeVpcEndpointConnectionsOutputError: Swift.Error, Swift.Equata extension DescribeVpcEndpointConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcEndpointConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcEndpointConnections = output.vpcEndpointConnections @@ -79006,9 +78683,8 @@ public enum DescribeVpcEndpointServiceConfigurationsOutputError: Swift.Error, Sw extension DescribeVpcEndpointServiceConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcEndpointServiceConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceConfigurations = output.serviceConfigurations @@ -79213,9 +78889,8 @@ public enum DescribeVpcEndpointServicePermissionsOutputError: Swift.Error, Swift extension DescribeVpcEndpointServicePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcEndpointServicePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowedPrincipals = output.allowedPrincipals self.nextToken = output.nextToken @@ -79453,9 +79128,8 @@ public enum DescribeVpcEndpointServicesOutputError: Swift.Error, Swift.Equatable extension DescribeVpcEndpointServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcEndpointServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceDetails = output.serviceDetails @@ -79724,9 +79398,8 @@ public enum DescribeVpcEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeVpcEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcEndpoints = output.vpcEndpoints @@ -79987,9 +79660,8 @@ public enum DescribeVpcPeeringConnectionsOutputError: Swift.Error, Swift.Equatab extension DescribeVpcPeeringConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcPeeringConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcPeeringConnections = output.vpcPeeringConnections @@ -80256,9 +79928,8 @@ public enum DescribeVpcsOutputError: Swift.Error, Swift.Equatable { extension DescribeVpcsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcs = output.vpcs @@ -80487,9 +80158,8 @@ public enum DescribeVpnConnectionsOutputError: Swift.Error, Swift.Equatable { extension DescribeVpnConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpnConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnConnections = output.vpnConnections } else { @@ -80703,9 +80373,8 @@ public enum DescribeVpnGatewaysOutputError: Swift.Error, Swift.Equatable { extension DescribeVpnGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpnGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnGateways = output.vpnGateways } else { @@ -80992,9 +80661,8 @@ public enum DetachClassicLinkVpcOutputError: Swift.Error, Swift.Equatable { extension DetachClassicLinkVpcOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachClassicLinkVpcOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -81334,9 +81002,8 @@ public enum DetachVerifiedAccessTrustProviderOutputError: Swift.Error, Swift.Equ extension DetachVerifiedAccessTrustProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachVerifiedAccessTrustProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessInstance = output.verifiedAccessInstance self.verifiedAccessTrustProvider = output.verifiedAccessTrustProvider @@ -81494,9 +81161,8 @@ public enum DetachVolumeOutputError: Swift.Error, Swift.Equatable { extension DetachVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachTime = output.attachTime self.deleteOnTermination = output.deleteOnTermination @@ -82118,9 +81784,8 @@ public enum DisableAddressTransferOutputError: Swift.Error, Swift.Equatable { extension DisableAddressTransferOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableAddressTransferOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressTransfer = output.addressTransfer } else { @@ -82267,9 +81932,8 @@ public enum DisableAwsNetworkPerformanceMetricSubscriptionOutputError: Swift.Err extension DisableAwsNetworkPerformanceMetricSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableAwsNetworkPerformanceMetricSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.output = output.output } else { @@ -82372,9 +82036,8 @@ public enum DisableEbsEncryptionByDefaultOutputError: Swift.Error, Swift.Equatab extension DisableEbsEncryptionByDefaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableEbsEncryptionByDefaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ebsEncryptionByDefault = output.ebsEncryptionByDefault } else { @@ -82500,9 +82163,8 @@ public enum DisableFastLaunchOutputError: Swift.Error, Swift.Equatable { extension DisableFastLaunchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableFastLaunchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId self.launchTemplate = output.launchTemplate @@ -83061,9 +82723,8 @@ public enum DisableFastSnapshotRestoresOutputError: Swift.Error, Swift.Equatable extension DisableFastSnapshotRestoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableFastSnapshotRestoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successful = output.successful self.unsuccessful = output.unsuccessful @@ -83222,9 +82883,8 @@ public enum DisableImageDeprecationOutputError: Swift.Error, Swift.Equatable { extension DisableImageDeprecationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableImageDeprecationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -83339,9 +82999,8 @@ public enum DisableIpamOrganizationAdminAccountOutputError: Swift.Error, Swift.E extension DisableIpamOrganizationAdminAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableIpamOrganizationAdminAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.success = output.success } else { @@ -83444,9 +83103,8 @@ public enum DisableSerialConsoleAccessOutputError: Swift.Error, Swift.Equatable extension DisableSerialConsoleAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableSerialConsoleAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serialConsoleAccessEnabled = output.serialConsoleAccessEnabled } else { @@ -83583,9 +83241,8 @@ public enum DisableTransitGatewayRouteTablePropagationOutputError: Swift.Error, extension DisableTransitGatewayRouteTablePropagationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableTransitGatewayRouteTablePropagationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.propagation = output.propagation } else { @@ -83787,9 +83444,8 @@ public enum DisableVpcClassicLinkDnsSupportOutputError: Swift.Error, Swift.Equat extension DisableVpcClassicLinkDnsSupportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableVpcClassicLinkDnsSupportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -83904,9 +83560,8 @@ public enum DisableVpcClassicLinkOutputError: Swift.Error, Swift.Equatable { extension DisableVpcClassicLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableVpcClassicLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -84129,9 +83784,8 @@ public enum DisassociateClientVpnTargetNetworkOutputError: Swift.Error, Swift.Eq extension DisassociateClientVpnTargetNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateClientVpnTargetNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationId = output.associationId self.status = output.status @@ -84268,9 +83922,8 @@ public enum DisassociateEnclaveCertificateIamRoleOutputError: Swift.Error, Swift extension DisassociateEnclaveCertificateIamRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateEnclaveCertificateIamRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -84374,9 +84027,8 @@ public enum DisassociateIamInstanceProfileOutputError: Swift.Error, Swift.Equata extension DisassociateIamInstanceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateIamInstanceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iamInstanceProfileAssociation = output.iamInstanceProfileAssociation } else { @@ -84503,9 +84155,8 @@ public enum DisassociateInstanceEventWindowOutputError: Swift.Error, Swift.Equat extension DisassociateInstanceEventWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateInstanceEventWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceEventWindow = output.instanceEventWindow } else { @@ -84620,9 +84271,8 @@ public enum DisassociateIpamResourceDiscoveryOutputError: Swift.Error, Swift.Equ extension DisassociateIpamResourceDiscoveryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateIpamResourceDiscoveryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceDiscoveryAssociation = output.ipamResourceDiscoveryAssociation } else { @@ -84786,9 +84436,8 @@ public enum DisassociateNatGatewayAddressOutputError: Swift.Error, Swift.Equatab extension DisassociateNatGatewayAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateNatGatewayAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.natGatewayAddresses = output.natGatewayAddresses self.natGatewayId = output.natGatewayId @@ -85005,9 +84654,8 @@ public enum DisassociateSubnetCidrBlockOutputError: Swift.Error, Swift.Equatable extension DisassociateSubnetCidrBlockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateSubnetCidrBlockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipv6CidrBlockAssociation = output.ipv6CidrBlockAssociation self.subnetId = output.subnetId @@ -85182,9 +84830,8 @@ public enum DisassociateTransitGatewayMulticastDomainOutputError: Swift.Error, S extension DisassociateTransitGatewayMulticastDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateTransitGatewayMulticastDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations } else { @@ -85311,9 +84958,8 @@ public enum DisassociateTransitGatewayPolicyTableOutputError: Swift.Error, Swift extension DisassociateTransitGatewayPolicyTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateTransitGatewayPolicyTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.association = output.association } else { @@ -85440,9 +85086,8 @@ public enum DisassociateTransitGatewayRouteTableOutputError: Swift.Error, Swift. extension DisassociateTransitGatewayRouteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateTransitGatewayRouteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.association = output.association } else { @@ -85568,9 +85213,8 @@ public enum DisassociateTrunkInterfaceOutputError: Swift.Error, Swift.Equatable extension DisassociateTrunkInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateTrunkInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` self.clientToken = output.clientToken @@ -85684,9 +85328,8 @@ public enum DisassociateVpcCidrBlockOutputError: Swift.Error, Swift.Equatable { extension DisassociateVpcCidrBlockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateVpcCidrBlockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cidrBlockAssociation = output.cidrBlockAssociation self.ipv6CidrBlockAssociation = output.ipv6CidrBlockAssociation @@ -87781,9 +87424,8 @@ public enum EnableAddressTransferOutputError: Swift.Error, Swift.Equatable { extension EnableAddressTransferOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableAddressTransferOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressTransfer = output.addressTransfer } else { @@ -87930,9 +87572,8 @@ public enum EnableAwsNetworkPerformanceMetricSubscriptionOutputError: Swift.Erro extension EnableAwsNetworkPerformanceMetricSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableAwsNetworkPerformanceMetricSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.output = output.output } else { @@ -88035,9 +87676,8 @@ public enum EnableEbsEncryptionByDefaultOutputError: Swift.Error, Swift.Equatabl extension EnableEbsEncryptionByDefaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableEbsEncryptionByDefaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ebsEncryptionByDefault = output.ebsEncryptionByDefault } else { @@ -88196,9 +87836,8 @@ public enum EnableFastLaunchOutputError: Swift.Error, Swift.Equatable { extension EnableFastLaunchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableFastLaunchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId self.launchTemplate = output.launchTemplate @@ -88757,9 +88396,8 @@ public enum EnableFastSnapshotRestoresOutputError: Swift.Error, Swift.Equatable extension EnableFastSnapshotRestoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableFastSnapshotRestoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successful = output.successful self.unsuccessful = output.unsuccessful @@ -88930,9 +88568,8 @@ public enum EnableImageDeprecationOutputError: Swift.Error, Swift.Equatable { extension EnableImageDeprecationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableImageDeprecationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -89047,9 +88684,8 @@ public enum EnableIpamOrganizationAdminAccountOutputError: Swift.Error, Swift.Eq extension EnableIpamOrganizationAdminAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableIpamOrganizationAdminAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.success = output.success } else { @@ -89152,9 +88788,8 @@ public enum EnableReachabilityAnalyzerOrganizationSharingOutputError: Swift.Erro extension EnableReachabilityAnalyzerOrganizationSharingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableReachabilityAnalyzerOrganizationSharingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -89257,9 +88892,8 @@ public enum EnableSerialConsoleAccessOutputError: Swift.Error, Swift.Equatable { extension EnableSerialConsoleAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableSerialConsoleAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serialConsoleAccessEnabled = output.serialConsoleAccessEnabled } else { @@ -89396,9 +89030,8 @@ public enum EnableTransitGatewayRouteTablePropagationOutputError: Swift.Error, S extension EnableTransitGatewayRouteTablePropagationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableTransitGatewayRouteTablePropagationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.propagation = output.propagation } else { @@ -89686,9 +89319,8 @@ public enum EnableVpcClassicLinkDnsSupportOutputError: Swift.Error, Swift.Equata extension EnableVpcClassicLinkDnsSupportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableVpcClassicLinkDnsSupportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -89803,9 +89435,8 @@ public enum EnableVpcClassicLinkOutputError: Swift.Error, Swift.Equatable { extension EnableVpcClassicLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableVpcClassicLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -91013,9 +90644,8 @@ public enum ExportClientVpnClientCertificateRevocationListOutputError: Swift.Err extension ExportClientVpnClientCertificateRevocationListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportClientVpnClientCertificateRevocationListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateRevocationList = output.certificateRevocationList self.status = output.status @@ -91140,9 +90770,8 @@ public enum ExportClientVpnClientConfigurationOutputError: Swift.Error, Swift.Eq extension ExportClientVpnClientConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportClientVpnClientConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientConfiguration = output.clientConfiguration } else { @@ -91386,9 +91015,8 @@ public enum ExportImageOutputError: Swift.Error, Swift.Equatable { extension ExportImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.diskImageFormat = output.diskImageFormat @@ -92188,9 +91816,8 @@ public enum ExportTransitGatewayRoutesOutputError: Swift.Error, Swift.Equatable extension ExportTransitGatewayRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportTransitGatewayRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3Location = output.s3Location } else { @@ -95838,9 +95465,8 @@ public enum GetAssociatedEnclaveCertificateIamRolesOutputError: Swift.Error, Swi extension GetAssociatedEnclaveCertificateIamRolesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssociatedEnclaveCertificateIamRolesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedRoles = output.associatedRoles } else { @@ -95994,9 +95620,8 @@ public enum GetAssociatedIpv6PoolCidrsOutputError: Swift.Error, Swift.Equatable extension GetAssociatedIpv6PoolCidrsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssociatedIpv6PoolCidrsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipv6CidrAssociations = output.ipv6CidrAssociations self.nextToken = output.nextToken @@ -96207,9 +95832,8 @@ public enum GetAwsNetworkPerformanceDataOutputError: Swift.Error, Swift.Equatabl extension GetAwsNetworkPerformanceDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAwsNetworkPerformanceDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataResponses = output.dataResponses self.nextToken = output.nextToken @@ -96373,9 +95997,8 @@ public enum GetCapacityReservationUsageOutputError: Swift.Error, Swift.Equatable extension GetCapacityReservationUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCapacityReservationUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availableInstanceCount = output.availableInstanceCount self.capacityReservationId = output.capacityReservationId @@ -96644,9 +96267,8 @@ public enum GetCoipPoolUsageOutputError: Swift.Error, Swift.Equatable { extension GetCoipPoolUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoipPoolUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coipAddressUsages = output.coipAddressUsages self.coipPoolId = output.coipPoolId @@ -96809,9 +96431,8 @@ public enum GetConsoleOutputOutputError: Swift.Error, Swift.Equatable { extension GetConsoleOutputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConsoleOutputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceId = output.instanceId self.output = output.output @@ -96957,9 +96578,8 @@ public enum GetConsoleScreenshotOutputError: Swift.Error, Swift.Equatable { extension GetConsoleScreenshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConsoleScreenshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageData = output.imageData self.instanceId = output.instanceId @@ -97084,9 +96704,8 @@ public enum GetDefaultCreditSpecificationOutputError: Swift.Error, Swift.Equatab extension GetDefaultCreditSpecificationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDefaultCreditSpecificationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceFamilyCreditSpecification = output.instanceFamilyCreditSpecification } else { @@ -97189,9 +96808,8 @@ public enum GetEbsDefaultKmsKeyIdOutputError: Swift.Error, Swift.Equatable { extension GetEbsDefaultKmsKeyIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEbsDefaultKmsKeyIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.kmsKeyId = output.kmsKeyId } else { @@ -97294,9 +96912,8 @@ public enum GetEbsEncryptionByDefaultOutputError: Swift.Error, Swift.Equatable { extension GetEbsEncryptionByDefaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEbsEncryptionByDefaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ebsEncryptionByDefault = output.ebsEncryptionByDefault } else { @@ -97435,9 +97052,8 @@ public enum GetFlowLogsIntegrationTemplateOutputError: Swift.Error, Swift.Equata extension GetFlowLogsIntegrationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFlowLogsIntegrationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.result = output.result } else { @@ -97574,9 +97190,8 @@ public enum GetGroupsForCapacityReservationOutputError: Swift.Error, Swift.Equat extension GetGroupsForCapacityReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupsForCapacityReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityReservationGroups = output.capacityReservationGroups self.nextToken = output.nextToken @@ -97745,9 +97360,8 @@ public enum GetHostReservationPurchasePreviewOutputError: Swift.Error, Swift.Equ extension GetHostReservationPurchasePreviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHostReservationPurchasePreviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currencyCode = output.currencyCode self.purchase = output.purchase @@ -98007,9 +97621,8 @@ public enum GetInstanceTypesFromInstanceRequirementsOutputError: Swift.Error, Sw extension GetInstanceTypesFromInstanceRequirementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceTypesFromInstanceRequirementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceTypes = output.instanceTypes self.nextToken = output.nextToken @@ -98151,9 +97764,8 @@ public enum GetInstanceUefiDataOutputError: Swift.Error, Swift.Equatable { extension GetInstanceUefiDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceUefiDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceId = output.instanceId self.uefiData = output.uefiData @@ -98345,9 +97957,8 @@ public enum GetIpamAddressHistoryOutputError: Swift.Error, Swift.Equatable { extension GetIpamAddressHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIpamAddressHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.historyRecords = output.historyRecords self.nextToken = output.nextToken @@ -98560,9 +98171,8 @@ public enum GetIpamDiscoveredAccountsOutputError: Swift.Error, Swift.Equatable { extension GetIpamDiscoveredAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIpamDiscoveredAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamDiscoveredAccounts = output.ipamDiscoveredAccounts self.nextToken = output.nextToken @@ -98775,9 +98385,8 @@ public enum GetIpamDiscoveredResourceCidrsOutputError: Swift.Error, Swift.Equata extension GetIpamDiscoveredResourceCidrsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIpamDiscoveredResourceCidrsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamDiscoveredResourceCidrs = output.ipamDiscoveredResourceCidrs self.nextToken = output.nextToken @@ -98989,9 +98598,8 @@ public enum GetIpamPoolAllocationsOutputError: Swift.Error, Swift.Equatable { extension GetIpamPoolAllocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIpamPoolAllocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPoolAllocations = output.ipamPoolAllocations self.nextToken = output.nextToken @@ -99192,9 +98800,8 @@ public enum GetIpamPoolCidrsOutputError: Swift.Error, Swift.Equatable { extension GetIpamPoolCidrsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIpamPoolCidrsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPoolCidrs = output.ipamPoolCidrs self.nextToken = output.nextToken @@ -99450,9 +99057,8 @@ public enum GetIpamResourceCidrsOutputError: Swift.Error, Swift.Equatable { extension GetIpamResourceCidrsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIpamResourceCidrsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceCidrs = output.ipamResourceCidrs self.nextToken = output.nextToken @@ -99594,9 +99200,8 @@ public enum GetLaunchTemplateDataOutputError: Swift.Error, Swift.Equatable { extension GetLaunchTemplateDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLaunchTemplateDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchTemplateData = output.launchTemplateData } else { @@ -99733,9 +99338,8 @@ public enum GetManagedPrefixListAssociationsOutputError: Swift.Error, Swift.Equa extension GetManagedPrefixListAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetManagedPrefixListAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.prefixListAssociations = output.prefixListAssociations @@ -99910,9 +99514,8 @@ public enum GetManagedPrefixListEntriesOutputError: Swift.Error, Swift.Equatable extension GetManagedPrefixListEntriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetManagedPrefixListEntriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -100076,9 +99679,8 @@ public enum GetNetworkInsightsAccessScopeAnalysisFindingsOutputError: Swift.Erro extension GetNetworkInsightsAccessScopeAnalysisFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkInsightsAccessScopeAnalysisFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisFindings = output.analysisFindings self.analysisStatus = output.analysisStatus @@ -100240,9 +99842,8 @@ public enum GetNetworkInsightsAccessScopeContentOutputError: Swift.Error, Swift. extension GetNetworkInsightsAccessScopeContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkInsightsAccessScopeContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAccessScopeContent = output.networkInsightsAccessScopeContent } else { @@ -100357,9 +99958,8 @@ public enum GetPasswordDataOutputError: Swift.Error, Swift.Equatable { extension GetPasswordDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPasswordDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceId = output.instanceId self.passwordData = output.passwordData @@ -100558,9 +100158,8 @@ public enum GetReservedInstancesExchangeQuoteOutputError: Swift.Error, Swift.Equ extension GetReservedInstancesExchangeQuoteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReservedInstancesExchangeQuoteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currencyCode = output.currencyCode self.isValidExchange = output.isValidExchange @@ -100778,9 +100377,8 @@ public enum GetSerialConsoleAccessStatusOutputError: Swift.Error, Swift.Equatabl extension GetSerialConsoleAccessStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSerialConsoleAccessStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serialConsoleAccessEnabled = output.serialConsoleAccessEnabled } else { @@ -101024,9 +100622,8 @@ public enum GetSpotPlacementScoresOutputError: Swift.Error, Swift.Equatable { extension GetSpotPlacementScoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSpotPlacementScoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.spotPlacementScores = output.spotPlacementScores @@ -101235,9 +100832,8 @@ public enum GetSubnetCidrReservationsOutputError: Swift.Error, Swift.Equatable { extension GetSubnetCidrReservationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSubnetCidrReservationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subnetIpv4CidrReservations = output.subnetIpv4CidrReservations @@ -101467,9 +101063,8 @@ public enum GetTransitGatewayAttachmentPropagationsOutputError: Swift.Error, Swi extension GetTransitGatewayAttachmentPropagationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayAttachmentPropagationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayAttachmentPropagations = output.transitGatewayAttachmentPropagations @@ -101680,9 +101275,8 @@ public enum GetTransitGatewayMulticastDomainAssociationsOutputError: Swift.Error extension GetTransitGatewayMulticastDomainAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayMulticastDomainAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multicastDomainAssociations = output.multicastDomainAssociations self.nextToken = output.nextToken @@ -101883,9 +101477,8 @@ public enum GetTransitGatewayPolicyTableAssociationsOutputError: Swift.Error, Sw extension GetTransitGatewayPolicyTableAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayPolicyTableAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations self.nextToken = output.nextToken @@ -102086,9 +101679,8 @@ public enum GetTransitGatewayPolicyTableEntriesOutputError: Swift.Error, Swift.E extension GetTransitGatewayPolicyTableEntriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayPolicyTableEntriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPolicyTableEntries = output.transitGatewayPolicyTableEntries } else { @@ -102293,9 +101885,8 @@ public enum GetTransitGatewayPrefixListReferencesOutputError: Swift.Error, Swift extension GetTransitGatewayPrefixListReferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayPrefixListReferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayPrefixListReferences = output.transitGatewayPrefixListReferences @@ -102502,9 +102093,8 @@ public enum GetTransitGatewayRouteTableAssociationsOutputError: Swift.Error, Swi extension GetTransitGatewayRouteTableAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayRouteTableAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations self.nextToken = output.nextToken @@ -102711,9 +102301,8 @@ public enum GetTransitGatewayRouteTablePropagationsOutputError: Swift.Error, Swi extension GetTransitGatewayRouteTablePropagationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayRouteTablePropagationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayRouteTablePropagations = output.transitGatewayRouteTablePropagations @@ -102855,9 +102444,8 @@ public enum GetVerifiedAccessEndpointPolicyOutputError: Swift.Error, Swift.Equat extension GetVerifiedAccessEndpointPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVerifiedAccessEndpointPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyDocument = output.policyDocument self.policyEnabled = output.policyEnabled @@ -102982,9 +102570,8 @@ public enum GetVerifiedAccessGroupPolicyOutputError: Swift.Error, Swift.Equatabl extension GetVerifiedAccessGroupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVerifiedAccessGroupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyDocument = output.policyDocument self.policyEnabled = output.policyEnabled @@ -103137,9 +102724,8 @@ extension GetVpnConnectionDeviceSampleConfigurationOutputResponse: Swift.CustomD extension GetVpnConnectionDeviceSampleConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVpnConnectionDeviceSampleConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnConnectionDeviceSampleConfiguration = output.vpnConnectionDeviceSampleConfiguration } else { @@ -103264,9 +102850,8 @@ public enum GetVpnConnectionDeviceTypesOutputError: Swift.Error, Swift.Equatable extension GetVpnConnectionDeviceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVpnConnectionDeviceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpnConnectionDeviceTypes = output.vpnConnectionDeviceTypes @@ -103420,9 +103005,8 @@ public enum GetVpnTunnelReplacementStatusOutputError: Swift.Error, Swift.Equatab extension GetVpnTunnelReplacementStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVpnTunnelReplacementStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerGatewayId = output.customerGatewayId self.maintenanceDetails = output.maintenanceDetails @@ -106045,9 +105629,8 @@ public enum ImportClientVpnClientCertificateRevocationListOutputError: Swift.Err extension ImportClientVpnClientCertificateRevocationListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportClientVpnClientCertificateRevocationListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -106474,9 +106057,8 @@ public enum ImportImageOutputError: Swift.Error, Swift.Equatable { extension ImportImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architecture = output.architecture self.description = output.description @@ -107316,9 +106898,8 @@ public enum ImportInstanceOutputError: Swift.Error, Swift.Equatable { extension ImportInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conversionTask = output.conversionTask } else { @@ -107676,9 +107257,8 @@ public enum ImportKeyPairOutputError: Swift.Error, Swift.Equatable { extension ImportKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyFingerprint = output.keyFingerprint self.keyName = output.keyName @@ -107955,9 +107535,8 @@ public enum ImportSnapshotOutputError: Swift.Error, Swift.Equatable { extension ImportSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.importTaskId = output.importTaskId @@ -108245,9 +107824,8 @@ public enum ImportVolumeOutputError: Swift.Error, Swift.Equatable { extension ImportVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.conversionTask = output.conversionTask } else { @@ -124843,9 +124421,8 @@ public enum ListImagesInRecycleBinOutputError: Swift.Error, Swift.Equatable { extension ListImagesInRecycleBinOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImagesInRecycleBinOutputResponseBody = try responseDecoder.decode(responseBody: data) self.images = output.images self.nextToken = output.nextToken @@ -125034,9 +124611,8 @@ public enum ListSnapshotsInRecycleBinOutputError: Swift.Error, Swift.Equatable { extension ListSnapshotsInRecycleBinOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSnapshotsInRecycleBinOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshots = output.snapshots @@ -127222,9 +126798,8 @@ public enum ModifyAddressAttributeOutputError: Swift.Error, Swift.Equatable { extension ModifyAddressAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyAddressAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address } else { @@ -127351,9 +126926,8 @@ public enum ModifyAvailabilityZoneGroupOutputError: Swift.Error, Swift.Equatable extension ModifyAvailabilityZoneGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyAvailabilityZoneGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -127533,9 +127107,8 @@ public enum ModifyCapacityReservationFleetOutputError: Swift.Error, Swift.Equata extension ModifyCapacityReservationFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyCapacityReservationFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -127709,9 +127282,8 @@ public enum ModifyCapacityReservationOutputError: Swift.Error, Swift.Equatable { extension ModifyCapacityReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyCapacityReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -127992,9 +127564,8 @@ public enum ModifyClientVpnEndpointOutputError: Swift.Error, Swift.Equatable { extension ModifyClientVpnEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClientVpnEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -128121,9 +127692,8 @@ public enum ModifyDefaultCreditSpecificationOutputError: Swift.Error, Swift.Equa extension ModifyDefaultCreditSpecificationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDefaultCreditSpecificationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceFamilyCreditSpecification = output.instanceFamilyCreditSpecification } else { @@ -128249,9 +127819,8 @@ public enum ModifyEbsDefaultKmsKeyIdOutputError: Swift.Error, Swift.Equatable { extension ModifyEbsDefaultKmsKeyIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyEbsDefaultKmsKeyIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.kmsKeyId = output.kmsKeyId } else { @@ -128436,9 +128005,8 @@ public enum ModifyFleetOutputError: Swift.Error, Swift.Equatable { extension ModifyFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -128719,9 +128287,8 @@ public enum ModifyFpgaImageAttributeOutputError: Swift.Error, Swift.Equatable { extension ModifyFpgaImageAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyFpgaImageAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fpgaImageAttribute = output.fpgaImageAttribute } else { @@ -128906,9 +128473,8 @@ public enum ModifyHostsOutputError: Swift.Error, Swift.Equatable { extension ModifyHostsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyHostsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successful = output.successful self.unsuccessful = output.unsuccessful @@ -129906,9 +129472,8 @@ public enum ModifyInstanceCapacityReservationAttributesOutputError: Swift.Error, extension ModifyInstanceCapacityReservationAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyInstanceCapacityReservationAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -130060,9 +129625,8 @@ public enum ModifyInstanceCreditSpecificationOutputError: Swift.Error, Swift.Equ extension ModifyInstanceCreditSpecificationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyInstanceCreditSpecificationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successfulInstanceCreditSpecifications = output.successfulInstanceCreditSpecifications self.unsuccessfulInstanceCreditSpecifications = output.unsuccessfulInstanceCreditSpecifications @@ -130245,9 +129809,8 @@ public enum ModifyInstanceEventStartTimeOutputError: Swift.Error, Swift.Equatabl extension ModifyInstanceEventStartTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyInstanceEventStartTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.event = output.event } else { @@ -130436,9 +129999,8 @@ public enum ModifyInstanceEventWindowOutputError: Swift.Error, Swift.Equatable { extension ModifyInstanceEventWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyInstanceEventWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceEventWindow = output.instanceEventWindow } else { @@ -130564,9 +130126,8 @@ public enum ModifyInstanceMaintenanceOptionsOutputError: Swift.Error, Swift.Equa extension ModifyInstanceMaintenanceOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyInstanceMaintenanceOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoRecovery = output.autoRecovery self.instanceId = output.instanceId @@ -130753,9 +130314,8 @@ public enum ModifyInstanceMetadataOptionsOutputError: Swift.Error, Swift.Equatab extension ModifyInstanceMetadataOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyInstanceMetadataOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceId = output.instanceId self.instanceMetadataOptions = output.instanceMetadataOptions @@ -130946,9 +130506,8 @@ public enum ModifyInstancePlacementOutputError: Swift.Error, Swift.Equatable { extension ModifyInstancePlacementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyInstancePlacementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -131148,9 +130707,8 @@ public enum ModifyIpamOutputError: Swift.Error, Swift.Equatable { extension ModifyIpamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyIpamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipam = output.ipam } else { @@ -131405,9 +130963,8 @@ public enum ModifyIpamPoolOutputError: Swift.Error, Swift.Equatable { extension ModifyIpamPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyIpamPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPool = output.ipamPool } else { @@ -131581,9 +131138,8 @@ public enum ModifyIpamResourceCidrOutputError: Swift.Error, Swift.Equatable { extension ModifyIpamResourceCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyIpamResourceCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceCidr = output.ipamResourceCidr } else { @@ -131783,9 +131339,8 @@ public enum ModifyIpamResourceDiscoveryOutputError: Swift.Error, Swift.Equatable extension ModifyIpamResourceDiscoveryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyIpamResourceDiscoveryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamResourceDiscovery = output.ipamResourceDiscovery } else { @@ -131911,9 +131466,8 @@ public enum ModifyIpamScopeOutputError: Swift.Error, Swift.Equatable { extension ModifyIpamScopeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyIpamScopeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamScope = output.ipamScope } else { @@ -132060,9 +131614,8 @@ public enum ModifyLaunchTemplateOutputError: Swift.Error, Swift.Equatable { extension ModifyLaunchTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyLaunchTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchTemplate = output.launchTemplate } else { @@ -132221,9 +131774,8 @@ public enum ModifyLocalGatewayRouteOutputError: Swift.Error, Swift.Equatable { extension ModifyLocalGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyLocalGatewayRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.route = output.route } else { @@ -132445,9 +131997,8 @@ public enum ModifyManagedPrefixListOutputError: Swift.Error, Swift.Equatable { extension ModifyManagedPrefixListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyManagedPrefixListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.prefixList = output.prefixList } else { @@ -132763,9 +132314,8 @@ public enum ModifyPrivateDnsNameOptionsOutputError: Swift.Error, Swift.Equatable extension ModifyPrivateDnsNameOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyPrivateDnsNameOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -132945,9 +132495,8 @@ public enum ModifyReservedInstancesOutputError: Swift.Error, Swift.Equatable { extension ModifyReservedInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyReservedInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedInstancesModificationId = output.reservedInstancesModificationId } else { @@ -133101,9 +132650,8 @@ public enum ModifySecurityGroupRulesOutputError: Swift.Error, Swift.Equatable { extension ModifySecurityGroupRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifySecurityGroupRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -133422,9 +132970,8 @@ public enum ModifySnapshotTierOutputError: Swift.Error, Swift.Equatable { extension ModifySnapshotTierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifySnapshotTierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotId = output.snapshotId self.tieringStartTime = output.tieringStartTime @@ -133620,9 +133167,8 @@ public enum ModifySpotFleetRequestOutputError: Swift.Error, Swift.Equatable { extension ModifySpotFleetRequestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifySpotFleetRequestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -133997,9 +133543,8 @@ public enum ModifyTrafficMirrorFilterNetworkServicesOutputError: Swift.Error, Sw extension ModifyTrafficMirrorFilterNetworkServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyTrafficMirrorFilterNetworkServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficMirrorFilter = output.trafficMirrorFilter } else { @@ -134250,9 +133795,8 @@ public enum ModifyTrafficMirrorFilterRuleOutputError: Swift.Error, Swift.Equatab extension ModifyTrafficMirrorFilterRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyTrafficMirrorFilterRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficMirrorFilterRule = output.trafficMirrorFilterRule } else { @@ -134470,9 +134014,8 @@ public enum ModifyTrafficMirrorSessionOutputError: Swift.Error, Swift.Equatable extension ModifyTrafficMirrorSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyTrafficMirrorSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficMirrorSession = output.trafficMirrorSession } else { @@ -134786,9 +134329,8 @@ public enum ModifyTransitGatewayOutputError: Swift.Error, Swift.Equatable { extension ModifyTransitGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyTransitGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGateway = output.transitGateway } else { @@ -134937,9 +134479,8 @@ public enum ModifyTransitGatewayPrefixListReferenceOutputError: Swift.Error, Swi extension ModifyTransitGatewayPrefixListReferenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyTransitGatewayPrefixListReferenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPrefixListReference = output.transitGatewayPrefixListReference } else { @@ -135139,9 +134680,8 @@ public enum ModifyTransitGatewayVpcAttachmentOutputError: Swift.Error, Swift.Equ extension ModifyTransitGatewayVpcAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyTransitGatewayVpcAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayVpcAttachment = output.transitGatewayVpcAttachment } else { @@ -135492,9 +135032,8 @@ public enum ModifyVerifiedAccessEndpointOutputError: Swift.Error, Swift.Equatabl extension ModifyVerifiedAccessEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVerifiedAccessEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessEndpoint = output.verifiedAccessEndpoint } else { @@ -135643,9 +135182,8 @@ public enum ModifyVerifiedAccessEndpointPolicyOutputError: Swift.Error, Swift.Eq extension ModifyVerifiedAccessEndpointPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVerifiedAccessEndpointPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyDocument = output.policyDocument self.policyEnabled = output.policyEnabled @@ -135803,9 +135341,8 @@ public enum ModifyVerifiedAccessGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyVerifiedAccessGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVerifiedAccessGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessGroup = output.verifiedAccessGroup } else { @@ -135954,9 +135491,8 @@ public enum ModifyVerifiedAccessGroupPolicyOutputError: Swift.Error, Swift.Equat extension ModifyVerifiedAccessGroupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVerifiedAccessGroupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyDocument = output.policyDocument self.policyEnabled = output.policyEnabled @@ -136183,9 +135719,8 @@ public enum ModifyVerifiedAccessInstanceLoggingConfigurationOutputError: Swift.E extension ModifyVerifiedAccessInstanceLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVerifiedAccessInstanceLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -136243,9 +135778,8 @@ public enum ModifyVerifiedAccessInstanceOutputError: Swift.Error, Swift.Equatabl extension ModifyVerifiedAccessInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVerifiedAccessInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessInstance = output.verifiedAccessInstance } else { @@ -136428,9 +135962,8 @@ public enum ModifyVerifiedAccessTrustProviderOutputError: Swift.Error, Swift.Equ extension ModifyVerifiedAccessTrustProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVerifiedAccessTrustProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedAccessTrustProvider = output.verifiedAccessTrustProvider } else { @@ -136717,9 +136250,8 @@ public enum ModifyVolumeOutputError: Swift.Error, Swift.Equatable { extension ModifyVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volumeModification = output.volumeModification } else { @@ -136990,9 +136522,8 @@ public enum ModifyVpcEndpointConnectionNotificationOutputError: Swift.Error, Swi extension ModifyVpcEndpointConnectionNotificationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpcEndpointConnectionNotificationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -137384,9 +136915,8 @@ public enum ModifyVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension ModifyVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -137756,9 +137286,8 @@ public enum ModifyVpcEndpointServiceConfigurationOutputError: Swift.Error, Swift extension ModifyVpcEndpointServiceConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpcEndpointServiceConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -137885,9 +137414,8 @@ public enum ModifyVpcEndpointServicePayerResponsibilityOutputError: Swift.Error, extension ModifyVpcEndpointServicePayerResponsibilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpcEndpointServicePayerResponsibilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -138076,9 +137604,8 @@ public enum ModifyVpcEndpointServicePermissionsOutputError: Swift.Error, Swift.E extension ModifyVpcEndpointServicePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpcEndpointServicePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addedPrincipals = output.addedPrincipals self.returnValue = output.returnValue @@ -138242,9 +137769,8 @@ public enum ModifyVpcPeeringConnectionOptionsOutputError: Swift.Error, Swift.Equ extension ModifyVpcPeeringConnectionOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpcPeeringConnectionOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accepterPeeringConnectionOptions = output.accepterPeeringConnectionOptions self.requesterPeeringConnectionOptions = output.requesterPeeringConnectionOptions @@ -138381,9 +137907,8 @@ public enum ModifyVpcTenancyOutputError: Swift.Error, Swift.Equatable { extension ModifyVpcTenancyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpcTenancyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -138632,9 +138157,8 @@ public enum ModifyVpnConnectionOptionsOutputError: Swift.Error, Swift.Equatable extension ModifyVpnConnectionOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpnConnectionOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnConnection = output.vpnConnection } else { @@ -138692,9 +138216,8 @@ public enum ModifyVpnConnectionOutputError: Swift.Error, Swift.Equatable { extension ModifyVpnConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpnConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnConnection = output.vpnConnection } else { @@ -138821,9 +138344,8 @@ public enum ModifyVpnTunnelCertificateOutputError: Swift.Error, Swift.Equatable extension ModifyVpnTunnelCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpnTunnelCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnConnection = output.vpnConnection } else { @@ -138973,9 +138495,8 @@ public enum ModifyVpnTunnelOptionsOutputError: Swift.Error, Swift.Equatable { extension ModifyVpnTunnelOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyVpnTunnelOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpnConnection = output.vpnConnection } else { @@ -139537,9 +139058,8 @@ public enum MonitorInstancesOutputError: Swift.Error, Swift.Equatable { extension MonitorInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MonitorInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceMonitorings = output.instanceMonitorings } else { @@ -139744,9 +139264,8 @@ public enum MoveAddressToVpcOutputError: Swift.Error, Swift.Equatable { extension MoveAddressToVpcOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MoveAddressToVpcOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allocationId = output.allocationId self.status = output.status @@ -139895,9 +139414,8 @@ public enum MoveByoipCidrToIpamOutputError: Swift.Error, Swift.Equatable { extension MoveByoipCidrToIpamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MoveByoipCidrToIpamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { @@ -147546,9 +147064,8 @@ public enum ProvisionByoipCidrOutputError: Swift.Error, Swift.Equatable { extension ProvisionByoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionByoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { @@ -147707,9 +147224,8 @@ public enum ProvisionIpamPoolCidrOutputError: Swift.Error, Swift.Equatable { extension ProvisionIpamPoolCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionIpamPoolCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipamPoolCidr = output.ipamPoolCidr } else { @@ -147848,9 +147364,8 @@ public enum ProvisionPublicIpv4PoolCidrOutputError: Swift.Error, Swift.Equatable extension ProvisionPublicIpv4PoolCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionPublicIpv4PoolCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.poolAddressRange = output.poolAddressRange self.poolId = output.poolId @@ -148545,9 +148060,8 @@ public enum PurchaseHostReservationOutputError: Swift.Error, Swift.Equatable { extension PurchaseHostReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseHostReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.currencyCode = output.currencyCode @@ -148801,9 +148315,8 @@ public enum PurchaseReservedInstancesOfferingOutputError: Swift.Error, Swift.Equ extension PurchaseReservedInstancesOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseReservedInstancesOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedInstancesId = output.reservedInstancesId } else { @@ -148957,9 +148470,8 @@ public enum PurchaseScheduledInstancesOutputError: Swift.Error, Swift.Equatable extension PurchaseScheduledInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseScheduledInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduledInstanceSet = output.scheduledInstanceSet } else { @@ -149664,9 +149176,8 @@ public enum RegisterImageOutputError: Swift.Error, Swift.Equatable { extension RegisterImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId } else { @@ -149781,9 +149292,8 @@ public enum RegisterInstanceEventNotificationAttributesOutputError: Swift.Error, extension RegisterInstanceEventNotificationAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterInstanceEventNotificationAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceTagAttribute = output.instanceTagAttribute } else { @@ -150018,9 +149528,8 @@ public enum RegisterTransitGatewayMulticastGroupMembersOutputError: Swift.Error, extension RegisterTransitGatewayMulticastGroupMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterTransitGatewayMulticastGroupMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registeredMulticastGroupMembers = output.registeredMulticastGroupMembers } else { @@ -150184,9 +149693,8 @@ public enum RegisterTransitGatewayMulticastGroupSourcesOutputError: Swift.Error, extension RegisterTransitGatewayMulticastGroupSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterTransitGatewayMulticastGroupSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registeredMulticastGroupSources = output.registeredMulticastGroupSources } else { @@ -150348,9 +149856,8 @@ public enum RejectTransitGatewayMulticastDomainAssociationsOutputError: Swift.Er extension RejectTransitGatewayMulticastDomainAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectTransitGatewayMulticastDomainAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations } else { @@ -150465,9 +149972,8 @@ public enum RejectTransitGatewayPeeringAttachmentOutputError: Swift.Error, Swift extension RejectTransitGatewayPeeringAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectTransitGatewayPeeringAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPeeringAttachment = output.transitGatewayPeeringAttachment } else { @@ -150582,9 +150088,8 @@ public enum RejectTransitGatewayVpcAttachmentOutputError: Swift.Error, Swift.Equ extension RejectTransitGatewayVpcAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectTransitGatewayVpcAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayVpcAttachment = output.transitGatewayVpcAttachment } else { @@ -150737,9 +150242,8 @@ public enum RejectVpcEndpointConnectionsOutputError: Swift.Error, Swift.Equatabl extension RejectVpcEndpointConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectVpcEndpointConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unsuccessful = output.unsuccessful } else { @@ -150871,9 +150375,8 @@ public enum RejectVpcPeeringConnectionOutputError: Swift.Error, Swift.Equatable extension RejectVpcPeeringConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectVpcPeeringConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -151110,9 +150613,8 @@ public enum ReleaseHostsOutputError: Swift.Error, Swift.Equatable { extension ReleaseHostsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReleaseHostsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successful = output.successful self.unsuccessful = output.unsuccessful @@ -151295,9 +150797,8 @@ public enum ReleaseIpamPoolAllocationOutputError: Swift.Error, Swift.Equatable { extension ReleaseIpamPoolAllocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReleaseIpamPoolAllocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.success = output.success } else { @@ -151484,9 +150985,8 @@ public enum ReplaceIamInstanceProfileAssociationOutputError: Swift.Error, Swift. extension ReplaceIamInstanceProfileAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplaceIamInstanceProfileAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iamInstanceProfileAssociation = output.iamInstanceProfileAssociation } else { @@ -151613,9 +151113,8 @@ public enum ReplaceNetworkAclAssociationOutputError: Swift.Error, Swift.Equatabl extension ReplaceNetworkAclAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplaceNetworkAclAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.newAssociationId = output.newAssociationId } else { @@ -152370,9 +151869,8 @@ public enum ReplaceRouteTableAssociationOutputError: Swift.Error, Swift.Equatabl extension ReplaceRouteTableAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplaceRouteTableAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationState = output.associationState self.newAssociationId = output.newAssociationId @@ -152531,9 +152029,8 @@ public enum ReplaceTransitGatewayRouteOutputError: Swift.Error, Swift.Equatable extension ReplaceTransitGatewayRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplaceTransitGatewayRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.route = output.route } else { @@ -152671,9 +152168,8 @@ public enum ReplaceVpnTunnelOutputError: Swift.Error, Swift.Equatable { extension ReplaceVpnTunnelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplaceVpnTunnelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -153782,9 +153278,8 @@ public enum RequestSpotFleetOutputError: Swift.Error, Swift.Equatable { extension RequestSpotFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestSpotFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.spotFleetRequestId = output.spotFleetRequestId } else { @@ -154051,9 +153546,8 @@ public enum RequestSpotInstancesOutputError: Swift.Error, Swift.Equatable { extension RequestSpotInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestSpotInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.spotInstanceRequests = output.spotInstanceRequests } else { @@ -155950,9 +155444,8 @@ public enum ResetAddressAttributeOutputError: Swift.Error, Swift.Equatable { extension ResetAddressAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetAddressAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address } else { @@ -156055,9 +155548,8 @@ public enum ResetEbsDefaultKmsKeyIdOutputError: Swift.Error, Swift.Equatable { extension ResetEbsDefaultKmsKeyIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetEbsDefaultKmsKeyIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.kmsKeyId = output.kmsKeyId } else { @@ -156212,9 +155704,8 @@ public enum ResetFpgaImageAttributeOutputError: Swift.Error, Swift.Equatable { extension ResetFpgaImageAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetFpgaImageAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -157828,9 +157319,8 @@ public enum RestoreAddressToClassicOutputError: Swift.Error, Swift.Equatable { extension RestoreAddressToClassicOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreAddressToClassicOutputResponseBody = try responseDecoder.decode(responseBody: data) self.publicIp = output.publicIp self.status = output.status @@ -157955,9 +157445,8 @@ public enum RestoreImageFromRecycleBinOutputError: Swift.Error, Swift.Equatable extension RestoreImageFromRecycleBinOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreImageFromRecycleBinOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -158096,9 +157585,8 @@ public enum RestoreManagedPrefixListVersionOutputError: Swift.Error, Swift.Equat extension RestoreManagedPrefixListVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreManagedPrefixListVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.prefixList = output.prefixList } else { @@ -158213,9 +157701,8 @@ public enum RestoreSnapshotFromRecycleBinOutputError: Swift.Error, Swift.Equatab extension RestoreSnapshotFromRecycleBinOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreSnapshotFromRecycleBinOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.encrypted = output.encrypted @@ -158442,9 +157929,8 @@ public enum RestoreSnapshotTierOutputError: Swift.Error, Swift.Equatable { extension RestoreSnapshotTierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreSnapshotTierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isPermanentRestore = output.isPermanentRestore self.restoreDuration = output.restoreDuration @@ -158623,9 +158109,8 @@ public enum RevokeClientVpnIngressOutputError: Swift.Error, Swift.Equatable { extension RevokeClientVpnIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeClientVpnIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -158880,9 +158365,8 @@ public enum RevokeSecurityGroupEgressOutputError: Swift.Error, Swift.Equatable { extension RevokeSecurityGroupEgressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeSecurityGroupEgressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` self.unknownIpPermissions = output.unknownIpPermissions @@ -159174,9 +158658,8 @@ public enum RevokeSecurityGroupIngressOutputError: Swift.Error, Swift.Equatable extension RevokeSecurityGroupIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeSecurityGroupIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` self.unknownIpPermissions = output.unknownIpPermissions @@ -160904,9 +160387,8 @@ public enum RunInstancesOutputError: Swift.Error, Swift.Equatable { extension RunInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RunInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.instances = output.instances @@ -161136,9 +160618,8 @@ public enum RunScheduledInstancesOutputError: Swift.Error, Swift.Equatable { extension RunScheduledInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RunScheduledInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceIdSet = output.instanceIdSet } else { @@ -162864,9 +162345,8 @@ public enum SearchLocalGatewayRoutesOutputError: Swift.Error, Swift.Equatable { extension SearchLocalGatewayRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchLocalGatewayRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routes = output.routes @@ -163085,9 +162565,8 @@ public enum SearchTransitGatewayMulticastGroupsOutputError: Swift.Error, Swift.E extension SearchTransitGatewayMulticastGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchTransitGatewayMulticastGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multicastGroups = output.multicastGroups self.nextToken = output.nextToken @@ -163298,9 +162777,8 @@ public enum SearchTransitGatewayRoutesOutputError: Swift.Error, Swift.Equatable extension SearchTransitGatewayRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchTransitGatewayRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalRoutesAvailable = output.additionalRoutesAvailable self.routes = output.routes @@ -168610,9 +168088,8 @@ public enum StartInstancesOutputError: Swift.Error, Swift.Equatable { extension StartInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.startingInstances = output.startingInstances } else { @@ -168793,9 +168270,8 @@ public enum StartNetworkInsightsAccessScopeAnalysisOutputError: Swift.Error, Swi extension StartNetworkInsightsAccessScopeAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartNetworkInsightsAccessScopeAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAccessScopeAnalysis = output.networkInsightsAccessScopeAnalysis } else { @@ -169033,9 +168509,8 @@ public enum StartNetworkInsightsAnalysisOutputError: Swift.Error, Swift.Equatabl extension StartNetworkInsightsAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartNetworkInsightsAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInsightsAnalysis = output.networkInsightsAnalysis } else { @@ -169150,9 +168625,8 @@ public enum StartVpcEndpointServicePrivateDnsVerificationOutputError: Swift.Erro extension StartVpcEndpointServicePrivateDnsVerificationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartVpcEndpointServicePrivateDnsVerificationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -169597,9 +169071,8 @@ public enum StopInstancesOutputError: Swift.Error, Swift.Equatable { extension StopInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stoppingInstances = output.stoppingInstances } else { @@ -171613,9 +171086,8 @@ public enum TerminateClientVpnConnectionsOutputError: Swift.Error, Swift.Equatab extension TerminateClientVpnConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateClientVpnConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientVpnEndpointId = output.clientVpnEndpointId self.connectionStatuses = output.connectionStatuses @@ -171848,9 +171320,8 @@ public enum TerminateInstancesOutputError: Swift.Error, Swift.Equatable { extension TerminateInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.terminatingInstances = output.terminatingInstances } else { @@ -178200,9 +177671,8 @@ public enum UnassignIpv6AddressesOutputError: Swift.Error, Swift.Equatable { extension UnassignIpv6AddressesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnassignIpv6AddressesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInterfaceId = output.networkInterfaceId self.unassignedIpv6Addresses = output.unassignedIpv6Addresses @@ -178570,9 +178040,8 @@ public enum UnassignPrivateNatGatewayAddressOutputError: Swift.Error, Swift.Equa extension UnassignPrivateNatGatewayAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnassignPrivateNatGatewayAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.natGatewayAddresses = output.natGatewayAddresses self.natGatewayId = output.natGatewayId @@ -178778,9 +178247,8 @@ public enum UnmonitorInstancesOutputError: Swift.Error, Swift.Equatable { extension UnmonitorInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnmonitorInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceMonitorings = output.instanceMonitorings } else { @@ -179214,9 +178682,8 @@ public enum UpdateSecurityGroupRuleDescriptionsEgressOutputError: Swift.Error, S extension UpdateSecurityGroupRuleDescriptionsEgressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSecurityGroupRuleDescriptionsEgressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -179415,9 +178882,8 @@ public enum UpdateSecurityGroupRuleDescriptionsIngressOutputError: Swift.Error, extension UpdateSecurityGroupRuleDescriptionsIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSecurityGroupRuleDescriptionsIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`return` = output.`return` } else { @@ -186418,9 +185884,8 @@ public enum WithdrawByoipCidrOutputError: Swift.Error, Swift.Equatable { extension WithdrawByoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WithdrawByoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { diff --git a/Sources/Services/AWSEC2InstanceConnect/EC2InstanceConnectClient.swift b/Sources/Services/AWSEC2InstanceConnect/EC2InstanceConnectClient.swift index 86351673c41..35183e087f5 100644 --- a/Sources/Services/AWSEC2InstanceConnect/EC2InstanceConnectClient.swift +++ b/Sources/Services/AWSEC2InstanceConnect/EC2InstanceConnectClient.swift @@ -208,6 +208,7 @@ extension EC2InstanceConnectClient: EC2InstanceConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2-instance-connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendSSHPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension EC2InstanceConnectClient: EC2InstanceConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension EC2InstanceConnectClient: EC2InstanceConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ec2-instance-connect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendSerialConsoleSSHPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension EC2InstanceConnectClient: EC2InstanceConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEC2InstanceConnect/models/Models.swift b/Sources/Services/AWSEC2InstanceConnect/models/Models.swift index f2a480ba9e2..948e153244c 100644 --- a/Sources/Services/AWSEC2InstanceConnect/models/Models.swift +++ b/Sources/Services/AWSEC2InstanceConnect/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AuthException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AuthException { } /// Either your AWS credentials are not valid or you do not have access to the EC2 instance. -public struct AuthException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AuthExceptionBody: Swift.Decodable { extension EC2InstanceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EC2InstanceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension EC2InstanceNotFoundException { } /// The specified instance was not found. -public struct EC2InstanceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EC2InstanceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -108,9 +106,8 @@ extension EC2InstanceNotFoundExceptionBody: Swift.Decodable { extension EC2InstanceStateInvalidException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EC2InstanceStateInvalidExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -124,7 +121,7 @@ extension EC2InstanceStateInvalidException { } /// Unable to connect because the instance is not in a valid state. Connecting to a stopped or terminated instance is not supported. If the instance is stopped, start your instance, and try to connect again. -public struct EC2InstanceStateInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EC2InstanceStateInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -160,9 +157,8 @@ extension EC2InstanceStateInvalidExceptionBody: Swift.Decodable { extension EC2InstanceTypeInvalidException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EC2InstanceTypeInvalidExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -176,7 +172,7 @@ extension EC2InstanceTypeInvalidException { } /// The instance type is not supported for connecting via the serial console. Only Nitro instance types are currently supported. -public struct EC2InstanceTypeInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EC2InstanceTypeInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -212,9 +208,8 @@ extension EC2InstanceTypeInvalidExceptionBody: Swift.Decodable { extension EC2InstanceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EC2InstanceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -228,7 +223,7 @@ extension EC2InstanceUnavailableException { } /// The instance is currently unavailable. Wait a few minutes and try again. -public struct EC2InstanceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EC2InstanceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -264,9 +259,8 @@ extension EC2InstanceUnavailableExceptionBody: Swift.Decodable { extension InvalidArgsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -280,7 +274,7 @@ extension InvalidArgsException { } /// One of the parameters is not valid. -public struct InvalidArgsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -436,9 +430,8 @@ public enum SendSSHPublicKeyOutputError: Swift.Error, Swift.Equatable { extension SendSSHPublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendSSHPublicKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.success = output.success @@ -602,9 +595,8 @@ public enum SendSerialConsoleSSHPublicKeyOutputError: Swift.Error, Swift.Equatab extension SendSerialConsoleSSHPublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendSerialConsoleSSHPublicKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.success = output.success @@ -653,9 +645,8 @@ extension SendSerialConsoleSSHPublicKeyOutputResponseBody: Swift.Decodable { extension SerialConsoleAccessDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SerialConsoleAccessDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -669,7 +660,7 @@ extension SerialConsoleAccessDisabledException { } /// Your account is not authorized to use the EC2 Serial Console. To authorize your account, run the EnableSerialConsoleAccess API. For more information, see [EnableSerialConsoleAccess](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html) in the Amazon EC2 API Reference. -public struct SerialConsoleAccessDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SerialConsoleAccessDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -705,9 +696,8 @@ extension SerialConsoleAccessDisabledExceptionBody: Swift.Decodable { extension SerialConsoleSessionLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SerialConsoleSessionLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -721,7 +711,7 @@ extension SerialConsoleSessionLimitExceededException { } /// The instance currently has 1 active serial console session. Only 1 session is supported at a time. -public struct SerialConsoleSessionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SerialConsoleSessionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -757,9 +747,8 @@ extension SerialConsoleSessionLimitExceededExceptionBody: Swift.Decodable { extension SerialConsoleSessionUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SerialConsoleSessionUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -773,7 +762,7 @@ extension SerialConsoleSessionUnavailableException { } /// Unable to start a serial console session. Please try again. -public struct SerialConsoleSessionUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SerialConsoleSessionUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -809,9 +798,8 @@ extension SerialConsoleSessionUnavailableExceptionBody: Swift.Decodable { extension ServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -825,7 +813,7 @@ extension ServiceException { } /// The service encountered an error. Follow the instructions in the error message and try again. -public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -861,9 +849,8 @@ extension ServiceExceptionBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -877,7 +864,7 @@ extension ThrottlingException { } /// The requests were made too frequently and have been throttled. Wait a while and try again. To increase the limit on your request frequency, contact AWS Support. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSECR/ECRClient.swift b/Sources/Services/AWSECR/ECRClient.swift index 27686226bfc..0638dd6fc97 100644 --- a/Sources/Services/AWSECR/ECRClient.swift +++ b/Sources/Services/AWSECR/ECRClient.swift @@ -208,6 +208,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCheckLayerAvailability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetRepositoryScanningConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeLayerUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPullThroughCacheRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePullThroughCacheRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegistryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRepositoryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImageReplicationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImageScanFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePullThroughCacheRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAuthorizationToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDownloadUrlForLayer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLifecyclePolicyPreview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegistryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegistryScanningConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepositoryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initiateLayerUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putImageScanningConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putImageTagMutability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRegistryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRegistryScanningConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setRepositoryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImageScan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startLifecyclePolicyPreview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension ECRClient: ECRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadLayerPart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension ECRClient: ECRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSECR/models/Models.swift b/Sources/Services/AWSECR/models/Models.swift index d44b29b5844..aeeee3a646b 100644 --- a/Sources/Services/AWSECR/models/Models.swift +++ b/Sources/Services/AWSECR/models/Models.swift @@ -333,9 +333,8 @@ public enum BatchCheckLayerAvailabilityOutputError: Swift.Error, Swift.Equatable extension BatchCheckLayerAvailabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCheckLayerAvailabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.layers = output.layers @@ -514,9 +513,8 @@ public enum BatchDeleteImageOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.imageIds = output.imageIds @@ -718,9 +716,8 @@ public enum BatchGetImageOutputError: Swift.Error, Swift.Equatable { extension BatchGetImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.images = output.images @@ -875,9 +872,8 @@ public enum BatchGetRepositoryScanningConfigurationOutputError: Swift.Error, Swi extension BatchGetRepositoryScanningConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetRepositoryScanningConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.scanningConfigurations = output.scanningConfigurations @@ -1080,9 +1076,8 @@ public enum CompleteLayerUploadOutputError: Swift.Error, Swift.Equatable { extension CompleteLayerUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CompleteLayerUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.layerDigest = output.layerDigest self.registryId = output.registryId @@ -1256,9 +1251,8 @@ public enum CreatePullThroughCacheRuleOutputError: Swift.Error, Swift.Equatable extension CreatePullThroughCacheRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePullThroughCacheRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.ecrRepositoryPrefix = output.ecrRepositoryPrefix @@ -1481,9 +1475,8 @@ public enum CreateRepositoryOutputError: Swift.Error, Swift.Equatable { extension CreateRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -1807,9 +1800,8 @@ public enum DeleteLifecyclePolicyOutputError: Swift.Error, Swift.Equatable { extension DeleteLifecyclePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLifecyclePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastEvaluatedAt = output.lastEvaluatedAt self.lifecyclePolicyText = output.lifecyclePolicyText @@ -1966,9 +1958,8 @@ public enum DeletePullThroughCacheRuleOutputError: Swift.Error, Swift.Equatable extension DeletePullThroughCacheRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePullThroughCacheRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.ecrRepositoryPrefix = output.ecrRepositoryPrefix @@ -2093,9 +2084,8 @@ public enum DeleteRegistryPolicyOutputError: Swift.Error, Swift.Equatable { extension DeleteRegistryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRegistryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -2246,9 +2236,8 @@ public enum DeleteRepositoryOutputError: Swift.Error, Swift.Equatable { extension DeleteRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -2375,9 +2364,8 @@ public enum DeleteRepositoryPolicyOutputError: Swift.Error, Swift.Equatable { extension DeleteRepositoryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRepositoryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -2539,9 +2527,8 @@ public enum DescribeImageReplicationStatusOutputError: Swift.Error, Swift.Equata extension DescribeImageReplicationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImageReplicationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId self.replicationStatuses = output.replicationStatuses @@ -2738,9 +2725,8 @@ public enum DescribeImageScanFindingsOutputError: Swift.Error, Swift.Equatable { extension DescribeImageScanFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImageScanFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId self.imageScanFindings = output.imageScanFindings @@ -3012,9 +2998,8 @@ public enum DescribeImagesOutputError: Swift.Error, Swift.Equatable { extension DescribeImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageDetails = output.imageDetails self.nextToken = output.nextToken @@ -3195,9 +3180,8 @@ public enum DescribePullThroughCacheRulesOutputError: Swift.Error, Swift.Equatab extension DescribePullThroughCacheRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePullThroughCacheRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pullThroughCacheRules = output.pullThroughCacheRules @@ -3309,9 +3293,8 @@ public enum DescribeRegistryOutputError: Swift.Error, Swift.Equatable { extension DescribeRegistryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRegistryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryId = output.registryId self.replicationConfiguration = output.replicationConfiguration @@ -3481,9 +3464,8 @@ public enum DescribeRepositoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.repositories = output.repositories @@ -3541,9 +3523,8 @@ extension DescribeRepositoriesOutputResponseBody: Swift.Decodable { extension EmptyUploadException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EmptyUploadExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3557,7 +3538,7 @@ extension EmptyUploadException { } /// The specified layer upload does not contain any layer parts. -public struct EmptyUploadException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EmptyUploadException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3987,9 +3968,8 @@ public enum GetAuthorizationTokenOutputError: Swift.Error, Swift.Equatable { extension GetAuthorizationTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAuthorizationTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizationData = output.authorizationData } else { @@ -4140,9 +4120,8 @@ public enum GetDownloadUrlForLayerOutputError: Swift.Error, Swift.Equatable { extension GetDownloadUrlForLayerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDownloadUrlForLayerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.downloadUrl = output.downloadUrl self.layerDigest = output.layerDigest @@ -4279,9 +4258,8 @@ public enum GetLifecyclePolicyOutputError: Swift.Error, Swift.Equatable { extension GetLifecyclePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLifecyclePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastEvaluatedAt = output.lastEvaluatedAt self.lifecyclePolicyText = output.lifecyclePolicyText @@ -4498,9 +4476,8 @@ public enum GetLifecyclePolicyPreviewOutputError: Swift.Error, Swift.Equatable { extension GetLifecyclePolicyPreviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLifecyclePolicyPreviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecyclePolicyText = output.lifecyclePolicyText self.nextToken = output.nextToken @@ -4664,9 +4641,8 @@ public enum GetRegistryPolicyOutputError: Swift.Error, Swift.Equatable { extension GetRegistryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegistryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -4769,9 +4745,8 @@ public enum GetRegistryScanningConfigurationOutputError: Swift.Error, Swift.Equa extension GetRegistryScanningConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegistryScanningConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryId = output.registryId self.scanningConfiguration = output.scanningConfiguration @@ -4908,9 +4883,8 @@ public enum GetRepositoryPolicyOutputError: Swift.Error, Swift.Equatable { extension GetRepositoryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositoryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -5073,9 +5047,8 @@ extension ECRClientTypes { extension ImageAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5089,7 +5062,7 @@ extension ImageAlreadyExistsException { } /// The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push. -public struct ImageAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5273,9 +5246,8 @@ extension ECRClientTypes { extension ImageDigestDoesNotMatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageDigestDoesNotMatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5289,7 +5261,7 @@ extension ImageDigestDoesNotMatchException { } /// The specified image digest does not match the digest that Amazon ECR calculated for the image. -public struct ImageDigestDoesNotMatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageDigestDoesNotMatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5472,9 +5444,8 @@ extension ECRClientTypes { extension ImageNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5488,7 +5459,7 @@ extension ImageNotFoundException { } /// The image requested does not exist in the specified repository. -public struct ImageNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5934,9 +5905,8 @@ extension ECRClientTypes { extension ImageTagAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageTagAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5950,7 +5920,7 @@ extension ImageTagAlreadyExistsException { } /// The specified image is tagged with a tag that already exists. The repository is configured for tag immutability. -public struct ImageTagAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageTagAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6106,9 +6076,8 @@ public enum InitiateLayerUploadOutputError: Swift.Error, Swift.Equatable { extension InitiateLayerUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InitiateLayerUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.partSize = output.partSize self.uploadId = output.uploadId @@ -6157,9 +6126,8 @@ extension InitiateLayerUploadOutputResponseBody: Swift.Decodable { extension InvalidLayerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLayerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6173,7 +6141,7 @@ extension InvalidLayerException { } /// The layer digest calculation performed by Amazon ECR upon receipt of the image layer does not match the digest specified. -public struct InvalidLayerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLayerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6210,9 +6178,8 @@ extension InvalidLayerExceptionBody: Swift.Decodable { extension InvalidLayerPartException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLayerPartExceptionBody = try responseDecoder.decode(responseBody: data) self.lastValidByteReceived = output.lastValidByteReceived self.message = output.message @@ -6234,7 +6201,7 @@ extension InvalidLayerPartException { } /// The layer part size is not valid, or the first byte specified is not consecutive to the last byte of a previous layer part upload. -public struct InvalidLayerPartException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLayerPartException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6303,9 +6270,8 @@ extension InvalidLayerPartExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6319,7 +6285,7 @@ extension InvalidParameterException { } /// The specified parameter is invalid. Review the available parameters for the API request. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6356,9 +6322,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidTagParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6372,7 +6337,7 @@ extension InvalidTagParameterException { } /// An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. -public struct InvalidTagParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6408,9 +6373,8 @@ extension InvalidTagParameterExceptionBody: Swift.Decodable { extension KmsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KmsExceptionBody = try responseDecoder.decode(responseBody: data) self.kmsError = output.kmsError self.message = output.message @@ -6426,7 +6390,7 @@ extension KmsException { } /// The operation failed due to a KMS exception. -public struct KmsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KmsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6535,9 +6499,8 @@ extension ECRClientTypes { extension LayerAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LayerAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6551,7 +6514,7 @@ extension LayerAlreadyExistsException { } /// The image layer already exists in the associated repository. -public struct LayerAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LayerAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6707,9 +6670,8 @@ extension ECRClientTypes { extension LayerInaccessibleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LayerInaccessibleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6723,7 +6685,7 @@ extension LayerInaccessibleException { } /// The specified layer is not available because it is not associated with an image. Unassociated image layers may be cleaned up at any time. -public struct LayerInaccessibleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LayerInaccessibleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6760,9 +6722,8 @@ extension LayerInaccessibleExceptionBody: Swift.Decodable { extension LayerPartTooSmallException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LayerPartTooSmallExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6776,7 +6737,7 @@ extension LayerPartTooSmallException { } /// Layer parts must be at least 5 MiB in size. -public struct LayerPartTooSmallException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LayerPartTooSmallException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6813,9 +6774,8 @@ extension LayerPartTooSmallExceptionBody: Swift.Decodable { extension LayersNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LayersNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6829,7 +6789,7 @@ extension LayersNotFoundException { } /// The specified layers could not be found, or the specified layer is not valid for this repository. -public struct LayersNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LayersNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6866,9 +6826,8 @@ extension LayersNotFoundExceptionBody: Swift.Decodable { extension LifecyclePolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LifecyclePolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6882,7 +6841,7 @@ extension LifecyclePolicyNotFoundException { } /// The lifecycle policy could not be found, and no policy is set to the repository. -public struct LifecyclePolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LifecyclePolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6953,9 +6912,8 @@ extension ECRClientTypes { extension LifecyclePolicyPreviewInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LifecyclePolicyPreviewInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6969,7 +6927,7 @@ extension LifecyclePolicyPreviewInProgressException { } /// The previous lifecycle policy preview request has not completed. Wait and try again. -public struct LifecyclePolicyPreviewInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LifecyclePolicyPreviewInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7005,9 +6963,8 @@ extension LifecyclePolicyPreviewInProgressExceptionBody: Swift.Decodable { extension LifecyclePolicyPreviewNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LifecyclePolicyPreviewNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7021,7 +6978,7 @@ extension LifecyclePolicyPreviewNotFoundException { } /// There is no dry run for this repository. -public struct LifecyclePolicyPreviewNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LifecyclePolicyPreviewNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7252,9 +7209,8 @@ extension ECRClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7268,7 +7224,7 @@ extension LimitExceededException { } /// The operation did not succeed because it would have exceeded a service limit for your account. For more information, see [Amazon ECR service quotas](https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html) in the Amazon Elastic Container Registry User Guide. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7462,9 +7418,8 @@ public enum ListImagesOutputError: Swift.Error, Swift.Equatable { extension ListImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageIds = output.imageIds self.nextToken = output.nextToken @@ -7596,9 +7551,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7884,9 +7838,8 @@ extension ECRClientTypes { extension PullThroughCacheRuleAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PullThroughCacheRuleAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7900,7 +7853,7 @@ extension PullThroughCacheRuleAlreadyExistsException { } /// A pull through cache rule with these settings already exists for the private registry. -public struct PullThroughCacheRuleAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PullThroughCacheRuleAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7936,9 +7889,8 @@ extension PullThroughCacheRuleAlreadyExistsExceptionBody: Swift.Decodable { extension PullThroughCacheRuleNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PullThroughCacheRuleNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7952,7 +7904,7 @@ extension PullThroughCacheRuleNotFoundException { } /// The pull through cache rule was not found. Specify a valid pull through cache rule and try again. -public struct PullThroughCacheRuleNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PullThroughCacheRuleNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8137,9 +8089,8 @@ public enum PutImageOutputError: Swift.Error, Swift.Equatable { extension PutImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.image = output.image } else { @@ -8279,9 +8230,8 @@ public enum PutImageScanningConfigurationOutputError: Swift.Error, Swift.Equatab extension PutImageScanningConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutImageScanningConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageScanningConfiguration = output.imageScanningConfiguration self.registryId = output.registryId @@ -8439,9 +8389,8 @@ public enum PutImageTagMutabilityOutputError: Swift.Error, Swift.Equatable { extension PutImageTagMutabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutImageTagMutabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageTagMutability = output.imageTagMutability self.registryId = output.registryId @@ -8599,9 +8548,8 @@ public enum PutLifecyclePolicyOutputError: Swift.Error, Swift.Equatable { extension PutLifecyclePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutLifecyclePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecyclePolicyText = output.lifecyclePolicyText self.registryId = output.registryId @@ -8734,9 +8682,8 @@ public enum PutRegistryPolicyOutputError: Swift.Error, Swift.Equatable { extension PutRegistryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRegistryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -8882,9 +8829,8 @@ public enum PutRegistryScanningConfigurationOutputError: Swift.Error, Swift.Equa extension PutRegistryScanningConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRegistryScanningConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryScanningConfiguration = output.registryScanningConfiguration } else { @@ -8997,9 +8943,8 @@ public enum PutReplicationConfigurationOutputError: Swift.Error, Swift.Equatable extension PutReplicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutReplicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationConfiguration = output.replicationConfiguration } else { @@ -9083,9 +9028,8 @@ extension ECRClientTypes { extension ReferencedImagesNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReferencedImagesNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9099,7 +9043,7 @@ extension ReferencedImagesNotFoundException { } /// The manifest list is referencing an image that does not exist. -public struct ReferencedImagesNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReferencedImagesNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9135,9 +9079,8 @@ extension ReferencedImagesNotFoundExceptionBody: Swift.Decodable { extension RegistryPolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegistryPolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9151,7 +9094,7 @@ extension RegistryPolicyNotFoundException { } /// The registry doesn't have an associated registry policy. -public struct RegistryPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RegistryPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9643,9 +9586,8 @@ extension ECRClientTypes { extension RepositoryAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9659,7 +9601,7 @@ extension RepositoryAlreadyExistsException { } /// The specified repository already exists in the specified registry. -public struct RepositoryAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9772,9 +9714,8 @@ extension ECRClientTypes { extension RepositoryNotEmptyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryNotEmptyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9788,7 +9729,7 @@ extension RepositoryNotEmptyException { } /// The specified repository contains images. To delete a repository that contains images, you must force the deletion with the force parameter. -public struct RepositoryNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9825,9 +9766,8 @@ extension RepositoryNotEmptyExceptionBody: Swift.Decodable { extension RepositoryNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9841,7 +9781,7 @@ extension RepositoryNotFoundException { } /// The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry. -public struct RepositoryNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9878,9 +9818,8 @@ extension RepositoryNotFoundExceptionBody: Swift.Decodable { extension RepositoryPolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryPolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9894,7 +9833,7 @@ extension RepositoryPolicyNotFoundException { } /// The specified repository and registry combination does not have an associated repository policy. -public struct RepositoryPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10220,9 +10159,8 @@ extension ECRClientTypes { extension ScanNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ScanNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10236,7 +10174,7 @@ extension ScanNotFoundException { } /// The specified image scan could not be found. Ensure that image scanning is enabled on the repository and try again. -public struct ScanNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ScanNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10494,9 +10432,8 @@ extension ECRClientTypes { extension ServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10510,7 +10447,7 @@ extension ServerException { } /// These errors are usually caused by a server-side issue. -public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10658,9 +10595,8 @@ public enum SetRepositoryPolicyOutputError: Swift.Error, Swift.Equatable { extension SetRepositoryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetRepositoryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -10826,9 +10762,8 @@ public enum StartImageScanOutputError: Swift.Error, Swift.Equatable { extension StartImageScanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImageScanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId self.imageScanStatus = output.imageScanStatus @@ -10999,9 +10934,8 @@ public enum StartLifecyclePolicyPreviewOutputError: Swift.Error, Swift.Equatable extension StartLifecyclePolicyPreviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartLifecyclePolicyPreviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecyclePolicyText = output.lifecyclePolicyText self.registryId = output.registryId @@ -11263,9 +11197,8 @@ extension ECRClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11279,7 +11212,7 @@ extension TooManyTagsException { } /// The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11315,9 +11248,8 @@ extension TooManyTagsExceptionBody: Swift.Decodable { extension UnsupportedImageTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedImageTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11331,7 +11263,7 @@ extension UnsupportedImageTypeException { } /// The image is of a type that cannot be scanned. -public struct UnsupportedImageTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedImageTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11367,9 +11299,8 @@ extension UnsupportedImageTypeExceptionBody: Swift.Decodable { extension UnsupportedUpstreamRegistryException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedUpstreamRegistryExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11383,7 +11314,7 @@ extension UnsupportedUpstreamRegistryException { } /// The specified upstream registry isn't supported. -public struct UnsupportedUpstreamRegistryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedUpstreamRegistryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11678,9 +11609,8 @@ public enum UploadLayerPartOutputError: Swift.Error, Swift.Equatable { extension UploadLayerPartOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadLayerPartOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastByteReceived = output.lastByteReceived self.registryId = output.registryId @@ -11749,9 +11679,8 @@ extension UploadLayerPartOutputResponseBody: Swift.Decodable { extension UploadNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11765,7 +11694,7 @@ extension UploadNotFoundException { } /// The upload could not be found, or the specified upload ID is not valid for this repository. -public struct UploadNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UploadNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11802,9 +11731,8 @@ extension UploadNotFoundExceptionBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11818,7 +11746,7 @@ extension ValidationException { } /// There was an exception validating this request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSECRPUBLIC/ECRPUBLICClient.swift b/Sources/Services/AWSECRPUBLIC/ECRPUBLICClient.swift index 152a8f2f236..0a0c765b5d0 100644 --- a/Sources/Services/AWSECRPUBLIC/ECRPUBLICClient.swift +++ b/Sources/Services/AWSECRPUBLIC/ECRPUBLICClient.swift @@ -208,6 +208,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCheckLayerAvailability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeLayerUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRepositoryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImageTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRegistries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAuthorizationToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegistryCatalogData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepositoryCatalogData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepositoryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initiateLayerUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRegistryCatalogData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRepositoryCatalogData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setRepositoryPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecr-public") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadLayerPart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension ECRPUBLICClient: ECRPUBLICClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSECRPUBLIC/models/Models.swift b/Sources/Services/AWSECRPUBLIC/models/Models.swift index 77f005d3131..ce4826e8400 100644 --- a/Sources/Services/AWSECRPUBLIC/models/Models.swift +++ b/Sources/Services/AWSECRPUBLIC/models/Models.swift @@ -164,9 +164,8 @@ public enum BatchCheckLayerAvailabilityOutputError: Swift.Error, Swift.Equatable extension BatchCheckLayerAvailabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCheckLayerAvailabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.layers = output.layers @@ -346,9 +345,8 @@ public enum BatchDeleteImageOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.imageIds = output.imageIds @@ -553,9 +551,8 @@ public enum CompleteLayerUploadOutputError: Swift.Error, Swift.Equatable { extension CompleteLayerUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CompleteLayerUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.layerDigest = output.layerDigest self.registryId = output.registryId @@ -742,9 +739,8 @@ public enum CreateRepositoryOutputError: Swift.Error, Swift.Equatable { extension CreateRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.catalogData = output.catalogData self.repository = output.repository @@ -895,9 +891,8 @@ public enum DeleteRepositoryOutputError: Swift.Error, Swift.Equatable { extension DeleteRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -1026,9 +1021,8 @@ public enum DeleteRepositoryPolicyOutputError: Swift.Error, Swift.Equatable { extension DeleteRepositoryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRepositoryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -1199,9 +1193,8 @@ public enum DescribeImageTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeImageTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImageTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageTagDetails = output.imageTagDetails self.nextToken = output.nextToken @@ -1397,9 +1390,8 @@ public enum DescribeImagesOutputError: Swift.Error, Swift.Equatable { extension DescribeImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageDetails = output.imageDetails self.nextToken = output.nextToken @@ -1542,9 +1534,8 @@ public enum DescribeRegistriesOutputError: Swift.Error, Swift.Equatable { extension DescribeRegistriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRegistriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.registries = output.registries @@ -1726,9 +1717,8 @@ public enum DescribeRepositoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.repositories = output.repositories @@ -1786,9 +1776,8 @@ extension DescribeRepositoriesOutputResponseBody: Swift.Decodable { extension EmptyUploadException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EmptyUploadExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1802,7 +1791,7 @@ extension EmptyUploadException { } /// The specified layer upload doesn't contain any layer parts. -public struct EmptyUploadException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EmptyUploadException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1892,9 +1881,8 @@ public enum GetAuthorizationTokenOutputError: Swift.Error, Swift.Equatable { extension GetAuthorizationTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAuthorizationTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizationData = output.authorizationData } else { @@ -1985,9 +1973,8 @@ public enum GetRegistryCatalogDataOutputError: Swift.Error, Swift.Equatable { extension GetRegistryCatalogDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegistryCatalogDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryCatalogData = output.registryCatalogData } else { @@ -2117,9 +2104,8 @@ public enum GetRepositoryCatalogDataOutputError: Swift.Error, Swift.Equatable { extension GetRepositoryCatalogDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositoryCatalogDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.catalogData = output.catalogData } else { @@ -2248,9 +2234,8 @@ public enum GetRepositoryPolicyOutputError: Swift.Error, Swift.Equatable { extension GetRepositoryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositoryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -2384,9 +2369,8 @@ extension ECRPUBLICClientTypes { extension ImageAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2400,7 +2384,7 @@ extension ImageAlreadyExistsException { } /// The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push. -public struct ImageAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2553,9 +2537,8 @@ extension ECRPUBLICClientTypes { extension ImageDigestDoesNotMatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageDigestDoesNotMatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2569,7 +2552,7 @@ extension ImageDigestDoesNotMatchException { } /// The specified image digest doesn't match the digest that Amazon ECR calculated for the image. -public struct ImageDigestDoesNotMatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageDigestDoesNotMatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2752,9 +2735,8 @@ extension ECRPUBLICClientTypes { extension ImageNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2768,7 +2750,7 @@ extension ImageNotFoundException { } /// The image requested doesn't exist in the specified repository. -public struct ImageNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2804,9 +2786,8 @@ extension ImageNotFoundExceptionBody: Swift.Decodable { extension ImageTagAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageTagAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2820,7 +2801,7 @@ extension ImageTagAlreadyExistsException { } /// The specified image is tagged with a tag that already exists. The repository is configured for tag immutability. -public struct ImageTagAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageTagAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3001,9 +2982,8 @@ public enum InitiateLayerUploadOutputError: Swift.Error, Swift.Equatable { extension InitiateLayerUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InitiateLayerUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.partSize = output.partSize self.uploadId = output.uploadId @@ -3052,9 +3032,8 @@ extension InitiateLayerUploadOutputResponseBody: Swift.Decodable { extension InvalidLayerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLayerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3068,7 +3047,7 @@ extension InvalidLayerException { } /// The layer digest calculation performed by Amazon ECR when the image layer doesn't match the digest specified. -public struct InvalidLayerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLayerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3104,9 +3083,8 @@ extension InvalidLayerExceptionBody: Swift.Decodable { extension InvalidLayerPartException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLayerPartExceptionBody = try responseDecoder.decode(responseBody: data) self.lastValidByteReceived = output.lastValidByteReceived self.message = output.message @@ -3128,7 +3106,7 @@ extension InvalidLayerPartException { } /// The layer part size isn't valid, or the first byte specified isn't consecutive to the last byte of a previous layer part upload. -public struct InvalidLayerPartException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLayerPartException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3196,9 +3174,8 @@ extension InvalidLayerPartExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3212,7 +3189,7 @@ extension InvalidParameterException { } /// The specified parameter is invalid. Review the available parameters for the API request. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3248,9 +3225,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidTagParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3264,7 +3240,7 @@ extension InvalidTagParameterException { } /// An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. -public struct InvalidTagParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3365,9 +3341,8 @@ extension ECRPUBLICClientTypes { extension LayerAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LayerAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3381,7 +3356,7 @@ extension LayerAlreadyExistsException { } /// The image layer already exists in the associated repository. -public struct LayerAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LayerAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3536,9 +3511,8 @@ extension ECRPUBLICClientTypes { extension LayerPartTooSmallException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LayerPartTooSmallExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3552,7 +3526,7 @@ extension LayerPartTooSmallException { } /// Layer parts must be at least 5 MiB in size. -public struct LayerPartTooSmallException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LayerPartTooSmallException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3588,9 +3562,8 @@ extension LayerPartTooSmallExceptionBody: Swift.Decodable { extension LayersNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LayersNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3604,7 +3577,7 @@ extension LayersNotFoundException { } /// The specified layers can't be found, or the specified layer isn't valid for this repository. -public struct LayersNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LayersNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3640,9 +3613,8 @@ extension LayersNotFoundExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3656,7 +3628,7 @@ extension LimitExceededException { } /// The operation didn't succeed because it would have exceeded a service limit for your account. For more information, see [Amazon ECR Service Quotas](https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html) in the Amazon Elastic Container Registry User Guide. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3768,9 +3740,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3969,9 +3940,8 @@ public enum PutImageOutputError: Swift.Error, Swift.Equatable { extension PutImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.image = output.image } else { @@ -4083,9 +4053,8 @@ public enum PutRegistryCatalogDataOutputError: Swift.Error, Swift.Equatable { extension PutRegistryCatalogDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRegistryCatalogDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryCatalogData = output.registryCatalogData } else { @@ -4226,9 +4195,8 @@ public enum PutRepositoryCatalogDataOutputError: Swift.Error, Swift.Equatable { extension PutRepositoryCatalogDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRepositoryCatalogDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.catalogData = output.catalogData } else { @@ -4342,9 +4310,8 @@ extension ECRPUBLICClientTypes { extension ReferencedImagesNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReferencedImagesNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4358,7 +4325,7 @@ extension ReferencedImagesNotFoundException { } /// The manifest list is referencing an image that doesn't exist. -public struct ReferencedImagesNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReferencedImagesNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4625,9 +4592,8 @@ extension ECRPUBLICClientTypes { extension RegistryNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegistryNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4641,7 +4607,7 @@ extension RegistryNotFoundException { } /// The registry doesn't exist. -public struct RegistryNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RegistryNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4752,9 +4718,8 @@ extension ECRPUBLICClientTypes { extension RepositoryAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4768,7 +4733,7 @@ extension RepositoryAlreadyExistsException { } /// The specified repository already exists in the specified registry. -public struct RepositoryAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5044,9 +5009,8 @@ extension ECRPUBLICClientTypes { extension RepositoryCatalogDataNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryCatalogDataNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5060,7 +5024,7 @@ extension RepositoryCatalogDataNotFoundException { } /// The repository catalog data doesn't exist. -public struct RepositoryCatalogDataNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryCatalogDataNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5096,9 +5060,8 @@ extension RepositoryCatalogDataNotFoundExceptionBody: Swift.Decodable { extension RepositoryNotEmptyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryNotEmptyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5112,7 +5075,7 @@ extension RepositoryNotEmptyException { } /// The specified repository contains images. To delete a repository that contains images, you must force the deletion with the force parameter. -public struct RepositoryNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5148,9 +5111,8 @@ extension RepositoryNotEmptyExceptionBody: Swift.Decodable { extension RepositoryNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5164,7 +5126,7 @@ extension RepositoryNotFoundException { } /// The specified repository can't be found. Check the spelling of the specified repository and ensure that you're performing operations on the correct registry. -public struct RepositoryNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5200,9 +5162,8 @@ extension RepositoryNotFoundExceptionBody: Swift.Decodable { extension RepositoryPolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RepositoryPolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5216,7 +5177,7 @@ extension RepositoryPolicyNotFoundException { } /// The specified repository and registry combination doesn't have an associated repository policy. -public struct RepositoryPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RepositoryPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5252,9 +5213,8 @@ extension RepositoryPolicyNotFoundExceptionBody: Swift.Decodable { extension ServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5268,7 +5228,7 @@ extension ServerException { } /// These errors are usually caused by a server-side issue. -public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5417,9 +5377,8 @@ public enum SetRepositoryPolicyOutputError: Swift.Error, Swift.Equatable { extension SetRepositoryPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetRepositoryPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyText = output.policyText self.registryId = output.registryId @@ -5638,9 +5597,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5654,7 +5612,7 @@ extension TooManyTagsException { } /// The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5690,9 +5648,8 @@ extension TooManyTagsExceptionBody: Swift.Decodable { extension UnsupportedCommandException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedCommandExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5706,7 +5663,7 @@ extension UnsupportedCommandException { } /// The action isn't supported in this Region. -public struct UnsupportedCommandException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedCommandException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6005,9 +5962,8 @@ public enum UploadLayerPartOutputError: Swift.Error, Swift.Equatable { extension UploadLayerPartOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadLayerPartOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastByteReceived = output.lastByteReceived self.registryId = output.registryId @@ -6076,9 +6032,8 @@ extension UploadLayerPartOutputResponseBody: Swift.Decodable { extension UploadNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6092,7 +6047,7 @@ extension UploadNotFoundException { } /// The upload can't be found, or the specified upload ID isn't valid for this repository. -public struct UploadNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UploadNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSECS/ECSClient.swift b/Sources/Services/AWSECS/ECSClient.swift index 03e1c1019b7..f9e07fa2009 100644 --- a/Sources/Services/AWSECS/ECSClient.swift +++ b/Sources/Services/AWSECS/ECSClient.swift @@ -208,6 +208,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCapacityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -287,6 +289,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -303,7 +306,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -323,6 +326,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTaskSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -339,7 +343,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -359,6 +363,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccountSetting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -375,7 +380,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -395,6 +400,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -411,7 +417,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -431,6 +437,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCapacityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -447,7 +454,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -467,6 +474,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -483,7 +491,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -503,6 +511,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +528,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +548,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTaskDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -555,7 +565,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -575,6 +585,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTaskSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -591,7 +602,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -611,6 +622,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterContainerInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -627,7 +639,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -647,6 +659,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterTaskDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -663,7 +676,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -683,6 +696,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCapacityProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -699,7 +713,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -719,6 +733,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -735,7 +750,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -755,6 +770,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContainerInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -771,7 +787,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -791,6 +807,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -807,7 +824,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -827,6 +844,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTaskDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -843,7 +861,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -863,6 +881,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTaskSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +898,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +918,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +935,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +955,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "discoverPollEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -951,7 +972,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -971,6 +992,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeCommand") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -987,7 +1009,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1007,6 +1029,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTaskProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1023,7 +1046,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1043,6 +1066,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1083,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1103,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1095,7 +1120,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1115,6 +1140,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1131,7 +1157,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1151,6 +1177,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContainerInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1167,7 +1194,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1187,6 +1214,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1203,7 +1231,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1223,6 +1251,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServicesByNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1239,7 +1268,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1259,6 +1288,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1305,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1325,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTaskDefinitionFamilies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1311,7 +1342,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1331,6 +1362,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTaskDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1379,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1367,6 +1399,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1383,7 +1416,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1403,6 +1436,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountSetting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1419,7 +1453,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1439,6 +1473,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountSettingDefault") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1455,7 +1490,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1475,6 +1510,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1491,7 +1527,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1511,6 +1547,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putClusterCapacityProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1527,7 +1564,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1547,6 +1584,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerContainerInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1563,7 +1601,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1583,6 +1621,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerTaskDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1599,7 +1638,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1623,6 +1662,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "runTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1639,7 +1679,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1659,6 +1699,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1675,7 +1716,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1695,6 +1736,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1711,7 +1753,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1731,6 +1773,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "submitAttachmentStateChanges") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1747,7 +1790,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1767,6 +1810,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "submitContainerStateChange") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1783,7 +1827,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1803,6 +1847,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "submitTaskStateChange") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1819,7 +1864,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1839,6 +1884,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1855,7 +1901,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1875,6 +1921,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1891,7 +1938,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1911,6 +1958,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCapacityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1927,7 +1975,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1947,6 +1995,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1963,7 +2012,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1983,6 +2032,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClusterSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1999,7 +2049,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2019,6 +2069,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContainerAgent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2035,7 +2086,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2062,6 +2113,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContainerInstancesState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2078,7 +2130,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2130,6 +2182,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2146,7 +2199,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2166,6 +2219,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServicePrimaryTaskSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2182,7 +2236,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2202,6 +2256,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTaskProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2218,7 +2273,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2238,6 +2293,7 @@ extension ECSClient: ECSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ecs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTaskSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2254,7 +2310,7 @@ extension ECSClient: ECSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSECS/models/Models.swift b/Sources/Services/AWSECS/models/Models.swift index 49f3489a9aa..b6690247270 100644 --- a/Sources/Services/AWSECS/models/Models.swift +++ b/Sources/Services/AWSECS/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have authorization to perform the requested action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -357,9 +356,8 @@ extension ECSClientTypes { extension AttributeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttributeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -373,7 +371,7 @@ extension AttributeLimitExceededException { } /// You can apply up to 10 custom attributes for each resource. You can view the attributes of a resource with [ListAttributes]. You can remove existing attributes on a resource with [DeleteAttributes]. -public struct AttributeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AttributeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -590,9 +588,8 @@ extension ECSClientTypes { extension BlockedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BlockedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -606,7 +603,7 @@ extension BlockedException { } /// Your Amazon Web Services account was blocked. For more information, contact [ Amazon Web Services Support](http://aws.amazon.com/contact-us/). -public struct BlockedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BlockedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -956,9 +953,8 @@ extension ECSClientTypes { extension ClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -972,7 +968,7 @@ extension ClientException { } /// These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource,. Or, it might be specifying an identifier that isn't valid. -public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1330,9 +1326,8 @@ extension ECSClientTypes { extension ClusterContainsContainerInstancesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterContainsContainerInstancesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1346,7 +1341,7 @@ extension ClusterContainsContainerInstancesException { } /// You can't delete a cluster that has registered container instances. First, deregister the container instances before you can delete the cluster. For more information, see [DeregisterContainerInstance]. -public struct ClusterContainsContainerInstancesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterContainsContainerInstancesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1382,9 +1377,8 @@ extension ClusterContainsContainerInstancesExceptionBody: Swift.Decodable { extension ClusterContainsServicesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterContainsServicesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1398,7 +1392,7 @@ extension ClusterContainsServicesException { } /// You can't delete a cluster that contains services. First, update the service to reduce its desired task count to 0, and then delete the service. For more information, see [UpdateService] and [DeleteService]. -public struct ClusterContainsServicesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterContainsServicesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1434,9 +1428,8 @@ extension ClusterContainsServicesExceptionBody: Swift.Decodable { extension ClusterContainsTasksException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterContainsTasksExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1450,7 +1443,7 @@ extension ClusterContainsTasksException { } /// You can't delete a cluster that has active tasks. -public struct ClusterContainsTasksException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterContainsTasksException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1527,9 +1520,8 @@ extension ECSClientTypes { extension ClusterNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1543,7 +1535,7 @@ extension ClusterNotFoundException { } /// The specified cluster wasn't found. You can view your available clusters with [ListClusters]. Amazon ECS clusters are Region specific. -public struct ClusterNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3610,9 +3602,8 @@ public enum CreateCapacityProviderOutputError: Swift.Error, Swift.Equatable { extension CreateCapacityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCapacityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityProvider = output.capacityProvider } else { @@ -3858,9 +3849,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -4339,9 +4329,8 @@ public enum CreateServiceOutputError: Swift.Error, Swift.Equatable { extension CreateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -4678,9 +4667,8 @@ public enum CreateTaskSetOutputError: Swift.Error, Swift.Equatable { extension CreateTaskSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTaskSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskSet = output.taskSet } else { @@ -4805,9 +4793,8 @@ public enum DeleteAccountSettingOutputError: Swift.Error, Swift.Equatable { extension DeleteAccountSettingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAccountSettingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.setting = output.setting } else { @@ -4944,9 +4931,8 @@ public enum DeleteAttributesOutputError: Swift.Error, Swift.Equatable { extension DeleteAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -5068,9 +5054,8 @@ public enum DeleteCapacityProviderOutputError: Swift.Error, Swift.Equatable { extension DeleteCapacityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCapacityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityProvider = output.capacityProvider } else { @@ -5193,9 +5178,8 @@ public enum DeleteClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -5336,9 +5320,8 @@ public enum DeleteServiceOutputError: Swift.Error, Swift.Equatable { extension DeleteServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -5465,9 +5448,8 @@ public enum DeleteTaskDefinitionsOutputError: Swift.Error, Swift.Equatable { extension DeleteTaskDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTaskDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.taskDefinitions = output.taskDefinitions @@ -5658,9 +5640,8 @@ public enum DeleteTaskSetOutputError: Swift.Error, Swift.Equatable { extension DeleteTaskSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTaskSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskSet = output.taskSet } else { @@ -6332,9 +6313,8 @@ public enum DeregisterContainerInstanceOutputError: Swift.Error, Swift.Equatable extension DeregisterContainerInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterContainerInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerInstance = output.containerInstance } else { @@ -6447,9 +6427,8 @@ public enum DeregisterTaskDefinitionOutputError: Swift.Error, Swift.Equatable { extension DeregisterTaskDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterTaskDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskDefinition = output.taskDefinition } else { @@ -6621,9 +6600,8 @@ public enum DescribeCapacityProvidersOutputError: Swift.Error, Swift.Equatable { extension DescribeCapacityProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCapacityProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityProviders = output.capacityProviders self.failures = output.failures @@ -6809,9 +6787,8 @@ public enum DescribeClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.failures = output.failures @@ -7002,9 +6979,8 @@ public enum DescribeContainerInstancesOutputError: Swift.Error, Swift.Equatable extension DescribeContainerInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContainerInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerInstances = output.containerInstances self.failures = output.failures @@ -7195,9 +7171,8 @@ public enum DescribeServicesOutputError: Swift.Error, Swift.Equatable { extension DescribeServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.services = output.services @@ -7362,9 +7337,8 @@ public enum DescribeTaskDefinitionOutputError: Swift.Error, Swift.Equatable { extension DescribeTaskDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTaskDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags self.taskDefinition = output.taskDefinition @@ -7581,9 +7555,8 @@ public enum DescribeTaskSetsOutputError: Swift.Error, Swift.Equatable { extension DescribeTaskSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTaskSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.taskSets = output.taskSets @@ -7774,9 +7747,8 @@ public enum DescribeTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.tasks = output.tasks @@ -8064,9 +8036,8 @@ public enum DiscoverPollEndpointOutputError: Swift.Error, Swift.Equatable { extension DiscoverPollEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DiscoverPollEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint self.serviceConnectEndpoint = output.serviceConnectEndpoint @@ -8828,9 +8799,8 @@ public enum ExecuteCommandOutputError: Swift.Error, Swift.Equatable { extension ExecuteCommandOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteCommandOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.containerArn = output.containerArn @@ -9275,9 +9245,8 @@ public enum GetTaskProtectionOutputError: Swift.Error, Swift.Equatable { extension GetTaskProtectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTaskProtectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.protectedTasks = output.protectedTasks @@ -9803,9 +9772,8 @@ extension ECSClientTypes { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9819,7 +9787,7 @@ extension InvalidParameterException { } /// The specified parameter isn't valid. Review the available parameters for the API request. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10039,9 +10007,8 @@ extension ECSClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10055,7 +10022,7 @@ extension LimitExceededException { } /// The limit for the resource was exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10343,9 +10310,8 @@ public enum ListAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension ListAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.settings = output.settings @@ -10535,9 +10501,8 @@ public enum ListAttributesOutputError: Swift.Error, Swift.Equatable { extension ListAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.nextToken = output.nextToken @@ -10680,9 +10645,8 @@ public enum ListClustersOutputError: Swift.Error, Swift.Equatable { extension ListClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArns = output.clusterArns self.nextToken = output.nextToken @@ -10863,9 +10827,8 @@ public enum ListContainerInstancesOutputError: Swift.Error, Swift.Equatable { extension ListContainerInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContainerInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerInstanceArns = output.containerInstanceArns self.nextToken = output.nextToken @@ -11023,9 +10986,8 @@ public enum ListServicesByNamespaceOutputError: Swift.Error, Swift.Equatable { extension ListServicesByNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicesByNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceArns = output.serviceArns @@ -11206,9 +11168,8 @@ public enum ListServicesOutputError: Swift.Error, Swift.Equatable { extension ListServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceArns = output.serviceArns @@ -11342,9 +11303,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -11501,9 +11461,8 @@ public enum ListTaskDefinitionFamiliesOutputError: Swift.Error, Swift.Equatable extension ListTaskDefinitionFamiliesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTaskDefinitionFamiliesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.families = output.families self.nextToken = output.nextToken @@ -11682,9 +11641,8 @@ public enum ListTaskDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListTaskDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTaskDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.taskDefinitionArns = output.taskDefinitionArns @@ -11915,9 +11873,8 @@ public enum ListTasksOutputError: Swift.Error, Swift.Equatable { extension ListTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.taskArns = output.taskArns @@ -12479,9 +12436,8 @@ extension ECSClientTypes { extension MissingVersionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingVersionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12495,7 +12451,7 @@ extension MissingVersionException { } /// Amazon ECS can't determine the current version of the Amazon ECS container agent on the container instance and doesn't have enough information to proceed with an update. This could be because the agent running on the container instance is a previous or custom version that doesn't use our version information. -public struct MissingVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12586,9 +12542,8 @@ extension ECSClientTypes { extension NamespaceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NamespaceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12602,7 +12557,7 @@ extension NamespaceNotFoundException { } /// The specified namespace wasn't found. -public struct NamespaceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NamespaceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12883,9 +12838,8 @@ extension ECSClientTypes { extension NoUpdateAvailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoUpdateAvailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12899,7 +12853,7 @@ extension NoUpdateAvailableException { } /// There's no update available for this Amazon ECS container agent. This might be because the agent is already running the latest version or because it's so old that there's no update path to the current version. -public struct NoUpdateAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoUpdateAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13250,9 +13204,8 @@ extension ECSClientTypes { extension PlatformTaskDefinitionIncompatibilityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PlatformTaskDefinitionIncompatibilityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13266,7 +13219,7 @@ extension PlatformTaskDefinitionIncompatibilityException { } /// The specified platform version doesn't satisfy the required capabilities of the task definition. -public struct PlatformTaskDefinitionIncompatibilityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PlatformTaskDefinitionIncompatibilityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13302,9 +13255,8 @@ extension PlatformTaskDefinitionIncompatibilityExceptionBody: Swift.Decodable { extension PlatformUnknownException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PlatformUnknownExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13318,7 +13270,7 @@ extension PlatformUnknownException { } /// The specified platform version doesn't exist. -public struct PlatformUnknownException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PlatformUnknownException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13766,9 +13718,8 @@ public enum PutAccountSettingDefaultOutputError: Swift.Error, Swift.Equatable { extension PutAccountSettingDefaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAccountSettingDefaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.setting = output.setting } else { @@ -13906,9 +13857,8 @@ public enum PutAccountSettingOutputError: Swift.Error, Swift.Equatable { extension PutAccountSettingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAccountSettingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.setting = output.setting } else { @@ -14047,9 +13997,8 @@ public enum PutAttributesOutputError: Swift.Error, Swift.Equatable { extension PutAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -14227,9 +14176,8 @@ public enum PutClusterCapacityProvidersOutputError: Swift.Error, Swift.Equatable extension PutClusterCapacityProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutClusterCapacityProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -14499,9 +14447,8 @@ public enum RegisterContainerInstanceOutputError: Swift.Error, Swift.Equatable { extension RegisterContainerInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterContainerInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerInstance = output.containerInstance } else { @@ -14930,9 +14877,8 @@ public enum RegisterTaskDefinitionOutputError: Swift.Error, Swift.Equatable { extension RegisterTaskDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterTaskDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags self.taskDefinition = output.taskDefinition @@ -15123,9 +15069,8 @@ extension ECSClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15139,7 +15084,7 @@ extension ResourceInUseException { } /// The specified resource is in-use and can't be removed. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15175,9 +15120,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15191,7 +15135,7 @@ extension ResourceNotFoundException { } /// The specified resource wasn't found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15646,9 +15590,8 @@ public enum RunTaskOutputError: Swift.Error, Swift.Equatable { extension RunTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RunTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.tasks = output.tasks @@ -15952,9 +15895,8 @@ extension ECSClientTypes { extension ServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15968,7 +15910,7 @@ extension ServerException { } /// These errors are usually caused by a server issue. -public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16804,9 +16746,8 @@ extension ECSClientTypes { extension ServiceNotActiveException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceNotActiveExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16820,7 +16761,7 @@ extension ServiceNotActiveException { } /// The specified service isn't active. You can't update a service that's inactive. If you have previously deleted a service, you can re-create it with [CreateService]. -public struct ServiceNotActiveException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceNotActiveException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16856,9 +16797,8 @@ extension ServiceNotActiveExceptionBody: Swift.Decodable { extension ServiceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16872,7 +16812,7 @@ extension ServiceNotFoundException { } /// The specified service wasn't found. You can view your available services with [ListServices]. Amazon ECS services are cluster specific and Region specific. -public struct ServiceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17443,9 +17383,8 @@ public enum StartTaskOutputError: Swift.Error, Swift.Equatable { extension StartTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.tasks = output.tasks @@ -17612,9 +17551,8 @@ public enum StopTaskOutputError: Swift.Error, Swift.Equatable { extension StopTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.task = output.task } else { @@ -17753,9 +17691,8 @@ public enum SubmitAttachmentStateChangesOutputError: Swift.Error, Swift.Equatabl extension SubmitAttachmentStateChangesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubmitAttachmentStateChangesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acknowledgment = output.acknowledgment } else { @@ -17963,9 +17900,8 @@ public enum SubmitContainerStateChangeOutputError: Swift.Error, Swift.Equatable extension SubmitContainerStateChangeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubmitContainerStateChangeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acknowledgment = output.acknowledgment } else { @@ -18223,9 +18159,8 @@ public enum SubmitTaskStateChangeOutputError: Swift.Error, Swift.Equatable { extension SubmitTaskStateChangeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubmitTaskStateChangeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acknowledgment = output.acknowledgment } else { @@ -18499,9 +18434,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TargetNotConnectedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TargetNotConnectedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18524,7 +18458,7 @@ extension TargetNotConnectedException { /// /// /// For information about how to troubleshoot the issues, see [Troubleshooting issues with ECS Exec](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html) in the Amazon Elastic Container Service Developer Guide. -public struct TargetNotConnectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetNotConnectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18560,9 +18494,8 @@ extension TargetNotConnectedExceptionBody: Swift.Decodable { extension TargetNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TargetNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18576,7 +18509,7 @@ extension TargetNotFoundException { } /// The specified target wasn't found. You can view your available container instances with [ListContainerInstances]. Amazon ECS container instances are cluster-specific and Region-specific. -public struct TargetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20216,9 +20149,8 @@ extension ECSClientTypes { extension TaskSetNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TaskSetNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20232,7 +20164,7 @@ extension TaskSetNotFoundException { } /// The specified task set wasn't found. You can view your available task sets with [DescribeTaskSets]. Task sets are specific to each cluster, service and Region. -public struct TaskSetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TaskSetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20542,9 +20474,8 @@ extension ECSClientTypes { extension UnsupportedFeatureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedFeatureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20558,7 +20489,7 @@ extension UnsupportedFeatureException { } /// The specified task isn't supported in this Region. -public struct UnsupportedFeatureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedFeatureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20794,9 +20725,8 @@ public enum UpdateCapacityProviderOutputError: Swift.Error, Swift.Equatable { extension UpdateCapacityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCapacityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityProvider = output.capacityProvider } else { @@ -20959,9 +20889,8 @@ public enum UpdateClusterOutputError: Swift.Error, Swift.Equatable { extension UpdateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -21101,9 +21030,8 @@ public enum UpdateClusterSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateClusterSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -21236,9 +21164,8 @@ public enum UpdateContainerAgentOutputError: Swift.Error, Swift.Equatable { extension UpdateContainerAgentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateContainerAgentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerInstance = output.containerInstance } else { @@ -21390,9 +21317,8 @@ public enum UpdateContainerInstancesStateOutputError: Swift.Error, Swift.Equatab extension UpdateContainerInstancesStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateContainerInstancesStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerInstances = output.containerInstances self.failures = output.failures @@ -21459,9 +21385,8 @@ extension UpdateContainerInstancesStateOutputResponseBody: Swift.Decodable { extension UpdateInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21475,7 +21400,7 @@ extension UpdateInProgressException { } /// There's already a current Amazon ECS container agent update in progress on the container instance that's specified. If the container agent becomes disconnected while it's in a transitional stage, such as PENDING or STAGING, the update process can get stuck in that state. However, when the agent reconnects, it resumes where it stopped previously. -public struct UpdateInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UpdateInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21863,9 +21788,8 @@ public enum UpdateServiceOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -22016,9 +21940,8 @@ public enum UpdateServicePrimaryTaskSetOutputError: Swift.Error, Swift.Equatable extension UpdateServicePrimaryTaskSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServicePrimaryTaskSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskSet = output.taskSet } else { @@ -22189,9 +22112,8 @@ public enum UpdateTaskProtectionOutputError: Swift.Error, Swift.Equatable { extension UpdateTaskProtectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTaskProtectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures self.protectedTasks = output.protectedTasks @@ -22389,9 +22311,8 @@ public enum UpdateTaskSetOutputError: Swift.Error, Swift.Equatable { extension UpdateTaskSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTaskSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskSet = output.taskSet } else { diff --git a/Sources/Services/AWSEFS/EFSClient.swift b/Sources/Services/AWSEFS/EFSClient.swift index dadb1b37cc2..1623cfefd4c 100644 --- a/Sources/Services/AWSEFS/EFSClient.swift +++ b/Sources/Services/AWSEFS/EFSClient.swift @@ -208,6 +208,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessPoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -258,6 +259,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFileSystem") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -281,7 +283,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -353,6 +355,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMountTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +371,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +421,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +437,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -454,6 +458,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -469,7 +474,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -489,6 +494,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -501,7 +507,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -521,6 +527,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFileSystem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -533,7 +540,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -553,6 +560,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFileSystemPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -565,7 +573,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -592,6 +600,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMountTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +613,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +633,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -636,7 +646,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +667,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +683,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +703,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccessPoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -705,7 +717,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -725,6 +737,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -740,7 +753,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -760,6 +773,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBackupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +786,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +806,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFileSystemPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +819,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +839,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFileSystems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -837,7 +853,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -857,6 +873,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLifecycleConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -869,7 +886,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -893,6 +910,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMountTargetSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -905,7 +923,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -925,6 +943,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMountTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -938,7 +957,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -958,6 +977,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -971,7 +991,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -992,6 +1012,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1005,7 +1026,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1025,6 +1046,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1038,7 +1060,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1062,6 +1084,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyMountTargetSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1077,7 +1100,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1097,6 +1120,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1112,7 +1136,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1132,6 +1156,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBackupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1147,7 +1172,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1167,6 +1192,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFileSystemPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1182,7 +1208,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1242,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLifecycleConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1231,7 +1258,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1251,6 +1278,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1266,7 +1294,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1286,6 +1314,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1299,7 +1328,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1319,6 +1348,7 @@ extension EFSClient: EFSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticfilesystem") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFileSystem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1334,7 +1364,7 @@ extension EFSClient: EFSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEFS/models/Models.swift b/Sources/Services/AWSEFS/models/Models.swift index eef23b4df32..90c0001ba77 100644 --- a/Sources/Services/AWSEFS/models/Models.swift +++ b/Sources/Services/AWSEFS/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessPointAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessPointAlreadyExistsBody = try responseDecoder.decode(responseBody: data) self.accessPointId = output.accessPointId self.errorCode = output.errorCode @@ -24,7 +23,7 @@ extension AccessPointAlreadyExists { } /// Returned if the access point that you are trying to create already exists, with the creation token you provided in the request. -public struct AccessPointAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessPointAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -215,9 +214,8 @@ extension EFSClientTypes { extension AccessPointLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessPointLimitExceededBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -233,7 +231,7 @@ extension AccessPointLimitExceeded { } /// Returned if the Amazon Web Services account has already created the maximum number of access points allowed per file system. For more informaton, see [https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region](https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region). -public struct AccessPointLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessPointLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -279,9 +277,8 @@ extension AccessPointLimitExceededBody: Swift.Decodable { extension AccessPointNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessPointNotFoundBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -297,7 +294,7 @@ extension AccessPointNotFound { } /// Returned if the specified AccessPointId value doesn't exist in the requester's Amazon Web Services account. -public struct AccessPointNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessPointNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -343,9 +340,8 @@ extension AccessPointNotFoundBody: Swift.Decodable { extension AvailabilityZonesMismatch { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AvailabilityZonesMismatchBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -361,7 +357,7 @@ extension AvailabilityZonesMismatch { } /// Returned if the Availability Zone that was specified for a mount target is different from the Availability Zone that was specified for One Zone storage. For more information, see [Regional and One Zone storage redundancy](https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html). -public struct AvailabilityZonesMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AvailabilityZonesMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -450,9 +446,8 @@ extension EFSClientTypes { extension BadRequest { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -468,7 +463,7 @@ extension BadRequest { } /// Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter. -public struct BadRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -657,9 +652,8 @@ public enum CreateAccessPointOutputError: Swift.Error, Swift.Equatable { extension CreateAccessPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPointArn = output.accessPointArn self.accessPointId = output.accessPointId @@ -999,9 +993,8 @@ public enum CreateFileSystemOutputError: Swift.Error, Swift.Equatable { extension CreateFileSystemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFileSystemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityZoneId = output.availabilityZoneId self.availabilityZoneName = output.availabilityZoneName @@ -1363,9 +1356,8 @@ public enum CreateMountTargetOutputError: Swift.Error, Swift.Equatable { extension CreateMountTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMountTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityZoneId = output.availabilityZoneId self.availabilityZoneName = output.availabilityZoneName @@ -1607,9 +1599,8 @@ public enum CreateReplicationConfigurationOutputError: Swift.Error, Swift.Equata extension CreateReplicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.destinations = output.destinations @@ -2326,9 +2317,8 @@ public struct DeleteTagsOutputResponse: Swift.Equatable { extension DependencyTimeout { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependencyTimeoutBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -2344,7 +2334,7 @@ extension DependencyTimeout { } /// The service timed out trying to fulfill the request, and the client should try the call again. -public struct DependencyTimeout: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyTimeout: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2482,9 +2472,8 @@ public enum DescribeAccessPointsOutputError: Swift.Error, Swift.Equatable { extension DescribeAccessPointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccessPointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPoints = output.accessPoints self.nextToken = output.nextToken @@ -2623,9 +2612,8 @@ public enum DescribeAccountPreferencesOutputError: Swift.Error, Swift.Equatable extension DescribeAccountPreferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountPreferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceIdPreference = output.resourceIdPreference @@ -2735,9 +2723,8 @@ public enum DescribeBackupPolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeBackupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBackupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPolicy = output.backupPolicy } else { @@ -2835,9 +2822,8 @@ public enum DescribeFileSystemPolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeFileSystemPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFileSystemPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystemId = output.fileSystemId self.policy = output.policy @@ -2977,9 +2963,8 @@ public enum DescribeFileSystemsOutputError: Swift.Error, Swift.Equatable { extension DescribeFileSystemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFileSystemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystems = output.fileSystems self.marker = output.marker @@ -3104,9 +3089,8 @@ public enum DescribeLifecycleConfigurationOutputError: Swift.Error, Swift.Equata extension DescribeLifecycleConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLifecycleConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecyclePolicies = output.lifecyclePolicies } else { @@ -3214,9 +3198,8 @@ public enum DescribeMountTargetSecurityGroupsOutputError: Swift.Error, Swift.Equ extension DescribeMountTargetSecurityGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMountTargetSecurityGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityGroups = output.securityGroups } else { @@ -3368,9 +3351,8 @@ public enum DescribeMountTargetsOutputError: Swift.Error, Swift.Equatable { extension DescribeMountTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMountTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.mountTargets = output.mountTargets @@ -3525,9 +3507,8 @@ public enum DescribeReplicationConfigurationsOutputError: Swift.Error, Swift.Equ extension DescribeReplicationConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.replications = output.replications @@ -3668,9 +3649,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.nextMarker = output.nextMarker @@ -3871,9 +3851,8 @@ extension EFSClientTypes { extension FileSystemAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileSystemAlreadyExistsBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.fileSystemId = output.fileSystemId @@ -3891,7 +3870,7 @@ extension FileSystemAlreadyExists { } /// Returned if the file system you are trying to create already exists, with the creation token you provided. -public struct FileSystemAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileSystemAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4161,9 +4140,8 @@ extension EFSClientTypes { extension FileSystemInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileSystemInUseBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4179,7 +4157,7 @@ extension FileSystemInUse { } /// Returned if a file system has mount targets. -public struct FileSystemInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileSystemInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4225,9 +4203,8 @@ extension FileSystemInUseBody: Swift.Decodable { extension FileSystemLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileSystemLimitExceededBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4243,7 +4220,7 @@ extension FileSystemLimitExceeded { } /// Returned if the Amazon Web Services account has already created the maximum number of file systems allowed per account. -public struct FileSystemLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileSystemLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4289,9 +4266,8 @@ extension FileSystemLimitExceededBody: Swift.Decodable { extension FileSystemNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileSystemNotFoundBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4307,7 +4283,7 @@ extension FileSystemNotFound { } /// Returned if the specified FileSystemId value doesn't exist in the requester's Amazon Web Services account. -public struct FileSystemNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileSystemNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4419,9 +4395,8 @@ extension EFSClientTypes { extension IncorrectFileSystemLifeCycleState { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncorrectFileSystemLifeCycleStateBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4437,7 +4412,7 @@ extension IncorrectFileSystemLifeCycleState { } /// Returned if the file system's lifecycle state is not "available". -public struct IncorrectFileSystemLifeCycleState: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncorrectFileSystemLifeCycleState: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4483,9 +4458,8 @@ extension IncorrectFileSystemLifeCycleStateBody: Swift.Decodable { extension IncorrectMountTargetState { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncorrectMountTargetStateBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4501,7 +4475,7 @@ extension IncorrectMountTargetState { } /// Returned if the mount target is not in the correct state for the operation. -public struct IncorrectMountTargetState: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncorrectMountTargetState: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4547,9 +4521,8 @@ extension IncorrectMountTargetStateBody: Swift.Decodable { extension InsufficientThroughputCapacity { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientThroughputCapacityBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4565,7 +4538,7 @@ extension InsufficientThroughputCapacity { } /// Returned if there's not enough capacity to provision additional throughput. This value might be returned when you try to create a file system in provisioned throughput mode, when you attempt to increase the provisioned throughput of an existing file system, or when you attempt to change an existing file system from Bursting Throughput to Provisioned Throughput mode. Try again later. -public struct InsufficientThroughputCapacity: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientThroughputCapacity: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4611,9 +4584,8 @@ extension InsufficientThroughputCapacityBody: Swift.Decodable { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4629,7 +4601,7 @@ extension InternalServerError { } /// Returned if an error occurred on the server side. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4675,9 +4647,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4693,7 +4664,7 @@ extension InvalidPolicyException { } /// Returned if the FileSystemPolicy is malformed or contains an error such as a parameter value that is not valid or a missing required parameter. Returned in the case of a policy lockout safety check error. -public struct InvalidPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4738,9 +4709,8 @@ extension InvalidPolicyExceptionBody: Swift.Decodable { extension IpAddressInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IpAddressInUseBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4756,7 +4726,7 @@ extension IpAddressInUse { } /// Returned if the request specified an IpAddress that is already in use in the subnet. -public struct IpAddressInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IpAddressInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4975,9 +4945,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -5145,9 +5114,8 @@ public struct ModifyMountTargetSecurityGroupsOutputResponse: Swift.Equatable { extension MountTargetConflict { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MountTargetConflictBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -5163,7 +5131,7 @@ extension MountTargetConflict { } /// Returned if the mount target would violate one of the specified restrictions based on the file system's existing mount targets. -public struct MountTargetConflict: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MountTargetConflict: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5338,9 +5306,8 @@ extension EFSClientTypes { extension MountTargetNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MountTargetNotFoundBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -5356,7 +5323,7 @@ extension MountTargetNotFound { } /// Returned if there is no mount target with the specified ID found in the caller's Amazon Web Services account. -public struct MountTargetNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MountTargetNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5402,9 +5369,8 @@ extension MountTargetNotFoundBody: Swift.Decodable { extension NetworkInterfaceLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NetworkInterfaceLimitExceededBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -5420,7 +5386,7 @@ extension NetworkInterfaceLimitExceeded { } /// The calling account has reached the limit for elastic network interfaces for the specific Amazon Web Services Region. Either delete some network interfaces or request that the account quota be raised. For more information, see [Amazon VPC Quotas](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html) in the Amazon VPC User Guide (see the Network interfaces per Region entry in the Network interfaces table). -public struct NetworkInterfaceLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NetworkInterfaceLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5466,9 +5432,8 @@ extension NetworkInterfaceLimitExceededBody: Swift.Decodable { extension NoFreeAddressesInSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoFreeAddressesInSubnetBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -5484,7 +5449,7 @@ extension NoFreeAddressesInSubnet { } /// Returned if IpAddress was not specified in the request and there are no free IP addresses in the subnet. -public struct NoFreeAddressesInSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoFreeAddressesInSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5562,9 +5527,8 @@ extension EFSClientTypes { extension PolicyNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyNotFoundBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -5580,7 +5544,7 @@ extension PolicyNotFound { } /// Returned if the default file system policy is in effect for the EFS file system specified. -public struct PolicyNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5766,9 +5730,8 @@ public enum PutAccountPreferencesOutputError: Swift.Error, Swift.Equatable { extension PutAccountPreferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAccountPreferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceIdPreference = output.resourceIdPreference } else { @@ -5893,9 +5856,8 @@ public enum PutBackupPolicyOutputError: Swift.Error, Swift.Equatable { extension PutBackupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutBackupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupPolicy = output.backupPolicy } else { @@ -6032,9 +5994,8 @@ public enum PutFileSystemPolicyOutputError: Swift.Error, Swift.Equatable { extension PutFileSystemPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutFileSystemPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystemId = output.fileSystemId self.policy = output.policy @@ -6186,9 +6147,8 @@ public enum PutLifecycleConfigurationOutputError: Swift.Error, Swift.Equatable { extension PutLifecycleConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutLifecycleConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecyclePolicies = output.lifecyclePolicies } else { @@ -6338,9 +6298,8 @@ extension EFSClientTypes { extension ReplicationNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicationNotFoundBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -6356,7 +6315,7 @@ extension ReplicationNotFound { } /// Returned if the specified file system does not have a replication configuration. -public struct ReplicationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6607,9 +6566,8 @@ extension EFSClientTypes { extension SecurityGroupLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SecurityGroupLimitExceededBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -6625,7 +6583,7 @@ extension SecurityGroupLimitExceeded { } /// Returned if the size of SecurityGroups specified in the request is greater than five. -public struct SecurityGroupLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SecurityGroupLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6671,9 +6629,8 @@ extension SecurityGroupLimitExceededBody: Swift.Decodable { extension SecurityGroupNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SecurityGroupNotFoundBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -6689,7 +6646,7 @@ extension SecurityGroupNotFound { } /// Returned if one of the specified security groups doesn't exist in the subnet's virtual private cloud (VPC). -public struct SecurityGroupNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SecurityGroupNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6773,9 +6730,8 @@ extension EFSClientTypes { extension SubnetNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetNotFoundBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -6791,7 +6747,7 @@ extension SubnetNotFound { } /// Returned if there is no subnet with ID SubnetId provided in the request. -public struct SubnetNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6990,9 +6946,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -7008,7 +6963,7 @@ extension ThrottlingException { } /// Returned when the CreateAccessPoint API action is called too quickly and the number of Access Points on the file system is nearing the [limit of 120](https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region). -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7053,9 +7008,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension ThroughputLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThroughputLimitExceededBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -7071,7 +7025,7 @@ extension ThroughputLimitExceeded { } /// Returned if the throughput mode or amount of provisioned throughput can't be changed because the throughput limit of 1024 MiB/s has been reached. -public struct ThroughputLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThroughputLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7152,9 +7106,8 @@ extension EFSClientTypes { extension TooManyRequests { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -7170,7 +7123,7 @@ extension TooManyRequests { } /// Returned if you don’t wait at least 24 hours before either changing the throughput mode, or decreasing the Provisioned Throughput value. -public struct TooManyRequests: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequests: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7289,9 +7242,8 @@ extension EFSClientTypes { extension UnsupportedAvailabilityZone { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedAvailabilityZoneBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -7307,7 +7259,7 @@ extension UnsupportedAvailabilityZone { } /// Returned if the requested Amazon EFS functionality is not available in the specified Availability Zone. -public struct UnsupportedAvailabilityZone: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedAvailabilityZone: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7545,9 +7497,8 @@ public enum UpdateFileSystemOutputError: Swift.Error, Swift.Equatable { extension UpdateFileSystemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFileSystemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityZoneId = output.availabilityZoneId self.availabilityZoneName = output.availabilityZoneName @@ -7765,9 +7716,8 @@ extension UpdateFileSystemOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -7783,7 +7733,7 @@ extension ValidationException { } /// Returned if the Backup service is not available in the Amazon Web Services Region in which the request was made. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSEKS/EKSClient.swift b/Sources/Services/AWSEKS/EKSClient.swift index c67e83d0325..939fb6b8ee2 100644 --- a/Sources/Services/AWSEKS/EKSClient.swift +++ b/Sources/Services/AWSEKS/EKSClient.swift @@ -208,6 +208,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateEncryptionConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateIdentityProviderConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAddon") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -360,7 +364,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +384,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFargateProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -403,7 +408,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -423,6 +428,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNodegroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -446,7 +452,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -466,6 +472,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAddon") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -479,7 +486,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -499,6 +506,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -511,7 +519,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -531,6 +539,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFargateProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -543,7 +552,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -563,6 +572,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNodegroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -575,7 +585,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -595,6 +605,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -607,7 +618,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -627,6 +638,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAddon") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +651,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +671,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAddonConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +685,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +705,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAddonVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -705,7 +719,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -725,6 +739,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -737,7 +752,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -757,6 +772,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFargateProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -769,7 +785,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -789,6 +805,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdentityProviderConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +821,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +841,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNodegroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -869,7 +888,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -889,6 +908,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateIdentityProviderConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -912,7 +932,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +952,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAddons") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -945,7 +966,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -965,6 +986,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -978,7 +1000,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1020,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFargateProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1011,7 +1034,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1031,6 +1054,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentityProviderConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1044,7 +1068,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1064,6 +1088,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNodegroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1077,7 +1102,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1097,6 +1122,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1109,7 +1135,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1129,6 +1155,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUpdates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1142,7 +1169,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1162,6 +1189,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerCluster") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1185,7 +1213,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1205,6 +1233,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1220,7 +1249,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1240,6 +1269,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1253,7 +1283,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1273,6 +1303,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAddon") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1296,7 +1327,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1316,6 +1347,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClusterConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1339,7 +1371,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1359,6 +1391,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClusterVersion") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1382,7 +1415,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1402,6 +1435,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNodegroupConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1425,7 +1459,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1445,6 +1479,7 @@ extension EKSClient: EKSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "eks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNodegroupVersion") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1468,7 +1503,7 @@ extension EKSClient: EKSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEKS/models/Models.swift b/Sources/Services/AWSEKS/models/Models.swift index b35d8c40bbf..b5a7296bcac 100644 --- a/Sources/Services/AWSEKS/models/Models.swift +++ b/Sources/Services/AWSEKS/models/Models.swift @@ -66,9 +66,8 @@ extension EKSClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -82,7 +81,7 @@ extension AccessDeniedException { } /// You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see [Access Management](https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM User Guide. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -807,9 +806,8 @@ public enum AssociateEncryptionConfigOutputError: Swift.Error, Swift.Equatable { extension AssociateEncryptionConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateEncryptionConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.update = output.update } else { @@ -972,9 +970,8 @@ public enum AssociateIdentityProviderConfigOutputError: Swift.Error, Swift.Equat extension AssociateIdentityProviderConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateIdentityProviderConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags self.update = output.update @@ -1067,9 +1064,8 @@ extension EKSClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1083,7 +1079,7 @@ extension BadRequestException { } /// This exception is thrown if the request contains a semantic error. The precise meaning will depend on the API, and will be documented in the error message. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1186,9 +1182,8 @@ extension EKSClientTypes { extension ClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientExceptionBody = try responseDecoder.decode(responseBody: data) self.addonName = output.addonName self.clusterName = output.clusterName @@ -1208,7 +1203,7 @@ extension ClientException { } /// These errors are usually caused by a client action. Actions can include using an action or resource on behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier that is not valid. -public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2246,9 +2241,8 @@ public enum CreateAddonOutputError: Swift.Error, Swift.Equatable { extension CreateAddonOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAddonOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addon = output.addon } else { @@ -2503,9 +2497,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -2729,9 +2722,8 @@ public enum CreateFargateProfileOutputError: Swift.Error, Swift.Equatable { extension CreateFargateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFargateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fargateProfile = output.fargateProfile } else { @@ -3114,9 +3106,8 @@ public enum CreateNodegroupOutputError: Swift.Error, Swift.Equatable { extension CreateNodegroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNodegroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nodegroup = output.nodegroup } else { @@ -3241,9 +3232,8 @@ public enum DeleteAddonOutputError: Swift.Error, Swift.Equatable { extension DeleteAddonOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAddonOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addon = output.addon } else { @@ -3343,9 +3333,8 @@ public enum DeleteClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -3451,9 +3440,8 @@ public enum DeleteFargateProfileOutputError: Swift.Error, Swift.Equatable { extension DeleteFargateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFargateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fargateProfile = output.fargateProfile } else { @@ -3563,9 +3551,8 @@ public enum DeleteNodegroupOutputError: Swift.Error, Swift.Equatable { extension DeleteNodegroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNodegroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nodegroup = output.nodegroup } else { @@ -3667,9 +3654,8 @@ public enum DeregisterClusterOutputError: Swift.Error, Swift.Equatable { extension DeregisterClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -3788,9 +3774,8 @@ public enum DescribeAddonConfigurationOutputError: Swift.Error, Swift.Equatable extension DescribeAddonConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAddonConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addonName = output.addonName self.addonVersion = output.addonVersion @@ -3934,9 +3919,8 @@ public enum DescribeAddonOutputError: Swift.Error, Swift.Equatable { extension DescribeAddonOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAddonOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addon = output.addon } else { @@ -4095,9 +4079,8 @@ public enum DescribeAddonVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeAddonVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAddonVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addons = output.addons self.nextToken = output.nextToken @@ -4229,9 +4212,8 @@ public enum DescribeClusterOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -4352,9 +4334,8 @@ public enum DescribeFargateProfileOutputError: Swift.Error, Swift.Equatable { extension DescribeFargateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFargateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fargateProfile = output.fargateProfile } else { @@ -4479,9 +4460,8 @@ public enum DescribeIdentityProviderConfigOutputError: Swift.Error, Swift.Equata extension DescribeIdentityProviderConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdentityProviderConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviderConfig = output.identityProviderConfig } else { @@ -4605,9 +4585,8 @@ public enum DescribeNodegroupOutputError: Swift.Error, Swift.Equatable { extension DescribeNodegroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNodegroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nodegroup = output.nodegroup } else { @@ -4738,9 +4717,8 @@ public enum DescribeUpdateOutputError: Swift.Error, Swift.Equatable { extension DescribeUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.update = output.update } else { @@ -4879,9 +4857,8 @@ public enum DisassociateIdentityProviderConfigOutputError: Swift.Error, Swift.Eq extension DisassociateIdentityProviderConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateIdentityProviderConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.update = output.update } else { @@ -5501,9 +5478,8 @@ extension EKSClientTypes { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.addonName = output.addonName self.clusterName = output.clusterName @@ -5525,7 +5501,7 @@ extension InvalidParameterException { } /// The specified parameter is invalid. Review the available parameters for the API request. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5592,9 +5568,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.addonName = output.addonName self.clusterName = output.clusterName @@ -5614,7 +5589,7 @@ extension InvalidRequestException { } /// The request is invalid given the state of the cluster. Check the state of the cluster and the associated operations. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6052,9 +6027,8 @@ public enum ListAddonsOutputError: Swift.Error, Swift.Equatable { extension ListAddonsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAddonsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addons = output.addons self.nextToken = output.nextToken @@ -6198,9 +6172,8 @@ public enum ListClustersOutputError: Swift.Error, Swift.Equatable { extension ListClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.nextToken = output.nextToken @@ -6342,9 +6315,8 @@ public enum ListFargateProfilesOutputError: Swift.Error, Swift.Equatable { extension ListFargateProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFargateProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fargateProfileNames = output.fargateProfileNames self.nextToken = output.nextToken @@ -6488,9 +6460,8 @@ public enum ListIdentityProviderConfigsOutputError: Swift.Error, Swift.Equatable extension ListIdentityProviderConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentityProviderConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviderConfigs = output.identityProviderConfigs self.nextToken = output.nextToken @@ -6634,9 +6605,8 @@ public enum ListNodegroupsOutputError: Swift.Error, Swift.Equatable { extension ListNodegroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNodegroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nodegroups = output.nodegroups @@ -6749,9 +6719,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6899,9 +6868,8 @@ public enum ListUpdatesOutputError: Swift.Error, Swift.Equatable { extension ListUpdatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUpdatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.updateIds = output.updateIds @@ -7798,9 +7766,8 @@ extension EKSClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7814,7 +7781,7 @@ extension NotFoundException { } /// A service resource associated with the request could not be found. Clients should not retry such requests. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8480,9 +8447,8 @@ public enum RegisterClusterOutputError: Swift.Error, Swift.Equatable { extension RegisterClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -8613,9 +8579,8 @@ extension EKSClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.addonName = output.addonName self.clusterName = output.clusterName @@ -8635,7 +8600,7 @@ extension ResourceInUseException { } /// The specified resource is in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8694,9 +8659,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.clusterName = output.clusterName self.message = output.message @@ -8714,7 +8678,7 @@ extension ResourceLimitExceededException { } /// You have encountered a service limit on the specified resource. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8766,9 +8730,8 @@ extension ResourceLimitExceededExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.addonName = output.addonName self.clusterName = output.clusterName @@ -8790,7 +8753,7 @@ extension ResourceNotFoundException { } /// The specified resource could not be found. You can view your available clusters with [ListClusters]. You can view your available managed node groups with [ListNodegroups]. Amazon EKS clusters and node groups are Region-specific. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8857,9 +8820,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourcePropagationDelayException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourcePropagationDelayExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8873,7 +8835,7 @@ extension ResourcePropagationDelayException { } /// Required resources (such as service-linked roles) were created and are still propagating. Retry later. -public struct ResourcePropagationDelayException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourcePropagationDelayException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8909,9 +8871,8 @@ extension ResourcePropagationDelayExceptionBody: Swift.Decodable { extension ServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerExceptionBody = try responseDecoder.decode(responseBody: data) self.addonName = output.addonName self.clusterName = output.clusterName @@ -8931,7 +8892,7 @@ extension ServerException { } /// These errors are usually caused by a server-side issue. -public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8990,9 +8951,8 @@ extension ServerExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9006,7 +8966,7 @@ extension ServiceUnavailableException { } /// The service is unavailable. Back off and retry the operation. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9234,9 +9194,8 @@ extension EKSClientTypes { extension UnsupportedAvailabilityZoneException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedAvailabilityZoneExceptionBody = try responseDecoder.decode(responseBody: data) self.clusterName = output.clusterName self.message = output.message @@ -9256,7 +9215,7 @@ extension UnsupportedAvailabilityZoneException { } /// At least one of your specified cluster subnets is in an Availability Zone that does not support Amazon EKS. The exception output specifies the supported Availability Zones for your account, from which you can choose subnets for your cluster. -public struct UnsupportedAvailabilityZoneException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedAvailabilityZoneException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9670,9 +9629,8 @@ public enum UpdateAddonOutputError: Swift.Error, Swift.Equatable { extension UpdateAddonOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAddonOutputResponseBody = try responseDecoder.decode(responseBody: data) self.update = output.update } else { @@ -9822,9 +9780,8 @@ public enum UpdateClusterConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateClusterConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.update = output.update } else { @@ -9963,9 +9920,8 @@ public enum UpdateClusterVersionOutputError: Swift.Error, Swift.Equatable { extension UpdateClusterVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.update = output.update } else { @@ -10216,9 +10172,8 @@ public enum UpdateNodegroupConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateNodegroupConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNodegroupConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.update = output.update } else { @@ -10400,9 +10355,8 @@ public enum UpdateNodegroupVersionOutputError: Swift.Error, Swift.Equatable { extension UpdateNodegroupVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNodegroupVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.update = output.update } else { diff --git a/Sources/Services/AWSEMR/EMRClient.swift b/Sources/Services/AWSEMR/EMRClient.swift index b3db6cdd02f..d850a633e24 100644 --- a/Sources/Services/AWSEMR/EMRClient.swift +++ b/Sources/Services/AWSEMR/EMRClient.swift @@ -208,6 +208,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addInstanceFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addInstanceGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addJobFlowSteps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelSteps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSecurityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStudio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStudioSessionMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSecurityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStudio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStudioSessionMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobFlows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +677,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +697,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNotebookExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +714,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +734,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReleaseLabel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +751,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +771,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSecurityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +788,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +808,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStep") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +825,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +845,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStudio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +862,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +882,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAutoTerminationPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +899,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +919,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlockPublicAccessConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +936,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +956,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClusterSessionCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +973,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +993,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getManagedScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -988,7 +1010,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1008,6 +1030,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStudioSessionMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1047,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1067,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBootstrapActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1084,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1104,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1121,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1141,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1132,7 +1158,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1152,6 +1178,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1195,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1215,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1204,7 +1232,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1224,6 +1252,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotebookExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1269,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1289,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReleaseLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1276,7 +1306,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1296,6 +1326,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1343,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1332,6 +1363,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSteps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1348,7 +1380,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1368,6 +1400,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStudioSessionMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1384,7 +1417,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1404,6 +1437,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStudios") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1420,7 +1454,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1440,6 +1474,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1456,7 +1491,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1511,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1492,7 +1528,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1512,6 +1548,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyInstanceGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1528,7 +1565,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1548,6 +1585,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAutoScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1564,7 +1602,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1584,6 +1622,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAutoTerminationPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1600,7 +1639,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1620,6 +1659,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBlockPublicAccessConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1636,7 +1676,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1656,6 +1696,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putManagedScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1672,7 +1713,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1692,6 +1733,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeAutoScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1708,7 +1750,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1728,6 +1770,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeAutoTerminationPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1744,7 +1787,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1764,6 +1807,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeManagedScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1780,7 +1824,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1800,6 +1844,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1816,7 +1861,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1836,6 +1881,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "runJobFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1852,7 +1898,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1918,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setTerminationProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1888,7 +1935,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1908,6 +1955,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setVisibleToAllUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1924,7 +1972,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1944,6 +1992,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startNotebookExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1960,7 +2009,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1980,6 +2029,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopNotebookExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1996,7 +2046,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2016,6 +2066,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateJobFlows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2032,7 +2083,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2052,6 +2103,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStudio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2068,7 +2120,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2088,6 +2140,7 @@ extension EMRClient: EMRClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticmapreduce") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStudioSessionMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2104,7 +2157,7 @@ extension EMRClient: EMRClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEMR/models/Models.swift b/Sources/Services/AWSEMR/models/Models.swift index e3ad8e03fbc..1e14cd051e2 100644 --- a/Sources/Services/AWSEMR/models/Models.swift +++ b/Sources/Services/AWSEMR/models/Models.swift @@ -127,9 +127,8 @@ public enum AddInstanceFleetOutputError: Swift.Error, Swift.Equatable { extension AddInstanceFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddInstanceFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterId = output.clusterId @@ -284,9 +283,8 @@ public enum AddInstanceGroupsOutputError: Swift.Error, Swift.Equatable { extension AddInstanceGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddInstanceGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.instanceGroupIds = output.instanceGroupIds @@ -463,9 +461,8 @@ public enum AddJobFlowStepsOutputError: Swift.Error, Swift.Equatable { extension AddJobFlowStepsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddJobFlowStepsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stepIds = output.stepIds } else { @@ -1515,9 +1512,8 @@ public enum CancelStepsOutputError: Swift.Error, Swift.Equatable { extension CancelStepsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelStepsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cancelStepsInfoList = output.cancelStepsInfoList } else { @@ -2853,9 +2849,8 @@ public enum CreateSecurityConfigurationOutputError: Swift.Error, Swift.Equatable extension CreateSecurityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSecurityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDateTime = output.creationDateTime self.name = output.name @@ -3153,9 +3148,8 @@ public enum CreateStudioOutputError: Swift.Error, Swift.Equatable { extension CreateStudioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStudioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studioId = output.studioId self.url = output.url @@ -3729,9 +3723,8 @@ public enum DescribeClusterOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -3901,9 +3894,8 @@ public enum DescribeJobFlowsOutputError: Swift.Error, Swift.Equatable { extension DescribeJobFlowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobFlowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobFlows = output.jobFlows } else { @@ -4024,9 +4016,8 @@ public enum DescribeNotebookExecutionOutputError: Swift.Error, Swift.Equatable { extension DescribeNotebookExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNotebookExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notebookExecution = output.notebookExecution } else { @@ -4160,9 +4151,8 @@ public enum DescribeReleaseLabelOutputError: Swift.Error, Swift.Equatable { extension DescribeReleaseLabelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReleaseLabelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications self.availableOSReleases = output.availableOSReleases @@ -4321,9 +4311,8 @@ public enum DescribeSecurityConfigurationOutputError: Swift.Error, Swift.Equatab extension DescribeSecurityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSecurityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDateTime = output.creationDateTime self.name = output.name @@ -4468,9 +4457,8 @@ public enum DescribeStepOutputError: Swift.Error, Swift.Equatable { extension DescribeStepOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStepOutputResponseBody = try responseDecoder.decode(responseBody: data) self.step = output.step } else { @@ -4582,9 +4570,8 @@ public enum DescribeStudioOutputError: Swift.Error, Swift.Equatable { extension DescribeStudioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStudioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studio = output.studio } else { @@ -5286,9 +5273,8 @@ public enum GetAutoTerminationPolicyOutputError: Swift.Error, Swift.Equatable { extension GetAutoTerminationPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAutoTerminationPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoTerminationPolicy = output.autoTerminationPolicy } else { @@ -5379,9 +5365,8 @@ public enum GetBlockPublicAccessConfigurationOutputError: Swift.Error, Swift.Equ extension GetBlockPublicAccessConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlockPublicAccessConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blockPublicAccessConfiguration = output.blockPublicAccessConfiguration self.blockPublicAccessConfigurationMetadata = output.blockPublicAccessConfigurationMetadata @@ -5517,9 +5502,8 @@ public enum GetClusterSessionCredentialsOutputError: Swift.Error, Swift.Equatabl extension GetClusterSessionCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClusterSessionCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.credentials = output.credentials self.expiresAt = output.expiresAt @@ -5636,9 +5620,8 @@ public enum GetManagedScalingPolicyOutputError: Swift.Error, Swift.Equatable { extension GetManagedScalingPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetManagedScalingPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedScalingPolicy = output.managedScalingPolicy } else { @@ -5786,9 +5769,8 @@ public enum GetStudioSessionMappingOutputError: Swift.Error, Swift.Equatable { extension GetStudioSessionMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStudioSessionMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionMapping = output.sessionMapping } else { @@ -8483,7 +8465,7 @@ extension InternalServerError { } /// Indicates that an error occurred while processing the request and that the request was not completed. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8497,9 +8479,8 @@ public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.E extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8513,7 +8494,7 @@ extension InternalServerException { } /// This exception occurs when there is an internal failure in the Amazon EMR service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8550,9 +8531,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -8568,7 +8548,7 @@ extension InvalidRequestException { } /// This exception occurs when there is something wrong with user input. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9598,9 +9578,8 @@ public enum ListBootstrapActionsOutputError: Swift.Error, Swift.Equatable { extension ListBootstrapActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBootstrapActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bootstrapActions = output.bootstrapActions self.marker = output.marker @@ -9779,9 +9758,8 @@ public enum ListClustersOutputError: Swift.Error, Swift.Equatable { extension ListClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.marker = output.marker @@ -9924,9 +9902,8 @@ public enum ListInstanceFleetsOutputError: Swift.Error, Swift.Equatable { extension ListInstanceFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceFleets = output.instanceFleets self.marker = output.marker @@ -10069,9 +10046,8 @@ public enum ListInstanceGroupsOutputError: Swift.Error, Swift.Equatable { extension ListInstanceGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceGroups = output.instanceGroups self.marker = output.marker @@ -10299,9 +10275,8 @@ public enum ListInstancesOutputError: Swift.Error, Swift.Equatable { extension ListInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.marker = output.marker @@ -10499,9 +10474,8 @@ public enum ListNotebookExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListNotebookExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotebookExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.notebookExecutions = output.notebookExecutions @@ -10654,9 +10628,8 @@ public enum ListReleaseLabelsOutputError: Swift.Error, Swift.Equatable { extension ListReleaseLabelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReleaseLabelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.releaseLabels = output.releaseLabels @@ -10785,9 +10758,8 @@ public enum ListSecurityConfigurationsOutputError: Swift.Error, Swift.Equatable extension ListSecurityConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.securityConfigurations = output.securityConfigurations @@ -10978,9 +10950,8 @@ public enum ListStepsOutputError: Swift.Error, Swift.Equatable { extension ListStepsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStepsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.steps = output.steps @@ -11134,9 +11105,8 @@ public enum ListStudioSessionMappingsOutputError: Swift.Error, Swift.Equatable { extension ListStudioSessionMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStudioSessionMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.sessionMappings = output.sessionMappings @@ -11265,9 +11235,8 @@ public enum ListStudiosOutputError: Swift.Error, Swift.Equatable { extension ListStudiosOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStudiosOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.studios = output.studios @@ -11521,9 +11490,8 @@ public enum ModifyClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stepConcurrencyLevel = output.stepConcurrencyLevel } else { @@ -12656,9 +12624,8 @@ public enum PutAutoScalingPolicyOutputError: Swift.Error, Swift.Equatable { extension PutAutoScalingPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAutoScalingPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoScalingPolicy = output.autoScalingPolicy self.clusterArn = output.clusterArn @@ -13979,9 +13946,8 @@ public enum RunJobFlowOutputError: Swift.Error, Swift.Equatable { extension RunJobFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RunJobFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.jobFlowId = output.jobFlowId @@ -15236,9 +15202,8 @@ public enum StartNotebookExecutionOutputError: Swift.Error, Swift.Equatable { extension StartNotebookExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartNotebookExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notebookExecutionId = output.notebookExecutionId } else { diff --git a/Sources/Services/AWSEMRServerless/EMRServerlessClient.swift b/Sources/Services/AWSEMRServerless/EMRServerlessClient.swift index 894c95d7e79..d2657e66a93 100644 --- a/Sources/Services/AWSEMRServerless/EMRServerlessClient.swift +++ b/Sources/Services/AWSEMRServerless/EMRServerlessClient.swift @@ -208,6 +208,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -263,7 +265,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -295,7 +298,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -315,6 +318,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -327,7 +331,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -347,6 +351,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDashboardForJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -391,7 +397,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -411,6 +417,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +431,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +451,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -457,7 +465,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -477,6 +485,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -489,7 +498,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -509,6 +518,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +531,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -541,6 +551,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startJobRun") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -564,7 +575,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +595,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -596,7 +608,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +628,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -631,7 +644,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -651,6 +664,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +678,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +698,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -707,7 +722,7 @@ extension EMRServerlessClient: EMRServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEMRServerless/models/Models.swift b/Sources/Services/AWSEMRServerless/models/Models.swift index ee11b4ea87e..757d8d1bd51 100644 --- a/Sources/Services/AWSEMRServerless/models/Models.swift +++ b/Sources/Services/AWSEMRServerless/models/Models.swift @@ -608,9 +608,8 @@ public enum CancelJobRunOutputError: Swift.Error, Swift.Equatable { extension CancelJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.jobRunId = output.jobRunId @@ -803,9 +802,8 @@ extension EMRServerlessClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -819,7 +817,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1114,9 +1112,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -1301,9 +1298,8 @@ public enum GetApplicationOutputError: Swift.Error, Swift.Equatable { extension GetApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -1408,9 +1404,8 @@ public enum GetDashboardForJobRunOutputError: Swift.Error, Swift.Equatable { extension GetDashboardForJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDashboardForJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.url = output.url } else { @@ -1514,9 +1509,8 @@ public enum GetJobRunOutputError: Swift.Error, Swift.Equatable { extension GetJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobRun = output.jobRun } else { @@ -1744,9 +1738,8 @@ extension EMRServerlessClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1760,7 +1753,7 @@ extension InternalServerException { } /// Request processing failed because of an error or failure with the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2369,9 +2362,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications self.nextToken = output.nextToken @@ -2536,9 +2528,8 @@ public enum ListJobRunsOutputError: Swift.Error, Swift.Equatable { extension ListJobRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobRuns = output.jobRuns self.nextToken = output.nextToken @@ -2654,9 +2645,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2920,9 +2910,8 @@ extension EMRServerlessClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2936,7 +2925,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3073,9 +3062,8 @@ extension EMRServerlessClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3089,7 +3077,7 @@ extension ServiceQuotaExceededException { } /// The maximum number of resources per account has been reached. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3437,9 +3425,8 @@ public enum StartJobRunOutputError: Swift.Error, Swift.Equatable { extension StartJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -4018,9 +4005,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -4060,9 +4046,8 @@ extension UpdateApplicationOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4076,7 +4061,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSEMRcontainers/EMRcontainersClient.swift b/Sources/Services/AWSEMRcontainers/EMRcontainersClient.swift index 6acd5cccfca..fd8b84216ff 100644 --- a/Sources/Services/AWSEMRcontainers/EMRcontainersClient.swift +++ b/Sources/Services/AWSEMRcontainers/EMRcontainersClient.swift @@ -208,6 +208,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJobTemplate") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -263,7 +265,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createManagedEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -306,7 +309,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -326,6 +329,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVirtualCluster") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -349,7 +353,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -369,6 +373,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -381,7 +386,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -401,6 +406,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteManagedEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -413,7 +419,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -433,6 +439,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVirtualCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -445,7 +452,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -465,6 +472,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +485,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +505,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -509,7 +518,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -529,6 +538,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeManagedEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -541,7 +551,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -561,6 +571,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVirtualCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -606,7 +618,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -626,6 +638,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listManagedEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +686,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +706,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -704,7 +719,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -724,6 +739,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVirtualClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -737,7 +753,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -757,6 +773,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startJobRun") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -780,7 +797,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +817,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -815,7 +833,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -835,6 +853,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { .withRegion(value: config.region) .withSigningName(value: "emr-containers") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -848,7 +867,7 @@ extension EMRcontainersClient: EMRcontainersClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEMRcontainers/models/Models.swift b/Sources/Services/AWSEMRcontainers/models/Models.swift index 99226acf534..cf4bec39d51 100644 --- a/Sources/Services/AWSEMRcontainers/models/Models.swift +++ b/Sources/Services/AWSEMRcontainers/models/Models.swift @@ -67,9 +67,8 @@ public enum CancelJobRunOutputError: Swift.Error, Swift.Equatable { extension CancelJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.virtualClusterId = output.virtualClusterId @@ -610,9 +609,8 @@ public enum CreateJobTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -864,9 +862,8 @@ public enum CreateManagedEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateManagedEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateManagedEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -1059,9 +1056,8 @@ public enum CreateVirtualClusterOutputError: Swift.Error, Swift.Equatable { extension CreateVirtualClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVirtualClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -1175,9 +1171,8 @@ public enum DeleteJobTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -1279,9 +1274,8 @@ public enum DeleteManagedEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteManagedEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteManagedEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.virtualClusterId = output.virtualClusterId @@ -1385,9 +1379,8 @@ public enum DeleteVirtualClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteVirtualClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVirtualClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -1491,9 +1484,8 @@ public enum DescribeJobRunOutputError: Swift.Error, Swift.Equatable { extension DescribeJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobRun = output.jobRun } else { @@ -1589,9 +1581,8 @@ public enum DescribeJobTemplateOutputError: Swift.Error, Swift.Equatable { extension DescribeJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobTemplate = output.jobTemplate } else { @@ -1695,9 +1686,8 @@ public enum DescribeManagedEndpointOutputError: Swift.Error, Swift.Equatable { extension DescribeManagedEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeManagedEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -1793,9 +1783,8 @@ public enum DescribeVirtualClusterOutputError: Swift.Error, Swift.Equatable { extension DescribeVirtualClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVirtualClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualCluster = output.virtualCluster } else { @@ -2178,9 +2167,8 @@ extension EMRcontainersClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2194,7 +2182,7 @@ extension InternalServerException { } /// This is an internal server exception. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2893,9 +2881,8 @@ public enum ListJobRunsOutputError: Swift.Error, Swift.Equatable { extension ListJobRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobRuns = output.jobRuns self.nextToken = output.nextToken @@ -3041,9 +3028,8 @@ public enum ListJobTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListJobTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templates = output.templates @@ -3217,9 +3203,8 @@ public enum ListManagedEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListManagedEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListManagedEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.nextToken = output.nextToken @@ -3334,9 +3319,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3498,9 +3482,8 @@ public enum ListVirtualClustersOutputError: Swift.Error, Swift.Equatable { extension ListVirtualClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVirtualClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.virtualClusters = output.virtualClusters @@ -3837,9 +3820,8 @@ extension EMRcontainersClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3853,7 +3835,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4334,9 +4316,8 @@ public enum StartJobRunOutputError: Swift.Error, Swift.Equatable { extension StartJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -4675,9 +4656,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4691,7 +4671,7 @@ extension ValidationException { } /// There are invalid parameters in the client request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSElastiCache/ElastiCacheClient.swift b/Sources/Services/AWSElastiCache/ElastiCacheClient.swift index 7e5afba1b01..6147e1eff42 100644 --- a/Sources/Services/AWSElastiCache/ElastiCacheClient.swift +++ b/Sources/Services/AWSElastiCache/ElastiCacheClient.swift @@ -204,6 +204,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeCacheSecurityGroupIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchApplyUpdateAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchStopUpdateAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeMigration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -395,6 +400,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copySnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -410,7 +416,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -430,6 +436,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCacheCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -445,7 +452,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -469,6 +476,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCacheParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCacheSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +528,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +548,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCacheSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -554,7 +564,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -578,6 +588,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGlobalReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +604,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +624,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +640,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -663,7 +676,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -683,6 +696,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -698,7 +712,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -718,6 +732,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -733,7 +748,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -753,6 +768,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "decreaseNodeGroupsInGlobalReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +784,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +804,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "decreaseReplicaCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -803,7 +820,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -837,6 +854,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCacheCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +870,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +890,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCacheParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -887,7 +906,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -907,6 +926,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCacheSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -922,7 +942,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -942,6 +962,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCacheSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -957,7 +978,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -984,6 +1005,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGlobalReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -999,7 +1021,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1019,6 +1041,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1034,7 +1057,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1054,6 +1077,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1069,7 +1093,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1089,6 +1113,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1129,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1149,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1139,7 +1165,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1159,6 +1185,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCacheClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1174,7 +1201,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1194,6 +1221,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCacheEngineVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1209,7 +1237,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1229,6 +1257,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCacheParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1244,7 +1273,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1264,6 +1293,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCacheParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1279,7 +1309,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1299,6 +1329,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCacheSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1314,7 +1345,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1334,6 +1365,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCacheSubnetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1349,7 +1381,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1369,6 +1401,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEngineDefaultParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1384,7 +1417,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1404,6 +1437,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1419,7 +1453,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1439,6 +1473,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGlobalReplicationGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1454,7 +1489,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1474,6 +1509,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1489,7 +1525,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1509,6 +1545,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedCacheNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1524,7 +1561,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1544,6 +1581,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedCacheNodesOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1559,7 +1597,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1579,6 +1617,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServiceUpdates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1594,7 +1633,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1614,6 +1653,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1629,7 +1669,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1649,6 +1689,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUpdateActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1699,7 +1741,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1719,6 +1761,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1734,7 +1777,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1754,6 +1797,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateGlobalReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1769,7 +1813,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1789,6 +1833,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "failoverGlobalReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1804,7 +1849,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1824,6 +1869,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "increaseNodeGroupsInGlobalReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1839,7 +1885,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1859,6 +1905,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "increaseReplicaCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1874,7 +1921,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1894,6 +1941,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAllowedNodeTypeModifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1909,7 +1957,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1929,6 +1977,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1944,7 +1993,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1964,6 +2013,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCacheCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1979,7 +2029,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1999,6 +2049,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCacheParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2014,7 +2065,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2034,6 +2085,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCacheSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2049,7 +2101,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2069,6 +2121,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyGlobalReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2084,7 +2137,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2111,6 +2164,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2126,7 +2180,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2146,6 +2200,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyReplicationGroupShardConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2161,7 +2216,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2181,6 +2236,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2196,7 +2252,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2216,6 +2272,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyUserGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2231,7 +2288,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2251,6 +2308,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseReservedCacheNodesOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2266,7 +2324,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2286,6 +2344,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebalanceSlotsInGlobalReplicationGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2301,7 +2360,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2321,6 +2380,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootCacheCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2336,7 +2396,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2356,6 +2416,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2371,7 +2432,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2391,6 +2452,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetCacheParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2406,7 +2468,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2426,6 +2488,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeCacheSecurityGroupIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2441,7 +2504,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2461,6 +2524,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMigration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2476,7 +2540,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2527,6 +2591,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticache") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testFailover") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2542,7 +2607,7 @@ extension ElastiCacheClient: ElastiCacheClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSElastiCache/models/Models.swift b/Sources/Services/AWSElastiCache/models/Models.swift index 0dcb9deb3e6..a8603dd6cd5 100644 --- a/Sources/Services/AWSElastiCache/models/Models.swift +++ b/Sources/Services/AWSElastiCache/models/Models.swift @@ -4,7 +4,7 @@ import ClientRuntime extension APICallRateForCustomerExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19,7 +19,7 @@ extension APICallRateForCustomerExceededFault { } /// The customer has exceeded the allowed rate of API calls. -public struct APICallRateForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct APICallRateForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -215,9 +215,8 @@ public enum AddTagsToResourceOutputError: Swift.Error, Swift.Equatable { extension AddTagsToResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddTagsToResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -493,7 +492,7 @@ extension ElastiCacheClientTypes { extension AuthorizationAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -508,7 +507,7 @@ extension AuthorizationAlreadyExistsFault { } /// The specified Amazon EC2 security group is already authorized for the specified cache security group. -public struct AuthorizationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -544,7 +543,7 @@ extension AuthorizationAlreadyExistsFaultBody: Swift.Decodable { extension AuthorizationNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -559,7 +558,7 @@ extension AuthorizationNotFoundFault { } /// The specified Amazon EC2 security group is not authorized for the specified cache security group. -public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -695,9 +694,8 @@ public enum AuthorizeCacheSecurityGroupIngressOutputError: Swift.Error, Swift.Eq extension AuthorizeCacheSecurityGroupIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeCacheSecurityGroupIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheSecurityGroup = output.cacheSecurityGroup } else { @@ -959,9 +957,8 @@ public enum BatchApplyUpdateActionOutputError: Swift.Error, Swift.Equatable { extension BatchApplyUpdateActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchApplyUpdateActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.processedUpdateActions = output.processedUpdateActions self.unprocessedUpdateActions = output.unprocessedUpdateActions @@ -1188,9 +1185,8 @@ public enum BatchStopUpdateActionOutputError: Swift.Error, Swift.Equatable { extension BatchStopUpdateActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchStopUpdateActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.processedUpdateActions = output.processedUpdateActions self.unprocessedUpdateActions = output.unprocessedUpdateActions @@ -1789,7 +1785,7 @@ extension ElastiCacheClientTypes { extension CacheClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1804,7 +1800,7 @@ extension CacheClusterAlreadyExistsFault { } /// You already have a cluster with the given identifier. -public struct CacheClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1840,7 +1836,7 @@ extension CacheClusterAlreadyExistsFaultBody: Swift.Decodable { extension CacheClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1855,7 +1851,7 @@ extension CacheClusterNotFoundFault { } /// The requested cluster ID does not refer to an existing cluster. -public struct CacheClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2476,7 +2472,7 @@ extension ElastiCacheClientTypes { extension CacheParameterGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2491,7 +2487,7 @@ extension CacheParameterGroupAlreadyExistsFault { } /// A cache parameter group with the requested name already exists. -public struct CacheParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2527,7 +2523,7 @@ extension CacheParameterGroupAlreadyExistsFaultBody: Swift.Decodable { extension CacheParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2542,7 +2538,7 @@ extension CacheParameterGroupNotFoundFault { } /// The requested cache parameter group name does not refer to an existing cache parameter group. -public struct CacheParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2578,7 +2574,7 @@ extension CacheParameterGroupNotFoundFaultBody: Swift.Decodable { extension CacheParameterGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2593,7 +2589,7 @@ extension CacheParameterGroupQuotaExceededFault { } /// The request cannot be processed because it would exceed the maximum number of cache security groups. -public struct CacheParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2817,7 +2813,7 @@ extension ElastiCacheClientTypes { extension CacheSecurityGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2832,7 +2828,7 @@ extension CacheSecurityGroupAlreadyExistsFault { } /// A cache security group with the specified name already exists. -public struct CacheSecurityGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheSecurityGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2913,7 +2909,7 @@ extension ElastiCacheClientTypes { extension CacheSecurityGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2928,7 +2924,7 @@ extension CacheSecurityGroupNotFoundFault { } /// The requested cache security group name does not refer to an existing cache security group. -public struct CacheSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2964,7 +2960,7 @@ extension CacheSecurityGroupNotFoundFaultBody: Swift.Decodable { extension CacheSecurityGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2979,7 +2975,7 @@ extension CacheSecurityGroupQuotaExceededFault { } /// The request cannot be processed because it would exceed the allowed number of cache security groups. -public struct CacheSecurityGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheSecurityGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3156,7 +3152,7 @@ extension ElastiCacheClientTypes { extension CacheSubnetGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3171,7 +3167,7 @@ extension CacheSubnetGroupAlreadyExistsFault { } /// The requested cache subnet group name is already in use by an existing cache subnet group. -public struct CacheSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3207,7 +3203,7 @@ extension CacheSubnetGroupAlreadyExistsFaultBody: Swift.Decodable { extension CacheSubnetGroupInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3222,7 +3218,7 @@ extension CacheSubnetGroupInUse { } /// The requested cache subnet group is currently in use. -public struct CacheSubnetGroupInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheSubnetGroupInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3258,7 +3254,7 @@ extension CacheSubnetGroupInUseBody: Swift.Decodable { extension CacheSubnetGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3273,7 +3269,7 @@ extension CacheSubnetGroupNotFoundFault { } /// The requested cache subnet group name does not refer to an existing cache subnet group. -public struct CacheSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3309,7 +3305,7 @@ extension CacheSubnetGroupNotFoundFaultBody: Swift.Decodable { extension CacheSubnetGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3324,7 +3320,7 @@ extension CacheSubnetGroupQuotaExceededFault { } /// The request cannot be processed because it would exceed the allowed number of cache subnet groups. -public struct CacheSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3360,7 +3356,7 @@ extension CacheSubnetGroupQuotaExceededFaultBody: Swift.Decodable { extension CacheSubnetQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3375,7 +3371,7 @@ extension CacheSubnetQuotaExceededFault { } /// The request cannot be processed because it would exceed the allowed number of subnets in a cache subnet group. -public struct CacheSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CacheSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3478,7 +3474,7 @@ extension ElastiCacheClientTypes { extension ClusterQuotaForCustomerExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3493,7 +3489,7 @@ extension ClusterQuotaForCustomerExceededFault { } /// The request cannot be processed because it would exceed the allowed number of clusters per customer. -public struct ClusterQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3611,9 +3607,8 @@ public enum CompleteMigrationOutputError: Swift.Error, Swift.Equatable { extension CompleteMigrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CompleteMigrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -3934,9 +3929,8 @@ public enum CopySnapshotOutputError: Swift.Error, Swift.Equatable { extension CopySnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopySnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -4625,9 +4619,8 @@ public enum CreateCacheClusterOutputError: Swift.Error, Swift.Equatable { extension CreateCacheClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCacheClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheCluster = output.cacheCluster } else { @@ -4806,9 +4799,8 @@ public enum CreateCacheParameterGroupOutputError: Swift.Error, Swift.Equatable { extension CreateCacheParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCacheParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheParameterGroup = output.cacheParameterGroup } else { @@ -4973,9 +4965,8 @@ public enum CreateCacheSecurityGroupOutputError: Swift.Error, Swift.Equatable { extension CreateCacheSecurityGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCacheSecurityGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheSecurityGroup = output.cacheSecurityGroup } else { @@ -5186,9 +5177,8 @@ public enum CreateCacheSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateCacheSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCacheSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheSubnetGroup = output.cacheSubnetGroup } else { @@ -5330,9 +5320,8 @@ public enum CreateGlobalReplicationGroupOutputError: Swift.Error, Swift.Equatabl extension CreateGlobalReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGlobalReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroup = output.globalReplicationGroup } else { @@ -6158,9 +6147,8 @@ public enum CreateReplicationGroupOutputError: Swift.Error, Swift.Equatable { extension CreateReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -6356,9 +6344,8 @@ public enum CreateSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -6565,9 +6552,8 @@ public enum CreateUserGroupOutputError: Swift.Error, Swift.Equatable { extension CreateUserGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.engine = output.engine @@ -6922,9 +6908,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessString = output.accessString self.arn = output.arn @@ -7309,9 +7294,8 @@ public enum DecreaseNodeGroupsInGlobalReplicationGroupOutputError: Swift.Error, extension DecreaseNodeGroupsInGlobalReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DecreaseNodeGroupsInGlobalReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroup = output.globalReplicationGroup } else { @@ -7550,9 +7534,8 @@ public enum DecreaseReplicaCountOutputError: Swift.Error, Swift.Equatable { extension DecreaseReplicaCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DecreaseReplicaCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -7592,7 +7575,7 @@ extension DecreaseReplicaCountOutputResponseBody: Swift.Decodable { extension DefaultUserAssociatedToUserGroupFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7607,7 +7590,7 @@ extension DefaultUserAssociatedToUserGroupFault { } /// The default user assigned to the user group. -public struct DefaultUserAssociatedToUserGroupFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DefaultUserAssociatedToUserGroupFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7643,7 +7626,7 @@ extension DefaultUserAssociatedToUserGroupFaultBody: Swift.Decodable { extension DefaultUserRequired { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7658,7 +7641,7 @@ extension DefaultUserRequired { } /// You must add default user to a user group. -public struct DefaultUserRequired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DefaultUserRequired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7785,9 +7768,8 @@ public enum DeleteCacheClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteCacheClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCacheClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheCluster = output.cacheCluster } else { @@ -8158,9 +8140,8 @@ public enum DeleteGlobalReplicationGroupOutputError: Swift.Error, Swift.Equatabl extension DeleteGlobalReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGlobalReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroup = output.globalReplicationGroup } else { @@ -8304,9 +8285,8 @@ public enum DeleteReplicationGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -8420,9 +8400,8 @@ public enum DeleteSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -8535,9 +8514,8 @@ public enum DeleteUserGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteUserGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteUserGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.engine = output.engine @@ -8756,9 +8734,8 @@ public enum DeleteUserOutputError: Swift.Error, Swift.Equatable { extension DeleteUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessString = output.accessString self.arn = output.arn @@ -9024,9 +9001,8 @@ public enum DescribeCacheClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeCacheClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCacheClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheClusters = output.cacheClusters self.marker = output.marker @@ -9220,9 +9196,8 @@ public enum DescribeCacheEngineVersionsOutputError: Swift.Error, Swift.Equatable extension DescribeCacheEngineVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCacheEngineVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheEngineVersions = output.cacheEngineVersions self.marker = output.marker @@ -9383,9 +9358,8 @@ public enum DescribeCacheParameterGroupsOutputError: Swift.Error, Swift.Equatabl extension DescribeCacheParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCacheParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheParameterGroups = output.cacheParameterGroups self.marker = output.marker @@ -9558,9 +9532,8 @@ public enum DescribeCacheParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeCacheParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCacheParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheNodeTypeSpecificParameters = output.cacheNodeTypeSpecificParameters self.marker = output.marker @@ -9748,9 +9721,8 @@ public enum DescribeCacheSecurityGroupsOutputError: Swift.Error, Swift.Equatable extension DescribeCacheSecurityGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCacheSecurityGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheSecurityGroups = output.cacheSecurityGroups self.marker = output.marker @@ -9907,9 +9879,8 @@ public enum DescribeCacheSubnetGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeCacheSubnetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCacheSubnetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheSubnetGroups = output.cacheSubnetGroups self.marker = output.marker @@ -10069,9 +10040,8 @@ public enum DescribeEngineDefaultParametersOutputError: Swift.Error, Swift.Equat extension DescribeEngineDefaultParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEngineDefaultParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineDefaults = output.engineDefaults } else { @@ -10246,9 +10216,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.marker = output.marker @@ -10419,9 +10388,8 @@ public enum DescribeGlobalReplicationGroupsOutputError: Swift.Error, Swift.Equat extension DescribeGlobalReplicationGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGlobalReplicationGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroups = output.globalReplicationGroups self.marker = output.marker @@ -10595,9 +10563,8 @@ public enum DescribeReplicationGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeReplicationGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.replicationGroups = output.replicationGroups @@ -11003,9 +10970,8 @@ public enum DescribeReservedCacheNodesOfferingsOutputError: Swift.Error, Swift.E extension DescribeReservedCacheNodesOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedCacheNodesOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedCacheNodesOfferings = output.reservedCacheNodesOfferings @@ -11098,9 +11064,8 @@ public enum DescribeReservedCacheNodesOutputError: Swift.Error, Swift.Equatable extension DescribeReservedCacheNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedCacheNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedCacheNodes = output.reservedCacheNodes @@ -11297,9 +11262,8 @@ public enum DescribeServiceUpdatesOutputError: Swift.Error, Swift.Equatable { extension DescribeServiceUpdatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServiceUpdatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.serviceUpdates = output.serviceUpdates @@ -11505,9 +11469,8 @@ public enum DescribeSnapshotsOutputError: Swift.Error, Swift.Equatable { extension DescribeSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.snapshots = output.snapshots @@ -11846,9 +11809,8 @@ public enum DescribeUpdateActionsOutputError: Swift.Error, Swift.Equatable { extension DescribeUpdateActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUpdateActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.updateActions = output.updateActions @@ -12007,9 +11969,8 @@ public enum DescribeUserGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeUserGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.userGroups = output.userGroups @@ -12216,9 +12177,8 @@ public enum DescribeUsersOutputError: Swift.Error, Swift.Equatable { extension DescribeUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.users = output.users @@ -12459,9 +12419,8 @@ public enum DisassociateGlobalReplicationGroupOutputError: Swift.Error, Swift.Eq extension DisassociateGlobalReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateGlobalReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroup = output.globalReplicationGroup } else { @@ -12503,7 +12462,7 @@ extension DisassociateGlobalReplicationGroupOutputResponseBody: Swift.Decodable extension DuplicateUserNameFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12518,7 +12477,7 @@ extension DuplicateUserNameFault { } /// A user with this username already exists. -public struct DuplicateUserNameFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateUserNameFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12933,9 +12892,8 @@ public enum FailoverGlobalReplicationGroupOutputError: Swift.Error, Swift.Equata extension FailoverGlobalReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailoverGlobalReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroup = output.globalReplicationGroup } else { @@ -13304,7 +13262,7 @@ extension ElastiCacheClientTypes { extension GlobalReplicationGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13319,7 +13277,7 @@ extension GlobalReplicationGroupAlreadyExistsFault { } /// The Global datastore name already exists. -public struct GlobalReplicationGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalReplicationGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13475,7 +13433,7 @@ extension ElastiCacheClientTypes { extension GlobalReplicationGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13490,7 +13448,7 @@ extension GlobalReplicationGroupNotFoundFault { } /// The Global datastore does not exist -public struct GlobalReplicationGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalReplicationGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13658,9 +13616,8 @@ public enum IncreaseNodeGroupsInGlobalReplicationGroupOutputError: Swift.Error, extension IncreaseNodeGroupsInGlobalReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncreaseNodeGroupsInGlobalReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroup = output.globalReplicationGroup } else { @@ -13851,9 +13808,8 @@ public enum IncreaseReplicaCountOutputError: Swift.Error, Swift.Equatable { extension IncreaseReplicaCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncreaseReplicaCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -13928,7 +13884,7 @@ extension ElastiCacheClientTypes { extension InsufficientCacheClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13943,7 +13899,7 @@ extension InsufficientCacheClusterCapacityFault { } /// The requested cache node type is not available in the specified Availability Zone. For more information, see [InsufficientCacheClusterCapacity](http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ErrorMessages.html#ErrorMessages.INSUFFICIENT_CACHE_CLUSTER_CAPACITY) in the ElastiCache User Guide. -public struct InsufficientCacheClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientCacheClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13979,7 +13935,7 @@ extension InsufficientCacheClusterCapacityFaultBody: Swift.Decodable { extension InvalidARNFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13994,7 +13950,7 @@ extension InvalidARNFault { } /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. -public struct InvalidARNFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidARNFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14030,7 +13986,7 @@ extension InvalidARNFaultBody: Swift.Decodable { extension InvalidCacheClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14045,7 +14001,7 @@ extension InvalidCacheClusterStateFault { } /// The requested cluster is not in the available state. -public struct InvalidCacheClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCacheClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14081,7 +14037,7 @@ extension InvalidCacheClusterStateFaultBody: Swift.Decodable { extension InvalidCacheParameterGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14096,7 +14052,7 @@ extension InvalidCacheParameterGroupStateFault { } /// The current state of the cache parameter group does not allow the requested operation to occur. -public struct InvalidCacheParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCacheParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14132,7 +14088,7 @@ extension InvalidCacheParameterGroupStateFaultBody: Swift.Decodable { extension InvalidCacheSecurityGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14147,7 +14103,7 @@ extension InvalidCacheSecurityGroupStateFault { } /// The current state of the cache security group does not allow deletion. -public struct InvalidCacheSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCacheSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14183,7 +14139,7 @@ extension InvalidCacheSecurityGroupStateFaultBody: Swift.Decodable { extension InvalidGlobalReplicationGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14198,7 +14154,7 @@ extension InvalidGlobalReplicationGroupStateFault { } /// The Global datastore is not available or in primary-only state. -public struct InvalidGlobalReplicationGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGlobalReplicationGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14234,7 +14190,7 @@ extension InvalidGlobalReplicationGroupStateFaultBody: Swift.Decodable { extension InvalidKMSKeyFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14249,7 +14205,7 @@ extension InvalidKMSKeyFault { } /// The KMS key supplied is not valid. -public struct InvalidKMSKeyFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKMSKeyFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14285,7 +14241,7 @@ extension InvalidKMSKeyFaultBody: Swift.Decodable { extension InvalidParameterCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14300,7 +14256,7 @@ extension InvalidParameterCombinationException { } /// Two or more incompatible parameters were specified. -public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14337,7 +14293,7 @@ extension InvalidParameterCombinationExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14352,7 +14308,7 @@ extension InvalidParameterValueException { } /// The value for a parameter is invalid. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14389,7 +14345,7 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidReplicationGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14404,7 +14360,7 @@ extension InvalidReplicationGroupStateFault { } /// The requested replication group is not in the available state. -public struct InvalidReplicationGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidReplicationGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14440,7 +14396,7 @@ extension InvalidReplicationGroupStateFaultBody: Swift.Decodable { extension InvalidSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14455,7 +14411,7 @@ extension InvalidSnapshotStateFault { } /// The current state of the snapshot does not allow the requested operation to occur. -public struct InvalidSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14491,7 +14447,7 @@ extension InvalidSnapshotStateFaultBody: Swift.Decodable { extension InvalidSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14506,7 +14462,7 @@ extension InvalidSubnet { } /// An invalid subnet identifier was specified. -public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14542,7 +14498,7 @@ extension InvalidSubnetBody: Swift.Decodable { extension InvalidUserGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14557,7 +14513,7 @@ extension InvalidUserGroupStateFault { } /// The user group is not in an active state. -public struct InvalidUserGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUserGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14593,7 +14549,7 @@ extension InvalidUserGroupStateFaultBody: Swift.Decodable { extension InvalidUserStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14608,7 +14564,7 @@ extension InvalidUserStateFault { } /// The user is not in active state. -public struct InvalidUserStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUserStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14644,7 +14600,7 @@ extension InvalidUserStateFaultBody: Swift.Decodable { extension InvalidVPCNetworkStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14659,7 +14615,7 @@ extension InvalidVPCNetworkStateFault { } /// The VPC network is in an invalid state. -public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14846,9 +14802,8 @@ public enum ListAllowedNodeTypeModificationsOutputError: Swift.Error, Swift.Equa extension ListAllowedNodeTypeModificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAllowedNodeTypeModificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scaleDownModifications = output.scaleDownModifications self.scaleUpModifications = output.scaleUpModifications @@ -15021,9 +14976,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -15867,9 +15821,8 @@ public enum ModifyCacheClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyCacheClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyCacheClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheCluster = output.cacheCluster } else { @@ -16023,9 +15976,8 @@ public enum ModifyCacheParameterGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyCacheParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyCacheParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheParameterGroupName = output.cacheParameterGroupName } else { @@ -16194,9 +16146,8 @@ public enum ModifyCacheSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyCacheSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyCacheSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheSubnetGroup = output.cacheSubnetGroup } else { @@ -16378,9 +16329,8 @@ public enum ModifyGlobalReplicationGroupOutputError: Swift.Error, Swift.Equatabl extension ModifyGlobalReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyGlobalReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroup = output.globalReplicationGroup } else { @@ -16981,9 +16931,8 @@ public enum ModifyReplicationGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -17244,9 +17193,8 @@ public enum ModifyReplicationGroupShardConfigurationOutputError: Swift.Error, Sw extension ModifyReplicationGroupShardConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyReplicationGroupShardConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -17441,9 +17389,8 @@ public enum ModifyUserGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyUserGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyUserGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.engine = output.engine @@ -17743,9 +17690,8 @@ public enum ModifyUserOutputError: Swift.Error, Swift.Equatable { extension ModifyUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessString = output.accessString self.arn = output.arn @@ -17949,7 +17895,7 @@ extension ElastiCacheClientTypes { extension NoOperationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17964,7 +17910,7 @@ extension NoOperationFault { } /// The operation was not performed because no changes were required. -public struct NoOperationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoOperationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18458,7 +18404,7 @@ extension ElastiCacheClientTypes { extension NodeGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18473,7 +18419,7 @@ extension NodeGroupNotFoundFault { } /// The node group specified by the NodeGroupId parameter could not be found. Please verify that the node group exists and that you spelled the NodeGroupId value correctly. -public struct NodeGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18580,7 +18526,7 @@ extension ElastiCacheClientTypes { extension NodeGroupsPerReplicationGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18595,7 +18541,7 @@ extension NodeGroupsPerReplicationGroupQuotaExceededFault { } /// The request cannot be processed because it would exceed the maximum allowed number of node groups (shards) in a single replication group. The default maximum is 90 -public struct NodeGroupsPerReplicationGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeGroupsPerReplicationGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18631,7 +18577,7 @@ extension NodeGroupsPerReplicationGroupQuotaExceededFaultBody: Swift.Decodable { extension NodeQuotaForClusterExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18646,7 +18592,7 @@ extension NodeQuotaForClusterExceededFault { } /// The request cannot be processed because it would exceed the allowed number of cache nodes in a single cluster. -public struct NodeQuotaForClusterExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeQuotaForClusterExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18682,7 +18628,7 @@ extension NodeQuotaForClusterExceededFaultBody: Swift.Decodable { extension NodeQuotaForCustomerExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18697,7 +18643,7 @@ extension NodeQuotaForCustomerExceededFault { } /// The request cannot be processed because it would exceed the allowed number of cache nodes per customer. -public struct NodeQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19597,9 +19543,8 @@ public enum PurchaseReservedCacheNodesOfferingOutputError: Swift.Error, Swift.Eq extension PurchaseReservedCacheNodesOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseReservedCacheNodesOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedCacheNode = output.reservedCacheNode } else { @@ -19722,9 +19667,8 @@ public enum RebalanceSlotsInGlobalReplicationGroupOutputError: Swift.Error, Swif extension RebalanceSlotsInGlobalReplicationGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebalanceSlotsInGlobalReplicationGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalReplicationGroup = output.globalReplicationGroup } else { @@ -19874,9 +19818,8 @@ public enum RebootCacheClusterOutputError: Swift.Error, Swift.Equatable { extension RebootCacheClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootCacheClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheCluster = output.cacheCluster } else { @@ -20173,9 +20116,8 @@ public enum RemoveTagsFromResourceOutputError: Swift.Error, Swift.Equatable { extension RemoveTagsFromResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveTagsFromResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -20688,7 +20630,7 @@ extension ElastiCacheClientTypes { extension ReplicationGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -20703,7 +20645,7 @@ extension ReplicationGroupAlreadyExistsFault { } /// The specified replication group already exists. -public struct ReplicationGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20739,7 +20681,7 @@ extension ReplicationGroupAlreadyExistsFaultBody: Swift.Decodable { extension ReplicationGroupAlreadyUnderMigrationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -20754,7 +20696,7 @@ extension ReplicationGroupAlreadyUnderMigrationFault { } /// The targeted replication group is not available. -public struct ReplicationGroupAlreadyUnderMigrationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationGroupAlreadyUnderMigrationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20790,7 +20732,7 @@ extension ReplicationGroupAlreadyUnderMigrationFaultBody: Swift.Decodable { extension ReplicationGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -20805,7 +20747,7 @@ extension ReplicationGroupNotFoundFault { } /// The specified replication group does not exist. -public struct ReplicationGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20841,7 +20783,7 @@ extension ReplicationGroupNotFoundFaultBody: Swift.Decodable { extension ReplicationGroupNotUnderMigrationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -20856,7 +20798,7 @@ extension ReplicationGroupNotUnderMigrationFault { } /// The designated replication group is not available for data migration. -public struct ReplicationGroupNotUnderMigrationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationGroupNotUnderMigrationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21243,7 +21185,7 @@ extension ElastiCacheClientTypes { extension ReservedCacheNodeAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21258,7 +21200,7 @@ extension ReservedCacheNodeAlreadyExistsFault { } /// You already have a reservation with the given identifier. -public struct ReservedCacheNodeAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedCacheNodeAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21294,7 +21236,7 @@ extension ReservedCacheNodeAlreadyExistsFaultBody: Swift.Decodable { extension ReservedCacheNodeNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21309,7 +21251,7 @@ extension ReservedCacheNodeNotFoundFault { } /// The requested reserved cache node was not found. -public struct ReservedCacheNodeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedCacheNodeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21345,7 +21287,7 @@ extension ReservedCacheNodeNotFoundFaultBody: Swift.Decodable { extension ReservedCacheNodeQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21360,7 +21302,7 @@ extension ReservedCacheNodeQuotaExceededFault { } /// The request cannot be processed because it would exceed the user's cache node quota. -public struct ReservedCacheNodeQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedCacheNodeQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21566,7 +21508,7 @@ extension ElastiCacheClientTypes { extension ReservedCacheNodesOfferingNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21581,7 +21523,7 @@ extension ReservedCacheNodesOfferingNotFoundFault { } /// The requested cache node offering does not exist. -public struct ReservedCacheNodesOfferingNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedCacheNodesOfferingNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21741,9 +21683,8 @@ public enum ResetCacheParameterGroupOutputError: Swift.Error, Swift.Equatable { extension ResetCacheParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetCacheParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheParameterGroupName = output.cacheParameterGroupName } else { @@ -21994,9 +21935,8 @@ public enum RevokeCacheSecurityGroupIngressOutputError: Swift.Error, Swift.Equat extension RevokeCacheSecurityGroupIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeCacheSecurityGroupIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheSecurityGroup = output.cacheSecurityGroup } else { @@ -22087,7 +22027,7 @@ extension ElastiCacheClientTypes { extension ServiceLinkedRoleNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22102,7 +22042,7 @@ extension ServiceLinkedRoleNotFoundFault { } /// The specified service linked role (SLR) was not found. -public struct ServiceLinkedRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLinkedRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22283,7 +22223,7 @@ extension ElastiCacheClientTypes { extension ServiceUpdateNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22298,7 +22238,7 @@ extension ServiceUpdateNotFoundFault { } /// The service update doesn't exist -public struct ServiceUpdateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUpdateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22893,7 +22833,7 @@ extension ElastiCacheClientTypes { extension SnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22908,7 +22848,7 @@ extension SnapshotAlreadyExistsFault { } /// You already have a snapshot with the given name. -public struct SnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22944,7 +22884,7 @@ extension SnapshotAlreadyExistsFaultBody: Swift.Decodable { extension SnapshotFeatureNotSupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22966,7 +22906,7 @@ extension SnapshotFeatureNotSupportedFault { /// /// /// Neither of these are supported by ElastiCache. -public struct SnapshotFeatureNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotFeatureNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23002,7 +22942,7 @@ extension SnapshotFeatureNotSupportedFaultBody: Swift.Decodable { extension SnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23017,7 +22957,7 @@ extension SnapshotNotFoundFault { } /// The requested snapshot name does not refer to an existing snapshot. -public struct SnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23053,7 +22993,7 @@ extension SnapshotNotFoundFaultBody: Swift.Decodable { extension SnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23068,7 +23008,7 @@ extension SnapshotQuotaExceededFault { } /// The request cannot be processed because it would exceed the maximum number of snapshots. -public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23262,9 +23202,8 @@ public enum StartMigrationOutputError: Swift.Error, Swift.Equatable { extension StartMigrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMigrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -23395,7 +23334,7 @@ extension ElastiCacheClientTypes { extension SubnetInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23410,7 +23349,7 @@ extension SubnetInUse { } /// The requested subnet is being used by another cache subnet group. -public struct SubnetInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23446,7 +23385,7 @@ extension SubnetInUseBody: Swift.Decodable { extension SubnetNotAllowedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23461,7 +23400,7 @@ extension SubnetNotAllowedFault { } /// At least one subnet ID does not match the other subnet IDs. This mismatch typically occurs when a user sets one subnet ID to a regional Availability Zone and a different one to an outpost. Or when a user sets the subnet ID to an Outpost when not subscribed on this service. -public struct SubnetNotAllowedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetNotAllowedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23577,7 +23516,7 @@ extension ElastiCacheClientTypes { extension TagNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23592,7 +23531,7 @@ extension TagNotFoundFault { } /// The requested tag was not found on this resource. -public struct TagNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23628,7 +23567,7 @@ extension TagNotFoundFaultBody: Swift.Decodable { extension TagQuotaPerResourceExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23643,7 +23582,7 @@ extension TagQuotaPerResourceExceeded { } /// The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50. -public struct TagQuotaPerResourceExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagQuotaPerResourceExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23737,7 +23676,7 @@ extension TestFailoverInputBody: Swift.Decodable { extension TestFailoverNotAvailableFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23752,7 +23691,7 @@ extension TestFailoverNotAvailableFault { } /// The TestFailover action is not available. -public struct TestFailoverNotAvailableFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TestFailoverNotAvailableFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23825,9 +23764,8 @@ public enum TestFailoverOutputError: Swift.Error, Swift.Equatable { extension TestFailoverOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestFailoverOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationGroup = output.replicationGroup } else { @@ -24459,7 +24397,7 @@ extension ElastiCacheClientTypes { extension UserAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24474,7 +24412,7 @@ extension UserAlreadyExistsFault { } /// A user with this ID already exists. -public struct UserAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24666,7 +24604,7 @@ extension ElastiCacheClientTypes { extension UserGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24681,7 +24619,7 @@ extension UserGroupAlreadyExistsFault { } /// The user group with this ID already exists. -public struct UserGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24717,7 +24655,7 @@ extension UserGroupAlreadyExistsFaultBody: Swift.Decodable { extension UserGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24732,7 +24670,7 @@ extension UserGroupNotFoundFault { } /// The user group was not found or does not exist -public struct UserGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24865,7 +24803,7 @@ extension ElastiCacheClientTypes { extension UserGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24880,7 +24818,7 @@ extension UserGroupQuotaExceededFault { } /// The number of users exceeds the user group limit. -public struct UserGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25013,7 +24951,7 @@ extension ElastiCacheClientTypes { extension UserNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -25028,7 +24966,7 @@ extension UserNotFoundFault { } /// The user does not exist or could not be found. -public struct UserNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25064,7 +25002,7 @@ extension UserNotFoundFaultBody: Swift.Decodable { extension UserQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -25079,7 +25017,7 @@ extension UserQuotaExceededFault { } /// The quota of users has been exceeded. -public struct UserQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSElasticBeanstalk/ElasticBeanstalkClient.swift b/Sources/Services/AWSElasticBeanstalk/ElasticBeanstalkClient.swift index ad72557bf52..e78481811d5 100644 --- a/Sources/Services/AWSElasticBeanstalk/ElasticBeanstalkClient.swift +++ b/Sources/Services/AWSElasticBeanstalk/ElasticBeanstalkClient.swift @@ -204,6 +204,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "abortEnvironmentUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applyEnvironmentManagedAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateEnvironmentOperationsRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkDNSAvailability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "composeEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplicationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +462,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -470,7 +478,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -490,6 +498,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -505,7 +514,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -525,6 +534,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPlatformVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -540,7 +550,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -560,6 +570,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStorageLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -575,7 +586,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -595,6 +606,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -610,7 +622,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -630,6 +642,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -645,7 +658,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -665,6 +678,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +694,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +714,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironmentConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -715,7 +730,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -735,6 +750,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePlatformVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +766,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +786,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -785,7 +802,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -805,6 +822,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplicationVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -820,7 +838,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -840,6 +858,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -855,7 +874,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -875,6 +894,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -890,7 +910,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -912,6 +932,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -927,7 +948,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -947,6 +968,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEnvironmentHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -962,7 +984,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -982,6 +1004,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEnvironmentManagedActionHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -997,7 +1020,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1017,6 +1040,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEnvironmentManagedActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1056,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1076,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEnvironmentResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1067,7 +1092,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1112,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1102,7 +1128,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1148,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1164,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1184,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstancesHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1172,7 +1200,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1192,6 +1220,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePlatformVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1207,7 +1236,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1227,6 +1256,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateEnvironmentOperationsRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1242,7 +1272,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1262,6 +1292,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailableSolutionStacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1277,7 +1308,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1297,6 +1328,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPlatformBranches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1344,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1332,6 +1364,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPlatformVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1380,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1367,6 +1400,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1382,7 +1416,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1402,6 +1436,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebuildEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1417,7 +1452,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1439,6 +1474,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "requestEnvironmentInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1454,7 +1490,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1474,6 +1510,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restartAppServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1489,7 +1526,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1511,6 +1548,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retrieveEnvironmentInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1526,7 +1564,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1546,6 +1584,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "swapEnvironmentCNAMEs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1561,7 +1600,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1581,6 +1620,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1596,7 +1636,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1616,6 +1656,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1631,7 +1672,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1651,6 +1692,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplicationResourceLifecycle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1666,7 +1708,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1686,6 +1728,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplicationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1701,7 +1744,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1723,6 +1766,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1738,7 +1782,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1758,6 +1802,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1773,7 +1818,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1793,6 +1838,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1854,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1874,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticbeanstalk") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateConfigurationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1843,7 +1890,7 @@ extension ElasticBeanstalkClient: ElasticBeanstalkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSElasticBeanstalk/models/Models.swift b/Sources/Services/AWSElasticBeanstalk/models/Models.swift index 7831becd35b..c5b3a69dd5f 100644 --- a/Sources/Services/AWSElasticBeanstalk/models/Models.swift +++ b/Sources/Services/AWSElasticBeanstalk/models/Models.swift @@ -780,9 +780,8 @@ public enum ApplyEnvironmentManagedActionOutputError: Swift.Error, Swift.Equatab extension ApplyEnvironmentManagedActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplyEnvironmentManagedActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionDescription = output.actionDescription self.actionId = output.actionId @@ -1267,9 +1266,8 @@ public enum CheckDNSAvailabilityOutputError: Swift.Error, Swift.Equatable { extension CheckDNSAvailabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CheckDNSAvailabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.available = output.available self.fullyQualifiedCNAME = output.fullyQualifiedCNAME @@ -1324,7 +1322,7 @@ extension CheckDNSAvailabilityOutputResponseBody: Swift.Decodable { extension CodeBuildNotInServiceRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1339,7 +1337,7 @@ extension CodeBuildNotInServiceRegionException { } /// AWS CodeBuild is not available in the specified region. -public struct CodeBuildNotInServiceRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CodeBuildNotInServiceRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1493,9 +1491,8 @@ public enum ComposeEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ComposeEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ComposeEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environments = output.environments self.nextToken = output.nextToken @@ -2198,9 +2195,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -2432,9 +2428,8 @@ public enum CreateApplicationVersionOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationVersion = output.applicationVersion } else { @@ -2688,9 +2683,8 @@ public enum CreateConfigurationTemplateOutputError: Swift.Error, Swift.Equatable extension CreateConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationName = output.applicationName self.dateCreated = output.dateCreated @@ -3137,9 +3131,8 @@ public enum CreateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abortableOperationInProgress = output.abortableOperationInProgress self.applicationName = output.applicationName @@ -3599,9 +3592,8 @@ public enum CreatePlatformVersionOutputError: Swift.Error, Swift.Equatable { extension CreatePlatformVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePlatformVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.builder = output.builder self.platformSummary = output.platformSummary @@ -3695,9 +3687,8 @@ public enum CreateStorageLocationOutputError: Swift.Error, Swift.Equatable { extension CreateStorageLocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStorageLocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3Bucket = output.s3Bucket } else { @@ -4229,9 +4220,8 @@ public enum DeletePlatformVersionOutputError: Swift.Error, Swift.Equatable { extension DeletePlatformVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePlatformVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.platformSummary = output.platformSummary } else { @@ -4382,9 +4372,8 @@ public enum DescribeAccountAttributesOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceQuotas = output.resourceQuotas } else { @@ -4548,9 +4537,8 @@ public enum DescribeApplicationVersionsOutputError: Swift.Error, Swift.Equatable extension DescribeApplicationVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationVersions = output.applicationVersions self.nextToken = output.nextToken @@ -4709,9 +4697,8 @@ public enum DescribeApplicationsOutputError: Swift.Error, Swift.Equatable { extension DescribeApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications } else { @@ -4917,9 +4904,8 @@ public enum DescribeConfigurationOptionsOutputError: Swift.Error, Swift.Equatabl extension DescribeConfigurationOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.options = output.options self.platformArn = output.platformArn @@ -5087,9 +5073,8 @@ public enum DescribeConfigurationSettingsOutputError: Swift.Error, Swift.Equatab extension DescribeConfigurationSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSettings = output.configurationSettings } else { @@ -5264,9 +5249,8 @@ public enum DescribeEnvironmentHealthOutputError: Swift.Error, Swift.Equatable { extension DescribeEnvironmentHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEnvironmentHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationMetrics = output.applicationMetrics self.causes = output.causes @@ -5494,9 +5478,8 @@ public enum DescribeEnvironmentManagedActionHistoryOutputError: Swift.Error, Swi extension DescribeEnvironmentManagedActionHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEnvironmentManagedActionHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedActionHistoryItems = output.managedActionHistoryItems self.nextToken = output.nextToken @@ -5653,9 +5636,8 @@ public enum DescribeEnvironmentManagedActionsOutputError: Swift.Error, Swift.Equ extension DescribeEnvironmentManagedActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEnvironmentManagedActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedActions = output.managedActions } else { @@ -5791,9 +5773,8 @@ public enum DescribeEnvironmentResourcesOutputError: Swift.Error, Swift.Equatabl extension DescribeEnvironmentResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEnvironmentResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentResources = output.environmentResources } else { @@ -6028,9 +6009,8 @@ public enum DescribeEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension DescribeEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environments = output.environments self.nextToken = output.nextToken @@ -6284,9 +6264,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -6482,9 +6461,8 @@ public enum DescribeInstancesHealthOutputError: Swift.Error, Swift.Equatable { extension DescribeInstancesHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstancesHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceHealthList = output.instanceHealthList self.nextToken = output.nextToken @@ -6630,9 +6608,8 @@ public enum DescribePlatformVersionOutputError: Swift.Error, Swift.Equatable { extension DescribePlatformVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePlatformVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.platformDescription = output.platformDescription } else { @@ -6750,7 +6727,7 @@ public struct DisassociateEnvironmentOperationsRoleOutputResponse: Swift.Equatab extension ElasticBeanstalkServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6765,7 +6742,7 @@ extension ElasticBeanstalkServiceException { } /// A generic service exception has occurred. -public struct ElasticBeanstalkServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ElasticBeanstalkServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8207,7 +8184,7 @@ extension ElasticBeanstalkClientTypes { extension InsufficientPrivilegesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8222,7 +8199,7 @@ extension InsufficientPrivilegesException { } /// The specified account does not have sufficient privileges for one or more AWS services. -public struct InsufficientPrivilegesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientPrivilegesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8259,7 +8236,7 @@ extension InsufficientPrivilegesExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8274,7 +8251,7 @@ extension InvalidRequestException { } /// One or more input parameters is not valid. Please correct the input parameters and try the operation again. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8524,9 +8501,8 @@ public enum ListAvailableSolutionStacksOutputError: Swift.Error, Swift.Equatable extension ListAvailableSolutionStacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailableSolutionStacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.solutionStackDetails = output.solutionStackDetails self.solutionStacks = output.solutionStacks @@ -8758,9 +8734,8 @@ public enum ListPlatformBranchesOutputError: Swift.Error, Swift.Equatable { extension ListPlatformBranchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPlatformBranchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.platformBranchSummaryList = output.platformBranchSummaryList @@ -8943,9 +8918,8 @@ public enum ListPlatformVersionsOutputError: Swift.Error, Swift.Equatable { extension ListPlatformVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPlatformVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.platformSummaryList = output.platformSummaryList @@ -9083,9 +9057,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.resourceTags = output.resourceTags @@ -9493,7 +9466,7 @@ extension ElasticBeanstalkClientTypes { extension ManagedActionInvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9508,7 +9481,7 @@ extension ManagedActionInvalidStateException { } /// Cannot modify the managed action in its current state. -public struct ManagedActionInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ManagedActionInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9657,7 +9630,7 @@ extension ElasticBeanstalkClientTypes { extension OperationInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9672,7 +9645,7 @@ extension OperationInProgressException { } /// Unable to perform the specified operation because another operation that effects an element in this activity is already in progress. -public struct OperationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10692,7 +10665,7 @@ extension ElasticBeanstalkClientTypes { extension PlatformVersionStillReferencedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10707,7 +10680,7 @@ extension PlatformVersionStillReferencedException { } /// You cannot delete the platform version because there are still environments running on it. -public struct PlatformVersionStillReferencedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PlatformVersionStillReferencedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10975,7 +10948,7 @@ public struct RequestEnvironmentInfoOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10990,7 +10963,7 @@ extension ResourceNotFoundException { } /// A resource doesn't exist for the specified Amazon Resource Name (ARN). -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11137,7 +11110,7 @@ extension ElasticBeanstalkClientTypes { extension ResourceTypeNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11152,7 +11125,7 @@ extension ResourceTypeNotSupportedException { } /// The type of the specified Amazon Resource Name (ARN) isn't supported for this operation. -public struct ResourceTypeNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceTypeNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11363,9 +11336,8 @@ public enum RetrieveEnvironmentInfoOutputError: Swift.Error, Swift.Equatable { extension RetrieveEnvironmentInfoOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetrieveEnvironmentInfoOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentInfo = output.environmentInfo } else { @@ -11468,7 +11440,7 @@ extension ElasticBeanstalkClientTypes { extension S3LocationNotInServiceRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11489,7 +11461,7 @@ extension S3LocationNotInServiceRegionException { /// * PDX/us-west-2 /// /// * DUB/eu-west-1 -public struct S3LocationNotInServiceRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct S3LocationNotInServiceRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11526,7 +11498,7 @@ extension S3LocationNotInServiceRegionExceptionBody: Swift.Decodable { extension S3SubscriptionRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11541,7 +11513,7 @@ extension S3SubscriptionRequiredException { } /// The specified account does not have a subscription to Amazon S3. -public struct S3SubscriptionRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct S3SubscriptionRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11951,7 +11923,7 @@ extension ElasticBeanstalkClientTypes { extension SourceBundleDeletionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11966,7 +11938,7 @@ extension SourceBundleDeletionException { } /// Unable to delete the Amazon S3 source bundle associated with the application version. The application version was deleted successfully. -public struct SourceBundleDeletionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceBundleDeletionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12508,9 +12480,8 @@ public enum TerminateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension TerminateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abortableOperationInProgress = output.abortableOperationInProgress self.applicationName = output.applicationName @@ -12789,7 +12760,7 @@ extension TerminateEnvironmentOutputResponseBody: Swift.Decodable { extension TooManyApplicationVersionsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12804,7 +12775,7 @@ extension TooManyApplicationVersionsException { } /// The specified account has reached its limit of application versions. -public struct TooManyApplicationVersionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyApplicationVersionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12841,7 +12812,7 @@ extension TooManyApplicationVersionsExceptionBody: Swift.Decodable { extension TooManyApplicationsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12856,7 +12827,7 @@ extension TooManyApplicationsException { } /// The specified account has reached its limit of applications. -public struct TooManyApplicationsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyApplicationsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12893,7 +12864,7 @@ extension TooManyApplicationsExceptionBody: Swift.Decodable { extension TooManyBucketsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12908,7 +12879,7 @@ extension TooManyBucketsException { } /// The specified account has reached its limit of Amazon S3 buckets. -public struct TooManyBucketsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyBucketsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12945,7 +12916,7 @@ extension TooManyBucketsExceptionBody: Swift.Decodable { extension TooManyConfigurationTemplatesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12960,7 +12931,7 @@ extension TooManyConfigurationTemplatesException { } /// The specified account has reached its limit of configuration templates. -public struct TooManyConfigurationTemplatesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyConfigurationTemplatesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12997,7 +12968,7 @@ extension TooManyConfigurationTemplatesExceptionBody: Swift.Decodable { extension TooManyEnvironmentsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13012,7 +12983,7 @@ extension TooManyEnvironmentsException { } /// The specified account has reached its limit of environments. -public struct TooManyEnvironmentsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyEnvironmentsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13049,7 +13020,7 @@ extension TooManyEnvironmentsExceptionBody: Swift.Decodable { extension TooManyPlatformsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13064,7 +13035,7 @@ extension TooManyPlatformsException { } /// You have exceeded the maximum number of allowed platforms associated with the account. -public struct TooManyPlatformsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyPlatformsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13101,7 +13072,7 @@ extension TooManyPlatformsExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13116,7 +13087,7 @@ extension TooManyTagsException { } /// The number of tags in the resource would exceed the number of tags that each resource can have. To calculate this, the operation considers both the number of tags the resource already has and the tags this operation would add if it succeeded. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13265,9 +13236,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -13387,9 +13357,8 @@ public enum UpdateApplicationResourceLifecycleOutputError: Swift.Error, Swift.Eq extension UpdateApplicationResourceLifecycleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationResourceLifecycleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationName = output.applicationName self.resourceLifecycleConfig = output.resourceLifecycleConfig @@ -13528,9 +13497,8 @@ public enum UpdateApplicationVersionOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationVersion = output.applicationVersion } else { @@ -13738,9 +13706,8 @@ public enum UpdateConfigurationTemplateOutputError: Swift.Error, Swift.Equatable extension UpdateConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationName = output.applicationName self.dateCreated = output.dateCreated @@ -14138,9 +14105,8 @@ public enum UpdateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension UpdateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abortableOperationInProgress = output.abortableOperationInProgress self.applicationName = output.applicationName @@ -14708,9 +14674,8 @@ public enum ValidateConfigurationSettingsOutputError: Swift.Error, Swift.Equatab extension ValidateConfigurationSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateConfigurationSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messages = output.messages } else { diff --git a/Sources/Services/AWSElasticInference/ElasticInferenceClient.swift b/Sources/Services/AWSElasticInference/ElasticInferenceClient.swift index 1464f3c0322..9efbafc2ef3 100644 --- a/Sources/Services/AWSElasticInference/ElasticInferenceClient.swift +++ b/Sources/Services/AWSElasticInference/ElasticInferenceClient.swift @@ -208,6 +208,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastic-inference") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAcceleratorOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastic-inference") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAcceleratorTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastic-inference") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccelerators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastic-inference") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -322,7 +326,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -342,6 +346,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastic-inference") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastic-inference") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -390,7 +396,7 @@ extension ElasticInferenceClient: ElasticInferenceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSElasticInference/models/Models.swift b/Sources/Services/AWSElasticInference/models/Models.swift index 5c9815dcba0..dcd02e39066 100644 --- a/Sources/Services/AWSElasticInference/models/Models.swift +++ b/Sources/Services/AWSElasticInference/models/Models.swift @@ -126,9 +126,8 @@ extension ElasticInferenceClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -142,7 +141,7 @@ extension BadRequestException { } /// Raised when a malformed input has been provided to the API. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -276,9 +275,8 @@ public enum DescribeAcceleratorOfferingsOutputError: Swift.Error, Swift.Equatabl extension DescribeAcceleratorOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAcceleratorOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acceleratorTypeOfferings = output.acceleratorTypeOfferings } else { @@ -368,9 +366,8 @@ public enum DescribeAcceleratorTypesOutputError: Swift.Error, Swift.Equatable { extension DescribeAcceleratorTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAcceleratorTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acceleratorTypes = output.acceleratorTypes } else { @@ -551,9 +548,8 @@ public enum DescribeAcceleratorsOutputError: Swift.Error, Swift.Equatable { extension DescribeAcceleratorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAcceleratorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acceleratorSet = output.acceleratorSet self.nextToken = output.nextToken @@ -778,9 +774,8 @@ extension ElasticInferenceClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -794,7 +789,7 @@ extension InternalServerException { } /// Raised when an unexpected error occurred during request processing. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -932,9 +927,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1052,9 +1046,8 @@ extension ElasticInferenceClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1068,7 +1061,7 @@ extension ResourceNotFoundException { } /// Raised when the requested resource cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSElasticLoadBalancing/ElasticLoadBalancingClient.swift b/Sources/Services/AWSElasticLoadBalancing/ElasticLoadBalancingClient.swift index e84778229ff..8c2c054004f 100644 --- a/Sources/Services/AWSElasticLoadBalancing/ElasticLoadBalancingClient.swift +++ b/Sources/Services/AWSElasticLoadBalancing/ElasticLoadBalancingClient.swift @@ -204,6 +204,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applySecurityGroupsToLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachLoadBalancerToSubnets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "configureHealthCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppCookieStickinessPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLBCookieStickinessPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoadBalancerListeners") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoadBalancerPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoadBalancerListeners") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +580,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +600,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoadBalancerPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +616,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +636,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterInstancesFromLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +688,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +724,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +744,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBalancerAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +760,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +780,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBalancerPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -779,7 +796,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -799,6 +816,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBalancerPolicyTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +832,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +852,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBalancers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +868,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +888,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +904,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +924,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachLoadBalancerFromSubnets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -919,7 +940,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -939,6 +960,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableAvailabilityZonesForLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +976,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +996,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableAvailabilityZonesForLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1012,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1017,6 +1040,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyLoadBalancerAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1056,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1076,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerInstancesWithLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1067,7 +1092,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1112,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1102,7 +1128,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1148,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setLoadBalancerListenerSSLCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1164,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1184,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setLoadBalancerPoliciesForBackendServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1172,7 +1200,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1192,6 +1220,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setLoadBalancerPoliciesOfListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1207,7 +1236,7 @@ extension ElasticLoadBalancingClient: ElasticLoadBalancingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSElasticLoadBalancing/models/Models.swift b/Sources/Services/AWSElasticLoadBalancing/models/Models.swift index 3e529b87808..c2161cfa315 100644 --- a/Sources/Services/AWSElasticLoadBalancing/models/Models.swift +++ b/Sources/Services/AWSElasticLoadBalancing/models/Models.swift @@ -70,7 +70,7 @@ extension ElasticLoadBalancingClientTypes { extension AccessPointNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -85,7 +85,7 @@ extension AccessPointNotFoundException { } /// The specified load balancer does not exist. -public struct AccessPointNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessPointNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -470,9 +470,8 @@ public enum ApplySecurityGroupsToLoadBalancerOutputError: Swift.Error, Swift.Equ extension ApplySecurityGroupsToLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplySecurityGroupsToLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityGroups = output.securityGroups } else { @@ -642,9 +641,8 @@ public enum AttachLoadBalancerToSubnetsOutputError: Swift.Error, Swift.Equatable extension AttachLoadBalancerToSubnetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachLoadBalancerToSubnetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnets = output.subnets } else { @@ -773,7 +771,7 @@ extension ElasticLoadBalancingClientTypes { extension CertificateNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -788,7 +786,7 @@ extension CertificateNotFoundException { } /// The specified ARN does not refer to a valid SSL certificate in AWS Identity and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if you recently uploaded the certificate to IAM, this error might indicate that the certificate is not fully available yet. -public struct CertificateNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -904,9 +902,8 @@ public enum ConfigureHealthCheckOutputError: Swift.Error, Swift.Equatable { extension ConfigureHealthCheckOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfigureHealthCheckOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthCheck = output.healthCheck } else { @@ -1658,9 +1655,8 @@ public enum CreateLoadBalancerOutputError: Swift.Error, Swift.Equatable { extension CreateLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dnsName = output.dnsName } else { @@ -2172,7 +2168,7 @@ public struct DeleteLoadBalancerPolicyOutputResponse: Swift.Equatable { extension DependencyThrottleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2187,7 +2183,7 @@ extension DependencyThrottleException { } /// A request made by Elastic Load Balancing to another service exceeds the maximum request rate permitted for your account. -public struct DependencyThrottleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyThrottleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2331,9 +2327,8 @@ public enum DeregisterInstancesFromLoadBalancerOutputError: Swift.Error, Swift.E extension DeregisterInstancesFromLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterInstancesFromLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances } else { @@ -2466,9 +2461,8 @@ public enum DescribeAccountLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.limits = output.limits self.nextMarker = output.nextMarker @@ -2642,9 +2636,8 @@ public enum DescribeInstanceHealthOutputError: Swift.Error, Swift.Equatable { extension DescribeInstanceHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceStates = output.instanceStates } else { @@ -2772,9 +2765,8 @@ public enum DescribeLoadBalancerAttributesOutputError: Swift.Error, Swift.Equata extension DescribeLoadBalancerAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBalancerAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancerAttributes = output.loadBalancerAttributes } else { @@ -2921,9 +2913,8 @@ public enum DescribeLoadBalancerPoliciesOutputError: Swift.Error, Swift.Equatabl extension DescribeLoadBalancerPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBalancerPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyDescriptions = output.policyDescriptions } else { @@ -3074,9 +3065,8 @@ public enum DescribeLoadBalancerPolicyTypesOutputError: Swift.Error, Swift.Equat extension DescribeLoadBalancerPolicyTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBalancerPolicyTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyTypeDescriptions = output.policyTypeDescriptions } else { @@ -3251,9 +3241,8 @@ public enum DescribeLoadBalancersOutputError: Swift.Error, Swift.Equatable { extension DescribeLoadBalancersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBalancersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancerDescriptions = output.loadBalancerDescriptions self.nextMarker = output.nextMarker @@ -3415,9 +3404,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagDescriptions = output.tagDescriptions } else { @@ -3583,9 +3571,8 @@ public enum DetachLoadBalancerFromSubnetsOutputError: Swift.Error, Swift.Equatab extension DetachLoadBalancerFromSubnetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachLoadBalancerFromSubnetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnets = output.subnets } else { @@ -3751,9 +3738,8 @@ public enum DisableAvailabilityZonesForLoadBalancerOutputError: Swift.Error, Swi extension DisableAvailabilityZonesForLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableAvailabilityZonesForLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityZones = output.availabilityZones } else { @@ -3811,7 +3797,7 @@ extension DisableAvailabilityZonesForLoadBalancerOutputResponseBody: Swift.Decod extension DuplicateAccessPointNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3826,7 +3812,7 @@ extension DuplicateAccessPointNameException { } /// The specified load balancer name already exists for this account. -public struct DuplicateAccessPointNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateAccessPointNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3862,7 +3848,7 @@ extension DuplicateAccessPointNameExceptionBody: Swift.Decodable { extension DuplicateListenerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3877,7 +3863,7 @@ extension DuplicateListenerException { } /// A listener already exists for the specified load balancer name and port, but with a different instance port, protocol, or SSL certificate. -public struct DuplicateListenerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateListenerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3913,7 +3899,7 @@ extension DuplicateListenerExceptionBody: Swift.Decodable { extension DuplicatePolicyNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3928,7 +3914,7 @@ extension DuplicatePolicyNameException { } /// A policy with the specified name already exists for this load balancer. -public struct DuplicatePolicyNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicatePolicyNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3964,7 +3950,7 @@ extension DuplicatePolicyNameExceptionBody: Swift.Decodable { extension DuplicateTagKeysException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3979,7 +3965,7 @@ extension DuplicateTagKeysException { } /// A tag key was specified more than once. -public struct DuplicateTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4121,9 +4107,8 @@ public enum EnableAvailabilityZonesForLoadBalancerOutputError: Swift.Error, Swif extension EnableAvailabilityZonesForLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableAvailabilityZonesForLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityZones = output.availabilityZones } else { @@ -4385,7 +4370,7 @@ extension ElasticLoadBalancingClientTypes { extension InvalidConfigurationRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4400,7 +4385,7 @@ extension InvalidConfigurationRequestException { } /// The requested configuration change is not valid. -public struct InvalidConfigurationRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConfigurationRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4436,7 +4421,7 @@ extension InvalidConfigurationRequestExceptionBody: Swift.Decodable { extension InvalidEndPointException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4451,7 +4436,7 @@ extension InvalidEndPointException { } /// The specified endpoint is not valid. -public struct InvalidEndPointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEndPointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4487,7 +4472,7 @@ extension InvalidEndPointExceptionBody: Swift.Decodable { extension InvalidSchemeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4502,7 +4487,7 @@ extension InvalidSchemeException { } /// The specified value for the schema is not valid. You can only specify a scheme for load balancers in a VPC. -public struct InvalidSchemeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSchemeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4538,7 +4523,7 @@ extension InvalidSchemeExceptionBody: Swift.Decodable { extension InvalidSecurityGroupException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4553,7 +4538,7 @@ extension InvalidSecurityGroupException { } /// One or more of the specified security groups do not exist. -public struct InvalidSecurityGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSecurityGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4589,7 +4574,7 @@ extension InvalidSecurityGroupExceptionBody: Swift.Decodable { extension InvalidSubnetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4604,7 +4589,7 @@ extension InvalidSubnetException { } /// The specified VPC has no associated Internet gateway. -public struct InvalidSubnetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4885,7 +4870,7 @@ extension ElasticLoadBalancingClientTypes { extension ListenerNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4900,7 +4885,7 @@ extension ListenerNotFoundException { } /// The load balancer does not have a listener configured at the specified port. -public struct ListenerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ListenerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4936,7 +4921,7 @@ extension ListenerNotFoundExceptionBody: Swift.Decodable { extension LoadBalancerAttributeNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4951,7 +4936,7 @@ extension LoadBalancerAttributeNotFoundException { } /// The specified load balancer attribute does not exist. -public struct LoadBalancerAttributeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LoadBalancerAttributeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5513,9 +5498,8 @@ public enum ModifyLoadBalancerAttributesOutputError: Swift.Error, Swift.Equatabl extension ModifyLoadBalancerAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyLoadBalancerAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancerAttributes = output.loadBalancerAttributes self.loadBalancerName = output.loadBalancerName @@ -5566,7 +5550,7 @@ extension ModifyLoadBalancerAttributesOutputResponseBody: Swift.Decodable { extension OperationNotPermittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5581,7 +5565,7 @@ extension OperationNotPermittedException { } /// This operation is not allowed. -public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6004,7 +5988,7 @@ extension ElasticLoadBalancingClientTypes { extension PolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6019,7 +6003,7 @@ extension PolicyNotFoundException { } /// One or more of the specified policies do not exist. -public struct PolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6136,7 +6120,7 @@ extension ElasticLoadBalancingClientTypes { extension PolicyTypeNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6151,7 +6135,7 @@ extension PolicyTypeNotFoundException { } /// One or more of the specified policy types do not exist. -public struct PolicyTypeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyTypeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6295,9 +6279,8 @@ public enum RegisterInstancesWithLoadBalancerOutputError: Swift.Error, Swift.Equ extension RegisterInstancesWithLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterInstancesWithLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances } else { @@ -6922,7 +6905,7 @@ extension ElasticLoadBalancingClientTypes { extension SubnetNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6937,7 +6920,7 @@ extension SubnetNotFoundException { } /// One or more of the specified subnets do not exist. -public struct SubnetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7125,7 +7108,7 @@ extension ElasticLoadBalancingClientTypes { extension TooManyAccessPointsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7140,7 +7123,7 @@ extension TooManyAccessPointsException { } /// The quota for the number of load balancers has been reached. -public struct TooManyAccessPointsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyAccessPointsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7176,7 +7159,7 @@ extension TooManyAccessPointsExceptionBody: Swift.Decodable { extension TooManyPoliciesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7191,7 +7174,7 @@ extension TooManyPoliciesException { } /// The quota for the number of policies for this load balancer has been reached. -public struct TooManyPoliciesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyPoliciesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7227,7 +7210,7 @@ extension TooManyPoliciesExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7242,7 +7225,7 @@ extension TooManyTagsException { } /// The quota for the number of tags that can be assigned to a load balancer has been reached. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7278,7 +7261,7 @@ extension TooManyTagsExceptionBody: Swift.Decodable { extension UnsupportedProtocolException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7293,7 +7276,7 @@ extension UnsupportedProtocolException { } /// The specified protocol or signature version is not supported. -public struct UnsupportedProtocolException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedProtocolException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSElasticLoadBalancingv2/ElasticLoadBalancingv2Client.swift b/Sources/Services/AWSElasticLoadBalancingv2/ElasticLoadBalancingv2Client.swift index 080c89fe398..00ebb844719 100644 --- a/Sources/Services/AWSElasticLoadBalancingv2/ElasticLoadBalancingv2Client.swift +++ b/Sources/Services/AWSElasticLoadBalancingv2/ElasticLoadBalancingv2Client.swift @@ -204,6 +204,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addListenerCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -298,7 +301,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -327,6 +330,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -342,7 +346,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -362,6 +366,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -377,7 +382,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -406,6 +411,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTargetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -421,7 +427,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -441,6 +447,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +463,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +483,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -491,7 +499,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -511,6 +519,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -526,7 +535,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -546,6 +555,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTargetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -561,7 +571,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -581,6 +591,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -596,7 +607,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -622,6 +633,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -637,7 +649,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +669,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeListenerCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +685,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +705,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeListeners") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -707,7 +721,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +747,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBalancerAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +763,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +783,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBalancers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +799,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +819,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +835,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +855,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSSLPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +871,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +891,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +907,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -914,6 +933,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTargetGroupAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -929,7 +949,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -949,6 +969,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTargetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -964,7 +985,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -984,6 +1005,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTargetHealth") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -999,7 +1021,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1019,6 +1041,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1034,7 +1057,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1054,6 +1077,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyLoadBalancerAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1069,7 +1093,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1089,6 +1113,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1129,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1149,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyTargetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1139,7 +1165,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1159,6 +1185,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyTargetGroupAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1174,7 +1201,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1194,6 +1221,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1209,7 +1237,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1229,6 +1257,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeListenerCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1244,7 +1273,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1264,6 +1293,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1279,7 +1309,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1299,6 +1329,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIpAddressType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1314,7 +1345,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1334,6 +1365,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setRulePriorities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1349,7 +1381,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1369,6 +1401,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1384,7 +1417,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1404,6 +1437,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elasticloadbalancing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setSubnets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1419,7 +1453,7 @@ extension ElasticLoadBalancingv2Client: ElasticLoadBalancingv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSElasticLoadBalancingv2/models/Models.swift b/Sources/Services/AWSElasticLoadBalancingv2/models/Models.swift index c08641333ee..871bd080fed 100644 --- a/Sources/Services/AWSElasticLoadBalancingv2/models/Models.swift +++ b/Sources/Services/AWSElasticLoadBalancingv2/models/Models.swift @@ -4,7 +4,7 @@ import ClientRuntime extension ALPNPolicyNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19,7 +19,7 @@ extension ALPNPolicyNotSupportedException { } /// The specified ALPN policy is not supported. -public struct ALPNPolicyNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ALPNPolicyNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -311,9 +311,8 @@ public enum AddListenerCertificatesOutputError: Swift.Error, Swift.Equatable { extension AddListenerCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddListenerCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates } else { @@ -521,7 +520,7 @@ public struct AddTagsOutputResponse: Swift.Equatable { extension AllocationIdNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -536,7 +535,7 @@ extension AllocationIdNotFoundException { } /// The specified allocation ID does not exist. -public struct AllocationIdNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AllocationIdNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1055,7 +1054,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension AvailabilityZoneNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1070,7 +1069,7 @@ extension AvailabilityZoneNotSupportedException { } /// The specified Availability Zone is not supported. -public struct AvailabilityZoneNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AvailabilityZoneNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1151,7 +1150,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension CertificateNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1166,7 +1165,7 @@ extension CertificateNotFoundException { } /// The specified certificate does not exist. -public struct CertificateNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1543,9 +1542,8 @@ public enum CreateListenerOutputError: Swift.Error, Swift.Equatable { extension CreateListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listeners = output.listeners } else { @@ -1885,9 +1883,8 @@ public enum CreateLoadBalancerOutputError: Swift.Error, Swift.Equatable { extension CreateLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancers = output.loadBalancers } else { @@ -2164,9 +2161,8 @@ public enum CreateRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rules = output.rules } else { @@ -2506,9 +2502,8 @@ public enum CreateTargetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateTargetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTargetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.targetGroups = output.targetGroups } else { @@ -3073,9 +3068,8 @@ public enum DescribeAccountLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.limits = output.limits self.nextMarker = output.nextMarker @@ -3231,9 +3225,8 @@ public enum DescribeListenerCertificatesOutputError: Swift.Error, Swift.Equatabl extension DescribeListenerCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeListenerCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.nextMarker = output.nextMarker @@ -3429,9 +3422,8 @@ public enum DescribeListenersOutputError: Swift.Error, Swift.Equatable { extension DescribeListenersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeListenersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listeners = output.listeners self.nextMarker = output.nextMarker @@ -3565,9 +3557,8 @@ public enum DescribeLoadBalancerAttributesOutputError: Swift.Error, Swift.Equata extension DescribeLoadBalancerAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBalancerAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -3787,9 +3778,8 @@ public enum DescribeLoadBalancersOutputError: Swift.Error, Swift.Equatable { extension DescribeLoadBalancersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBalancersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancers = output.loadBalancers self.nextMarker = output.nextMarker @@ -3985,9 +3975,8 @@ public enum DescribeRulesOutputError: Swift.Error, Swift.Equatable { extension DescribeRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.rules = output.rules @@ -4179,9 +4168,8 @@ public enum DescribeSSLPoliciesOutputError: Swift.Error, Swift.Equatable { extension DescribeSSLPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSSLPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.sslPolicies = output.sslPolicies @@ -4347,9 +4335,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagDescriptions = output.tagDescriptions } else { @@ -4473,9 +4460,8 @@ public enum DescribeTargetGroupAttributesOutputError: Swift.Error, Swift.Equatab extension DescribeTargetGroupAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTargetGroupAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -4696,9 +4682,8 @@ public enum DescribeTargetGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeTargetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTargetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.targetGroups = output.targetGroups @@ -4887,9 +4872,8 @@ public enum DescribeTargetHealthOutputError: Swift.Error, Swift.Equatable { extension DescribeTargetHealthOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTargetHealthOutputResponseBody = try responseDecoder.decode(responseBody: data) self.targetHealthDescriptions = output.targetHealthDescriptions } else { @@ -4946,7 +4930,7 @@ extension DescribeTargetHealthOutputResponseBody: Swift.Decodable { extension DuplicateListenerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4961,7 +4945,7 @@ extension DuplicateListenerException { } /// A listener with the specified port already exists. -public struct DuplicateListenerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateListenerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4997,7 +4981,7 @@ extension DuplicateListenerExceptionBody: Swift.Decodable { extension DuplicateLoadBalancerNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5012,7 +4996,7 @@ extension DuplicateLoadBalancerNameException { } /// A load balancer with the specified name already exists. -public struct DuplicateLoadBalancerNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateLoadBalancerNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5048,7 +5032,7 @@ extension DuplicateLoadBalancerNameExceptionBody: Swift.Decodable { extension DuplicateTagKeysException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5063,7 +5047,7 @@ extension DuplicateTagKeysException { } /// A tag key was specified more than once. -public struct DuplicateTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5099,7 +5083,7 @@ extension DuplicateTagKeysExceptionBody: Swift.Decodable { extension DuplicateTargetGroupNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5114,7 +5098,7 @@ extension DuplicateTargetGroupNameException { } /// A target group with the specified name already exists. -public struct DuplicateTargetGroupNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateTargetGroupNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5277,7 +5261,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension HealthUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5292,7 +5276,7 @@ extension HealthUnavailableException { } /// The health of the specified targets could not be retrieved due to an internal error. -public struct HealthUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HealthUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5521,7 +5505,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension IncompatibleProtocolsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5536,7 +5520,7 @@ extension IncompatibleProtocolsException { } /// The specified configuration is not valid with this protocol. -public struct IncompatibleProtocolsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleProtocolsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5572,7 +5556,7 @@ extension IncompatibleProtocolsExceptionBody: Swift.Decodable { extension InvalidConfigurationRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5587,7 +5571,7 @@ extension InvalidConfigurationRequestException { } /// The requested configuration is not valid. -public struct InvalidConfigurationRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConfigurationRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5623,7 +5607,7 @@ extension InvalidConfigurationRequestExceptionBody: Swift.Decodable { extension InvalidLoadBalancerActionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5638,7 +5622,7 @@ extension InvalidLoadBalancerActionException { } /// The requested action is not valid. -public struct InvalidLoadBalancerActionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLoadBalancerActionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5674,7 +5658,7 @@ extension InvalidLoadBalancerActionExceptionBody: Swift.Decodable { extension InvalidSchemeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5689,7 +5673,7 @@ extension InvalidSchemeException { } /// The requested scheme is not valid. -public struct InvalidSchemeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSchemeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5725,7 +5709,7 @@ extension InvalidSchemeExceptionBody: Swift.Decodable { extension InvalidSecurityGroupException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5740,7 +5724,7 @@ extension InvalidSecurityGroupException { } /// The specified security group does not exist. -public struct InvalidSecurityGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSecurityGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5776,7 +5760,7 @@ extension InvalidSecurityGroupExceptionBody: Swift.Decodable { extension InvalidSubnetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5791,7 +5775,7 @@ extension InvalidSubnetException { } /// The specified subnet is out of available addresses. -public struct InvalidSubnetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5827,7 +5811,7 @@ extension InvalidSubnetExceptionBody: Swift.Decodable { extension InvalidTargetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5842,7 +5826,7 @@ extension InvalidTargetException { } /// The specified target does not exist, is not in the same VPC as the target group, or has an unsupported instance type. -public struct InvalidTargetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6174,7 +6158,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension ListenerNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6189,7 +6173,7 @@ extension ListenerNotFoundException { } /// The specified listener does not exist. -public struct ListenerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ListenerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6587,7 +6571,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension LoadBalancerNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6602,7 +6586,7 @@ extension LoadBalancerNotFoundException { } /// The specified load balancer does not exist. -public struct LoadBalancerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LoadBalancerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7089,9 +7073,8 @@ public enum ModifyListenerOutputError: Swift.Error, Swift.Equatable { extension ModifyListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listeners = output.listeners } else { @@ -7255,9 +7238,8 @@ public enum ModifyLoadBalancerAttributesOutputError: Swift.Error, Swift.Equatabl extension ModifyLoadBalancerAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyLoadBalancerAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -7475,9 +7457,8 @@ public enum ModifyRuleOutputError: Swift.Error, Swift.Equatable { extension ModifyRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rules = output.rules } else { @@ -7641,9 +7622,8 @@ public enum ModifyTargetGroupAttributesOutputError: Swift.Error, Swift.Equatable extension ModifyTargetGroupAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyTargetGroupAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -7868,9 +7848,8 @@ public enum ModifyTargetGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyTargetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyTargetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.targetGroups = output.targetGroups } else { @@ -7927,7 +7906,7 @@ extension ModifyTargetGroupOutputResponseBody: Swift.Decodable { extension OperationNotPermittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7942,7 +7921,7 @@ extension OperationNotPermittedException { } /// This operation is not allowed. -public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8039,7 +8018,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension PriorityInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8054,7 +8033,7 @@ extension PriorityInUseException { } /// The specified priority is in use. -public struct PriorityInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PriorityInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8761,7 +8740,7 @@ public struct RemoveTagsOutputResponse: Swift.Equatable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8776,7 +8755,7 @@ extension ResourceInUseException { } /// A specified resource is in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9103,7 +9082,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension RuleNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9118,7 +9097,7 @@ extension RuleNotFoundException { } /// The specified rule does not exist. -public struct RuleNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RuleNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9199,7 +9178,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension SSLPolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9214,7 +9193,7 @@ extension SSLPolicyNotFoundException { } /// The specified SSL policy does not exist. -public struct SSLPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SSLPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9333,9 +9312,8 @@ public enum SetIpAddressTypeOutputError: Swift.Error, Swift.Equatable { extension SetIpAddressTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetIpAddressTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipAddressType = output.ipAddressType } else { @@ -9472,9 +9450,8 @@ public enum SetRulePrioritiesOutputError: Swift.Error, Swift.Equatable { extension SetRulePrioritiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetRulePrioritiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rules = output.rules } else { @@ -9640,9 +9617,8 @@ public enum SetSecurityGroupsOutputError: Swift.Error, Swift.Equatable { extension SetSecurityGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetSecurityGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityGroupIds = output.securityGroupIds } else { @@ -9861,9 +9837,8 @@ public enum SetSubnetsOutputError: Swift.Error, Swift.Equatable { extension SetSubnetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetSubnetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityZones = output.availabilityZones self.ipAddressType = output.ipAddressType @@ -10199,7 +10174,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension SubnetNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10214,7 +10189,7 @@ extension SubnetNotFoundException { } /// The specified subnet does not exist. -public struct SubnetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10654,7 +10629,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension TargetGroupAssociationLimitException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10669,7 +10644,7 @@ extension TargetGroupAssociationLimitException { } /// You've reached the limit on the number of load balancers per target group. -public struct TargetGroupAssociationLimitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetGroupAssociationLimitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10844,7 +10819,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension TargetGroupNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10859,7 +10834,7 @@ extension TargetGroupNotFoundException { } /// The specified target group does not exist. -public struct TargetGroupNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetGroupNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11277,7 +11252,7 @@ extension ElasticLoadBalancingv2ClientTypes { extension TooManyActionsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11292,7 +11267,7 @@ extension TooManyActionsException { } /// You've reached the limit on the number of actions per rule. -public struct TooManyActionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyActionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11328,7 +11303,7 @@ extension TooManyActionsExceptionBody: Swift.Decodable { extension TooManyCertificatesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11343,7 +11318,7 @@ extension TooManyCertificatesException { } /// You've reached the limit on the number of certificates per load balancer. -public struct TooManyCertificatesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyCertificatesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11379,7 +11354,7 @@ extension TooManyCertificatesExceptionBody: Swift.Decodable { extension TooManyListenersException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11394,7 +11369,7 @@ extension TooManyListenersException { } /// You've reached the limit on the number of listeners per load balancer. -public struct TooManyListenersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyListenersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11430,7 +11405,7 @@ extension TooManyListenersExceptionBody: Swift.Decodable { extension TooManyLoadBalancersException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11445,7 +11420,7 @@ extension TooManyLoadBalancersException { } /// You've reached the limit on the number of load balancers for your Amazon Web Services account. -public struct TooManyLoadBalancersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyLoadBalancersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11481,7 +11456,7 @@ extension TooManyLoadBalancersExceptionBody: Swift.Decodable { extension TooManyRegistrationsForTargetIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11496,7 +11471,7 @@ extension TooManyRegistrationsForTargetIdException { } /// You've reached the limit on the number of times a target can be registered with a load balancer. -public struct TooManyRegistrationsForTargetIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRegistrationsForTargetIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11532,7 +11507,7 @@ extension TooManyRegistrationsForTargetIdExceptionBody: Swift.Decodable { extension TooManyRulesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11547,7 +11522,7 @@ extension TooManyRulesException { } /// You've reached the limit on the number of rules per load balancer. -public struct TooManyRulesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRulesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11583,7 +11558,7 @@ extension TooManyRulesExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11598,7 +11573,7 @@ extension TooManyTagsException { } /// You've reached the limit on the number of tags per load balancer. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11634,7 +11609,7 @@ extension TooManyTagsExceptionBody: Swift.Decodable { extension TooManyTargetGroupsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11649,7 +11624,7 @@ extension TooManyTargetGroupsException { } /// You've reached the limit on the number of target groups for your Amazon Web Services account. -public struct TooManyTargetGroupsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTargetGroupsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11685,7 +11660,7 @@ extension TooManyTargetGroupsExceptionBody: Swift.Decodable { extension TooManyTargetsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11700,7 +11675,7 @@ extension TooManyTargetsException { } /// You've reached the limit on the number of targets. -public struct TooManyTargetsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTargetsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11736,7 +11711,7 @@ extension TooManyTargetsExceptionBody: Swift.Decodable { extension TooManyUniqueTargetGroupsPerLoadBalancerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11751,7 +11726,7 @@ extension TooManyUniqueTargetGroupsPerLoadBalancerException { } /// You've reached the limit on the number of unique target groups per load balancer across all listeners. If a target group is used by multiple actions for a load balancer, it is counted as only one use. -public struct TooManyUniqueTargetGroupsPerLoadBalancerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyUniqueTargetGroupsPerLoadBalancerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11787,7 +11762,7 @@ extension TooManyUniqueTargetGroupsPerLoadBalancerExceptionBody: Swift.Decodable extension UnsupportedProtocolException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11802,7 +11777,7 @@ extension UnsupportedProtocolException { } /// The specified protocol is not supported. -public struct UnsupportedProtocolException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedProtocolException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSElasticTranscoder/ElasticTranscoderClient.swift b/Sources/Services/AWSElasticTranscoder/ElasticTranscoderClient.swift index e39c30fc33d..337ac25e183 100644 --- a/Sources/Services/AWSElasticTranscoder/ElasticTranscoderClient.swift +++ b/Sources/Services/AWSElasticTranscoder/ElasticTranscoderClient.swift @@ -208,6 +208,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPreset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePreset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobsByPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -422,7 +429,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +449,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobsByStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +463,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +483,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +497,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +517,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPresets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +531,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -541,6 +551,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "readJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -553,7 +564,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -573,6 +584,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "readPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +597,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +617,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "readPreset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -617,7 +630,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -638,6 +651,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -653,7 +667,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -673,6 +687,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -688,7 +703,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -708,6 +723,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePipelineNotifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -723,7 +739,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -743,6 +759,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "elastictranscoder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePipelineStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -758,7 +775,7 @@ extension ElasticTranscoderClient: ElasticTranscoderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSElasticTranscoder/models/Models.swift b/Sources/Services/AWSElasticTranscoder/models/Models.swift index 7caa19efdf0..f11ba33e6c8 100644 --- a/Sources/Services/AWSElasticTranscoder/models/Models.swift +++ b/Sources/Services/AWSElasticTranscoder/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// General authentication failure. The request was not signed correctly. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1156,9 +1155,8 @@ public enum CreateJobOutputError: Swift.Error, Swift.Equatable { extension CreateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -1544,9 +1542,8 @@ public enum CreatePipelineOutputError: Swift.Error, Swift.Equatable { extension CreatePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline self.warnings = output.warnings @@ -1745,9 +1742,8 @@ public enum CreatePresetOutputError: Swift.Error, Swift.Equatable { extension CreatePresetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePresetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preset = output.preset self.warning = output.warning @@ -2192,9 +2188,8 @@ extension ElasticTranscoderClientTypes { extension IncompatibleVersionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncompatibleVersionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2207,7 +2202,7 @@ extension IncompatibleVersionException { } } -public struct IncompatibleVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2310,9 +2305,8 @@ extension ElasticTranscoderClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2326,7 +2320,7 @@ extension InternalServiceException { } /// Elastic Transcoder encountered an unexpected exception while trying to fulfill the request. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3103,9 +3097,8 @@ extension ElasticTranscoderClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3119,7 +3112,7 @@ extension LimitExceededException { } /// Too many operations for a given AWS account. For example, the number of pipelines exceeds the maximum allowed. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3243,9 +3236,8 @@ public enum ListJobsByPipelineOutputError: Swift.Error, Swift.Equatable { extension ListJobsByPipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsByPipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextPageToken = output.nextPageToken @@ -3391,9 +3383,8 @@ public enum ListJobsByStatusOutputError: Swift.Error, Swift.Equatable { extension ListJobsByStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsByStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextPageToken = output.nextPageToken @@ -3529,9 +3520,8 @@ public enum ListPipelinesOutputError: Swift.Error, Swift.Equatable { extension ListPipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.pipelines = output.pipelines @@ -3667,9 +3657,8 @@ public enum ListPresetsOutputError: Swift.Error, Swift.Equatable { extension ListPresetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPresetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.presets = output.presets @@ -4722,9 +4711,8 @@ public enum ReadJobOutputError: Swift.Error, Swift.Equatable { extension ReadJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReadJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -4826,9 +4814,8 @@ public enum ReadPipelineOutputError: Swift.Error, Swift.Equatable { extension ReadPipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReadPipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline self.warnings = output.warnings @@ -4949,9 +4936,8 @@ public enum ReadPresetOutputError: Swift.Error, Swift.Equatable { extension ReadPresetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReadPresetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preset = output.preset } else { @@ -4991,9 +4977,8 @@ extension ReadPresetOutputResponseBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5007,7 +4992,7 @@ extension ResourceInUseException { } /// The resource you are attempting to change is in use. For example, you are attempting to delete a pipeline that is currently in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5044,9 +5029,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5060,7 +5044,7 @@ extension ResourceNotFoundException { } /// The requested resource does not exist or is not available. For example, the pipeline to which you're trying to add a job doesn't exist or is still being created. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5228,9 +5212,8 @@ public enum TestRoleOutputError: Swift.Error, Swift.Equatable { extension TestRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messages = output.messages self.success = output.success @@ -5804,9 +5787,8 @@ public enum UpdatePipelineNotificationsOutputError: Swift.Error, Swift.Equatable extension UpdatePipelineNotificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePipelineNotificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline } else { @@ -5878,9 +5860,8 @@ public enum UpdatePipelineOutputError: Swift.Error, Swift.Equatable { extension UpdatePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline self.warnings = output.warnings @@ -6032,9 +6013,8 @@ public enum UpdatePipelineStatusOutputError: Swift.Error, Swift.Equatable { extension UpdatePipelineStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePipelineStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline } else { @@ -6074,9 +6054,8 @@ extension UpdatePipelineStatusOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6090,7 +6069,7 @@ extension ValidationException { } /// One or more required parameter values were not provided in the request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSElasticsearchService/ElasticsearchClient.swift b/Sources/Services/AWSElasticsearchService/ElasticsearchClient.swift index db982f8ffad..d1210d21370 100644 --- a/Sources/Services/AWSElasticsearchService/ElasticsearchClient.swift +++ b/Sources/Services/AWSElasticsearchService/ElasticsearchClient.swift @@ -208,6 +208,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptInboundCrossClusterSearchConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeVpcEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -322,7 +326,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -342,6 +346,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelElasticsearchServiceSoftwareUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createElasticsearchDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -392,7 +398,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +418,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOutboundCrossClusterSearchConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -427,7 +434,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -447,6 +454,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +470,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -482,6 +490,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -497,7 +506,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -517,6 +526,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteElasticsearchDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -529,7 +539,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -549,6 +559,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteElasticsearchServiceRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -561,7 +572,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -581,6 +592,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInboundCrossClusterSearchConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +605,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +625,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOutboundCrossClusterSearchConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -625,7 +638,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -645,6 +658,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -657,7 +671,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -677,6 +691,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -689,7 +704,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -709,6 +724,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomainAutoTunes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -724,7 +740,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -744,6 +760,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomainChangeProgress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -757,7 +774,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -777,6 +794,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeElasticsearchDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -789,7 +807,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -809,6 +827,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeElasticsearchDomainConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -821,7 +840,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -841,6 +860,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeElasticsearchDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -856,7 +876,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -876,6 +896,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeElasticsearchInstanceTypeLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -889,7 +910,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -909,6 +930,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInboundCrossClusterSearchConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +946,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +966,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOutboundCrossClusterSearchConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +982,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +1002,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -994,7 +1018,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1014,6 +1038,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedElasticsearchInstanceOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1027,7 +1052,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1047,6 +1072,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedElasticsearchInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1086,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1106,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1095,7 +1122,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1115,6 +1142,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "dissociatePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1127,7 +1155,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1147,6 +1175,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCompatibleElasticsearchVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1189,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1209,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPackageVersionHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1193,7 +1223,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1213,6 +1243,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUpgradeHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1226,7 +1257,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1246,6 +1277,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUpgradeStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1258,7 +1290,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1278,6 +1310,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1291,7 +1324,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1311,6 +1344,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainsForPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1324,7 +1358,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1344,6 +1378,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listElasticsearchInstanceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1357,7 +1392,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1377,6 +1412,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listElasticsearchVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1390,7 +1426,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1410,6 +1446,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackagesForDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1423,7 +1460,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1443,6 +1480,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1456,7 +1494,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1514,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1489,7 +1528,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1509,6 +1548,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1522,7 +1562,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1542,6 +1582,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcEndpointsForDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1555,7 +1596,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1575,6 +1616,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseReservedElasticsearchInstanceOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1590,7 +1632,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1610,6 +1652,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectInboundCrossClusterSearchConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1622,7 +1665,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1642,6 +1685,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1657,7 +1701,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1677,6 +1721,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeVpcEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1692,7 +1737,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1712,6 +1757,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startElasticsearchServiceSoftwareUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1727,7 +1773,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1747,6 +1793,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateElasticsearchDomainConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1762,7 +1809,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1782,6 +1829,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1797,7 +1845,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1817,6 +1865,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1832,7 +1881,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1852,6 +1901,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "upgradeElasticsearchDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1867,7 +1917,7 @@ extension ElasticsearchClient: ElasticsearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSElasticsearchService/models/Models.swift b/Sources/Services/AWSElasticsearchService/models/Models.swift index 228d2958d86..882657d341c 100644 --- a/Sources/Services/AWSElasticsearchService/models/Models.swift +++ b/Sources/Services/AWSElasticsearchService/models/Models.swift @@ -62,9 +62,8 @@ public enum AcceptInboundCrossClusterSearchConnectionOutputError: Swift.Error, S extension AcceptInboundCrossClusterSearchConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptInboundCrossClusterSearchConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossClusterSearchConnection = output.crossClusterSearchConnection } else { @@ -104,9 +103,8 @@ extension AcceptInboundCrossClusterSearchConnectionOutputResponseBody: Swift.Dec extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -120,7 +118,7 @@ extension AccessDeniedException { } /// An error occurred because user does not have permissions to access the resource. Returns HTTP status code 403. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -725,9 +723,8 @@ public enum AssociatePackageOutputError: Swift.Error, Swift.Equatable { extension AssociatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainPackageDetails = output.domainPackageDetails } else { @@ -856,9 +853,8 @@ public enum AuthorizeVpcEndpointAccessOutputError: Swift.Error, Swift.Equatable extension AuthorizeVpcEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeVpcEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedPrincipal = output.authorizedPrincipal } else { @@ -1498,9 +1494,8 @@ extension ElasticsearchClientTypes { extension BaseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BaseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1514,7 +1509,7 @@ extension BaseException { } /// An error occurred while processing the request. -public struct BaseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BaseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1628,9 +1623,8 @@ public enum CancelElasticsearchServiceSoftwareUpdateOutputError: Swift.Error, Sw extension CancelElasticsearchServiceSoftwareUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelElasticsearchServiceSoftwareUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSoftwareOptions = output.serviceSoftwareOptions } else { @@ -2116,9 +2110,8 @@ extension ElasticsearchClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2132,7 +2125,7 @@ extension ConflictException { } /// An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP status code 409. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2467,9 +2460,8 @@ public enum CreateElasticsearchDomainOutputError: Swift.Error, Swift.Equatable { extension CreateElasticsearchDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateElasticsearchDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatus = output.domainStatus } else { @@ -2612,9 +2604,8 @@ public enum CreateOutboundCrossClusterSearchConnectionOutputError: Swift.Error, extension CreateOutboundCrossClusterSearchConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOutboundCrossClusterSearchConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionAlias = output.connectionAlias self.connectionStatus = output.connectionStatus @@ -2815,9 +2806,8 @@ public enum CreatePackageOutputError: Swift.Error, Swift.Equatable { extension CreatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.packageDetails = output.packageDetails } else { @@ -2963,9 +2953,8 @@ public enum CreateVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpoint = output.vpcEndpoint } else { @@ -3066,9 +3055,8 @@ public enum DeleteElasticsearchDomainOutputError: Swift.Error, Swift.Equatable { extension DeleteElasticsearchDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteElasticsearchDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatus = output.domainStatus } else { @@ -3220,9 +3208,8 @@ public enum DeleteInboundCrossClusterSearchConnectionOutputError: Swift.Error, S extension DeleteInboundCrossClusterSearchConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInboundCrossClusterSearchConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossClusterSearchConnection = output.crossClusterSearchConnection } else { @@ -3318,9 +3305,8 @@ public enum DeleteOutboundCrossClusterSearchConnectionOutputError: Swift.Error, extension DeleteOutboundCrossClusterSearchConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteOutboundCrossClusterSearchConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossClusterSearchConnection = output.crossClusterSearchConnection } else { @@ -3424,9 +3410,8 @@ public enum DeletePackageOutputError: Swift.Error, Swift.Equatable { extension DeletePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.packageDetails = output.packageDetails } else { @@ -3526,9 +3511,8 @@ public enum DeleteVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpointSummary = output.vpcEndpointSummary } else { @@ -3706,9 +3690,8 @@ public enum DescribeDomainAutoTunesOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainAutoTunesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainAutoTunesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoTunes = output.autoTunes self.nextToken = output.nextToken @@ -3844,9 +3827,8 @@ public enum DescribeDomainChangeProgressOutputError: Swift.Error, Swift.Equatabl extension DescribeDomainChangeProgressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainChangeProgressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeProgressStatus = output.changeProgressStatus } else { @@ -3946,9 +3928,8 @@ public enum DescribeElasticsearchDomainConfigOutputError: Swift.Error, Swift.Equ extension DescribeElasticsearchDomainConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeElasticsearchDomainConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainConfig = output.domainConfig } else { @@ -4049,9 +4030,8 @@ public enum DescribeElasticsearchDomainOutputError: Swift.Error, Swift.Equatable extension DescribeElasticsearchDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeElasticsearchDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatus = output.domainStatus } else { @@ -4179,9 +4159,8 @@ public enum DescribeElasticsearchDomainsOutputError: Swift.Error, Swift.Equatabl extension DescribeElasticsearchDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeElasticsearchDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatusList = output.domainStatusList } else { @@ -4320,9 +4299,8 @@ public enum DescribeElasticsearchInstanceTypeLimitsOutputError: Swift.Error, Swi extension DescribeElasticsearchInstanceTypeLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeElasticsearchInstanceTypeLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.limitsByRole = output.limitsByRole } else { @@ -4495,9 +4473,8 @@ public enum DescribeInboundCrossClusterSearchConnectionsOutputError: Swift.Error extension DescribeInboundCrossClusterSearchConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInboundCrossClusterSearchConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossClusterSearchConnections = output.crossClusterSearchConnections self.nextToken = output.nextToken @@ -4674,9 +4651,8 @@ public enum DescribeOutboundCrossClusterSearchConnectionsOutputError: Swift.Erro extension DescribeOutboundCrossClusterSearchConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOutboundCrossClusterSearchConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossClusterSearchConnections = output.crossClusterSearchConnections self.nextToken = output.nextToken @@ -4941,9 +4917,8 @@ public enum DescribePackagesOutputError: Swift.Error, Swift.Equatable { extension DescribePackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packageDetailsList = output.packageDetailsList @@ -5086,9 +5061,8 @@ public enum DescribeReservedElasticsearchInstanceOfferingsOutputError: Swift.Err extension DescribeReservedElasticsearchInstanceOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedElasticsearchInstanceOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservedElasticsearchInstanceOfferings = output.reservedElasticsearchInstanceOfferings @@ -5232,9 +5206,8 @@ public enum DescribeReservedElasticsearchInstancesOutputError: Swift.Error, Swif extension DescribeReservedElasticsearchInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedElasticsearchInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservedElasticsearchInstances = output.reservedElasticsearchInstances @@ -5382,9 +5355,8 @@ public enum DescribeVpcEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeVpcEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpointErrors = output.vpcEndpointErrors self.vpcEndpoints = output.vpcEndpoints @@ -5454,9 +5426,8 @@ extension DescribeVpcEndpointsOutputResponseBody: Swift.Decodable { extension DisabledOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisabledOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5470,7 +5441,7 @@ extension DisabledOperationException { } /// An error occured because the client wanted to access a not supported operation. Gives http status code of 409. -public struct DisabledOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DisabledOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5579,9 +5550,8 @@ public enum DissociatePackageOutputError: Swift.Error, Swift.Equatable { extension DissociatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DissociatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainPackageDetails = output.domainPackageDetails } else { @@ -7460,9 +7430,8 @@ public enum GetCompatibleElasticsearchVersionsOutputError: Swift.Error, Swift.Eq extension GetCompatibleElasticsearchVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCompatibleElasticsearchVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibleElasticsearchVersions = output.compatibleElasticsearchVersions } else { @@ -7598,9 +7567,8 @@ public enum GetPackageVersionHistoryOutputError: Swift.Error, Swift.Equatable { extension GetPackageVersionHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPackageVersionHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packageID = output.packageID @@ -7754,9 +7722,8 @@ public enum GetUpgradeHistoryOutputError: Swift.Error, Swift.Equatable { extension GetUpgradeHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUpgradeHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.upgradeHistories = output.upgradeHistories @@ -7877,9 +7844,8 @@ public enum GetUpgradeStatusOutputError: Swift.Error, Swift.Equatable { extension GetUpgradeStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUpgradeStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stepStatus = output.stepStatus self.upgradeName = output.upgradeName @@ -8199,9 +8165,8 @@ extension ElasticsearchClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8215,7 +8180,7 @@ extension InternalException { } /// The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8252,9 +8217,8 @@ extension InternalExceptionBody: Swift.Decodable { extension InvalidPaginationTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPaginationTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8268,7 +8232,7 @@ extension InvalidPaginationTokenException { } /// The request processing has failed because of invalid pagination token provided by customer. Returns an HTTP status code of 400. -public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8305,9 +8269,8 @@ extension InvalidPaginationTokenExceptionBody: Swift.Decodable { extension InvalidTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8321,7 +8284,7 @@ extension InvalidTypeException { } /// An exception for trying to create or access sub-resource that is either invalid or not supported. Gives http status code of 409. -public struct InvalidTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8358,9 +8321,8 @@ extension InvalidTypeExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8374,7 +8336,7 @@ extension LimitExceededException { } /// An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8561,9 +8523,8 @@ public enum ListDomainNamesOutputError: Swift.Error, Swift.Equatable { extension ListDomainNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainNames = output.domainNames } else { @@ -8699,9 +8660,8 @@ public enum ListDomainsForPackageOutputError: Swift.Error, Swift.Equatable { extension ListDomainsForPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsForPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainPackageDetailsList = output.domainPackageDetailsList self.nextToken = output.nextToken @@ -8852,9 +8812,8 @@ public enum ListElasticsearchInstanceTypesOutputError: Swift.Error, Swift.Equata extension ListElasticsearchInstanceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListElasticsearchInstanceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.elasticsearchInstanceTypes = output.elasticsearchInstanceTypes self.nextToken = output.nextToken @@ -8990,9 +8949,8 @@ public enum ListElasticsearchVersionsOutputError: Swift.Error, Swift.Equatable { extension ListElasticsearchVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListElasticsearchVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.elasticsearchVersions = output.elasticsearchVersions self.nextToken = output.nextToken @@ -9138,9 +9096,8 @@ public enum ListPackagesForDomainOutputError: Swift.Error, Swift.Equatable { extension ListPackagesForDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackagesForDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainPackageDetailsList = output.domainPackageDetailsList self.nextToken = output.nextToken @@ -9271,9 +9228,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -9399,9 +9355,8 @@ public enum ListVpcEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension ListVpcEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedPrincipalList = output.authorizedPrincipalList self.nextToken = output.nextToken @@ -9539,9 +9494,8 @@ public enum ListVpcEndpointsForDomainOutputError: Swift.Error, Swift.Equatable { extension ListVpcEndpointsForDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcEndpointsForDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcEndpointSummaryList = output.vpcEndpointSummaryList @@ -9669,9 +9623,8 @@ public enum ListVpcEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListVpcEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcEndpointSummaryList = output.vpcEndpointSummaryList @@ -10811,9 +10764,8 @@ public enum PurchaseReservedElasticsearchInstanceOfferingOutputError: Swift.Erro extension PurchaseReservedElasticsearchInstanceOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseReservedElasticsearchInstanceOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservationName = output.reservationName self.reservedElasticsearchInstanceId = output.reservedElasticsearchInstanceId @@ -10964,9 +10916,8 @@ public enum RejectInboundCrossClusterSearchConnectionOutputError: Swift.Error, S extension RejectInboundCrossClusterSearchConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectInboundCrossClusterSearchConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossClusterSearchConnection = output.crossClusterSearchConnection } else { @@ -11435,9 +11386,8 @@ extension ElasticsearchClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11451,7 +11401,7 @@ extension ResourceAlreadyExistsException { } /// An exception for creating a resource that already exists. Gives http status code of 400. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11488,9 +11438,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11504,7 +11453,7 @@ extension ResourceNotFoundException { } /// An exception for accessing or deleting a resource that does not exist. Gives http status code of 400. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12292,9 +12241,8 @@ public enum StartElasticsearchServiceSoftwareUpdateOutputError: Swift.Error, Swi extension StartElasticsearchServiceSoftwareUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartElasticsearchServiceSoftwareUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSoftwareOptions = output.serviceSoftwareOptions } else { @@ -12864,9 +12812,8 @@ public enum UpdateElasticsearchDomainConfigOutputError: Swift.Error, Swift.Equat extension UpdateElasticsearchDomainConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateElasticsearchDomainConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainConfig = output.domainConfig self.dryRunResults = output.dryRunResults @@ -13035,9 +12982,8 @@ public enum UpdatePackageOutputError: Swift.Error, Swift.Equatable { extension UpdatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.packageDetails = output.packageDetails } else { @@ -13171,9 +13117,8 @@ public enum UpdateVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpoint = output.vpcEndpoint } else { @@ -13320,9 +13265,8 @@ public enum UpgradeElasticsearchDomainOutputError: Swift.Error, Swift.Equatable extension UpgradeElasticsearchDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpgradeElasticsearchDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeProgressDetails = output.changeProgressDetails self.domainName = output.domainName @@ -13858,9 +13802,8 @@ extension ElasticsearchClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13874,7 +13817,7 @@ extension ValidationException { } /// An exception for missing / invalid input fields. Gives http status code of 400. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSEventBridge/EventBridgeClient.swift b/Sources/Services/AWSEventBridge/EventBridgeClient.swift index 5dc159babf7..2e301b82296 100644 --- a/Sources/Services/AWSEventBridge/EventBridgeClient.swift +++ b/Sources/Services/AWSEventBridge/EventBridgeClient.swift @@ -208,6 +208,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelReplay") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApiDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventBus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPartnerEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deauthorizeConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApiDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventBus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePartnerEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApiDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventBus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePartnerEventSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplay") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApiDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listArchives") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventBuses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPartnerEventSourceAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPartnerEventSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReplays") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuleNamesByTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargetsByRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPartnerEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1836,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1900,6 +1945,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1916,7 +1962,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1936,6 +1982,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +1999,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2019,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2036,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2008,6 +2056,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReplay") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2024,7 +2073,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2044,6 +2093,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2060,7 +2110,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2130,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testEventPattern") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2096,7 +2147,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2116,6 +2167,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2132,7 +2184,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2152,6 +2204,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApiDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2221,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2241,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2204,7 +2258,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2224,6 +2278,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2240,7 +2295,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2260,6 +2315,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "events") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2276,7 +2332,7 @@ extension EventBridgeClient: EventBridgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEventBridge/models/Models.swift b/Sources/Services/AWSEventBridge/models/Models.swift index 9064ac0d942..630c90dd305 100644 --- a/Sources/Services/AWSEventBridge/models/Models.swift +++ b/Sources/Services/AWSEventBridge/models/Models.swift @@ -760,9 +760,8 @@ public enum CancelReplayOutputError: Swift.Error, Swift.Equatable { extension CancelReplayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelReplayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replayArn = output.replayArn self.state = output.state @@ -877,9 +876,8 @@ extension EventBridgeClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -893,7 +891,7 @@ extension ConcurrentModificationException { } /// There is concurrent modification on a rule, target, archive, or replay. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1839,9 +1837,8 @@ public enum CreateApiDestinationOutputError: Swift.Error, Swift.Equatable { extension CreateApiDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApiDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiDestinationArn = output.apiDestinationArn self.apiDestinationState = output.apiDestinationState @@ -2039,9 +2036,8 @@ public enum CreateArchiveOutputError: Swift.Error, Swift.Equatable { extension CreateArchiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateArchiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveArn = output.archiveArn self.creationTime = output.creationTime @@ -2496,9 +2492,8 @@ public enum CreateConnectionOutputError: Swift.Error, Swift.Equatable { extension CreateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.connectionState = output.connectionState @@ -2715,9 +2710,8 @@ public enum CreateEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.eventBuses = output.eventBuses @@ -2943,9 +2937,8 @@ public enum CreateEventBusOutputError: Swift.Error, Swift.Equatable { extension CreateEventBusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventBusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventBusArn = output.eventBusArn } else { @@ -3075,9 +3068,8 @@ public enum CreatePartnerEventSourceOutputError: Swift.Error, Swift.Equatable { extension CreatePartnerEventSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePartnerEventSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSourceArn = output.eventSourceArn } else { @@ -3313,9 +3305,8 @@ public enum DeauthorizeConnectionOutputError: Swift.Error, Swift.Equatable { extension DeauthorizeConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeauthorizeConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.connectionState = output.connectionState @@ -3636,9 +3627,8 @@ public enum DeleteConnectionOutputError: Swift.Error, Swift.Equatable { extension DeleteConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.connectionState = output.connectionState @@ -4162,9 +4152,8 @@ public enum DescribeApiDestinationOutputError: Swift.Error, Swift.Equatable { extension DescribeApiDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApiDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiDestinationArn = output.apiDestinationArn self.apiDestinationState = output.apiDestinationState @@ -4367,9 +4356,8 @@ public enum DescribeArchiveOutputError: Swift.Error, Swift.Equatable { extension DescribeArchiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeArchiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveArn = output.archiveArn self.archiveName = output.archiveName @@ -4580,9 +4568,8 @@ public enum DescribeConnectionOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authParameters = output.authParameters self.authorizationType = output.authorizationType @@ -4805,9 +4792,8 @@ public enum DescribeEndpointOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -5046,9 +5032,8 @@ public enum DescribeEventBusOutputError: Swift.Error, Swift.Equatable { extension DescribeEventBusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventBusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -5181,9 +5166,8 @@ public enum DescribeEventSourceOutputError: Swift.Error, Swift.Equatable { extension DescribeEventSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdBy = output.createdBy @@ -5346,9 +5330,8 @@ public enum DescribePartnerEventSourceOutputError: Swift.Error, Swift.Equatable extension DescribePartnerEventSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePartnerEventSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -5469,9 +5452,8 @@ public enum DescribeReplayOutputError: Swift.Error, Swift.Equatable { extension DescribeReplayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.destination = output.destination @@ -5704,9 +5686,8 @@ public enum DescribeRuleOutputError: Swift.Error, Swift.Equatable { extension DescribeRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdBy = output.createdBy @@ -6808,9 +6789,8 @@ extension EventBridgeClientTypes { extension IllegalStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6824,7 +6804,7 @@ extension IllegalStatusException { } /// An error occurred because a replay can be canceled only when the state is Running or Starting. -public struct IllegalStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6951,9 +6931,8 @@ extension EventBridgeClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6967,7 +6946,7 @@ extension InternalException { } /// This exception occurs due to unexpected causes. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7003,9 +6982,8 @@ extension InternalExceptionBody: Swift.Decodable { extension InvalidEventPatternException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEventPatternExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7019,7 +6997,7 @@ extension InvalidEventPatternException { } /// The event pattern is not valid. -public struct InvalidEventPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7055,9 +7033,8 @@ extension InvalidEventPatternExceptionBody: Swift.Decodable { extension InvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7071,7 +7048,7 @@ extension InvalidStateException { } /// The specified state is not a valid state for an event source. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7178,9 +7155,8 @@ extension EventBridgeClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7194,7 +7170,7 @@ extension LimitExceededException { } /// The request failed because it attempted to create resource beyond the allowed service quota. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7335,9 +7311,8 @@ public enum ListApiDestinationsOutputError: Swift.Error, Swift.Equatable { extension ListApiDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApiDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiDestinations = output.apiDestinations self.nextToken = output.nextToken @@ -7514,9 +7489,8 @@ public enum ListArchivesOutputError: Swift.Error, Swift.Equatable { extension ListArchivesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListArchivesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archives = output.archives self.nextToken = output.nextToken @@ -7679,9 +7653,8 @@ public enum ListConnectionsOutputError: Swift.Error, Swift.Equatable { extension ListConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections self.nextToken = output.nextToken @@ -7844,9 +7817,8 @@ public enum ListEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.nextToken = output.nextToken @@ -7997,9 +7969,8 @@ public enum ListEventBusesOutputError: Swift.Error, Swift.Equatable { extension ListEventBusesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventBusesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventBuses = output.eventBuses self.nextToken = output.nextToken @@ -8152,9 +8123,8 @@ public enum ListEventSourcesOutputError: Swift.Error, Swift.Equatable { extension ListEventSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSources = output.eventSources self.nextToken = output.nextToken @@ -8310,9 +8280,8 @@ public enum ListPartnerEventSourceAccountsOutputError: Swift.Error, Swift.Equata extension ListPartnerEventSourceAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPartnerEventSourceAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.partnerEventSourceAccounts = output.partnerEventSourceAccounts @@ -8466,9 +8435,8 @@ public enum ListPartnerEventSourcesOutputError: Swift.Error, Swift.Equatable { extension ListPartnerEventSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPartnerEventSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.partnerEventSources = output.partnerEventSources @@ -8643,9 +8611,8 @@ public enum ListReplaysOutputError: Swift.Error, Swift.Equatable { extension ListReplaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReplaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.replays = output.replays @@ -8811,9 +8778,8 @@ public enum ListRuleNamesByTargetOutputError: Swift.Error, Swift.Equatable { extension ListRuleNamesByTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRuleNamesByTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.ruleNames = output.ruleNames @@ -8978,9 +8944,8 @@ public enum ListRulesOutputError: Swift.Error, Swift.Equatable { extension ListRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rules = output.rules @@ -9110,9 +9075,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -9268,9 +9232,8 @@ public enum ListTargetsByRuleOutputError: Swift.Error, Swift.Equatable { extension ListTargetsByRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetsByRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.targets = output.targets @@ -9328,9 +9291,8 @@ extension ListTargetsByRuleOutputResponseBody: Swift.Decodable { extension ManagedRuleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ManagedRuleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9344,7 +9306,7 @@ extension ManagedRuleException { } /// This rule was created by an Amazon Web Services service on behalf of your account. It is managed by that service. If you see this error in response to DeleteRule or RemoveTargets, you can use the Force parameter in those calls to delete the rule or remove targets from the rule. You cannot modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource, or UntagResource. -public struct ManagedRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ManagedRuleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9415,9 +9377,8 @@ extension EventBridgeClientTypes { extension OperationDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9431,7 +9392,7 @@ extension OperationDisabledException { } /// The operation you are attempting is not available in this region. -public struct OperationDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9734,9 +9695,8 @@ extension EventBridgeClientTypes { extension PolicyLengthExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyLengthExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9750,7 +9710,7 @@ extension PolicyLengthExceededException { } /// The event bus policy is too long. For more information, see the limits. -public struct PolicyLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9945,9 +9905,8 @@ public enum PutEventsOutputError: Swift.Error, Swift.Equatable { extension PutEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.failedEntryCount = output.failedEntryCount @@ -10251,9 +10210,8 @@ public enum PutPartnerEventsOutputError: Swift.Error, Swift.Equatable { extension PutPartnerEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutPartnerEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.failedEntryCount = output.failedEntryCount @@ -10776,9 +10734,8 @@ public enum PutRuleOutputError: Swift.Error, Swift.Equatable { extension PutRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleArn = output.ruleArn } else { @@ -10932,9 +10889,8 @@ public enum PutTargetsOutputError: Swift.Error, Swift.Equatable { extension PutTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEntries = output.failedEntries self.failedEntryCount = output.failedEntryCount @@ -11394,9 +11350,8 @@ public enum RemoveTargetsOutputError: Swift.Error, Swift.Equatable { extension RemoveTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEntries = output.failedEntries self.failedEntryCount = output.failedEntryCount @@ -11793,9 +11748,8 @@ extension EventBridgeClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11809,7 +11763,7 @@ extension ResourceAlreadyExistsException { } /// The resource you are trying to create already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11845,9 +11799,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11861,7 +11814,7 @@ extension ResourceNotFoundException { } /// An entity that you specified does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12539,9 +12492,8 @@ public enum StartReplayOutputError: Swift.Error, Swift.Equatable { extension StartReplayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReplayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replayArn = output.replayArn self.replayStartTime = output.replayStartTime @@ -13054,9 +13006,8 @@ public enum TestEventPatternOutputError: Swift.Error, Swift.Equatable { extension TestEventPatternOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestEventPatternOutputResponseBody = try responseDecoder.decode(responseBody: data) self.result = output.result } else { @@ -13342,9 +13293,8 @@ public enum UpdateApiDestinationOutputError: Swift.Error, Swift.Equatable { extension UpdateApiDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApiDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiDestinationArn = output.apiDestinationArn self.apiDestinationState = output.apiDestinationState @@ -13527,9 +13477,8 @@ public enum UpdateArchiveOutputError: Swift.Error, Swift.Equatable { extension UpdateArchiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateArchiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveArn = output.archiveArn self.creationTime = output.creationTime @@ -13975,9 +13924,8 @@ public enum UpdateConnectionOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionArn = output.connectionArn self.connectionState = output.connectionState @@ -14202,9 +14150,8 @@ public enum UpdateEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.endpointId = output.endpointId diff --git a/Sources/Services/AWSEvidently/EvidentlyClient.swift b/Sources/Services/AWSEvidently/EvidentlyClient.swift index 04ed5e43a02..7d3e9d9d7b1 100644 --- a/Sources/Services/AWSEvidently/EvidentlyClient.swift +++ b/Sources/Services/AWSEvidently/EvidentlyClient.swift @@ -208,6 +208,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchEvaluateFeature") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "dataplane.")) @@ -223,7 +224,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFeature") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSegment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFeature") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +470,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -482,6 +490,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -494,7 +503,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -514,6 +523,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -526,7 +536,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -546,6 +556,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSegment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -558,7 +569,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -578,6 +589,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "evaluateFeature") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "dataplane.")) @@ -593,7 +605,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +625,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -625,7 +638,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -645,6 +658,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExperimentResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -660,7 +674,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +694,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFeature") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +707,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +727,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -724,7 +740,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -744,6 +760,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -756,7 +773,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -776,6 +793,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSegment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -788,7 +806,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -808,6 +826,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExperiments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -821,7 +840,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -841,6 +860,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFeatures") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -854,7 +874,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -874,6 +894,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLaunches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -887,7 +908,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -907,6 +928,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -920,7 +942,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -940,6 +962,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSegmentReferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -953,7 +976,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -973,6 +996,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSegments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -986,7 +1010,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1006,6 +1030,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1018,7 +1043,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1038,6 +1063,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putProjectEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "dataplane.")) @@ -1053,7 +1079,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1073,6 +1099,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1115,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1135,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1120,7 +1148,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1140,6 +1168,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1155,7 +1184,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1175,6 +1204,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1190,7 +1220,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1210,6 +1240,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1225,7 +1256,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1245,6 +1276,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testSegmentPattern") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1260,7 +1292,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1280,6 +1312,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1293,7 +1326,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1313,6 +1346,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1328,7 +1362,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1348,6 +1382,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFeature") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1363,7 +1398,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1383,6 +1418,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLaunch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1398,7 +1434,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1418,6 +1454,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1433,7 +1470,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1453,6 +1490,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "evidently") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProjectDataDelivery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1468,7 +1506,7 @@ extension EvidentlyClient: EvidentlyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSEvidently/models/Models.swift b/Sources/Services/AWSEvidently/models/Models.swift index 342688ca38e..247f4357bd7 100644 --- a/Sources/Services/AWSEvidently/models/Models.swift +++ b/Sources/Services/AWSEvidently/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient permissions to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -152,9 +151,8 @@ public enum BatchEvaluateFeatureOutputError: Swift.Error, Swift.Equatable { extension BatchEvaluateFeatureOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchEvaluateFeatureOutputResponseBody = try responseDecoder.decode(responseBody: data) self.results = output.results } else { @@ -304,9 +302,8 @@ extension EvidentlyClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -324,7 +321,7 @@ extension ConflictException { } /// A resource was in an inconsistent state during an update or a deletion. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -596,9 +593,8 @@ public enum CreateExperimentOutputError: Swift.Error, Swift.Equatable { extension CreateExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experiment = output.experiment } else { @@ -833,9 +829,8 @@ public enum CreateFeatureOutputError: Swift.Error, Swift.Equatable { extension CreateFeatureOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFeatureOutputResponseBody = try responseDecoder.decode(responseBody: data) self.feature = output.feature } else { @@ -1069,9 +1064,8 @@ public enum CreateLaunchOutputError: Swift.Error, Swift.Equatable { extension CreateLaunchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLaunchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launch = output.launch } else { @@ -1247,9 +1241,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -1414,9 +1407,8 @@ public enum CreateSegmentOutputError: Swift.Error, Swift.Equatable { extension CreateSegmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSegmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.segment = output.segment } else { @@ -1941,9 +1933,8 @@ public enum EvaluateFeatureOutputError: Swift.Error, Swift.Equatable { extension EvaluateFeatureOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EvaluateFeatureOutputResponseBody = try responseDecoder.decode(responseBody: data) self.details = output.details self.reason = output.reason @@ -3517,9 +3508,8 @@ public enum GetExperimentOutputError: Swift.Error, Swift.Equatable { extension GetExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experiment = output.experiment } else { @@ -3793,9 +3783,8 @@ public enum GetExperimentResultsOutputError: Swift.Error, Swift.Equatable { extension GetExperimentResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExperimentResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.details = output.details self.reports = output.reports @@ -3958,9 +3947,8 @@ public enum GetFeatureOutputError: Swift.Error, Swift.Equatable { extension GetFeatureOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFeatureOutputResponseBody = try responseDecoder.decode(responseBody: data) self.feature = output.feature } else { @@ -4067,9 +4055,8 @@ public enum GetLaunchOutputError: Swift.Error, Swift.Equatable { extension GetLaunchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLaunchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launch = output.launch } else { @@ -4167,9 +4154,8 @@ public enum GetProjectOutputError: Swift.Error, Swift.Equatable { extension GetProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -4268,9 +4254,8 @@ public enum GetSegmentOutputError: Swift.Error, Swift.Equatable { extension GetSegmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSegmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.segment = output.segment } else { @@ -4310,9 +4295,8 @@ extension GetSegmentOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4326,7 +4310,7 @@ extension InternalServerException { } /// Unexpected error while processing the request. Retry the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4953,9 +4937,8 @@ public enum ListExperimentsOutputError: Swift.Error, Swift.Equatable { extension ListExperimentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExperimentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experiments = output.experiments self.nextToken = output.nextToken @@ -5097,9 +5080,8 @@ public enum ListFeaturesOutputError: Swift.Error, Swift.Equatable { extension ListFeaturesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFeaturesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.features = output.features self.nextToken = output.nextToken @@ -5247,9 +5229,8 @@ public enum ListLaunchesOutputError: Swift.Error, Swift.Equatable { extension ListLaunchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLaunchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launches = output.launches self.nextToken = output.nextToken @@ -5381,9 +5362,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -5536,9 +5516,8 @@ public enum ListSegmentReferencesOutputError: Swift.Error, Swift.Equatable { extension ListSegmentReferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSegmentReferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.referencedBy = output.referencedBy @@ -5670,9 +5649,8 @@ public enum ListSegmentsOutputError: Swift.Error, Swift.Equatable { extension ListSegmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSegmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.segments = output.segments @@ -5787,9 +5765,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6933,9 +6910,8 @@ public enum PutProjectEventsOutputError: Swift.Error, Swift.Equatable { extension PutProjectEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutProjectEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventResults = output.eventResults self.failedEventCount = output.failedEventCount @@ -7145,9 +7121,8 @@ extension EvidentlyClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -7165,7 +7140,7 @@ extension ResourceNotFoundException { } /// The request references a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7797,9 +7772,8 @@ extension EvidentlyClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -7821,7 +7795,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7889,9 +7863,8 @@ extension ServiceQuotaExceededExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7905,7 +7878,7 @@ extension ServiceUnavailableException { } /// The service was unavailable. Retry the request. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8037,9 +8010,8 @@ public enum StartExperimentOutputError: Swift.Error, Swift.Equatable { extension StartExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.startedTime = output.startedTime } else { @@ -8149,9 +8121,8 @@ public enum StartLaunchOutputError: Swift.Error, Swift.Equatable { extension StartLaunchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartLaunchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launch = output.launch } else { @@ -8298,9 +8269,8 @@ public enum StopExperimentOutputError: Swift.Error, Swift.Equatable { extension StopExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endedTime = output.endedTime } else { @@ -8442,9 +8412,8 @@ public enum StopLaunchOutputError: Swift.Error, Swift.Equatable { extension StopLaunchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopLaunchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endedTime = output.endedTime } else { @@ -8674,9 +8643,8 @@ public enum TestSegmentPatternOutputError: Swift.Error, Swift.Equatable { extension TestSegmentPatternOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestSegmentPatternOutputResponseBody = try responseDecoder.decode(responseBody: data) self.match = output.match } else { @@ -8716,9 +8684,8 @@ extension TestSegmentPatternOutputResponseBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -8736,7 +8703,7 @@ extension ThrottlingException { } /// The request was denied because of request throttling. Retry the request. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9212,9 +9179,8 @@ public enum UpdateExperimentOutputError: Swift.Error, Swift.Equatable { extension UpdateExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experiment = output.experiment } else { @@ -9443,9 +9409,8 @@ public enum UpdateFeatureOutputError: Swift.Error, Swift.Equatable { extension UpdateFeatureOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFeatureOutputResponseBody = try responseDecoder.decode(responseBody: data) self.feature = output.feature } else { @@ -9648,9 +9613,8 @@ public enum UpdateLaunchOutputError: Swift.Error, Swift.Equatable { extension UpdateLaunchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLaunchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launch = output.launch } else { @@ -9787,9 +9751,8 @@ public enum UpdateProjectDataDeliveryOutputError: Swift.Error, Swift.Equatable { extension UpdateProjectDataDeliveryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProjectDataDeliveryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -9926,9 +9889,8 @@ public enum UpdateProjectOutputError: Swift.Error, Swift.Equatable { extension UpdateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -9968,9 +9930,8 @@ extension UpdateProjectOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -9988,7 +9949,7 @@ extension ValidationException { } /// The value of a parameter in the request caused an error. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSFMS/FMSClient.swift b/Sources/Services/AWSFMS/FMSClient.swift index 6e808bd949f..f37e7f00428 100644 --- a/Sources/Services/AWSFMS/FMSClient.swift +++ b/Sources/Services/AWSFMS/FMSClient.swift @@ -208,6 +208,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateThirdPartyFirewall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppsList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNotificationChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProtocolsList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourceSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateThirdPartyFirewall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppsList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +697,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComplianceDetail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +714,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +734,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNotificationChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +751,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +771,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +788,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +808,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProtectionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +825,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +845,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProtocolsList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +862,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +882,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +899,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +919,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getThirdPartyFirewallAssociationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +936,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +956,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getViolationDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +973,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +993,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppsLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -988,7 +1010,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1008,6 +1030,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComplianceStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1047,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1067,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDiscoveredResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1084,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1104,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMemberAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1121,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1141,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1132,7 +1158,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1152,6 +1178,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProtocolsLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1195,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1215,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceSetResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1204,7 +1232,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1224,6 +1252,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1269,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1289,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1276,7 +1306,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1296,6 +1326,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThirdPartyFirewallFirewallPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1343,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1332,6 +1363,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAppsList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1348,7 +1380,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1368,6 +1400,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putNotificationChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1384,7 +1417,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1419,6 +1452,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1435,7 +1469,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1455,6 +1489,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putProtocolsList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1471,7 +1506,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1491,6 +1526,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourceSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1507,7 +1543,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1527,6 +1563,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1543,7 +1580,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1563,6 +1600,7 @@ extension FMSClient: FMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1579,7 +1617,7 @@ extension FMSClient: FMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSFMS/models/Models.swift b/Sources/Services/AWSFMS/models/Models.swift index 705b7d94c51..200e8f232c1 100644 --- a/Sources/Services/AWSFMS/models/Models.swift +++ b/Sources/Services/AWSFMS/models/Models.swift @@ -520,9 +520,8 @@ public enum AssociateThirdPartyFirewallOutputError: Swift.Error, Swift.Equatable extension AssociateThirdPartyFirewallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateThirdPartyFirewallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.thirdPartyFirewallStatus = output.thirdPartyFirewallStatus } else { @@ -877,9 +876,8 @@ public enum BatchAssociateResourceOutputError: Swift.Error, Swift.Equatable { extension BatchAssociateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedItems = output.failedItems self.resourceSetIdentifier = output.resourceSetIdentifier @@ -1040,9 +1038,8 @@ public enum BatchDisassociateResourceOutputError: Swift.Error, Swift.Equatable { extension BatchDisassociateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedItems = output.failedItems self.resourceSetIdentifier = output.resourceSetIdentifier @@ -1858,9 +1855,8 @@ public enum DisassociateThirdPartyFirewallOutputError: Swift.Error, Swift.Equata extension DisassociateThirdPartyFirewallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateThirdPartyFirewallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.thirdPartyFirewallStatus = output.thirdPartyFirewallStatus } else { @@ -3159,9 +3155,8 @@ public enum GetAdminAccountOutputError: Swift.Error, Swift.Equatable { extension GetAdminAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAdminAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adminAccount = output.adminAccount self.roleStatus = output.roleStatus @@ -3296,9 +3291,8 @@ public enum GetAppsListOutputError: Swift.Error, Swift.Equatable { extension GetAppsListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppsListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appsList = output.appsList self.appsListArn = output.appsListArn @@ -3436,9 +3430,8 @@ public enum GetComplianceDetailOutputError: Swift.Error, Swift.Equatable { extension GetComplianceDetailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComplianceDetailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyComplianceDetail = output.policyComplianceDetail } else { @@ -3531,9 +3524,8 @@ public enum GetNotificationChannelOutputError: Swift.Error, Swift.Equatable { extension GetNotificationChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNotificationChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snsRoleName = output.snsRoleName self.snsTopicArn = output.snsTopicArn @@ -3658,9 +3650,8 @@ public enum GetPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.policyArn = output.policyArn @@ -3843,9 +3834,8 @@ public enum GetProtectionStatusOutputError: Swift.Error, Swift.Equatable { extension GetProtectionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProtectionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adminAccountId = output.adminAccountId self.data = output.data @@ -4013,9 +4003,8 @@ public enum GetProtocolsListOutputError: Swift.Error, Swift.Equatable { extension GetProtocolsListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProtocolsListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protocolsList = output.protocolsList self.protocolsListArn = output.protocolsListArn @@ -4140,9 +4129,8 @@ public enum GetResourceSetOutputError: Swift.Error, Swift.Equatable { extension GetResourceSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceSet = output.resourceSet self.resourceSetArn = output.resourceSetArn @@ -4269,9 +4257,8 @@ public enum GetThirdPartyFirewallAssociationStatusOutputError: Swift.Error, Swif extension GetThirdPartyFirewallAssociationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetThirdPartyFirewallAssociationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marketplaceOnboardingStatus = output.marketplaceOnboardingStatus self.thirdPartyFirewallStatus = output.thirdPartyFirewallStatus @@ -4449,9 +4436,8 @@ public enum GetViolationDetailsOutputError: Swift.Error, Swift.Equatable { extension GetViolationDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetViolationDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.violationDetail = output.violationDetail } else { @@ -4490,9 +4476,8 @@ extension GetViolationDetailsOutputResponseBody: Swift.Decodable { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4506,7 +4491,7 @@ extension InternalErrorException { } /// The operation failed because of a system problem, even though the request was valid. Retry your request. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4542,9 +4527,8 @@ extension InternalErrorExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4558,7 +4542,7 @@ extension InvalidInputException { } /// The parameters of the request were invalid. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4594,9 +4578,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension InvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4610,7 +4593,7 @@ extension InvalidOperationException { } /// The operation failed because there was nothing to do or the operation wasn't possible. For example, you might have submitted an AssociateAdminAccount request for an account ID that was already set as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by default, and that you need to enable for the Firewall Manager administrator account and for Organizations before you can access it. -public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4646,9 +4629,8 @@ extension InvalidOperationExceptionBody: Swift.Decodable { extension InvalidTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4662,7 +4644,7 @@ extension InvalidTypeException { } /// The value of the Type parameter is invalid. -public struct InvalidTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4698,9 +4680,8 @@ extension InvalidTypeExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4714,7 +4695,7 @@ extension LimitExceededException { } /// The operation exceeds a resource limit, for example, the maximum number of policy objects that you can create for an Amazon Web Services account. For more information, see [Firewall Manager Limits](https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html) in the WAF Developer Guide. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4850,9 +4831,8 @@ public enum ListAppsListsOutputError: Swift.Error, Swift.Equatable { extension ListAppsListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppsListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appsLists = output.appsLists self.nextToken = output.nextToken @@ -5006,9 +4986,8 @@ public enum ListComplianceStatusOutputError: Swift.Error, Swift.Equatable { extension ListComplianceStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComplianceStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.policyComplianceStatusList = output.policyComplianceStatusList @@ -5189,9 +5168,8 @@ public enum ListDiscoveredResourcesOutputError: Swift.Error, Swift.Equatable { extension ListDiscoveredResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDiscoveredResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5332,9 +5310,8 @@ public enum ListMemberAccountsOutputError: Swift.Error, Swift.Equatable { extension ListMemberAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMemberAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberAccounts = output.memberAccounts self.nextToken = output.nextToken @@ -5479,9 +5456,8 @@ public enum ListPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.policyList = output.policyList @@ -5637,9 +5613,8 @@ public enum ListProtocolsListsOutputError: Swift.Error, Swift.Equatable { extension ListProtocolsListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProtocolsListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.protocolsLists = output.protocolsLists @@ -5797,9 +5772,8 @@ public enum ListResourceSetResourcesOutputError: Swift.Error, Swift.Equatable { extension ListResourceSetResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceSetResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5943,9 +5917,8 @@ public enum ListResourceSetsOutputError: Swift.Error, Swift.Equatable { extension ListResourceSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceSets = output.resourceSets @@ -6079,9 +6052,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -6230,9 +6202,8 @@ public enum ListThirdPartyFirewallFirewallPoliciesOutputError: Swift.Error, Swif extension ListThirdPartyFirewallFirewallPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThirdPartyFirewallFirewallPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.thirdPartyFirewallFirewallPolicies = output.thirdPartyFirewallFirewallPolicies @@ -8811,9 +8782,8 @@ public enum PutAppsListOutputError: Swift.Error, Swift.Equatable { extension PutAppsListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAppsListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appsList = output.appsList self.appsListArn = output.appsListArn @@ -9063,9 +9033,8 @@ public enum PutPolicyOutputError: Swift.Error, Swift.Equatable { extension PutPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.policyArn = output.policyArn @@ -9216,9 +9185,8 @@ public enum PutProtocolsListOutputError: Swift.Error, Swift.Equatable { extension PutProtocolsListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutProtocolsListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protocolsList = output.protocolsList self.protocolsListArn = output.protocolsListArn @@ -9367,9 +9335,8 @@ public enum PutResourceSetOutputError: Swift.Error, Swift.Equatable { extension PutResourceSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourceSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceSet = output.resourceSet self.resourceSetArn = output.resourceSetArn @@ -9658,9 +9625,8 @@ extension FMSClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9674,7 +9640,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSFSx/FSxClient.swift b/Sources/Services/AWSFSx/FSxClient.swift index 37de5807300..3a4c753cfd8 100644 --- a/Sources/Services/AWSFSx/FSxClient.swift +++ b/Sources/Services/AWSFSx/FSxClient.swift @@ -208,6 +208,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateFileSystemAliases") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -258,6 +259,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelDataRepositoryTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -274,7 +276,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyBackup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -318,7 +321,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -363,6 +366,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -387,7 +391,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +411,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataRepositoryAssociation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -431,7 +436,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -451,6 +456,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataRepositoryTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -475,7 +481,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -502,6 +508,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFileCache") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -526,7 +533,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -564,6 +571,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFileSystem") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -588,7 +596,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -615,6 +623,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFileSystemFromBackup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -639,7 +648,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -666,6 +675,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshot") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -690,7 +700,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -710,6 +720,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStorageVirtualMachine") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -734,7 +745,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -754,6 +765,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVolume") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -778,7 +790,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -798,6 +810,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVolumeFromBackup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -822,7 +835,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -842,6 +855,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -866,7 +880,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -886,6 +900,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataRepositoryAssociation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -910,7 +925,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -930,6 +945,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFileCache") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -954,7 +970,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +990,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFileSystem") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -998,7 +1015,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1018,6 +1035,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshot") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1042,7 +1060,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1062,6 +1080,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStorageVirtualMachine") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1086,7 +1105,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1106,6 +1125,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVolume") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1130,7 +1150,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1154,6 +1174,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBackups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1170,7 +1191,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1190,6 +1211,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataRepositoryAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1206,7 +1228,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1226,6 +1248,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataRepositoryTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1242,7 +1265,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1266,6 +1289,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFileCaches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1282,7 +1306,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1302,6 +1326,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFileSystemAliases") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1326,7 +1351,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1350,6 +1375,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFileSystems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1366,7 +1392,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1390,6 +1416,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1406,7 +1433,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1426,6 +1453,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStorageVirtualMachines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1442,7 +1470,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1462,6 +1490,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVolumes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1478,7 +1507,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1498,6 +1527,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFileSystemAliases") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1522,7 +1552,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1546,6 +1576,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1562,7 +1593,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1582,6 +1613,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "releaseFileSystemNfsV3Locks") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1606,7 +1638,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1626,6 +1658,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreVolumeFromSnapshot") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1650,7 +1683,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1670,6 +1703,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1686,7 +1720,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1706,6 +1740,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1722,7 +1757,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1742,6 +1777,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataRepositoryAssociation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1766,7 +1802,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1786,6 +1822,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFileCache") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1810,7 +1847,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1901,6 +1938,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFileSystem") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1925,7 +1963,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1945,6 +1983,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSnapshot") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1969,7 +2008,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1989,6 +2028,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStorageVirtualMachine") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2013,7 +2053,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2033,6 +2073,7 @@ extension FSxClient: FSxClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fsx") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVolume") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2057,7 +2098,7 @@ extension FSxClient: FSxClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSFSx/models/Models.swift b/Sources/Services/AWSFSx/models/Models.swift index 45f4c6f0af4..95aa4f401f9 100644 --- a/Sources/Services/AWSFSx/models/Models.swift +++ b/Sources/Services/AWSFSx/models/Models.swift @@ -59,9 +59,8 @@ extension FSxClientTypes { extension ActiveDirectoryError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActiveDirectoryErrorBody = try responseDecoder.decode(responseBody: data) self.activeDirectoryId = output.activeDirectoryId self.message = output.message @@ -79,7 +78,7 @@ extension ActiveDirectoryError { } /// An Active Directory error. -public struct ActiveDirectoryError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActiveDirectoryError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -649,9 +648,8 @@ public enum AssociateFileSystemAliasesOutputError: Swift.Error, Swift.Equatable extension AssociateFileSystemAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateFileSystemAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliases = output.aliases } else { @@ -1066,9 +1064,8 @@ extension FSxClientTypes { extension BackupBeingCopied { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BackupBeingCopiedBody = try responseDecoder.decode(responseBody: data) self.backupId = output.backupId self.message = output.message @@ -1084,7 +1081,7 @@ extension BackupBeingCopied { } /// You can't delete a backup while it's being copied. -public struct BackupBeingCopied: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BackupBeingCopied: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1164,9 +1161,8 @@ extension FSxClientTypes { extension BackupInProgress { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BackupInProgressBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1180,7 +1176,7 @@ extension BackupInProgress { } /// Another backup is already under way. Wait for completion before initiating additional backups of this file system. -public struct BackupInProgress: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BackupInProgress: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1279,9 +1275,8 @@ extension FSxClientTypes { extension BackupNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BackupNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1295,7 +1290,7 @@ extension BackupNotFound { } /// No Amazon FSx backups were found based upon the supplied parameters. -public struct BackupNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BackupNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1332,9 +1327,8 @@ extension BackupNotFoundBody: Swift.Decodable { extension BackupRestoring { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BackupRestoringBody = try responseDecoder.decode(responseBody: data) self.fileSystemId = output.fileSystemId self.message = output.message @@ -1350,7 +1344,7 @@ extension BackupRestoring { } /// You can't delete a backup while it's being used to restore a file system. -public struct BackupRestoring: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BackupRestoring: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1431,9 +1425,8 @@ extension FSxClientTypes { extension BadRequest { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1447,7 +1440,7 @@ extension BadRequest { } /// A generic error indicating a failure with a client request. -public struct BadRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1563,9 +1556,8 @@ public enum CancelDataRepositoryTaskOutputError: Swift.Error, Swift.Equatable { extension CancelDataRepositoryTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelDataRepositoryTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecycle = output.lifecycle self.taskId = output.taskId @@ -1865,9 +1857,8 @@ public enum CopyBackupOutputError: Swift.Error, Swift.Equatable { extension CopyBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backup = output.backup } else { @@ -2038,9 +2029,8 @@ public enum CreateBackupOutputError: Swift.Error, Swift.Equatable { extension CreateBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backup = output.backup } else { @@ -2257,9 +2247,8 @@ public enum CreateDataRepositoryAssociationOutputError: Swift.Error, Swift.Equat extension CreateDataRepositoryAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataRepositoryAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.association = output.association } else { @@ -2482,9 +2471,8 @@ public enum CreateDataRepositoryTaskOutputError: Swift.Error, Swift.Equatable { extension CreateDataRepositoryTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataRepositoryTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataRepositoryTask = output.dataRepositoryTask } else { @@ -2851,9 +2839,8 @@ public enum CreateFileCacheOutputError: Swift.Error, Swift.Equatable { extension CreateFileCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFileCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileCache = output.fileCache } else { @@ -3174,9 +3161,8 @@ public enum CreateFileSystemFromBackupOutputError: Swift.Error, Swift.Equatable extension CreateFileSystemFromBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFileSystemFromBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystem = output.fileSystem } else { @@ -4012,9 +3998,8 @@ public enum CreateFileSystemOutputError: Swift.Error, Swift.Equatable { extension CreateFileSystemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFileSystemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystem = output.fileSystem } else { @@ -4713,9 +4698,8 @@ public enum CreateSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -4932,9 +4916,8 @@ public enum CreateStorageVirtualMachineOutputError: Swift.Error, Swift.Equatable extension CreateStorageVirtualMachineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStorageVirtualMachineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.storageVirtualMachine = output.storageVirtualMachine } else { @@ -5164,9 +5147,8 @@ public enum CreateVolumeFromBackupOutputError: Swift.Error, Swift.Equatable { extension CreateVolumeFromBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVolumeFromBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volume = output.volume } else { @@ -5362,9 +5344,8 @@ public enum CreateVolumeOutputError: Swift.Error, Swift.Equatable { extension CreateVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volume = output.volume } else { @@ -5678,9 +5659,8 @@ extension FSxClientTypes { extension DataRepositoryAssociationNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DataRepositoryAssociationNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5694,7 +5674,7 @@ extension DataRepositoryAssociationNotFound { } /// No data repository associations were found based upon the supplied parameters. -public struct DataRepositoryAssociationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DataRepositoryAssociationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6139,9 +6119,8 @@ extension FSxClientTypes { extension DataRepositoryTaskEnded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DataRepositoryTaskEndedBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6155,7 +6134,7 @@ extension DataRepositoryTaskEnded { } /// The data repository task could not be canceled because the task has already ended. -public struct DataRepositoryTaskEnded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DataRepositoryTaskEnded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6192,9 +6171,8 @@ extension DataRepositoryTaskEndedBody: Swift.Decodable { extension DataRepositoryTaskExecuting { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DataRepositoryTaskExecutingBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6208,7 +6186,7 @@ extension DataRepositoryTaskExecuting { } /// An existing data repository task is currently executing on the file system. Wait until the existing task has completed, then create the new task. -public struct DataRepositoryTaskExecuting: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DataRepositoryTaskExecuting: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6423,9 +6401,8 @@ extension FSxClientTypes { extension DataRepositoryTaskNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DataRepositoryTaskNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6439,7 +6416,7 @@ extension DataRepositoryTaskNotFound { } /// The data repository task or tasks you specified could not be found. -public struct DataRepositoryTaskNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DataRepositoryTaskNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6684,9 +6661,8 @@ public enum DeleteBackupOutputError: Swift.Error, Swift.Equatable { extension DeleteBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backupId = output.backupId self.lifecycle = output.lifecycle @@ -6838,9 +6814,8 @@ public enum DeleteDataRepositoryAssociationOutputError: Swift.Error, Swift.Equat extension DeleteDataRepositoryAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDataRepositoryAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationId = output.associationId self.deleteDataInFileSystem = output.deleteDataInFileSystem @@ -6989,9 +6964,8 @@ public enum DeleteFileCacheOutputError: Swift.Error, Swift.Equatable { extension DeleteFileCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFileCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileCacheId = output.fileCacheId self.lifecycle = output.lifecycle @@ -7446,9 +7420,8 @@ public enum DeleteFileSystemOutputError: Swift.Error, Swift.Equatable { extension DeleteFileSystemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFileSystemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystemId = output.fileSystemId self.lifecycle = output.lifecycle @@ -7757,9 +7730,8 @@ public enum DeleteSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecycle = output.lifecycle self.snapshotId = output.snapshotId @@ -7896,9 +7868,8 @@ public enum DeleteStorageVirtualMachineOutputError: Swift.Error, Swift.Equatable extension DeleteStorageVirtualMachineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteStorageVirtualMachineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecycle = output.lifecycle self.storageVirtualMachineId = output.storageVirtualMachineId @@ -8220,9 +8191,8 @@ public enum DeleteVolumeOutputError: Swift.Error, Swift.Equatable { extension DeleteVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecycle = output.lifecycle self.ontapResponse = output.ontapResponse @@ -8419,9 +8389,8 @@ public enum DescribeBackupsOutputError: Swift.Error, Swift.Equatable { extension DescribeBackupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBackupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backups = output.backups self.nextToken = output.nextToken @@ -8617,9 +8586,8 @@ public enum DescribeDataRepositoryAssociationsOutputError: Swift.Error, Swift.Eq extension DescribeDataRepositoryAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataRepositoryAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations self.nextToken = output.nextToken @@ -8812,9 +8780,8 @@ public enum DescribeDataRepositoryTasksOutputError: Swift.Error, Swift.Equatable extension DescribeDataRepositoryTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataRepositoryTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataRepositoryTasks = output.dataRepositoryTasks self.nextToken = output.nextToken @@ -8981,9 +8948,8 @@ public enum DescribeFileCachesOutputError: Swift.Error, Swift.Equatable { extension DescribeFileCachesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFileCachesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileCaches = output.fileCaches self.nextToken = output.nextToken @@ -9152,9 +9118,8 @@ public enum DescribeFileSystemAliasesOutputError: Swift.Error, Swift.Equatable { extension DescribeFileSystemAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFileSystemAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliases = output.aliases self.nextToken = output.nextToken @@ -9323,9 +9288,8 @@ public enum DescribeFileSystemsOutputError: Swift.Error, Swift.Equatable { extension DescribeFileSystemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFileSystemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystems = output.fileSystems self.nextToken = output.nextToken @@ -9517,9 +9481,8 @@ public enum DescribeSnapshotsOutputError: Swift.Error, Swift.Equatable { extension DescribeSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshots = output.snapshots @@ -9710,9 +9673,8 @@ public enum DescribeStorageVirtualMachinesOutputError: Swift.Error, Swift.Equata extension DescribeStorageVirtualMachinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStorageVirtualMachinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.storageVirtualMachines = output.storageVirtualMachines @@ -9903,9 +9865,8 @@ public enum DescribeVolumesOutputError: Swift.Error, Swift.Equatable { extension DescribeVolumesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVolumesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.volumes = output.volumes @@ -10075,9 +10036,8 @@ public enum DisassociateFileSystemAliasesOutputError: Swift.Error, Swift.Equatab extension DisassociateFileSystemAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateFileSystemAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliases = output.aliases } else { @@ -11138,9 +11098,8 @@ extension FSxClientTypes { extension FileCacheNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileCacheNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11154,7 +11113,7 @@ extension FileCacheNotFound { } /// No caches were found based upon supplied parameters. -public struct FileCacheNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileCacheNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11743,9 +11702,8 @@ extension FSxClientTypes { extension FileSystemNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FileSystemNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11759,7 +11717,7 @@ extension FileSystemNotFound { } /// No Amazon FSx file systems were found based upon supplied parameters. -public struct FileSystemNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FileSystemNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11975,9 +11933,8 @@ extension FSxClientTypes { extension IncompatibleParameterError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncompatibleParameterErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.parameter = output.parameter @@ -11993,7 +11950,7 @@ extension IncompatibleParameterError { } /// The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request. -public struct IncompatibleParameterError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleParameterError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12039,9 +11996,8 @@ extension IncompatibleParameterErrorBody: Swift.Decodable { extension IncompatibleRegionForMultiAZ { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncompatibleRegionForMultiAZBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12055,7 +12011,7 @@ extension IncompatibleRegionForMultiAZ { } /// Amazon FSx doesn't support Multi-AZ Windows File Server copy backup in the destination Region, so the copied backup can't be restored. -public struct IncompatibleRegionForMultiAZ: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleRegionForMultiAZ: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12124,9 +12080,8 @@ extension FSxClientTypes { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12140,7 +12095,7 @@ extension InternalServerError { } /// A generic error indicating a server-side failure. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12177,9 +12132,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidDataRepositoryType { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDataRepositoryTypeBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12193,7 +12147,7 @@ extension InvalidDataRepositoryType { } /// You have filtered the response to a data repository type that is not supported. -public struct InvalidDataRepositoryType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDataRepositoryType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12230,9 +12184,8 @@ extension InvalidDataRepositoryTypeBody: Swift.Decodable { extension InvalidDestinationKmsKey { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDestinationKmsKeyBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12246,7 +12199,7 @@ extension InvalidDestinationKmsKey { } /// The Key Management Service (KMS) key of the destination backup is not valid. -public struct InvalidDestinationKmsKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDestinationKmsKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12283,9 +12236,8 @@ extension InvalidDestinationKmsKeyBody: Swift.Decodable { extension InvalidExportPath { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidExportPathBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12299,7 +12251,7 @@ extension InvalidExportPath { } /// The path provided for data repository export isn't valid. -public struct InvalidExportPath: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidExportPath: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12336,9 +12288,8 @@ extension InvalidExportPathBody: Swift.Decodable { extension InvalidImportPath { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidImportPathBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12352,7 +12303,7 @@ extension InvalidImportPath { } /// The path provided for data repository import isn't valid. -public struct InvalidImportPath: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidImportPath: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12389,9 +12340,8 @@ extension InvalidImportPathBody: Swift.Decodable { extension InvalidNetworkSettings { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNetworkSettingsBody = try responseDecoder.decode(responseBody: data) self.invalidRouteTableId = output.invalidRouteTableId self.invalidSecurityGroupId = output.invalidSecurityGroupId @@ -12411,7 +12361,7 @@ extension InvalidNetworkSettings { } /// One or more network settings specified in the request are invalid. -public struct InvalidNetworkSettings: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNetworkSettings: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12472,9 +12422,8 @@ extension InvalidNetworkSettingsBody: Swift.Decodable { extension InvalidPerUnitStorageThroughput { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPerUnitStorageThroughputBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12488,7 +12437,7 @@ extension InvalidPerUnitStorageThroughput { } /// An invalid value for PerUnitStorageThroughput was provided. Please create your file system again, using a valid value. -public struct InvalidPerUnitStorageThroughput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPerUnitStorageThroughput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12525,9 +12474,8 @@ extension InvalidPerUnitStorageThroughputBody: Swift.Decodable { extension InvalidRegion { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRegionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12541,7 +12489,7 @@ extension InvalidRegion { } /// The Region provided for SourceRegion is not valid or is in a different Amazon Web Services partition. -public struct InvalidRegion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRegion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12578,9 +12526,8 @@ extension InvalidRegionBody: Swift.Decodable { extension InvalidSourceKmsKey { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSourceKmsKeyBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12594,7 +12541,7 @@ extension InvalidSourceKmsKey { } /// The Key Management Service (KMS) key of the source backup is not valid. -public struct InvalidSourceKmsKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSourceKmsKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12769,9 +12716,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -13253,9 +13199,8 @@ extension FSxClientTypes { extension MissingFileCacheConfiguration { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingFileCacheConfigurationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13269,7 +13214,7 @@ extension MissingFileCacheConfiguration { } /// A cache configuration is required for this operation. -public struct MissingFileCacheConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingFileCacheConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13306,9 +13251,8 @@ extension MissingFileCacheConfigurationBody: Swift.Decodable { extension MissingFileSystemConfiguration { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingFileSystemConfigurationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13322,7 +13266,7 @@ extension MissingFileSystemConfiguration { } /// A file system configuration is required for this operation. -public struct MissingFileSystemConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingFileSystemConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13359,9 +13303,8 @@ extension MissingFileSystemConfigurationBody: Swift.Decodable { extension MissingVolumeConfiguration { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingVolumeConfigurationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13375,7 +13318,7 @@ extension MissingVolumeConfiguration { } /// A volume configuration is required for this operation. -public struct MissingVolumeConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingVolumeConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13509,9 +13452,8 @@ extension FSxClientTypes { extension NotServiceResourceError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotServiceResourceErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceARN = output.resourceARN @@ -13527,7 +13469,7 @@ extension NotServiceResourceError { } /// The resource specified for the tagging operation is not a resource type owned by Amazon FSx. Use the API of the relevant service to perform the operation. -public struct NotServiceResourceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotServiceResourceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14814,9 +14756,8 @@ public enum ReleaseFileSystemNfsV3LocksOutputError: Swift.Error, Swift.Equatable extension ReleaseFileSystemNfsV3LocksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReleaseFileSystemNfsV3LocksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystem = output.fileSystem } else { @@ -14913,9 +14854,8 @@ extension FSxClientTypes { extension ResourceDoesNotSupportTagging { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceDoesNotSupportTaggingBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceARN = output.resourceARN @@ -14931,7 +14871,7 @@ extension ResourceDoesNotSupportTagging { } /// The resource specified does not support tagging. -public struct ResourceDoesNotSupportTagging: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceDoesNotSupportTagging: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14977,9 +14917,8 @@ extension ResourceDoesNotSupportTaggingBody: Swift.Decodable { extension ResourceNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceARN = output.resourceARN @@ -14995,7 +14934,7 @@ extension ResourceNotFound { } /// The resource specified by the Amazon Resource Name (ARN) can't be found. -public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15232,9 +15171,8 @@ public enum RestoreVolumeFromSnapshotOutputError: Swift.Error, Swift.Equatable { extension RestoreVolumeFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreVolumeFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.administrativeActions = output.administrativeActions self.lifecycle = output.lifecycle @@ -15704,9 +15642,8 @@ extension FSxClientTypes { extension ServiceLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLimitExceededBody = try responseDecoder.decode(responseBody: data) self.limit = output.limit self.message = output.message @@ -15722,7 +15659,7 @@ extension ServiceLimitExceeded { } /// An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support. -public struct ServiceLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16042,9 +15979,8 @@ extension FSxClientTypes { extension SnapshotNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SnapshotNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16058,7 +15994,7 @@ extension SnapshotNotFound { } /// No Amazon FSx snapshots were found based on the supplied parameters. -public struct SnapshotNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16095,9 +16031,8 @@ extension SnapshotNotFoundBody: Swift.Decodable { extension SourceBackupUnavailable { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SourceBackupUnavailableBody = try responseDecoder.decode(responseBody: data) self.backupId = output.backupId self.message = output.message @@ -16113,7 +16048,7 @@ extension SourceBackupUnavailable { } /// The request was rejected because the lifecycle status of the source backup isn't AVAILABLE. -public struct SourceBackupUnavailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceBackupUnavailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16541,9 +16476,8 @@ extension FSxClientTypes { extension StorageVirtualMachineNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StorageVirtualMachineNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16557,7 +16491,7 @@ extension StorageVirtualMachineNotFound { } /// No FSx for ONTAP SVMs were found based upon the supplied parameters. -public struct StorageVirtualMachineNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageVirtualMachineNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17104,9 +17038,8 @@ extension FSxClientTypes { extension UnsupportedOperation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17120,7 +17053,7 @@ extension UnsupportedOperation { } /// The requested operation is not supported for this resource or API. -public struct UnsupportedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17386,9 +17319,8 @@ public enum UpdateDataRepositoryAssociationOutputError: Swift.Error, Swift.Equat extension UpdateDataRepositoryAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataRepositoryAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.association = output.association } else { @@ -17568,9 +17500,8 @@ public enum UpdateFileCacheOutputError: Swift.Error, Swift.Equatable { extension UpdateFileCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFileCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileCache = output.fileCache } else { @@ -18121,9 +18052,8 @@ public enum UpdateFileSystemOutputError: Swift.Error, Swift.Equatable { extension UpdateFileSystemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFileSystemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystem = output.fileSystem } else { @@ -18576,9 +18506,8 @@ public enum UpdateSnapshotOutputError: Swift.Error, Swift.Equatable { extension UpdateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -18736,9 +18665,8 @@ public enum UpdateStorageVirtualMachineOutputError: Swift.Error, Swift.Equatable extension UpdateStorageVirtualMachineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStorageVirtualMachineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.storageVirtualMachine = output.storageVirtualMachine } else { @@ -18938,9 +18866,8 @@ public enum UpdateVolumeOutputError: Swift.Error, Swift.Equatable { extension UpdateVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volume = output.volume } else { @@ -19298,9 +19225,8 @@ extension FSxClientTypes { extension VolumeNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VolumeNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19314,7 +19240,7 @@ extension VolumeNotFound { } /// No Amazon FSx volumes were found based upon the supplied parameters. -public struct VolumeNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VolumeNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSFinspace/FinspaceClient.swift b/Sources/Services/AWSFinspace/FinspaceClient.swift index 80de3a7fca6..8678335df8d 100644 --- a/Sources/Services/AWSFinspace/FinspaceClient.swift +++ b/Sources/Services/AWSFinspace/FinspaceClient.swift @@ -208,6 +208,7 @@ extension FinspaceClient: FinspaceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension FinspaceClient: FinspaceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension FinspaceClient: FinspaceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension FinspaceClient: FinspaceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension FinspaceClient: FinspaceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension FinspaceClient: FinspaceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension FinspaceClient: FinspaceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension FinspaceClient: FinspaceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension FinspaceClient: FinspaceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +357,7 @@ extension FinspaceClient: FinspaceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +377,7 @@ extension FinspaceClient: FinspaceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -387,7 +393,7 @@ extension FinspaceClient: FinspaceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +413,7 @@ extension FinspaceClient: FinspaceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +427,7 @@ extension FinspaceClient: FinspaceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +447,7 @@ extension FinspaceClient: FinspaceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +463,7 @@ extension FinspaceClient: FinspaceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSFinspace/models/Models.swift b/Sources/Services/AWSFinspace/models/Models.swift index 184afdfa988..d629f32bdf4 100644 --- a/Sources/Services/AWSFinspace/models/Models.swift +++ b/Sources/Services/AWSFinspace/models/Models.swift @@ -12,7 +12,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -222,9 +222,8 @@ public enum CreateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentArn = output.environmentArn self.environmentId = output.environmentId @@ -743,9 +742,8 @@ public enum GetEnvironmentOutputError: Swift.Error, Swift.Equatable { extension GetEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environment = output.environment } else { @@ -784,9 +782,8 @@ extension GetEnvironmentOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -800,7 +797,7 @@ extension InternalServerException { } /// The request processing has failed because of an unknown error, exception or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -836,9 +833,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -852,7 +848,7 @@ extension InvalidRequestException { } /// The request is invalid. Something is wrong with the input to the request. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -888,9 +884,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -904,7 +899,7 @@ extension LimitExceededException { } /// A service limit or quota is exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1012,9 +1007,8 @@ public enum ListEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environments = output.environments self.nextToken = output.nextToken @@ -1129,9 +1123,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1179,9 +1172,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1195,7 +1187,7 @@ extension ResourceNotFoundException { } /// One or more resources can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1231,9 +1223,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1247,7 +1238,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1458,7 +1449,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1686,9 +1677,8 @@ public enum UpdateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension UpdateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environment = output.environment } else { @@ -1727,9 +1717,8 @@ extension UpdateEnvironmentOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1743,7 +1732,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSFinspacedata/FinspacedataClient.swift b/Sources/Services/AWSFinspacedata/FinspacedataClient.swift index ced75d978e5..a77d6d01baf 100644 --- a/Sources/Services/AWSFinspacedata/FinspacedataClient.swift +++ b/Sources/Services/AWSFinspacedata/FinspacedataClient.swift @@ -208,6 +208,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateUserToPermissionGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChangeset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataView") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -360,7 +364,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +384,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPermissionGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -403,7 +408,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -423,6 +428,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -446,7 +452,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -466,6 +472,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -487,7 +494,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +514,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePermissionGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -528,7 +536,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +556,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableUser") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -571,7 +580,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -591,6 +600,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateUserFromPermissionGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -612,7 +622,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -632,6 +642,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableUser") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -655,7 +666,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -675,6 +686,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChangeset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -687,7 +699,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -707,6 +719,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -719,7 +732,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -739,6 +752,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -751,7 +765,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -775,6 +789,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExternalDataViewAccessDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -787,7 +802,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -807,6 +822,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPermissionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -819,7 +835,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -839,6 +855,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProgrammaticAccessCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +869,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +889,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +902,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +922,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkingLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -919,7 +938,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -939,6 +958,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChangesets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +972,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +992,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataViews") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -985,7 +1006,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1005,6 +1026,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1018,7 +1040,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1038,6 +1060,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissionGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1051,7 +1074,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1071,6 +1094,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissionGroupsByUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1084,7 +1108,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1104,6 +1128,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1117,7 +1142,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1137,6 +1162,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsersByPermissionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1150,7 +1176,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1170,6 +1196,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetUserPassword") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1193,7 +1220,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1213,6 +1240,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChangeset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1236,7 +1264,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1256,6 +1284,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1279,7 +1308,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1299,6 +1328,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePermissionGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1322,7 +1352,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1342,6 +1372,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "finspace-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1365,7 +1396,7 @@ extension FinspacedataClient: FinspacedataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSFinspacedata/models/Models.swift b/Sources/Services/AWSFinspacedata/models/Models.swift index 838cc51ca5a..7c4c2b267bb 100644 --- a/Sources/Services/AWSFinspacedata/models/Models.swift +++ b/Sources/Services/AWSFinspacedata/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -746,9 +745,8 @@ extension FinspacedataClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -764,7 +762,7 @@ extension ConflictException { } /// The request conflicts with an existing resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -977,9 +975,8 @@ public enum CreateChangesetOutputError: Swift.Error, Swift.Equatable { extension CreateChangesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChangesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changesetId = output.changesetId self.datasetId = output.datasetId @@ -1202,9 +1199,8 @@ public enum CreateDataViewOutputError: Swift.Error, Swift.Equatable { extension CreateDataViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataViewId = output.dataViewId self.datasetId = output.datasetId @@ -1427,9 +1423,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetId = output.datasetId } else { @@ -1617,9 +1612,8 @@ public enum CreatePermissionGroupOutputError: Swift.Error, Swift.Equatable { extension CreatePermissionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePermissionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionGroupId = output.permissionGroupId } else { @@ -1824,9 +1818,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userId = output.userId } else { @@ -2638,9 +2631,8 @@ public enum DeleteDatasetOutputError: Swift.Error, Swift.Equatable { extension DeleteDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetId = output.datasetId } else { @@ -2762,9 +2754,8 @@ public enum DeletePermissionGroupOutputError: Swift.Error, Swift.Equatable { extension DeletePermissionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePermissionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionGroupId = output.permissionGroupId } else { @@ -2890,9 +2881,8 @@ public enum DisableUserOutputError: Swift.Error, Swift.Equatable { extension DisableUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userId = output.userId } else { @@ -3142,9 +3132,8 @@ public enum EnableUserOutputError: Swift.Error, Swift.Equatable { extension EnableUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userId = output.userId } else { @@ -3339,9 +3328,8 @@ public enum GetChangesetOutputError: Swift.Error, Swift.Equatable { extension GetChangesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChangesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeFromTimestamp = output.activeFromTimestamp self.activeUntilTimestamp = output.activeUntilTimestamp @@ -3595,9 +3583,8 @@ public enum GetDataViewOutputError: Swift.Error, Swift.Equatable { extension GetDataViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.asOfTimestamp = output.asOfTimestamp self.autoUpdate = output.autoUpdate @@ -3845,9 +3832,8 @@ public enum GetDatasetOutputError: Swift.Error, Swift.Equatable { extension GetDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.createTime = output.createTime @@ -4058,9 +4044,8 @@ public enum GetExternalDataViewAccessDetailsOutputError: Swift.Error, Swift.Equa extension GetExternalDataViewAccessDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExternalDataViewAccessDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.credentials = output.credentials self.s3Location = output.s3Location @@ -4170,9 +4155,8 @@ public enum GetPermissionGroupOutputError: Swift.Error, Swift.Equatable { extension GetPermissionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPermissionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionGroup = output.permissionGroup } else { @@ -4291,9 +4275,8 @@ public enum GetProgrammaticAccessCredentialsOutputError: Swift.Error, Swift.Equa extension GetProgrammaticAccessCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProgrammaticAccessCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.credentials = output.credentials self.durationInMinutes = output.durationInMinutes @@ -4409,9 +4392,8 @@ extension GetUserOutputResponse: Swift.CustomDebugStringConvertible { extension GetUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiAccess = output.apiAccess self.apiAccessPrincipalArn = output.apiAccessPrincipalArn @@ -4666,9 +4648,8 @@ public enum GetWorkingLocationOutputError: Swift.Error, Swift.Equatable { extension GetWorkingLocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkingLocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3Bucket = output.s3Bucket self.s3Path = output.s3Path @@ -4769,9 +4750,8 @@ extension FinspacedataClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4785,7 +4765,7 @@ extension InternalServerException { } /// The request processing has failed because of an unknown error, exception or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4821,9 +4801,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4837,7 +4816,7 @@ extension LimitExceededException { } /// A limit has exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4962,9 +4941,8 @@ public enum ListChangesetsOutputError: Swift.Error, Swift.Equatable { extension ListChangesetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChangesetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changesets = output.changesets self.nextToken = output.nextToken @@ -5110,9 +5088,8 @@ public enum ListDataViewsOutputError: Swift.Error, Swift.Equatable { extension ListDataViewsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataViewsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataViews = output.dataViews self.nextToken = output.nextToken @@ -5249,9 +5226,8 @@ public enum ListDatasetsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasets = output.datasets self.nextToken = output.nextToken @@ -5395,9 +5371,8 @@ public enum ListPermissionGroupsByUserOutputError: Swift.Error, Swift.Equatable extension ListPermissionGroupsByUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionGroupsByUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissionGroups = output.permissionGroups @@ -5530,9 +5505,8 @@ public enum ListPermissionGroupsOutputError: Swift.Error, Swift.Equatable { extension ListPermissionGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissionGroups = output.permissionGroups @@ -5675,9 +5649,8 @@ public enum ListUsersByPermissionGroupOutputError: Swift.Error, Swift.Equatable extension ListUsersByPermissionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersByPermissionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.users = output.users @@ -5810,9 +5783,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.users = output.users @@ -6284,9 +6256,8 @@ extension ResetUserPasswordOutputResponse: Swift.CustomDebugStringConvertible { extension ResetUserPasswordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetUserPasswordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.temporaryPassword = output.temporaryPassword self.userId = output.userId @@ -6335,9 +6306,8 @@ extension ResetUserPasswordOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -6353,7 +6323,7 @@ extension ResourceNotFoundException { } /// One or more resources can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6605,7 +6575,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6776,9 +6746,8 @@ public enum UpdateChangesetOutputError: Swift.Error, Swift.Equatable { extension UpdateChangesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChangesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changesetId = output.changesetId self.datasetId = output.datasetId @@ -6982,9 +6951,8 @@ public enum UpdateDatasetOutputError: Swift.Error, Swift.Equatable { extension UpdateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetId = output.datasetId } else { @@ -7178,9 +7146,8 @@ public enum UpdatePermissionGroupOutputError: Swift.Error, Swift.Equatable { extension UpdatePermissionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePermissionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionGroupId = output.permissionGroupId } else { @@ -7379,9 +7346,8 @@ public enum UpdateUserOutputError: Swift.Error, Swift.Equatable { extension UpdateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userId = output.userId } else { @@ -7801,9 +7767,8 @@ extension FinspacedataClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -7819,7 +7784,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSFirehose/FirehoseClient.swift b/Sources/Services/AWSFirehose/FirehoseClient.swift index 0ee5aeefa7f..c7833cf6873 100644 --- a/Sources/Services/AWSFirehose/FirehoseClient.swift +++ b/Sources/Services/AWSFirehose/FirehoseClient.swift @@ -217,6 +217,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeliveryStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -233,7 +234,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -253,6 +254,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeliveryStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -269,7 +271,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -289,6 +291,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDeliveryStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -305,7 +308,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -325,6 +328,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeliveryStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -341,7 +345,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -361,6 +365,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForDeliveryStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -377,7 +382,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -397,6 +402,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -413,7 +419,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -433,6 +439,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRecordBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -449,7 +456,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -469,6 +476,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDeliveryStreamEncryption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +493,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +513,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDeliveryStreamEncryption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +530,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -541,6 +550,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagDeliveryStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -557,7 +567,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -577,6 +587,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagDeliveryStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +604,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +624,7 @@ extension FirehoseClient: FirehoseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "firehose") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +641,7 @@ extension FirehoseClient: FirehoseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSFirehose/models/Models.swift b/Sources/Services/AWSFirehose/models/Models.swift index bc139378f2d..757cfcc34ee 100644 --- a/Sources/Services/AWSFirehose/models/Models.swift +++ b/Sources/Services/AWSFirehose/models/Models.swift @@ -1216,9 +1216,8 @@ extension FirehoseClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1232,7 +1231,7 @@ extension ConcurrentModificationException { } /// Another modification has already happened. Fetch VersionId again and use it to update the destination. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1594,9 +1593,8 @@ public enum CreateDeliveryStreamOutputError: Swift.Error, Swift.Equatable { extension CreateDeliveryStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeliveryStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliveryStreamARN = output.deliveryStreamARN } else { @@ -2355,9 +2353,8 @@ public enum DescribeDeliveryStreamOutputError: Swift.Error, Swift.Equatable { extension DescribeDeliveryStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeliveryStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliveryStreamDescription = output.deliveryStreamDescription } else { @@ -4561,9 +4558,8 @@ extension FirehoseClientTypes { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4577,7 +4573,7 @@ extension InvalidArgumentException { } /// The specified input parameter has a value that is not valid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4614,9 +4610,8 @@ extension InvalidArgumentExceptionBody: Swift.Decodable { extension InvalidKMSResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidKMSResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4632,7 +4627,7 @@ extension InvalidKMSResourceException { } /// Kinesis Data Firehose throws this exception when an attempt to put records or to start or stop delivery stream encryption fails. This happens when the KMS service throws one of the following exception types: AccessDeniedException, InvalidStateException, DisabledException, or NotFoundException. -public struct InvalidKMSResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKMSResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4845,9 +4840,8 @@ extension FirehoseClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4861,7 +4855,7 @@ extension LimitExceededException { } /// You have already reached the limit for a requested resource. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4996,9 +4990,8 @@ public enum ListDeliveryStreamsOutputError: Swift.Error, Swift.Equatable { extension ListDeliveryStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeliveryStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliveryStreamNames = output.deliveryStreamNames self.hasMoreDeliveryStreams = output.hasMoreDeliveryStreams @@ -5156,9 +5149,8 @@ public enum ListTagsForDeliveryStreamOutputError: Swift.Error, Swift.Equatable { extension ListTagsForDeliveryStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForDeliveryStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hasMoreTags = output.hasMoreTags self.tags = output.tags @@ -6059,9 +6051,8 @@ public enum PutRecordBatchOutputError: Swift.Error, Swift.Equatable { extension PutRecordBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRecordBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.encrypted = output.encrypted self.failedPutCount = output.failedPutCount @@ -6275,9 +6266,8 @@ public enum PutRecordOutputError: Swift.Error, Swift.Equatable { extension PutRecordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRecordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.encrypted = output.encrypted self.recordId = output.recordId @@ -6851,9 +6841,8 @@ extension FirehoseClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6867,7 +6856,7 @@ extension ResourceInUseException { } /// The resource is already in use and not available for this operation. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6904,9 +6893,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6920,7 +6908,7 @@ extension ResourceNotFoundException { } /// The specified resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7476,9 +7464,8 @@ extension FirehoseClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7492,7 +7479,7 @@ extension ServiceUnavailableException { } /// The service is unavailable. Back off and retry the operation. If you continue to see the exception, throughput limits for the delivery stream may have been exceeded. For more information about limits and how to request an increase, see [Amazon Kinesis Data Firehose Limits](https://docs.aws.amazon.com/firehose/latest/dev/limits.html). -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSFis/FisClient.swift b/Sources/Services/AWSFis/FisClient.swift index 00d282d03e3..4371bec3291 100644 --- a/Sources/Services/AWSFis/FisClient.swift +++ b/Sources/Services/AWSFis/FisClient.swift @@ -217,6 +217,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExperimentTemplate") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -240,7 +241,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -260,6 +261,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExperimentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -272,7 +274,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -292,6 +294,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +360,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExperimentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTargetResourceType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -400,7 +406,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -420,6 +426,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExperimentTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -466,7 +474,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -486,6 +494,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExperiments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -531,7 +541,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -551,6 +561,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargetResourceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +575,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +595,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startExperiment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -607,7 +619,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -627,6 +639,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +688,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -707,7 +722,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -727,6 +742,7 @@ extension FisClient: FisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "fis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateExperimentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -742,7 +758,7 @@ extension FisClient: FisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSFis/models/Models.swift b/Sources/Services/AWSFis/models/Models.swift index 06a436b3517..64cf582cf77 100644 --- a/Sources/Services/AWSFis/models/Models.swift +++ b/Sources/Services/AWSFis/models/Models.swift @@ -284,9 +284,8 @@ extension FisClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -300,7 +299,7 @@ extension ConflictException { } /// The request could not be processed because of a conflict. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -716,9 +715,8 @@ public enum CreateExperimentTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateExperimentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExperimentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentTemplate = output.experimentTemplate } else { @@ -999,9 +997,8 @@ public enum DeleteExperimentTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteExperimentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteExperimentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentTemplate = output.experimentTemplate } else { @@ -2955,9 +2952,8 @@ public enum GetActionOutputError: Swift.Error, Swift.Equatable { extension GetActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action } else { @@ -3051,9 +3047,8 @@ public enum GetExperimentOutputError: Swift.Error, Swift.Equatable { extension GetExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experiment = output.experiment } else { @@ -3147,9 +3142,8 @@ public enum GetExperimentTemplateOutputError: Swift.Error, Swift.Equatable { extension GetExperimentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExperimentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentTemplate = output.experimentTemplate } else { @@ -3243,9 +3237,8 @@ public enum GetTargetResourceTypeOutputError: Swift.Error, Swift.Equatable { extension GetTargetResourceTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTargetResourceTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.targetResourceType = output.targetResourceType } else { @@ -3354,9 +3347,8 @@ public enum ListActionsOutputError: Swift.Error, Swift.Equatable { extension ListActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actions = output.actions self.nextToken = output.nextToken @@ -3484,9 +3476,8 @@ public enum ListExperimentTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListExperimentTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExperimentTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentTemplates = output.experimentTemplates self.nextToken = output.nextToken @@ -3614,9 +3605,8 @@ public enum ListExperimentsOutputError: Swift.Error, Swift.Equatable { extension ListExperimentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExperimentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experiments = output.experiments self.nextToken = output.nextToken @@ -3725,9 +3715,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3845,9 +3834,8 @@ public enum ListTargetResourceTypesOutputError: Swift.Error, Swift.Equatable { extension ListTargetResourceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetResourceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.targetResourceTypes = output.targetResourceTypes @@ -3905,9 +3893,8 @@ extension ListTargetResourceTypesOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3921,7 +3908,7 @@ extension ResourceNotFoundException { } /// The specified resource cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3957,9 +3944,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3973,7 +3959,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded your service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4122,9 +4108,8 @@ public enum StartExperimentOutputError: Swift.Error, Swift.Equatable { extension StartExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experiment = output.experiment } else { @@ -4218,9 +4203,8 @@ public enum StopExperimentOutputError: Swift.Error, Swift.Equatable { extension StopExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experiment = output.experiment } else { @@ -4937,9 +4921,8 @@ public enum UpdateExperimentTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateExperimentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateExperimentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentTemplate = output.experimentTemplate } else { @@ -5159,9 +5142,8 @@ extension FisClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5175,7 +5157,7 @@ extension ValidationException { } /// The specified input is not valid, or fails to satisfy the constraints for the request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSForecast/ForecastClient.swift b/Sources/Services/AWSForecast/ForecastClient.swift index dcbfc78b495..2df30c4ac9d 100644 --- a/Sources/Services/AWSForecast/ForecastClient.swift +++ b/Sources/Services/AWSForecast/ForecastClient.swift @@ -226,6 +226,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAutoPredictor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -242,7 +243,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -271,6 +272,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +289,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +309,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatasetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -323,7 +326,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -343,6 +346,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatasetImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +363,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -423,6 +427,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExplainability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -439,7 +444,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -459,6 +464,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExplainabilityExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -475,7 +481,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -495,6 +501,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -511,7 +518,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -531,6 +538,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createForecastExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -547,7 +555,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -567,6 +575,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -583,7 +592,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -614,6 +623,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPredictor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -630,7 +640,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -650,6 +660,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPredictorBacktestExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -666,7 +677,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -686,6 +697,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWhatIfAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -702,7 +714,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -722,6 +734,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWhatIfForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -738,7 +751,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -758,6 +771,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWhatIfForecastExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -774,7 +788,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -794,6 +808,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -810,7 +825,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -830,6 +845,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatasetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -846,7 +862,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -866,6 +882,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatasetImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -882,7 +899,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +919,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExplainability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -918,7 +936,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -938,6 +956,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExplainabilityExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +973,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +993,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -990,7 +1010,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1010,6 +1030,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteForecastExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1026,7 +1047,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1046,6 +1067,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1062,7 +1084,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1082,6 +1104,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePredictor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1098,7 +1121,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1118,6 +1141,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePredictorBacktestExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1134,7 +1158,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1165,6 +1189,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourceTree") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1181,7 +1206,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1201,6 +1226,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWhatIfAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1217,7 +1243,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1237,6 +1263,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWhatIfForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1253,7 +1280,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1273,6 +1300,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWhatIfForecastExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1289,7 +1317,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1309,6 +1337,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutoPredictor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1325,7 +1354,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1351,6 +1380,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1367,7 +1397,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1395,6 +1425,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDatasetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1411,7 +1442,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1443,6 +1474,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDatasetImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1459,7 +1491,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1479,6 +1511,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExplainability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1495,7 +1528,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1515,6 +1548,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExplainabilityExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1531,7 +1565,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1561,6 +1595,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1577,7 +1612,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1605,6 +1640,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeForecastExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1621,7 +1657,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1655,6 +1691,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1671,7 +1708,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1703,6 +1740,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePredictor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1719,7 +1757,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1747,6 +1785,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePredictorBacktestExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1763,7 +1802,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1791,6 +1830,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWhatIfAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1807,7 +1847,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1835,6 +1875,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWhatIfForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1851,7 +1892,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1879,6 +1920,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWhatIfForecastExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1895,7 +1937,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1915,6 +1957,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccuracyMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1931,7 +1974,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1951,6 +1994,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1967,7 +2011,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1987,6 +2031,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2003,7 +2048,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2023,6 +2068,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2039,7 +2085,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2059,6 +2105,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExplainabilities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2075,7 +2122,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2095,6 +2142,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExplainabilityExports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2111,7 +2159,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2131,6 +2179,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listForecastExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2147,7 +2196,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2167,6 +2216,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listForecasts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2183,7 +2233,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2203,6 +2253,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMonitorEvaluations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2219,7 +2270,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2239,6 +2290,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMonitors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2255,7 +2307,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2275,6 +2327,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPredictorBacktestExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2291,7 +2344,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2311,6 +2364,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPredictors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2327,7 +2381,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2347,6 +2401,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2363,7 +2418,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2383,6 +2438,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWhatIfAnalyses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2399,7 +2455,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2419,6 +2475,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWhatIfForecastExports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2435,7 +2492,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2455,6 +2512,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWhatIfForecasts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2471,7 +2529,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2491,6 +2549,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2507,7 +2566,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2541,6 +2600,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2557,7 +2617,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2577,6 +2637,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2593,7 +2654,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2613,6 +2674,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2629,7 +2691,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2649,6 +2711,7 @@ extension ForecastClient: ForecastClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatasetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2665,7 +2728,7 @@ extension ForecastClient: ForecastClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSForecast/models/Models.swift b/Sources/Services/AWSForecast/models/Models.swift index 31afbee1ddb..96a689bca27 100644 --- a/Sources/Services/AWSForecast/models/Models.swift +++ b/Sources/Services/AWSForecast/models/Models.swift @@ -959,9 +959,8 @@ public enum CreateAutoPredictorOutputError: Swift.Error, Swift.Equatable { extension CreateAutoPredictorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAutoPredictorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.predictorArn = output.predictorArn } else { @@ -1153,9 +1152,8 @@ public enum CreateDatasetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetGroupArn = output.datasetGroupArn } else { @@ -1419,9 +1417,8 @@ public enum CreateDatasetImportJobOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetImportJobArn = output.datasetImportJobArn } else { @@ -1650,9 +1647,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetArn = output.datasetArn } else { @@ -1843,9 +1839,8 @@ public enum CreateExplainabilityExportOutputError: Swift.Error, Swift.Equatable extension CreateExplainabilityExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExplainabilityExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.explainabilityExportArn = output.explainabilityExportArn } else { @@ -2084,9 +2079,8 @@ public enum CreateExplainabilityOutputError: Swift.Error, Swift.Equatable { extension CreateExplainabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExplainabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.explainabilityArn = output.explainabilityArn } else { @@ -2279,9 +2273,8 @@ public enum CreateForecastExportJobOutputError: Swift.Error, Swift.Equatable { extension CreateForecastExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateForecastExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.forecastExportJobArn = output.forecastExportJobArn } else { @@ -2491,9 +2484,8 @@ public enum CreateForecastOutputError: Swift.Error, Swift.Equatable { extension CreateForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.forecastArn = output.forecastArn } else { @@ -2647,9 +2639,8 @@ public enum CreateMonitorOutputError: Swift.Error, Swift.Equatable { extension CreateMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitorArn = output.monitorArn } else { @@ -2840,9 +2831,8 @@ public enum CreatePredictorBacktestExportJobOutputError: Swift.Error, Swift.Equa extension CreatePredictorBacktestExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePredictorBacktestExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.predictorBacktestExportJobArn = output.predictorBacktestExportJobArn } else { @@ -3196,9 +3186,8 @@ public enum CreatePredictorOutputError: Swift.Error, Swift.Equatable { extension CreatePredictorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePredictorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.predictorArn = output.predictorArn } else { @@ -3370,9 +3359,8 @@ public enum CreateWhatIfAnalysisOutputError: Swift.Error, Swift.Equatable { extension CreateWhatIfAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWhatIfAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.whatIfAnalysisArn = output.whatIfAnalysisArn } else { @@ -3563,9 +3551,8 @@ public enum CreateWhatIfForecastExportOutputError: Swift.Error, Swift.Equatable extension CreateWhatIfForecastExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWhatIfForecastExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.whatIfForecastExportArn = output.whatIfForecastExportArn } else { @@ -3755,9 +3742,8 @@ public enum CreateWhatIfForecastOutputError: Swift.Error, Swift.Equatable { extension CreateWhatIfForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWhatIfForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.whatIfForecastArn = output.whatIfForecastArn } else { @@ -5551,9 +5537,8 @@ public enum DescribeAutoPredictorOutputError: Swift.Error, Swift.Equatable { extension DescribeAutoPredictorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutoPredictorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.dataConfig = output.dataConfig @@ -5889,9 +5874,8 @@ public enum DescribeDatasetGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.datasetArns = output.datasetArns @@ -6082,9 +6066,8 @@ public enum DescribeDatasetImportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.dataSize = output.dataSize @@ -6386,9 +6369,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.dataFrequency = output.dataFrequency @@ -6600,9 +6582,8 @@ public enum DescribeExplainabilityExportOutputError: Swift.Error, Swift.Equatabl extension DescribeExplainabilityExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExplainabilityExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.destination = output.destination @@ -6811,9 +6792,8 @@ public enum DescribeExplainabilityOutputError: Swift.Error, Swift.Equatable { extension DescribeExplainabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExplainabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.dataSource = output.dataSource @@ -7072,9 +7052,8 @@ public enum DescribeForecastExportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeForecastExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeForecastExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.destination = output.destination @@ -7286,9 +7265,8 @@ public enum DescribeForecastOutputError: Swift.Error, Swift.Equatable { extension DescribeForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.datasetGroupArn = output.datasetGroupArn @@ -7529,9 +7507,8 @@ public enum DescribeMonitorOutputError: Swift.Error, Swift.Equatable { extension DescribeMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseline = output.baseline self.creationTime = output.creationTime @@ -7742,9 +7719,8 @@ public enum DescribePredictorBacktestExportJobOutputError: Swift.Error, Swift.Eq extension DescribePredictorBacktestExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePredictorBacktestExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.destination = output.destination @@ -7953,9 +7929,8 @@ public enum DescribePredictorOutputError: Swift.Error, Swift.Equatable { extension DescribePredictorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePredictorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.algorithmArn = output.algorithmArn self.autoMLAlgorithmArns = output.autoMLAlgorithmArns @@ -8353,9 +8328,8 @@ public enum DescribeWhatIfAnalysisOutputError: Swift.Error, Swift.Equatable { extension DescribeWhatIfAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWhatIfAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.estimatedTimeRemainingInMinutes = output.estimatedTimeRemainingInMinutes @@ -8573,9 +8547,8 @@ public enum DescribeWhatIfForecastExportOutputError: Swift.Error, Swift.Equatabl extension DescribeWhatIfForecastExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWhatIfForecastExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.destination = output.destination @@ -8806,9 +8779,8 @@ public enum DescribeWhatIfForecastOutputError: Swift.Error, Swift.Equatable { extension DescribeWhatIfForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWhatIfForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.estimatedTimeRemainingInMinutes = output.estimatedTimeRemainingInMinutes @@ -10324,9 +10296,8 @@ public enum GetAccuracyMetricsOutputError: Swift.Error, Swift.Equatable { extension GetAccuracyMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccuracyMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoMLOverrideStrategy = output.autoMLOverrideStrategy self.isAutoPredictor = output.isAutoPredictor @@ -10597,9 +10568,8 @@ extension ForecastClientTypes { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10613,7 +10583,7 @@ extension InvalidInputException { } /// We can't process the request because it includes an invalid value or a value that exceeds the valid range. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10649,9 +10619,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10665,7 +10634,7 @@ extension InvalidNextTokenException { } /// The token is not valid. Tokens expire after 24 hours. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10701,9 +10670,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10717,7 +10685,7 @@ extension LimitExceededException { } /// The limit on the number of resources per account has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10834,9 +10802,8 @@ public enum ListDatasetGroupsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetGroups = output.datasetGroups self.nextToken = output.nextToken @@ -11010,9 +10977,8 @@ public enum ListDatasetImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetImportJobs = output.datasetImportJobs self.nextToken = output.nextToken @@ -11151,9 +11117,8 @@ public enum ListDatasetsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasets = output.datasets self.nextToken = output.nextToken @@ -11324,9 +11289,8 @@ public enum ListExplainabilitiesOutputError: Swift.Error, Swift.Equatable { extension ListExplainabilitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExplainabilitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.explainabilities = output.explainabilities self.nextToken = output.nextToken @@ -11497,9 +11461,8 @@ public enum ListExplainabilityExportsOutputError: Swift.Error, Swift.Equatable { extension ListExplainabilityExportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExplainabilityExportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.explainabilityExports = output.explainabilityExports self.nextToken = output.nextToken @@ -11673,9 +11636,8 @@ public enum ListForecastExportJobsOutputError: Swift.Error, Swift.Equatable { extension ListForecastExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListForecastExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.forecastExportJobs = output.forecastExportJobs self.nextToken = output.nextToken @@ -11849,9 +11811,8 @@ public enum ListForecastsOutputError: Swift.Error, Swift.Equatable { extension ListForecastsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListForecastsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.forecasts = output.forecasts self.nextToken = output.nextToken @@ -12040,9 +12001,8 @@ public enum ListMonitorEvaluationsOutputError: Swift.Error, Swift.Equatable { extension ListMonitorEvaluationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMonitorEvaluationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.predictorMonitorEvaluations = output.predictorMonitorEvaluations @@ -12216,9 +12176,8 @@ public enum ListMonitorsOutputError: Swift.Error, Swift.Equatable { extension ListMonitorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMonitorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitors = output.monitors self.nextToken = output.nextToken @@ -12389,9 +12348,8 @@ public enum ListPredictorBacktestExportJobsOutputError: Swift.Error, Swift.Equat extension ListPredictorBacktestExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPredictorBacktestExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.predictorBacktestExportJobs = output.predictorBacktestExportJobs @@ -12565,9 +12523,8 @@ public enum ListPredictorsOutputError: Swift.Error, Swift.Equatable { extension ListPredictorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPredictorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.predictors = output.predictors @@ -12697,9 +12654,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -12863,9 +12819,8 @@ public enum ListWhatIfAnalysesOutputError: Swift.Error, Swift.Equatable { extension ListWhatIfAnalysesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWhatIfAnalysesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.whatIfAnalyses = output.whatIfAnalyses @@ -13039,9 +12994,8 @@ public enum ListWhatIfForecastExportsOutputError: Swift.Error, Swift.Equatable { extension ListWhatIfForecastExportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWhatIfForecastExportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.whatIfForecastExports = output.whatIfForecastExports @@ -13215,9 +13169,8 @@ public enum ListWhatIfForecastsOutputError: Swift.Error, Swift.Equatable { extension ListWhatIfForecastsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWhatIfForecastsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.whatIfForecasts = output.whatIfForecasts @@ -14528,9 +14481,8 @@ extension ForecastClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14544,7 +14496,7 @@ extension ResourceAlreadyExistsException { } /// There is already a resource with this name. Try again with a different name. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14580,9 +14532,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14596,7 +14547,7 @@ extension ResourceInUseException { } /// The specified resource is in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14632,9 +14583,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14648,7 +14598,7 @@ extension ResourceNotFoundException { } /// We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSForecastquery/ForecastqueryClient.swift b/Sources/Services/AWSForecastquery/ForecastqueryClient.swift index 06d7ea97223..24311cad492 100644 --- a/Sources/Services/AWSForecastquery/ForecastqueryClient.swift +++ b/Sources/Services/AWSForecastquery/ForecastqueryClient.swift @@ -208,6 +208,7 @@ extension ForecastqueryClient: ForecastqueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "queryForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ForecastqueryClient: ForecastqueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ForecastqueryClient: ForecastqueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "forecast") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "queryWhatIfForecast") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ForecastqueryClient: ForecastqueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSForecastquery/models/Models.swift b/Sources/Services/AWSForecastquery/models/Models.swift index 07fa8ef29c1..78e86bc70da 100644 --- a/Sources/Services/AWSForecastquery/models/Models.swift +++ b/Sources/Services/AWSForecastquery/models/Models.swift @@ -115,9 +115,8 @@ extension ForecastqueryClientTypes { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -131,7 +130,7 @@ extension InvalidInputException { } /// The value is invalid or is too long. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -167,9 +166,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -183,7 +181,7 @@ extension InvalidNextTokenException { } /// The token is not valid. Tokens expire after 24 hours. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -219,9 +217,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -235,7 +232,7 @@ extension LimitExceededException { } /// The limit on the number of requests per second has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -410,9 +407,8 @@ public enum QueryForecastOutputError: Swift.Error, Swift.Equatable { extension QueryForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.forecast = output.forecast } else { @@ -590,9 +586,8 @@ public enum QueryWhatIfForecastOutputError: Swift.Error, Swift.Equatable { extension QueryWhatIfForecastOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryWhatIfForecastOutputResponseBody = try responseDecoder.decode(responseBody: data) self.forecast = output.forecast } else { @@ -631,9 +626,8 @@ extension QueryWhatIfForecastOutputResponseBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -647,7 +641,7 @@ extension ResourceInUseException { } /// The specified resource is in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -683,9 +677,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -699,7 +692,7 @@ extension ResourceNotFoundException { } /// We can't find that resource. Check the information that you've provided and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSFraudDetector/FraudDetectorClient.swift b/Sources/Services/AWSFraudDetector/FraudDetectorClient.swift index 8b6fe40f899..24c4b0f9940 100644 --- a/Sources/Services/AWSFraudDetector/FraudDetectorClient.swift +++ b/Sources/Services/AWSFraudDetector/FraudDetectorClient.swift @@ -208,6 +208,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateVariable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetVariable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelBatchImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelBatchPredictionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBatchImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBatchPredictionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDetectorVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVariable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBatchImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBatchPredictionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDetectorVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEntityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventsByEventType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExternalModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLabel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOutcome") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVariable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBatchImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBatchPredictionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeleteEventsByEventTypeStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDetectorVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDetectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEntityTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventPrediction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventPredictionMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExternalModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKMSEncryptionKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getListElements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1836,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getListsMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1873,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModelVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1890,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1864,6 +1910,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1880,7 +1927,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1900,6 +1947,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOutcomes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1916,7 +1964,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1936,6 +1984,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +2001,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2021,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVariables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2038,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2008,6 +2058,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventPredictions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2024,7 +2075,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2044,6 +2095,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2060,7 +2112,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2132,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2096,7 +2149,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2116,6 +2169,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEntityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2132,7 +2186,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2152,6 +2206,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEventType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2223,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2243,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putExternalModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2204,7 +2260,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2224,6 +2280,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putKMSEncryptionKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2240,7 +2297,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2260,6 +2317,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLabel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2276,7 +2334,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2296,6 +2354,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putOutcome") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2312,7 +2371,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2332,6 +2391,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2348,7 +2408,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2368,6 +2428,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2384,7 +2445,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2404,6 +2465,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2420,7 +2482,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2440,6 +2502,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDetectorVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2456,7 +2519,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2476,6 +2539,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDetectorVersionMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2492,7 +2556,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2512,6 +2576,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDetectorVersionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2528,7 +2593,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2548,6 +2613,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventLabel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2564,7 +2630,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2584,6 +2650,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2600,7 +2667,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2620,6 +2687,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2636,7 +2704,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2656,6 +2724,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateModelVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2672,7 +2741,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2698,6 +2767,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateModelVersionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2714,7 +2784,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2734,6 +2804,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRuleMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2750,7 +2821,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2770,6 +2841,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRuleVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2786,7 +2858,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2806,6 +2878,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "frauddetector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVariable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2822,7 +2895,7 @@ extension FraudDetectorClient: FraudDetectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSFraudDetector/models/Models.swift b/Sources/Services/AWSFraudDetector/models/Models.swift index a9d0a355a8a..68725ea551e 100644 --- a/Sources/Services/AWSFraudDetector/models/Models.swift +++ b/Sources/Services/AWSFraudDetector/models/Models.swift @@ -161,9 +161,8 @@ extension FraudDetectorClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -177,7 +176,7 @@ extension AccessDeniedException { } /// An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as PutExternalModel, that specifies a role that is not in your account. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -688,9 +687,8 @@ public enum BatchCreateVariableOutputError: Swift.Error, Swift.Equatable { extension BatchCreateVariableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateVariableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -881,9 +879,8 @@ public enum BatchGetVariableOutputError: Swift.Error, Swift.Equatable { extension BatchGetVariableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetVariableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.variables = output.variables @@ -1456,9 +1453,8 @@ public struct CancelBatchPredictionJobOutputResponse: Swift.Equatable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1472,7 +1468,7 @@ extension ConflictException { } /// An exception indicating there was a conflict during a delete operation. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2061,9 +2057,8 @@ public enum CreateDetectorVersionOutputError: Swift.Error, Swift.Equatable { extension CreateDetectorVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDetectorVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorId = output.detectorId self.detectorVersionId = output.detectorVersionId @@ -2593,9 +2588,8 @@ public enum CreateModelVersionOutputError: Swift.Error, Swift.Equatable { extension CreateModelVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelId = output.modelId self.modelType = output.modelType @@ -2845,9 +2839,8 @@ public enum CreateRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule } else { @@ -3931,9 +3924,8 @@ public enum DeleteEventsByEventTypeOutputError: Swift.Error, Swift.Equatable { extension DeleteEventsByEventTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEventsByEventTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTypeName = output.eventTypeName self.eventsDeletionStatus = output.eventsDeletionStatus @@ -4825,9 +4817,8 @@ public enum DescribeDetectorOutputError: Swift.Error, Swift.Equatable { extension DescribeDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.detectorId = output.detectorId @@ -5030,9 +5021,8 @@ public enum DescribeModelVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeModelVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelVersionDetails = output.modelVersionDetails self.nextToken = output.nextToken @@ -6679,9 +6669,8 @@ public enum GetBatchImportJobsOutputError: Swift.Error, Swift.Equatable { extension GetBatchImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBatchImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchImports = output.batchImports self.nextToken = output.nextToken @@ -6840,9 +6829,8 @@ public enum GetBatchPredictionJobsOutputError: Swift.Error, Swift.Equatable { extension GetBatchPredictionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBatchPredictionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchPredictions = output.batchPredictions self.nextToken = output.nextToken @@ -6978,9 +6966,8 @@ public enum GetDeleteEventsByEventTypeStatusOutputError: Swift.Error, Swift.Equa extension GetDeleteEventsByEventTypeStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeleteEventsByEventTypeStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTypeName = output.eventTypeName self.eventsDeletionStatus = output.eventsDeletionStatus @@ -7120,9 +7107,8 @@ public enum GetDetectorVersionOutputError: Swift.Error, Swift.Equatable { extension GetDetectorVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDetectorVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdTime = output.createdTime @@ -7389,9 +7375,8 @@ public enum GetDetectorsOutputError: Swift.Error, Swift.Equatable { extension GetDetectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDetectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectors = output.detectors self.nextToken = output.nextToken @@ -7550,9 +7535,8 @@ public enum GetEntityTypesOutputError: Swift.Error, Swift.Equatable { extension GetEntityTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEntityTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entityTypes = output.entityTypes self.nextToken = output.nextToken @@ -7701,9 +7685,8 @@ public enum GetEventOutputError: Swift.Error, Swift.Equatable { extension GetEventOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventOutputResponseBody = try responseDecoder.decode(responseBody: data) self.event = output.event } else { @@ -8050,9 +8033,8 @@ public enum GetEventPredictionMetadataOutputError: Swift.Error, Swift.Equatable extension GetEventPredictionMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventPredictionMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorId = output.detectorId self.detectorVersionId = output.detectorVersionId @@ -8310,9 +8292,8 @@ public enum GetEventPredictionOutputError: Swift.Error, Swift.Equatable { extension GetEventPredictionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventPredictionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.externalModelOutputs = output.externalModelOutputs self.modelScores = output.modelScores @@ -8499,9 +8480,8 @@ public enum GetEventTypesOutputError: Swift.Error, Swift.Equatable { extension GetEventTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTypes = output.eventTypes self.nextToken = output.nextToken @@ -8660,9 +8640,8 @@ public enum GetExternalModelsOutputError: Swift.Error, Swift.Equatable { extension GetExternalModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExternalModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.externalModels = output.externalModels self.nextToken = output.nextToken @@ -8776,9 +8755,8 @@ public enum GetKMSEncryptionKeyOutputError: Swift.Error, Swift.Equatable { extension GetKMSEncryptionKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetKMSEncryptionKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.kmsKey = output.kmsKey } else { @@ -8918,9 +8896,8 @@ public enum GetLabelsOutputError: Swift.Error, Swift.Equatable { extension GetLabelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLabelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labels = output.labels self.nextToken = output.nextToken @@ -9080,9 +9057,8 @@ public enum GetListElementsOutputError: Swift.Error, Swift.Equatable { extension GetListElementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetListElementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.elements = output.elements self.nextToken = output.nextToken @@ -9241,9 +9217,8 @@ public enum GetListsMetadataOutputError: Swift.Error, Swift.Equatable { extension GetListsMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetListsMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lists = output.lists self.nextToken = output.nextToken @@ -9405,9 +9380,8 @@ public enum GetModelVersionOutputError: Swift.Error, Swift.Equatable { extension GetModelVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.externalEventsDetail = output.externalEventsDetail @@ -9657,9 +9631,8 @@ public enum GetModelsOutputError: Swift.Error, Swift.Equatable { extension GetModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.models = output.models self.nextToken = output.nextToken @@ -9818,9 +9791,8 @@ public enum GetOutcomesOutputError: Swift.Error, Swift.Equatable { extension GetOutcomesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOutcomesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.outcomes = output.outcomes @@ -10004,9 +9976,8 @@ public enum GetRulesOutputError: Swift.Error, Swift.Equatable { extension GetRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.ruleDetails = output.ruleDetails @@ -10165,9 +10136,8 @@ public enum GetVariablesOutputError: Swift.Error, Swift.Equatable { extension GetVariablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVariablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.variables = output.variables @@ -10383,9 +10353,8 @@ extension FraudDetectorClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10399,7 +10368,7 @@ extension InternalServerException { } /// An exception indicating an internal server error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10800,9 +10769,8 @@ public enum ListEventPredictionsOutputError: Swift.Error, Swift.Equatable { extension ListEventPredictionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventPredictionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventPredictionSummaries = output.eventPredictionSummaries self.nextToken = output.nextToken @@ -10960,9 +10928,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -13348,9 +13315,8 @@ public struct PutOutcomeOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13364,7 +13330,7 @@ extension ResourceNotFoundException { } /// An exception indicating the specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13401,9 +13367,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13417,7 +13382,7 @@ extension ResourceUnavailableException { } /// An exception indicating that the attached customer-owned (external) model threw an exception when Amazon Fraud Detector invoked the model. -public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14257,9 +14222,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14273,7 +14237,7 @@ extension ThrottlingException { } /// An exception indicating a throttling error. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15813,9 +15777,8 @@ public enum UpdateModelVersionOutputError: Swift.Error, Swift.Equatable { extension UpdateModelVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateModelVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelId = output.modelId self.modelType = output.modelType @@ -16288,9 +16251,8 @@ public enum UpdateRuleVersionOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule } else { @@ -16455,9 +16417,8 @@ public struct UpdateVariableOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16471,7 +16432,7 @@ extension ValidationException { } /// An exception indicating a specified value is not allowed. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSGameLift/GameLiftClient.swift b/Sources/Services/AWSGameLift/GameLiftClient.swift index 58ef08f2d73..3a9bbb76d0f 100644 --- a/Sources/Services/AWSGameLift/GameLiftClient.swift +++ b/Sources/Services/AWSGameLift/GameLiftClient.swift @@ -208,6 +208,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptMatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "claimGameServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -267,7 +269,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -287,6 +289,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -303,7 +306,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -330,6 +333,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBuild") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -346,7 +350,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -366,6 +370,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -382,7 +387,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -402,6 +407,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleetLocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +424,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -445,6 +451,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGameServerGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -461,7 +468,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +495,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGameSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -504,7 +512,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -524,6 +532,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGameSessionQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -540,7 +549,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -560,6 +569,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -576,7 +586,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -596,6 +606,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMatchmakingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -612,7 +623,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -638,6 +649,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMatchmakingRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -654,7 +666,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -674,6 +686,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPlayerSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -690,7 +703,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -710,6 +723,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPlayerSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -726,7 +740,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -753,6 +767,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createScript") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -769,7 +784,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -789,6 +804,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcPeeringAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -805,7 +821,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -825,6 +841,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcPeeringConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -841,7 +858,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -861,6 +878,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -877,7 +895,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -897,6 +915,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBuild") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -913,7 +932,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -933,6 +952,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -949,7 +969,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -969,6 +989,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleetLocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -985,7 +1006,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1014,6 +1035,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGameServerGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1030,7 +1052,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1050,6 +1072,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGameSessionQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1066,7 +1089,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1086,6 +1109,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1102,7 +1126,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1146,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMatchmakingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1138,7 +1163,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1185,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMatchmakingRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1202,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1222,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1212,7 +1239,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1232,6 +1259,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScript") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1276,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1296,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcPeeringAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1284,7 +1313,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1304,6 +1333,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcPeeringConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1320,7 +1350,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1370,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterCompute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1387,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1407,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterGameServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1392,7 +1424,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1412,6 +1444,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1461,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1481,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBuild") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1464,7 +1498,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1484,6 +1518,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCompute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1500,7 +1535,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1536,6 +1571,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEC2InstanceLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1552,7 +1588,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1579,6 +1615,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1595,7 +1632,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1622,6 +1659,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetCapacity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1638,7 +1676,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1658,6 +1696,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1674,7 +1713,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1701,6 +1740,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetLocationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1717,7 +1757,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1737,6 +1777,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetLocationCapacity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1753,7 +1794,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1773,6 +1814,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetLocationUtilization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1789,7 +1831,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1816,6 +1858,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetPortSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1832,7 +1875,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1859,6 +1902,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetUtilization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1875,7 +1919,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1895,6 +1939,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGameServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1911,7 +1956,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1931,6 +1976,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGameServerGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1947,7 +1993,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1967,6 +2013,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGameServerInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1983,7 +2030,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2012,6 +2059,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGameSessionDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2028,7 +2076,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2048,6 +2096,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGameSessionPlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2064,7 +2113,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2084,6 +2133,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGameSessionQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2100,7 +2150,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2129,6 +2179,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGameSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2145,7 +2196,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2174,6 +2225,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2190,7 +2242,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2210,6 +2262,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMatchmaking") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2226,7 +2279,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2246,6 +2299,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMatchmakingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2262,7 +2316,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2284,6 +2338,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMatchmakingRuleSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2300,7 +2355,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2329,6 +2384,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePlayerSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2345,7 +2401,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2365,6 +2421,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRuntimeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2381,7 +2438,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2401,6 +2458,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScalingPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2417,7 +2475,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2437,6 +2495,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScript") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2453,7 +2512,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2473,6 +2532,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcPeeringAuthorizations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2489,7 +2549,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2509,6 +2569,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcPeeringConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2525,7 +2586,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2545,6 +2606,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComputeAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2561,7 +2623,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2581,6 +2643,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComputeAuthToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2597,7 +2660,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2617,6 +2680,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGameSessionLogUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2633,7 +2697,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2653,6 +2717,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2669,7 +2734,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2689,6 +2754,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2705,7 +2771,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2725,6 +2791,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBuilds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2741,7 +2808,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2761,6 +2828,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCompute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2777,7 +2845,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2806,6 +2874,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2822,7 +2891,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2842,6 +2911,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGameServerGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2858,7 +2928,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2878,6 +2948,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGameServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2894,7 +2965,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2914,6 +2985,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2930,7 +3002,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2950,6 +3022,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listScripts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2966,7 +3039,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3003,6 +3076,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3019,7 +3093,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3039,6 +3113,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putScalingPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3055,7 +3130,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3079,6 +3154,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerCompute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3095,7 +3171,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3115,6 +3191,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerGameServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3131,7 +3208,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3151,6 +3228,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "requestUploadCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3167,7 +3245,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3187,6 +3265,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resolveAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3203,7 +3282,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3223,6 +3302,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeGameServerGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3239,7 +3319,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3283,6 +3363,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchGameSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3299,7 +3380,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3326,6 +3407,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFleetActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3342,7 +3424,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3373,6 +3455,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startGameSessionPlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3389,7 +3472,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3409,6 +3492,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMatchBackfill") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3425,7 +3509,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3445,6 +3529,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMatchmaking") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3461,7 +3546,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3488,6 +3573,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopFleetActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3504,7 +3590,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3524,6 +3610,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopGameSessionPlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3540,7 +3627,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3560,6 +3647,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopMatchmaking") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3576,7 +3664,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3601,6 +3689,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "suspendGameServerGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3617,7 +3706,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3654,6 +3743,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3670,7 +3760,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3707,6 +3797,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3723,7 +3814,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3743,6 +3834,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3759,7 +3851,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3779,6 +3871,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBuild") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3795,7 +3888,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3815,6 +3908,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFleetAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3831,7 +3925,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3865,6 +3959,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFleetCapacity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3881,7 +3976,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3901,6 +3996,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFleetPortSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3917,7 +4013,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3946,6 +4042,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGameServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3962,7 +4059,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3982,6 +4079,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGameServerGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3998,7 +4096,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4018,6 +4116,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGameSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4034,7 +4133,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4054,6 +4153,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGameSessionQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4070,7 +4170,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4090,6 +4190,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMatchmakingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4106,7 +4207,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4126,6 +4227,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRuntimeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4142,7 +4244,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4162,6 +4264,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateScript") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4178,7 +4281,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4200,6 +4303,7 @@ extension GameLiftClient: GameLiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamelift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateMatchmakingRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4216,7 +4320,7 @@ extension GameLiftClient: GameLiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGameLift/models/Models.swift b/Sources/Services/AWSGameLift/models/Models.swift index 6bf70cc3128..1d7a30de3a1 100644 --- a/Sources/Services/AWSGameLift/models/Models.swift +++ b/Sources/Services/AWSGameLift/models/Models.swift @@ -840,9 +840,8 @@ public enum ClaimGameServerOutputError: Swift.Error, Swift.Equatable { extension ClaimGameServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClaimGameServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServer = output.gameServer } else { @@ -1131,9 +1130,8 @@ extension GameLiftClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1147,7 +1145,7 @@ extension ConflictException { } /// The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1312,9 +1310,8 @@ public enum CreateAliasOutputError: Swift.Error, Swift.Equatable { extension CreateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias } else { @@ -1507,9 +1504,8 @@ extension CreateBuildOutputResponse: Swift.CustomDebugStringConvertible { extension CreateBuildOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBuildOutputResponseBody = try responseDecoder.decode(responseBody: data) self.build = output.build self.storageLocation = output.storageLocation @@ -2039,9 +2035,8 @@ public enum CreateFleetLocationsOutputError: Swift.Error, Swift.Equatable { extension CreateFleetLocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetLocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -2145,9 +2140,8 @@ public enum CreateFleetOutputError: Swift.Error, Swift.Equatable { extension CreateFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetAttributes = output.fleetAttributes self.locationStates = output.locationStates @@ -2450,9 +2444,8 @@ public enum CreateGameServerGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGameServerGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGameServerGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServerGroup = output.gameServerGroup } else { @@ -2701,9 +2694,8 @@ public enum CreateGameSessionOutputError: Swift.Error, Swift.Equatable { extension CreateGameSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGameSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSession = output.gameSession } else { @@ -2954,9 +2946,8 @@ public enum CreateGameSessionQueueOutputError: Swift.Error, Swift.Equatable { extension CreateGameSessionQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGameSessionQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessionQueue = output.gameSessionQueue } else { @@ -3099,9 +3090,8 @@ public enum CreateLocationOutputError: Swift.Error, Swift.Equatable { extension CreateLocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.location = output.location } else { @@ -3431,9 +3421,8 @@ public enum CreateMatchmakingConfigurationOutputError: Swift.Error, Swift.Equata extension CreateMatchmakingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMatchmakingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -3587,9 +3576,8 @@ public enum CreateMatchmakingRuleSetOutputError: Swift.Error, Swift.Equatable { extension CreateMatchmakingRuleSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMatchmakingRuleSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleSet = output.ruleSet } else { @@ -3736,9 +3724,8 @@ public enum CreatePlayerSessionOutputError: Swift.Error, Swift.Equatable { extension CreatePlayerSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePlayerSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.playerSession = output.playerSession } else { @@ -3908,9 +3895,8 @@ public enum CreatePlayerSessionsOutputError: Swift.Error, Swift.Equatable { extension CreatePlayerSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePlayerSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.playerSessions = output.playerSessions } else { @@ -4095,9 +4081,8 @@ public enum CreateScriptOutputError: Swift.Error, Swift.Equatable { extension CreateScriptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScriptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.script = output.script } else { @@ -4225,9 +4210,8 @@ public enum CreateVpcPeeringAuthorizationOutputError: Swift.Error, Swift.Equatab extension CreateVpcPeeringAuthorizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcPeeringAuthorizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcPeeringAuthorization = output.vpcPeeringAuthorization } else { @@ -4705,9 +4689,8 @@ public enum DeleteFleetLocationsOutputError: Swift.Error, Swift.Equatable { extension DeleteFleetLocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFleetLocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -4911,9 +4894,8 @@ public enum DeleteGameServerGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteGameServerGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGameServerGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServerGroup = output.gameServerGroup } else { @@ -5961,9 +5943,8 @@ public enum DescribeAliasOutputError: Swift.Error, Swift.Equatable { extension DescribeAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias } else { @@ -6078,9 +6059,8 @@ public enum DescribeBuildOutputError: Swift.Error, Swift.Equatable { extension DescribeBuildOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBuildOutputResponseBody = try responseDecoder.decode(responseBody: data) self.build = output.build } else { @@ -6208,9 +6188,8 @@ public enum DescribeComputeOutputError: Swift.Error, Swift.Equatable { extension DescribeComputeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeComputeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compute = output.compute } else { @@ -6336,9 +6315,8 @@ public enum DescribeEC2InstanceLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeEC2InstanceLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEC2InstanceLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ec2InstanceLimits = output.ec2InstanceLimits } else { @@ -6497,9 +6475,8 @@ public enum DescribeFleetAttributesOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetAttributes = output.fleetAttributes self.nextToken = output.nextToken @@ -6668,9 +6645,8 @@ public enum DescribeFleetCapacityOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetCapacityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetCapacityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetCapacity = output.fleetCapacity self.nextToken = output.nextToken @@ -6852,9 +6828,8 @@ public enum DescribeFleetEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -7038,9 +7013,8 @@ public enum DescribeFleetLocationAttributesOutputError: Swift.Error, Swift.Equat extension DescribeFleetLocationAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetLocationAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -7209,9 +7183,8 @@ public enum DescribeFleetLocationCapacityOutputError: Swift.Error, Swift.Equatab extension DescribeFleetLocationCapacityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetLocationCapacityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetCapacity = output.fleetCapacity } else { @@ -7341,9 +7314,8 @@ public enum DescribeFleetLocationUtilizationOutputError: Swift.Error, Swift.Equa extension DescribeFleetLocationUtilizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetLocationUtilizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetUtilization = output.fleetUtilization } else { @@ -7472,9 +7444,8 @@ public enum DescribeFleetPortSettingsOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetPortSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetPortSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -7673,9 +7644,8 @@ public enum DescribeFleetUtilizationOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetUtilizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetUtilizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetUtilization = output.fleetUtilization self.nextToken = output.nextToken @@ -7809,9 +7779,8 @@ public enum DescribeGameServerGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeGameServerGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGameServerGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServerGroup = output.gameServerGroup } else { @@ -8035,9 +8004,8 @@ public enum DescribeGameServerInstancesOutputError: Swift.Error, Swift.Equatable extension DescribeGameServerInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGameServerInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServerInstances = output.gameServerInstances self.nextToken = output.nextToken @@ -8123,9 +8091,8 @@ public enum DescribeGameServerOutputError: Swift.Error, Swift.Equatable { extension DescribeGameServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGameServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServer = output.gameServer } else { @@ -8315,9 +8282,8 @@ public enum DescribeGameSessionDetailsOutputError: Swift.Error, Swift.Equatable extension DescribeGameSessionDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGameSessionDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessionDetails = output.gameSessionDetails self.nextToken = output.nextToken @@ -8451,9 +8417,8 @@ public enum DescribeGameSessionPlacementOutputError: Swift.Error, Swift.Equatabl extension DescribeGameSessionPlacementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGameSessionPlacementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessionPlacement = output.gameSessionPlacement } else { @@ -8603,9 +8568,8 @@ public enum DescribeGameSessionQueuesOutputError: Swift.Error, Swift.Equatable { extension DescribeGameSessionQueuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGameSessionQueuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessionQueues = output.gameSessionQueues self.nextToken = output.nextToken @@ -8814,9 +8778,8 @@ public enum DescribeGameSessionsOutputError: Swift.Error, Swift.Equatable { extension DescribeGameSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGameSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessions = output.gameSessions self.nextToken = output.nextToken @@ -9000,9 +8963,8 @@ public enum DescribeInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.nextToken = output.nextToken @@ -9181,9 +9143,8 @@ public enum DescribeMatchmakingConfigurationsOutputError: Swift.Error, Swift.Equ extension DescribeMatchmakingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMatchmakingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurations = output.configurations self.nextToken = output.nextToken @@ -9327,9 +9288,8 @@ public enum DescribeMatchmakingOutputError: Swift.Error, Swift.Equatable { extension DescribeMatchmakingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMatchmakingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ticketList = output.ticketList } else { @@ -9488,9 +9448,8 @@ public enum DescribeMatchmakingRuleSetsOutputError: Swift.Error, Swift.Equatable extension DescribeMatchmakingRuleSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMatchmakingRuleSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.ruleSets = output.ruleSets @@ -9692,9 +9651,8 @@ public enum DescribePlayerSessionsOutputError: Swift.Error, Swift.Equatable { extension DescribePlayerSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePlayerSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.playerSessions = output.playerSessions @@ -9828,9 +9786,8 @@ public enum DescribeRuntimeConfigurationOutputError: Swift.Error, Swift.Equatabl extension DescribeRuntimeConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRuntimeConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runtimeConfiguration = output.runtimeConfiguration } else { @@ -10009,9 +9966,8 @@ public enum DescribeScalingPoliciesOutputError: Swift.Error, Swift.Equatable { extension DescribeScalingPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScalingPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scalingPolicies = output.scalingPolicies @@ -10145,9 +10101,8 @@ public enum DescribeScriptOutputError: Swift.Error, Swift.Equatable { extension DescribeScriptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScriptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.script = output.script } else { @@ -10240,9 +10195,8 @@ public enum DescribeVpcPeeringAuthorizationsOutputError: Swift.Error, Swift.Equa extension DescribeVpcPeeringAuthorizationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcPeeringAuthorizationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcPeeringAuthorizations = output.vpcPeeringAuthorizations } else { @@ -10365,9 +10319,8 @@ public enum DescribeVpcPeeringConnectionsOutputError: Swift.Error, Swift.Equatab extension DescribeVpcPeeringConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcPeeringConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcPeeringConnections = output.vpcPeeringConnections } else { @@ -11763,9 +11716,8 @@ extension GameLiftClientTypes { extension FleetCapacityExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FleetCapacityExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11779,7 +11731,7 @@ extension FleetCapacityExceededException { } /// The specified fleet has no available instances to fulfill a CreateGameSession request. Clients can retry such requests immediately or after a waiting period. -public struct FleetCapacityExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FleetCapacityExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13451,9 +13403,8 @@ extension GameLiftClientTypes { extension GameSessionFullException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GameSessionFullExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13467,7 +13418,7 @@ extension GameSessionFullException { } /// The game instance is currently full and cannot allow the requested player(s) to join. Clients can retry such requests immediately or after a waiting period. -public struct GameSessionFullException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GameSessionFullException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14140,9 +14091,8 @@ extension GetComputeAccessOutputResponse: Swift.CustomDebugStringConvertible { extension GetComputeAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComputeAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computeArn = output.computeArn self.computeName = output.computeName @@ -14310,9 +14260,8 @@ public enum GetComputeAuthTokenOutputError: Swift.Error, Swift.Equatable { extension GetComputeAuthTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComputeAuthTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authToken = output.authToken self.computeArn = output.computeArn @@ -14477,9 +14426,8 @@ public enum GetGameSessionLogUrlOutputError: Swift.Error, Swift.Equatable { extension GetGameSessionLogUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGameSessionLogUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preSignedUrl = output.preSignedUrl } else { @@ -14607,9 +14555,8 @@ public enum GetInstanceAccessOutputError: Swift.Error, Swift.Equatable { extension GetInstanceAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceAccess = output.instanceAccess } else { @@ -14648,9 +14595,8 @@ extension GetInstanceAccessOutputResponseBody: Swift.Decodable { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14664,7 +14610,7 @@ extension IdempotentParameterMismatchException { } /// A game session with this custom ID string already exists in this fleet. Resolve this conflict before retrying this request. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15050,9 +14996,8 @@ extension GameLiftClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15066,7 +15011,7 @@ extension InternalServiceException { } /// The service encountered an unrecoverable internal failure while processing the request. Clients can retry such requests immediately or after a waiting period. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15102,9 +15047,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidFleetStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFleetStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15118,7 +15062,7 @@ extension InvalidFleetStatusException { } /// The requested operation would cause a conflict with the current state of a resource associated with the request and/or the fleet. Resolve the conflict before retrying. -public struct InvalidFleetStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFleetStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15154,9 +15098,8 @@ extension InvalidFleetStatusExceptionBody: Swift.Decodable { extension InvalidGameSessionStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidGameSessionStatusExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15170,7 +15113,7 @@ extension InvalidGameSessionStatusException { } /// The requested operation would cause a conflict with the current state of a resource associated with the request and/or the game instance. Resolve the conflict before retrying. -public struct InvalidGameSessionStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGameSessionStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15206,9 +15149,8 @@ extension InvalidGameSessionStatusExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15222,7 +15164,7 @@ extension InvalidRequestException { } /// One or more parameter values in the request are invalid. Correct the invalid parameter values before retrying. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15414,9 +15356,8 @@ extension GameLiftClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15430,7 +15371,7 @@ extension LimitExceededException { } /// The requested operation would cause the resource to exceed the allowed service limit. Resolve the issue before retrying. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15579,9 +15520,8 @@ public enum ListAliasesOutputError: Swift.Error, Swift.Equatable { extension ListAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliases = output.aliases self.nextToken = output.nextToken @@ -15742,9 +15682,8 @@ public enum ListBuildsOutputError: Swift.Error, Swift.Equatable { extension ListBuildsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBuildsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.builds = output.builds self.nextToken = output.nextToken @@ -15912,9 +15851,8 @@ public enum ListComputeOutputError: Swift.Error, Swift.Equatable { extension ListComputeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComputeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computeList = output.computeList self.nextToken = output.nextToken @@ -16083,9 +16021,8 @@ public enum ListFleetsOutputError: Swift.Error, Swift.Equatable { extension ListFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetIds = output.fleetIds self.nextToken = output.nextToken @@ -16228,9 +16165,8 @@ public enum ListGameServerGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGameServerGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGameServerGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServerGroups = output.gameServerGroups self.nextToken = output.nextToken @@ -16398,9 +16334,8 @@ public enum ListGameServersOutputError: Swift.Error, Swift.Equatable { extension ListGameServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGameServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServers = output.gameServers self.nextToken = output.nextToken @@ -16567,9 +16502,8 @@ public enum ListLocationsOutputError: Swift.Error, Swift.Equatable { extension ListLocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locations = output.locations self.nextToken = output.nextToken @@ -16712,9 +16646,8 @@ public enum ListScriptsOutputError: Swift.Error, Swift.Equatable { extension ListScriptsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListScriptsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scripts = output.scripts @@ -16848,9 +16781,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -17786,9 +17718,8 @@ extension GameLiftClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17802,7 +17733,7 @@ extension NotFoundException { } /// THe requested resources was not found. The resource was either not created yet or deleted. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17873,9 +17804,8 @@ extension GameLiftClientTypes { extension OutOfCapacityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OutOfCapacityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17889,7 +17819,7 @@ extension OutOfCapacityException { } /// The specified game server group has no available game servers to fulfill a ClaimGameServer request. Clients can retry such requests immediately or after a waiting period. -public struct OutOfCapacityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OutOfCapacityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18789,9 +18719,8 @@ public enum PutScalingPolicyOutputError: Swift.Error, Swift.Equatable { extension PutScalingPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutScalingPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -18967,9 +18896,8 @@ public enum RegisterComputeOutputError: Swift.Error, Swift.Equatable { extension RegisterComputeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterComputeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compute = output.compute } else { @@ -19136,9 +19064,8 @@ public enum RegisterGameServerOutputError: Swift.Error, Swift.Equatable { extension RegisterGameServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterGameServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServer = output.gameServer } else { @@ -19258,9 +19185,8 @@ extension RequestUploadCredentialsOutputResponse: Swift.CustomDebugStringConvert extension RequestUploadCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestUploadCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.storageLocation = output.storageLocation self.uploadCredentials = output.uploadCredentials @@ -19387,9 +19313,8 @@ public enum ResolveAliasOutputError: Swift.Error, Swift.Equatable { extension ResolveAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResolveAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -19584,9 +19509,8 @@ public enum ResumeGameServerGroupOutputError: Swift.Error, Swift.Equatable { extension ResumeGameServerGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResumeGameServerGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServerGroup = output.gameServerGroup } else { @@ -20412,9 +20336,8 @@ public enum SearchGameSessionsOutputError: Swift.Error, Swift.Equatable { extension SearchGameSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchGameSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessions = output.gameSessions self.nextToken = output.nextToken @@ -20680,9 +20603,8 @@ public enum StartFleetActionsOutputError: Swift.Error, Swift.Equatable { extension StartFleetActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFleetActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -20929,9 +20851,8 @@ public enum StartGameSessionPlacementOutputError: Swift.Error, Swift.Equatable { extension StartGameSessionPlacementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartGameSessionPlacementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessionPlacement = output.gameSessionPlacement } else { @@ -21099,9 +21020,8 @@ public enum StartMatchBackfillOutputError: Swift.Error, Swift.Equatable { extension StartMatchBackfillOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMatchBackfillOutputResponseBody = try responseDecoder.decode(responseBody: data) self.matchmakingTicket = output.matchmakingTicket } else { @@ -21253,9 +21173,8 @@ public enum StartMatchmakingOutputError: Swift.Error, Swift.Equatable { extension StartMatchmakingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMatchmakingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.matchmakingTicket = output.matchmakingTicket } else { @@ -21409,9 +21328,8 @@ public enum StopFleetActionsOutputError: Swift.Error, Swift.Equatable { extension StopFleetActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopFleetActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -21536,9 +21454,8 @@ public enum StopGameSessionPlacementOutputError: Swift.Error, Swift.Equatable { extension StopGameSessionPlacementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopGameSessionPlacementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessionPlacement = output.gameSessionPlacement } else { @@ -21764,9 +21681,8 @@ public enum SuspendGameServerGroupOutputError: Swift.Error, Swift.Equatable { extension SuspendGameServerGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SuspendGameServerGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServerGroup = output.gameServerGroup } else { @@ -21963,9 +21879,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TaggingFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TaggingFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21979,7 +21894,7 @@ extension TaggingFailedException { } /// The requested tagging operation did not succeed. This may be due to invalid tag format or the maximum tag limit may have been exceeded. Resolve the issue before retrying. -public struct TaggingFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TaggingFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22087,9 +22002,8 @@ extension GameLiftClientTypes { extension TerminalRoutingStrategyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminalRoutingStrategyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22103,7 +22017,7 @@ extension TerminalRoutingStrategyException { } /// The service is unable to resolve the routing for a particular alias because it has a terminal RoutingStrategy associated with it. The message returned in this exception is the message defined in the routing strategy itself. Such requests should only be retried if the routing strategy for the specified alias is modified. -public struct TerminalRoutingStrategyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TerminalRoutingStrategyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22139,9 +22053,8 @@ extension TerminalRoutingStrategyExceptionBody: Swift.Decodable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22155,7 +22068,7 @@ extension UnauthorizedException { } /// The client failed authentication. Clients should not retry such requests. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22191,9 +22104,8 @@ extension UnauthorizedExceptionBody: Swift.Decodable { extension UnsupportedRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedRegionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22207,7 +22119,7 @@ extension UnsupportedRegionException { } /// The requested operation is not supported in the Region specified. -public struct UnsupportedRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22466,9 +22378,8 @@ public enum UpdateAliasOutputError: Swift.Error, Swift.Equatable { extension UpdateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias } else { @@ -22607,9 +22518,8 @@ public enum UpdateBuildOutputError: Swift.Error, Swift.Equatable { extension UpdateBuildOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBuildOutputResponseBody = try responseDecoder.decode(responseBody: data) self.build = output.build } else { @@ -22818,9 +22728,8 @@ public enum UpdateFleetAttributesOutputError: Swift.Error, Swift.Equatable { extension UpdateFleetAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFleetAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -23001,9 +22910,8 @@ public enum UpdateFleetCapacityOutputError: Swift.Error, Swift.Equatable { extension UpdateFleetCapacityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFleetCapacityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -23192,9 +23100,8 @@ public enum UpdateFleetPortSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateFleetPortSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFleetPortSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn self.fleetId = output.fleetId @@ -23385,9 +23292,8 @@ public enum UpdateGameServerGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateGameServerGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGameServerGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServerGroup = output.gameServerGroup } else { @@ -23551,9 +23457,8 @@ public enum UpdateGameServerOutputError: Swift.Error, Swift.Equatable { extension UpdateGameServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGameServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameServer = output.gameServer } else { @@ -23724,9 +23629,8 @@ public enum UpdateGameSessionOutputError: Swift.Error, Swift.Equatable { extension UpdateGameSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGameSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSession = output.gameSession } else { @@ -23949,9 +23853,8 @@ public enum UpdateGameSessionQueueOutputError: Swift.Error, Swift.Equatable { extension UpdateGameSessionQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGameSessionQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameSessionQueue = output.gameSessionQueue } else { @@ -24250,9 +24153,8 @@ public enum UpdateMatchmakingConfigurationOutputError: Swift.Error, Swift.Equata extension UpdateMatchmakingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMatchmakingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -24382,9 +24284,8 @@ public enum UpdateRuntimeConfigurationOutputError: Swift.Error, Swift.Equatable extension UpdateRuntimeConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuntimeConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runtimeConfiguration = output.runtimeConfiguration } else { @@ -24547,9 +24448,8 @@ public enum UpdateScriptOutputError: Swift.Error, Swift.Equatable { extension UpdateScriptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateScriptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.script = output.script } else { @@ -24662,9 +24562,8 @@ public enum ValidateMatchmakingRuleSetOutputError: Swift.Error, Swift.Equatable extension ValidateMatchmakingRuleSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateMatchmakingRuleSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.valid = output.valid } else { diff --git a/Sources/Services/AWSGameSparks/GameSparksClient.swift b/Sources/Services/AWSGameSparks/GameSparksClient.swift index abba4766680..54cd3817edb 100644 --- a/Sources/Services/AWSGameSparks/GameSparksClient.swift +++ b/Sources/Services/AWSGameSparks/GameSparksClient.swift @@ -208,6 +208,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGame") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGame") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disconnectPlayer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -421,7 +428,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -441,6 +448,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExtension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -453,7 +461,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -473,6 +481,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExtensionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +494,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +514,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGame") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -517,7 +527,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -537,6 +547,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGameConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -550,7 +561,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -570,6 +581,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGeneratedCodeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +594,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +614,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPlayerConnectionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -614,7 +627,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -634,6 +647,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -647,7 +661,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -667,6 +681,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -679,7 +694,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -699,6 +714,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStageDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -712,7 +728,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -732,6 +748,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importGameConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -747,7 +764,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -767,6 +784,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExtensionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +798,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +818,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExtensions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -813,7 +832,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -833,6 +852,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -846,7 +866,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -866,6 +886,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGeneratedCodeJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +900,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +920,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +934,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +954,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStageDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -945,7 +968,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -965,6 +988,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -978,7 +1002,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1022,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1010,7 +1035,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1030,6 +1055,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startGeneratedCodeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1045,7 +1071,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1065,6 +1091,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startStageDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1080,7 +1107,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1100,6 +1127,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1115,7 +1143,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1135,6 +1163,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1148,7 +1177,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1168,6 +1197,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGame") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1183,7 +1213,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1203,6 +1233,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGameConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1218,7 +1249,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1238,6 +1269,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1253,7 +1285,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1273,6 +1305,7 @@ extension GameSparksClient: GameSparksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "gamesparks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1288,7 +1321,7 @@ extension GameSparksClient: GameSparksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGameSparks/models/Models.swift b/Sources/Services/AWSGameSparks/models/Models.swift index 83d817dc61e..db264a0b588 100644 --- a/Sources/Services/AWSGameSparks/models/Models.swift +++ b/Sources/Services/AWSGameSparks/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension ConflictException { } /// The resource already exists, or another operation is in progress. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -281,9 +279,8 @@ public enum CreateGameOutputError: Swift.Error, Swift.Equatable { extension CreateGameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.game = output.game } else { @@ -409,9 +406,8 @@ public enum CreateSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -599,9 +595,8 @@ public enum CreateStageOutputError: Swift.Error, Swift.Equatable { extension CreateStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stage = output.stage } else { @@ -984,9 +979,8 @@ public enum DisconnectPlayerOutputError: Swift.Error, Swift.Equatable { extension DisconnectPlayerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisconnectPlayerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disconnectFailures = output.disconnectFailures self.disconnectSuccesses = output.disconnectSuccesses @@ -1122,9 +1116,8 @@ public enum ExportSnapshotOutputError: Swift.Error, Swift.Equatable { extension ExportSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3Url = output.s3Url } else { @@ -1813,9 +1806,8 @@ public enum GetExtensionOutputError: Swift.Error, Swift.Equatable { extension GetExtensionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExtensionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`extension` = output.`extension` } else { @@ -1931,9 +1923,8 @@ public enum GetExtensionVersionOutputError: Swift.Error, Swift.Equatable { extension GetExtensionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExtensionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.extensionVersion = output.extensionVersion } else { @@ -2052,9 +2043,8 @@ public enum GetGameConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetGameConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGameConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameConfiguration = output.gameConfiguration } else { @@ -2154,9 +2144,8 @@ public enum GetGameOutputError: Swift.Error, Swift.Equatable { extension GetGameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.game = output.game } else { @@ -2272,9 +2261,8 @@ public enum GetGeneratedCodeJobOutputError: Swift.Error, Swift.Equatable { extension GetGeneratedCodeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGeneratedCodeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.generatedCodeJob = output.generatedCodeJob } else { @@ -2390,9 +2378,8 @@ public enum GetPlayerConnectionStatusOutputError: Swift.Error, Swift.Equatable { extension GetPlayerConnectionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPlayerConnectionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections } else { @@ -2528,9 +2515,8 @@ public enum GetSnapshotOutputError: Swift.Error, Swift.Equatable { extension GetSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -2655,9 +2641,8 @@ public enum GetStageDeploymentOutputError: Swift.Error, Swift.Equatable { extension GetStageDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStageDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stageDeployment = output.stageDeployment } else { @@ -2765,9 +2750,8 @@ public enum GetStageOutputError: Swift.Error, Swift.Equatable { extension GetStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stage = output.stage } else { @@ -2894,9 +2878,8 @@ public enum ImportGameConfigurationOutputError: Swift.Error, Swift.Equatable { extension ImportGameConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportGameConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameConfiguration = output.gameConfiguration } else { @@ -2971,9 +2954,8 @@ extension GameSparksClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2987,7 +2969,7 @@ extension InternalServerException { } /// The service encountered an internal error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3117,9 +3099,8 @@ public enum ListExtensionVersionsOutputError: Swift.Error, Swift.Equatable { extension ListExtensionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExtensionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.extensionVersions = output.extensionVersions self.nextToken = output.nextToken @@ -3253,9 +3234,8 @@ public enum ListExtensionsOutputError: Swift.Error, Swift.Equatable { extension ListExtensionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExtensionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.extensions = output.extensions self.nextToken = output.nextToken @@ -3389,9 +3369,8 @@ public enum ListGamesOutputError: Swift.Error, Swift.Equatable { extension ListGamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.games = output.games self.nextToken = output.nextToken @@ -3543,9 +3522,8 @@ public enum ListGeneratedCodeJobsOutputError: Swift.Error, Swift.Equatable { extension ListGeneratedCodeJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGeneratedCodeJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.generatedCodeJobs = output.generatedCodeJobs self.nextToken = output.nextToken @@ -3689,9 +3667,8 @@ public enum ListSnapshotsOutputError: Swift.Error, Swift.Equatable { extension ListSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshots = output.snapshots @@ -3843,9 +3820,8 @@ public enum ListStageDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ListStageDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStageDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stageDeployments = output.stageDeployments @@ -3989,9 +3965,8 @@ public enum ListStagesOutputError: Swift.Error, Swift.Equatable { extension ListStagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stages = output.stages @@ -4106,9 +4081,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4191,9 +4165,8 @@ extension GameSparksClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4207,7 +4180,7 @@ extension ResourceNotFoundException { } /// The resource specified in the request does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4401,9 +4374,8 @@ extension GameSparksClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4417,7 +4389,7 @@ extension ServiceQuotaExceededException { } /// The request would result in exceeding service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5135,9 +5107,8 @@ public enum StartGeneratedCodeJobOutputError: Swift.Error, Swift.Equatable { extension StartGeneratedCodeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartGeneratedCodeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.generatedCodeJobId = output.generatedCodeJobId } else { @@ -5284,9 +5255,8 @@ public enum StartStageDeploymentOutputError: Swift.Error, Swift.Equatable { extension StartStageDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartStageDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stageDeployment = output.stageDeployment } else { @@ -5429,9 +5399,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5445,7 +5414,7 @@ extension ThrottlingException { } /// The request throughput limit was exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5670,9 +5639,8 @@ public enum UpdateGameConfigurationOutputError: Swift.Error, Swift.Equatable { extension UpdateGameConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGameConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gameConfiguration = output.gameConfiguration } else { @@ -5796,9 +5764,8 @@ public enum UpdateGameOutputError: Swift.Error, Swift.Equatable { extension UpdateGameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.game = output.game } else { @@ -5930,9 +5897,8 @@ public enum UpdateSnapshotOutputError: Swift.Error, Swift.Equatable { extension UpdateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -6076,9 +6042,8 @@ public enum UpdateStageOutputError: Swift.Error, Swift.Equatable { extension UpdateStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stage = output.stage } else { @@ -6117,9 +6082,8 @@ extension UpdateStageOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6133,7 +6097,7 @@ extension ValidationException { } /// One of the parameters in the request is invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSGlacier/GlacierClient.swift b/Sources/Services/AWSGlacier/GlacierClient.swift index ce4d1b42b8f..eb4eec2803d 100644 --- a/Sources/Services/AWSGlacier/GlacierClient.swift +++ b/Sources/Services/AWSGlacier/GlacierClient.swift @@ -208,6 +208,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "abortMultipartUpload") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -230,7 +231,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -250,6 +251,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "abortVaultLock") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -272,7 +274,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -292,6 +294,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToVault") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -318,7 +321,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -338,6 +341,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeMultipartUpload") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -361,7 +365,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -381,6 +385,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeVaultLock") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -403,7 +408,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -430,6 +435,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVault") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -452,7 +458,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -479,6 +485,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteArchive") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -501,7 +508,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -521,6 +528,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVault") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -543,7 +551,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -563,6 +571,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVaultAccessPolicy") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -585,7 +594,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +614,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVaultNotifications") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -627,7 +637,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -647,6 +657,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJob") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -669,7 +680,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -689,6 +700,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVault") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -711,7 +723,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -731,6 +743,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataRetrievalPolicy") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -753,7 +766,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -773,6 +786,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobOutput") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -796,7 +810,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -816,6 +830,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVaultAccessPolicy") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -838,7 +853,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +884,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVaultLock") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -891,7 +907,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -911,6 +927,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVaultNotifications") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -933,7 +950,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -953,6 +970,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initiateJob") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -978,7 +996,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1016,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initiateMultipartUpload") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1021,7 +1040,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1050,6 +1069,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initiateVaultLock") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1075,7 +1095,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1095,6 +1115,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1118,7 +1139,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1138,6 +1159,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMultipartUploads") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1161,7 +1183,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1181,6 +1203,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listParts") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1204,7 +1227,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1224,6 +1247,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProvisionedCapacity") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1246,7 +1270,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1266,6 +1290,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForVault") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1288,7 +1313,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1308,6 +1333,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVaults") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1331,7 +1357,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1351,6 +1377,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseProvisionedCapacity") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1373,7 +1400,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1393,6 +1420,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromVault") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1419,7 +1447,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1439,6 +1467,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setDataRetrievalPolicy") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1464,7 +1493,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1484,6 +1513,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setVaultAccessPolicy") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1509,7 +1539,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1536,6 +1566,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setVaultNotifications") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1561,7 +1592,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1581,6 +1612,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadArchive") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1607,7 +1639,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1636,6 +1668,7 @@ extension GlacierClient: GlacierClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glacier") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadMultipartPart") operation.initializeStep.intercept(position: .before, id: "GlacierAccountIdAutoFill") { (context, input, next) -> ClientRuntime.OperationOutput in guard let accountId = input.accountId, !accountId.isEmpty else { @@ -1662,7 +1695,7 @@ extension GlacierClient: GlacierClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: AWSClientRuntime.Sha256TreeHashMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGlacier/models/Models.swift b/Sources/Services/AWSGlacier/models/Models.swift index 53031c37eb2..0a2b0ec59cb 100644 --- a/Sources/Services/AWSGlacier/models/Models.swift +++ b/Sources/Services/AWSGlacier/models/Models.swift @@ -1339,9 +1339,8 @@ public enum DescribeJobOutputError: Swift.Error, Swift.Equatable { extension DescribeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.archiveId = output.archiveId @@ -1763,9 +1762,8 @@ public enum DescribeVaultOutputError: Swift.Error, Swift.Equatable { extension DescribeVaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.lastInventoryDate = output.lastInventoryDate @@ -2064,9 +2062,8 @@ public enum GetDataRetrievalPolicyOutputError: Swift.Error, Swift.Equatable { extension GetDataRetrievalPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataRetrievalPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -2229,9 +2226,12 @@ extension GetJobOutputOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.body = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.body = .data(data) + case .stream(let stream): + self.body = .stream(stream) + case .none: self.body = nil } self.status = httpResponse.statusCode.rawValue @@ -2371,13 +2371,9 @@ public enum GetVaultAccessPolicyOutputError: Swift.Error, Swift.Equatable { extension GetVaultAccessPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: GlacierClientTypes.VaultAccessPolicy = try responseDecoder.decode(responseBody: data) - self.policy = output - } else { - self.policy = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: GlacierClientTypes.VaultAccessPolicy = try responseDecoder.decode(responseBody: data) + self.policy = output } else { self.policy = nil } @@ -2483,9 +2479,8 @@ public enum GetVaultLockOutputError: Swift.Error, Swift.Equatable { extension GetVaultLockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVaultLockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.expirationDate = output.expirationDate @@ -2623,13 +2618,9 @@ public enum GetVaultNotificationsOutputError: Swift.Error, Swift.Equatable { extension GetVaultNotificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: GlacierClientTypes.VaultNotificationConfig = try responseDecoder.decode(responseBody: data) - self.vaultNotificationConfig = output - } else { - self.vaultNotificationConfig = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: GlacierClientTypes.VaultNotificationConfig = try responseDecoder.decode(responseBody: data) + self.vaultNotificationConfig = output } else { self.vaultNotificationConfig = nil } @@ -3051,15 +3042,15 @@ public struct InitiateJobInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let jobParameters = input.operationInput.jobParameters { - let jobParametersdata = try encoder.encode(jobParameters) - let jobParametersbody = ClientRuntime.HttpBody.data(jobParametersdata) - input.builder.withBody(jobParametersbody) + let jobParametersData = try encoder.encode(jobParameters) + let jobParametersBody = ClientRuntime.HttpBody.data(jobParametersData) + input.builder.withBody(jobParametersBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let jobParametersdata = "{}".data(using: .utf8)! - let jobParametersbody = ClientRuntime.HttpBody.data(jobParametersdata) - input.builder.withBody(jobParametersbody) + let jobParametersData = "{}".data(using: .utf8)! + let jobParametersBody = ClientRuntime.HttpBody.data(jobParametersData) + input.builder.withBody(jobParametersBody) } } } catch let err { @@ -3347,15 +3338,15 @@ public struct InitiateVaultLockInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let policy = input.operationInput.policy { - let policydata = try encoder.encode(policy) - let policybody = ClientRuntime.HttpBody.data(policydata) - input.builder.withBody(policybody) + let policyData = try encoder.encode(policy) + let policyBody = ClientRuntime.HttpBody.data(policyData) + input.builder.withBody(policyBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let policydata = "{}".data(using: .utf8)! - let policybody = ClientRuntime.HttpBody.data(policydata) - input.builder.withBody(policybody) + let policyData = "{}".data(using: .utf8)! + let policyBody = ClientRuntime.HttpBody.data(policyData) + input.builder.withBody(policyBody) } } } catch let err { @@ -3521,9 +3512,8 @@ extension GlacierClientTypes { extension InsufficientCapacityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientCapacityExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3541,7 +3531,7 @@ extension InsufficientCapacityException { } /// Returned if there is insufficient capacity to process this expedited request. This error only applies to expedited retrievals and not to standard or bulk retrievals. -public struct InsufficientCapacityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientCapacityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3591,9 +3581,8 @@ extension InsufficientCapacityExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3611,7 +3600,7 @@ extension InvalidParameterValueException { } /// Returned if a parameter of the request is incorrectly specified. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3929,9 +3918,8 @@ extension GlacierClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3949,7 +3937,7 @@ extension LimitExceededException { } /// Returned if the request results in a vault or account limit being exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4111,9 +4099,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobList = output.jobList self.marker = output.marker @@ -4265,9 +4252,8 @@ public enum ListMultipartUploadsOutputError: Swift.Error, Swift.Equatable { extension ListMultipartUploadsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMultipartUploadsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.uploadsList = output.uploadsList @@ -4427,9 +4413,8 @@ public enum ListPartsOutputError: Swift.Error, Swift.Equatable { extension ListPartsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPartsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.archiveDescription = output.archiveDescription self.creationDate = output.creationDate @@ -4595,9 +4580,8 @@ public enum ListProvisionedCapacityOutputError: Swift.Error, Swift.Equatable { extension ListProvisionedCapacityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProvisionedCapacityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.provisionedCapacityList = output.provisionedCapacityList } else { @@ -4713,9 +4697,8 @@ public enum ListTagsForVaultOutputError: Swift.Error, Swift.Equatable { extension ListTagsForVaultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForVaultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4849,9 +4832,8 @@ public enum ListVaultsOutputError: Swift.Error, Swift.Equatable { extension ListVaultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVaultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.vaultList = output.vaultList @@ -4910,9 +4892,8 @@ extension ListVaultsOutputResponseBody: Swift.Decodable { extension MissingParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4930,7 +4911,7 @@ extension MissingParameterValueException { } /// Returned if a required header or parameter is missing from the request. -public struct MissingParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5139,9 +5120,8 @@ extension GlacierClientTypes { extension PolicyEnforcedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyEnforcedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5159,7 +5139,7 @@ extension PolicyEnforcedException { } /// Returned if a retrieval job would exceed the current data policy's retrieval rate limit. For more information about data retrieval policies, -public struct PolicyEnforcedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyEnforcedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5504,9 +5484,8 @@ public struct RemoveTagsFromVaultOutputResponse: Swift.Equatable { extension RequestTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5524,7 +5503,7 @@ extension RequestTimeoutException { } /// Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the upload. -public struct RequestTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5577,9 +5556,8 @@ extension RequestTimeoutExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5597,7 +5575,7 @@ extension ResourceNotFoundException { } /// Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5856,9 +5834,8 @@ extension GlacierClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5876,7 +5853,7 @@ extension ServiceUnavailableException { } /// Returned if the service cannot complete the request. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6035,15 +6012,15 @@ public struct SetVaultAccessPolicyInputBodyMiddleware: ClientRuntime.Middleware do { let encoder = context.getEncoder() if let policy = input.operationInput.policy { - let policydata = try encoder.encode(policy) - let policybody = ClientRuntime.HttpBody.data(policydata) - input.builder.withBody(policybody) + let policyData = try encoder.encode(policy) + let policyBody = ClientRuntime.HttpBody.data(policyData) + input.builder.withBody(policyBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let policydata = "{}".data(using: .utf8)! - let policybody = ClientRuntime.HttpBody.data(policydata) - input.builder.withBody(policybody) + let policyData = "{}".data(using: .utf8)! + let policyBody = ClientRuntime.HttpBody.data(policyData) + input.builder.withBody(policyBody) } } } catch let err { @@ -6175,15 +6152,15 @@ public struct SetVaultNotificationsInputBodyMiddleware: ClientRuntime.Middleware do { let encoder = context.getEncoder() if let vaultNotificationConfig = input.operationInput.vaultNotificationConfig { - let vaultNotificationConfigdata = try encoder.encode(vaultNotificationConfig) - let vaultNotificationConfigbody = ClientRuntime.HttpBody.data(vaultNotificationConfigdata) - input.builder.withBody(vaultNotificationConfigbody) + let vaultNotificationConfigData = try encoder.encode(vaultNotificationConfig) + let vaultNotificationConfigBody = ClientRuntime.HttpBody.data(vaultNotificationConfigData) + input.builder.withBody(vaultNotificationConfigBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let vaultNotificationConfigdata = "{}".data(using: .utf8)! - let vaultNotificationConfigbody = ClientRuntime.HttpBody.data(vaultNotificationConfigdata) - input.builder.withBody(vaultNotificationConfigbody) + let vaultNotificationConfigData = "{}".data(using: .utf8)! + let vaultNotificationConfigBody = ClientRuntime.HttpBody.data(vaultNotificationConfigData) + input.builder.withBody(vaultNotificationConfigBody) } } } catch let err { @@ -6418,9 +6395,8 @@ public struct UploadArchiveInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.stream(bodydata) - input.builder.withBody(bodybody) + let bodyBody = ClientRuntime.HttpBody(byteStream: body) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -6438,7 +6414,7 @@ extension UploadArchiveInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let body = self.body { - try encodeContainer.encode(body.toBytes().getData(), forKey: .body) + try encodeContainer.encode(body, forKey: .body) } } } @@ -6675,9 +6651,8 @@ public struct UploadMultipartPartInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.stream(bodydata) - input.builder.withBody(bodybody) + let bodyBody = ClientRuntime.HttpBody(byteStream: body) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -6695,7 +6670,7 @@ extension UploadMultipartPartInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let body = self.body { - try encodeContainer.encode(body.toBytes().getData(), forKey: .body) + try encodeContainer.encode(body, forKey: .body) } } } diff --git a/Sources/Services/AWSGlobalAccelerator/GlobalAcceleratorClient.swift b/Sources/Services/AWSGlobalAccelerator/GlobalAcceleratorClient.swift index a71fa51b2f7..54a93539dd6 100644 --- a/Sources/Services/AWSGlobalAccelerator/GlobalAcceleratorClient.swift +++ b/Sources/Services/AWSGlobalAccelerator/GlobalAcceleratorClient.swift @@ -208,6 +208,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addCustomRoutingEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -248,6 +249,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -264,7 +266,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -284,6 +286,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "advertiseByoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -300,7 +303,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -320,6 +323,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allowCustomRoutingTraffic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +360,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccelerator") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -380,7 +385,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -400,6 +405,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomRoutingAccelerator") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -424,7 +430,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +450,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomRoutingEndpointGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -468,7 +475,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +495,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomRoutingListener") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -512,7 +520,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +540,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpointGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -556,7 +565,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +585,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createListener") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -600,7 +610,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -620,6 +630,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccelerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -636,7 +647,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -656,6 +667,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomRoutingAccelerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +684,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +704,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomRoutingEndpointGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +721,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +741,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomRoutingListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +758,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +778,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpointGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +795,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +815,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +832,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +852,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "denyCustomRoutingTraffic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +869,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +889,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprovisionByoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +906,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +926,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccelerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +943,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +963,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAcceleratorAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +980,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +1000,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomRoutingAccelerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1017,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1037,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomRoutingAcceleratorAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1054,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1074,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomRoutingEndpointGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1068,7 +1091,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1088,6 +1111,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomRoutingListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1128,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1148,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpointGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1140,7 +1165,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1185,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1202,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1222,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccelerators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1212,7 +1239,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1232,6 +1259,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listByoipCidrs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1276,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1296,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomRoutingAccelerators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1284,7 +1313,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1304,6 +1333,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomRoutingEndpointGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1320,7 +1350,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1370,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomRoutingListeners") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1387,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1407,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomRoutingPortMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1392,7 +1424,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1412,6 +1444,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomRoutingPortMappingsByDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1461,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1481,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEndpointGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1464,7 +1498,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1484,6 +1518,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listListeners") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1500,7 +1535,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1520,6 +1555,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1536,7 +1572,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1556,6 +1592,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "provisionByoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1572,7 +1609,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1592,6 +1629,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeCustomRoutingEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1608,7 +1646,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1632,6 +1670,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1648,7 +1687,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1668,6 +1707,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1684,7 +1724,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1704,6 +1744,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1720,7 +1761,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1740,6 +1781,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccelerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1756,7 +1798,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1776,6 +1818,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAcceleratorAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1792,7 +1835,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1812,6 +1855,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCustomRoutingAccelerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1828,7 +1872,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1848,6 +1892,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCustomRoutingAcceleratorAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1864,7 +1909,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1884,6 +1929,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCustomRoutingListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1900,7 +1946,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1920,6 +1966,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEndpointGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1936,7 +1983,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1956,6 +2003,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1972,7 +2020,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1992,6 +2040,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "globalaccelerator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "withdrawByoipCidr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2008,7 +2057,7 @@ extension GlobalAcceleratorClient: GlobalAcceleratorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGlobalAccelerator/models/Models.swift b/Sources/Services/AWSGlobalAccelerator/models/Models.swift index ca3e9e32ed5..b0a693306cb 100644 --- a/Sources/Services/AWSGlobalAccelerator/models/Models.swift +++ b/Sources/Services/AWSGlobalAccelerator/models/Models.swift @@ -263,9 +263,8 @@ extension GlobalAcceleratorClientTypes { extension AcceleratorNotDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceleratorNotDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -279,7 +278,7 @@ extension AcceleratorNotDisabledException { } /// The accelerator that you specified could not be disabled. -public struct AcceleratorNotDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AcceleratorNotDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -315,9 +314,8 @@ extension AcceleratorNotDisabledExceptionBody: Swift.Decodable { extension AcceleratorNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceleratorNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -331,7 +329,7 @@ extension AcceleratorNotFoundException { } /// The accelerator that you specified doesn't exist. -public struct AcceleratorNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AcceleratorNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -399,9 +397,8 @@ extension GlobalAcceleratorClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -415,7 +412,7 @@ extension AccessDeniedException { } /// You don't have access permission. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -558,9 +555,8 @@ public enum AddCustomRoutingEndpointsOutputError: Swift.Error, Swift.Equatable { extension AddCustomRoutingEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddCustomRoutingEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointDescriptions = output.endpointDescriptions self.endpointGroupArn = output.endpointGroupArn @@ -723,9 +719,8 @@ public enum AddEndpointsOutputError: Swift.Error, Swift.Equatable { extension AddEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointDescriptions = output.endpointDescriptions self.endpointGroupArn = output.endpointGroupArn @@ -861,9 +856,8 @@ public enum AdvertiseByoipCidrOutputError: Swift.Error, Swift.Equatable { extension AdvertiseByoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AdvertiseByoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { @@ -1059,9 +1053,8 @@ public struct AllowCustomRoutingTrafficOutputResponse: Swift.Equatable { extension AssociatedEndpointGroupFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatedEndpointGroupFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1075,7 +1068,7 @@ extension AssociatedEndpointGroupFoundException { } /// The listener that you specified has an endpoint group associated with it. You must remove all dependent resources from a listener before you can delete it. -public struct AssociatedEndpointGroupFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssociatedEndpointGroupFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1111,9 +1104,8 @@ extension AssociatedEndpointGroupFoundExceptionBody: Swift.Decodable { extension AssociatedListenerFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatedListenerFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1127,7 +1119,7 @@ extension AssociatedListenerFoundException { } /// The accelerator that you specified has a listener associated with it. You must remove all dependent resources from an accelerator before you can delete it. -public struct AssociatedListenerFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssociatedListenerFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1297,9 +1289,8 @@ extension GlobalAcceleratorClientTypes { extension ByoipCidrNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ByoipCidrNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1313,7 +1304,7 @@ extension ByoipCidrNotFoundException { } /// The CIDR that you specified was not found or is incorrect. -public struct ByoipCidrNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ByoipCidrNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1487,9 +1478,8 @@ extension GlobalAcceleratorClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1503,7 +1493,7 @@ extension ConflictException { } /// You can't use both of those options. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1698,9 +1688,8 @@ public enum CreateAcceleratorOutputError: Swift.Error, Swift.Equatable { extension CreateAcceleratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAcceleratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accelerator = output.accelerator } else { @@ -1900,9 +1889,8 @@ public enum CreateCustomRoutingAcceleratorOutputError: Swift.Error, Swift.Equata extension CreateCustomRoutingAcceleratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomRoutingAcceleratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accelerator = output.accelerator } else { @@ -2076,9 +2064,8 @@ public enum CreateCustomRoutingEndpointGroupOutputError: Swift.Error, Swift.Equa extension CreateCustomRoutingEndpointGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomRoutingEndpointGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointGroup = output.endpointGroup } else { @@ -2233,9 +2220,8 @@ public enum CreateCustomRoutingListenerOutputError: Swift.Error, Swift.Equatable extension CreateCustomRoutingListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomRoutingListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listener = output.listener } else { @@ -2502,9 +2488,8 @@ public enum CreateEndpointGroupOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointGroup = output.endpointGroup } else { @@ -2684,9 +2669,8 @@ public enum CreateListenerOutputError: Swift.Error, Swift.Equatable { extension CreateListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listener = output.listener } else { @@ -4107,9 +4091,8 @@ public enum DeprovisionByoipCidrOutputError: Swift.Error, Swift.Equatable { extension DeprovisionByoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeprovisionByoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { @@ -4222,9 +4205,8 @@ public enum DescribeAcceleratorAttributesOutputError: Swift.Error, Swift.Equatab extension DescribeAcceleratorAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAcceleratorAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acceleratorAttributes = output.acceleratorAttributes } else { @@ -4337,9 +4319,8 @@ public enum DescribeAcceleratorOutputError: Swift.Error, Swift.Equatable { extension DescribeAcceleratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAcceleratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accelerator = output.accelerator } else { @@ -4452,9 +4433,8 @@ public enum DescribeCustomRoutingAcceleratorAttributesOutputError: Swift.Error, extension DescribeCustomRoutingAcceleratorAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomRoutingAcceleratorAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acceleratorAttributes = output.acceleratorAttributes } else { @@ -4567,9 +4547,8 @@ public enum DescribeCustomRoutingAcceleratorOutputError: Swift.Error, Swift.Equa extension DescribeCustomRoutingAcceleratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomRoutingAcceleratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accelerator = output.accelerator } else { @@ -4682,9 +4661,8 @@ public enum DescribeCustomRoutingEndpointGroupOutputError: Swift.Error, Swift.Eq extension DescribeCustomRoutingEndpointGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomRoutingEndpointGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointGroup = output.endpointGroup } else { @@ -4797,9 +4775,8 @@ public enum DescribeCustomRoutingListenerOutputError: Swift.Error, Swift.Equatab extension DescribeCustomRoutingListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomRoutingListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listener = output.listener } else { @@ -4912,9 +4889,8 @@ public enum DescribeEndpointGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointGroup = output.endpointGroup } else { @@ -5027,9 +5003,8 @@ public enum DescribeListenerOutputError: Swift.Error, Swift.Equatable { extension DescribeListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listener = output.listener } else { @@ -5185,9 +5160,8 @@ extension GlobalAcceleratorClientTypes { extension EndpointAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EndpointAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5201,7 +5175,7 @@ extension EndpointAlreadyExistsException { } /// The endpoint that you specified doesn't exist. -public struct EndpointAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5516,9 +5490,8 @@ extension GlobalAcceleratorClientTypes { extension EndpointGroupAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EndpointGroupAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5532,7 +5505,7 @@ extension EndpointGroupAlreadyExistsException { } /// The endpoint group that you specified already exists. -public struct EndpointGroupAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointGroupAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5568,9 +5541,8 @@ extension EndpointGroupAlreadyExistsExceptionBody: Swift.Decodable { extension EndpointGroupNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EndpointGroupNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5584,7 +5556,7 @@ extension EndpointGroupNotFoundException { } /// The endpoint group that you specified doesn't exist. -public struct EndpointGroupNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointGroupNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5666,9 +5638,8 @@ extension GlobalAcceleratorClientTypes { extension EndpointNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EndpointNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5682,7 +5653,7 @@ extension EndpointNotFoundException { } /// The endpoint that you specified doesn't exist. -public struct EndpointNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5788,9 +5759,8 @@ extension GlobalAcceleratorClientTypes { extension IncorrectCidrStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncorrectCidrStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5804,7 +5774,7 @@ extension IncorrectCidrStateException { } /// The CIDR that you specified is not valid for this action. For example, the state of the CIDR might be incorrect for this action. -public struct IncorrectCidrStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncorrectCidrStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5840,9 +5810,8 @@ extension IncorrectCidrStateExceptionBody: Swift.Decodable { extension InternalServiceErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5856,7 +5825,7 @@ extension InternalServiceErrorException { } /// There was an internal error for Global Accelerator. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5892,9 +5861,8 @@ extension InternalServiceErrorExceptionBody: Swift.Decodable { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5908,7 +5876,7 @@ extension InvalidArgumentException { } /// An argument that you specified is invalid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5944,9 +5912,8 @@ extension InvalidArgumentExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5960,7 +5927,7 @@ extension InvalidNextTokenException { } /// There isn't another item to return. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5996,9 +5963,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidPortRangeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPortRangeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6012,7 +5978,7 @@ extension InvalidPortRangeException { } /// The port numbers that you specified are not valid numbers or are not unique for this accelerator. -public struct InvalidPortRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPortRangeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6180,9 +6146,8 @@ extension GlobalAcceleratorClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6196,7 +6161,7 @@ extension LimitExceededException { } /// Processing your request would cause you to exceed an Global Accelerator limit. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6317,9 +6282,8 @@ public enum ListAcceleratorsOutputError: Swift.Error, Swift.Equatable { extension ListAcceleratorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAcceleratorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accelerators = output.accelerators self.nextToken = output.nextToken @@ -6464,9 +6428,8 @@ public enum ListByoipCidrsOutputError: Swift.Error, Swift.Equatable { extension ListByoipCidrsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListByoipCidrsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidrs = output.byoipCidrs self.nextToken = output.nextToken @@ -6609,9 +6572,8 @@ public enum ListCustomRoutingAcceleratorsOutputError: Swift.Error, Swift.Equatab extension ListCustomRoutingAcceleratorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomRoutingAcceleratorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accelerators = output.accelerators self.nextToken = output.nextToken @@ -6769,9 +6731,8 @@ public enum ListCustomRoutingEndpointGroupsOutputError: Swift.Error, Swift.Equat extension ListCustomRoutingEndpointGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomRoutingEndpointGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointGroups = output.endpointGroups self.nextToken = output.nextToken @@ -6929,9 +6890,8 @@ public enum ListCustomRoutingListenersOutputError: Swift.Error, Swift.Equatable extension ListCustomRoutingListenersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomRoutingListenersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listeners = output.listeners self.nextToken = output.nextToken @@ -7102,9 +7062,8 @@ public enum ListCustomRoutingPortMappingsByDestinationOutputError: Swift.Error, extension ListCustomRoutingPortMappingsByDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomRoutingPortMappingsByDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationPortMappings = output.destinationPortMappings self.nextToken = output.nextToken @@ -7276,9 +7235,8 @@ public enum ListCustomRoutingPortMappingsOutputError: Swift.Error, Swift.Equatab extension ListCustomRoutingPortMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomRoutingPortMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.portMappings = output.portMappings @@ -7436,9 +7394,8 @@ public enum ListEndpointGroupsOutputError: Swift.Error, Swift.Equatable { extension ListEndpointGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEndpointGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointGroups = output.endpointGroups self.nextToken = output.nextToken @@ -7596,9 +7553,8 @@ public enum ListListenersOutputError: Swift.Error, Swift.Equatable { extension ListListenersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListListenersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listeners = output.listeners self.nextToken = output.nextToken @@ -7730,9 +7686,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7857,9 +7812,8 @@ extension GlobalAcceleratorClientTypes { extension ListenerNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListenerNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7873,7 +7827,7 @@ extension ListenerNotFoundException { } /// The listener that you specified doesn't exist. -public struct ListenerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ListenerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8219,9 +8173,8 @@ public enum ProvisionByoipCidrOutputError: Swift.Error, Swift.Equatable { extension ProvisionByoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionByoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { @@ -8689,9 +8642,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TransactionInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactionInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8705,7 +8657,7 @@ extension TransactionInProgressException { } /// There's already a transaction in progress. Another transaction can't be processed. -public struct TransactionInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransactionInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8962,9 +8914,8 @@ public enum UpdateAcceleratorAttributesOutputError: Swift.Error, Swift.Equatable extension UpdateAcceleratorAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAcceleratorAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acceleratorAttributes = output.acceleratorAttributes } else { @@ -9115,9 +9066,8 @@ public enum UpdateAcceleratorOutputError: Swift.Error, Swift.Equatable { extension UpdateAcceleratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAcceleratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accelerator = output.accelerator } else { @@ -9268,9 +9218,8 @@ public enum UpdateCustomRoutingAcceleratorAttributesOutputError: Swift.Error, Sw extension UpdateCustomRoutingAcceleratorAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCustomRoutingAcceleratorAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acceleratorAttributes = output.acceleratorAttributes } else { @@ -9419,9 +9368,8 @@ public enum UpdateCustomRoutingAcceleratorOutputError: Swift.Error, Swift.Equata extension UpdateCustomRoutingAcceleratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCustomRoutingAcceleratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accelerator = output.accelerator } else { @@ -9563,9 +9511,8 @@ public enum UpdateCustomRoutingListenerOutputError: Swift.Error, Swift.Equatable extension UpdateCustomRoutingListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCustomRoutingListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listener = output.listener } else { @@ -9802,9 +9749,8 @@ public enum UpdateEndpointGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateEndpointGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEndpointGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointGroup = output.endpointGroup } else { @@ -9969,9 +9915,8 @@ public enum UpdateListenerOutputError: Swift.Error, Swift.Equatable { extension UpdateListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.listener = output.listener } else { @@ -10088,9 +10033,8 @@ public enum WithdrawByoipCidrOutputError: Swift.Error, Swift.Equatable { extension WithdrawByoipCidrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WithdrawByoipCidrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byoipCidr = output.byoipCidr } else { diff --git a/Sources/Services/AWSGlue/GlueClient.swift b/Sources/Services/AWSGlue/GlueClient.swift index ab7c3eb62ff..b00f847bbe6 100644 --- a/Sources/Services/AWSGlue/GlueClient.swift +++ b/Sources/Services/AWSGlue/GlueClient.swift @@ -208,6 +208,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreatePartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeletePartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteTableVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetBlueprints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetCrawlers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetCustomEntityTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetDataQualityResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetDevEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetPartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetTriggers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetWorkflows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchStopJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdatePartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelDataQualityRuleRecommendationRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelDataQualityRulesetEvaluationRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelMLTaskRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkSchemaVersionValidity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBlueprint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClassifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCrawler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomEntityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataQualityRuleset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDevEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMLTransform") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPartitionIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createScript") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSecurityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrigger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserDefinedFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBlueprint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClassifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1836,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteColumnStatisticsForPartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1873,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteColumnStatisticsForTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1890,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1864,6 +1910,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1880,7 +1927,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1900,6 +1947,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCrawler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1916,7 +1964,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1936,6 +1984,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomEntityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +2001,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2021,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataQualityRuleset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2038,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2008,6 +2058,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2024,7 +2075,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2044,6 +2095,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDevEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2060,7 +2112,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2132,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2096,7 +2149,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2116,6 +2169,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMLTransform") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2132,7 +2186,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2152,6 +2206,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2223,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2243,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePartitionIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2204,7 +2260,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2224,6 +2280,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2240,7 +2297,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2260,6 +2317,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2276,7 +2334,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2296,6 +2354,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2312,7 +2371,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2332,6 +2391,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchemaVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2348,7 +2408,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2368,6 +2428,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSecurityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2384,7 +2445,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2404,6 +2465,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2420,7 +2482,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2440,6 +2502,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2456,7 +2519,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2476,6 +2539,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTableVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2492,7 +2556,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2512,6 +2576,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrigger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2528,7 +2593,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2548,6 +2613,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserDefinedFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2564,7 +2630,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2584,6 +2650,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2600,7 +2667,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2620,6 +2687,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlueprint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2636,7 +2704,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2656,6 +2724,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlueprintRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2672,7 +2741,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2692,6 +2761,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlueprintRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2708,7 +2778,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2728,6 +2798,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCatalogImportStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2744,7 +2815,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2764,6 +2835,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClassifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2780,7 +2852,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2800,6 +2872,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClassifiers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2816,7 +2889,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2836,6 +2909,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getColumnStatisticsForPartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2852,7 +2926,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2872,6 +2946,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getColumnStatisticsForTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2888,7 +2963,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2908,6 +2983,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2924,7 +3000,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2944,6 +3020,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2960,7 +3037,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2980,6 +3057,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCrawler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2996,7 +3074,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3016,6 +3094,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCrawlerMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3032,7 +3111,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3052,6 +3131,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCrawlers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3068,7 +3148,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3088,6 +3168,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCustomEntityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3104,7 +3185,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3124,6 +3205,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataCatalogEncryptionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3140,7 +3222,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3160,6 +3242,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataQualityResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3176,7 +3259,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3196,6 +3279,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataQualityRuleRecommendationRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3212,7 +3296,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3232,6 +3316,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataQualityRuleset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3248,7 +3333,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3268,6 +3353,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataQualityRulesetEvaluationRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3284,7 +3370,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3304,6 +3390,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3320,7 +3407,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3340,6 +3427,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatabases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3356,7 +3444,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3376,6 +3464,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataflowGraph") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3392,7 +3481,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3412,6 +3501,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3428,7 +3518,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3448,6 +3538,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3464,7 +3555,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3484,6 +3575,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3500,7 +3592,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3526,6 +3618,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobBookmark") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3542,7 +3635,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3562,6 +3655,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3578,7 +3672,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3598,6 +3692,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3614,7 +3709,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3634,6 +3729,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3650,7 +3746,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3670,6 +3766,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMLTaskRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3686,7 +3783,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3706,6 +3803,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMLTaskRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3722,7 +3820,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3742,6 +3840,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMLTransform") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3758,7 +3857,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3778,6 +3877,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMLTransforms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3794,7 +3894,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3814,6 +3914,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3830,7 +3931,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3850,6 +3951,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3866,7 +3968,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3886,6 +3988,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPartitionIndexes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3902,7 +4005,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3922,6 +4025,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPartitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3938,7 +4042,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3958,6 +4062,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3974,7 +4079,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3994,6 +4099,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4010,7 +4116,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4030,6 +4136,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4046,7 +4153,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4066,6 +4173,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4082,7 +4190,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4102,6 +4210,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4118,7 +4227,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4138,6 +4247,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchemaByDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4154,7 +4264,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4174,6 +4284,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchemaVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4190,7 +4301,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4210,6 +4321,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchemaVersionsDiff") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4226,7 +4338,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4246,6 +4358,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSecurityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4262,7 +4375,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4282,6 +4395,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSecurityConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4298,7 +4412,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4318,6 +4432,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4334,7 +4449,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4354,6 +4469,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4370,7 +4486,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4390,6 +4506,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4406,7 +4523,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4426,6 +4543,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTableVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4442,7 +4560,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4462,6 +4580,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTableVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4478,7 +4597,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4498,6 +4617,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4514,7 +4634,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4534,6 +4654,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4550,7 +4671,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4570,6 +4691,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrigger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4586,7 +4708,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4606,6 +4728,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTriggers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4622,7 +4745,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4642,6 +4765,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUnfilteredPartitionMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4658,7 +4782,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4678,6 +4802,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUnfilteredPartitionsMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4694,7 +4819,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4714,6 +4839,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUnfilteredTableMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4730,7 +4856,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4750,6 +4876,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserDefinedFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4766,7 +4893,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4786,6 +4913,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserDefinedFunctions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4802,7 +4930,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4822,6 +4950,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4838,7 +4967,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4858,6 +4987,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4874,7 +5004,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4894,6 +5024,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowRunProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4910,7 +5041,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4930,6 +5061,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4946,7 +5078,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4966,6 +5098,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importCatalogToGlue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4982,7 +5115,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5002,6 +5135,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBlueprints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5018,7 +5152,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5038,6 +5172,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCrawlers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5054,7 +5189,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5082,6 +5217,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCrawls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5098,7 +5234,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5118,6 +5254,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomEntityTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5134,7 +5271,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5154,6 +5291,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataQualityResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5170,7 +5308,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5190,6 +5328,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataQualityRuleRecommendationRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5206,7 +5345,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5226,6 +5365,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataQualityRulesetEvaluationRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5242,7 +5382,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5262,6 +5402,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataQualityRulesets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5278,7 +5419,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5298,6 +5439,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5314,7 +5456,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5334,6 +5476,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5350,7 +5493,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5370,6 +5513,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMLTransforms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5386,7 +5530,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5406,6 +5550,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegistries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5422,7 +5567,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5442,6 +5587,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchemaVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5458,7 +5604,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5478,6 +5624,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5494,7 +5641,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5514,6 +5661,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5530,7 +5678,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5550,6 +5698,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStatements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5566,7 +5715,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5586,6 +5735,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTriggers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5602,7 +5752,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5622,6 +5772,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5638,7 +5789,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5658,6 +5809,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDataCatalogEncryptionSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5674,7 +5826,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5694,6 +5846,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5710,7 +5863,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5730,6 +5883,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSchemaVersionMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5746,7 +5900,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5766,6 +5920,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putWorkflowRunProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5782,7 +5937,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5802,6 +5957,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "querySchemaVersionMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5818,7 +5974,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5838,6 +5994,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerSchemaVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5854,7 +6011,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5874,6 +6031,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeSchemaVersionMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5890,7 +6048,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5916,6 +6074,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetJobBookmark") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5932,7 +6091,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5952,6 +6111,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeWorkflowRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5968,7 +6128,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5988,6 +6148,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "runStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6004,7 +6165,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6024,6 +6185,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6040,7 +6202,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6060,6 +6222,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBlueprintRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6076,7 +6239,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6096,6 +6259,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCrawler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6112,7 +6276,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6132,6 +6296,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCrawlerSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6148,7 +6313,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6168,6 +6333,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDataQualityRuleRecommendationRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6184,7 +6350,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6204,6 +6370,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDataQualityRulesetEvaluationRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6220,7 +6387,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6240,6 +6407,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startExportLabelsTaskRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6256,7 +6424,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6276,6 +6444,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImportLabelsTaskRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6292,7 +6461,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6312,6 +6481,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startJobRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6328,7 +6498,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6348,6 +6518,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMLEvaluationTaskRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6364,7 +6535,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6384,6 +6555,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMLLabelingSetGenerationTaskRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6400,7 +6572,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6420,6 +6592,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTrigger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6436,7 +6609,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6456,6 +6629,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startWorkflowRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6472,7 +6646,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6492,6 +6666,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopCrawler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6508,7 +6683,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6528,6 +6703,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopCrawlerSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6544,7 +6720,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6564,6 +6740,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6580,7 +6757,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6600,6 +6777,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopTrigger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6616,7 +6794,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6636,6 +6814,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopWorkflowRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6652,7 +6831,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6672,6 +6851,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6688,7 +6868,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6708,6 +6888,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6724,7 +6905,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6744,6 +6925,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBlueprint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6760,7 +6942,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6780,6 +6962,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClassifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6796,7 +6979,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6816,6 +6999,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateColumnStatisticsForPartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6832,7 +7016,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6852,6 +7036,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateColumnStatisticsForTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6868,7 +7053,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6888,6 +7073,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6904,7 +7090,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6924,6 +7110,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCrawler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6940,7 +7127,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6960,6 +7147,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCrawlerSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6976,7 +7164,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6996,6 +7184,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataQualityRuleset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7012,7 +7201,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7032,6 +7221,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7048,7 +7238,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7068,6 +7258,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDevEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7084,7 +7275,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7104,6 +7295,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7120,7 +7312,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7140,6 +7332,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJobFromSourceControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7156,7 +7349,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7176,6 +7369,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMLTransform") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7192,7 +7386,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7212,6 +7406,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePartition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7228,7 +7423,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7248,6 +7443,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7264,7 +7460,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7284,6 +7480,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7300,7 +7497,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7320,6 +7517,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSourceControlFromJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7336,7 +7534,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7356,6 +7554,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7372,7 +7571,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7392,6 +7591,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrigger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7408,7 +7608,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7428,6 +7628,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserDefinedFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7444,7 +7645,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7464,6 +7665,7 @@ extension GlueClient: GlueClientProtocol { .withRegion(value: config.region) .withSigningName(value: "glue") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7480,7 +7682,7 @@ extension GlueClient: GlueClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGlue/models/Models.swift b/Sources/Services/AWSGlue/models/Models.swift index 273d00a31ee..1ec72b2f482 100644 --- a/Sources/Services/AWSGlue/models/Models.swift +++ b/Sources/Services/AWSGlue/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access to a resource was denied. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -401,9 +400,8 @@ extension GlueClientTypes { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -417,7 +415,7 @@ extension AlreadyExistsException { } /// A resource to be created or added already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1036,9 +1034,8 @@ public enum BatchCreatePartitionOutputError: Swift.Error, Swift.Equatable { extension BatchCreatePartitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreatePartitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1182,9 +1179,8 @@ public enum BatchDeleteConnectionOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.succeeded = output.succeeded @@ -1377,9 +1373,8 @@ public enum BatchDeletePartitionOutputError: Swift.Error, Swift.Equatable { extension BatchDeletePartitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeletePartitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1556,9 +1551,8 @@ public enum BatchDeleteTableOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1732,9 +1726,8 @@ public enum BatchDeleteTableVersionOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteTableVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteTableVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1892,9 +1885,8 @@ public enum BatchGetBlueprintsOutputError: Swift.Error, Swift.Equatable { extension BatchGetBlueprintsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetBlueprintsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueprints = output.blueprints self.missingBlueprints = output.missingBlueprints @@ -2045,9 +2037,8 @@ public enum BatchGetCrawlersOutputError: Swift.Error, Swift.Equatable { extension BatchGetCrawlersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetCrawlersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crawlers = output.crawlers self.crawlersNotFound = output.crawlersNotFound @@ -2200,9 +2191,8 @@ public enum BatchGetCustomEntityTypesOutputError: Swift.Error, Swift.Equatable { extension BatchGetCustomEntityTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetCustomEntityTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customEntityTypes = output.customEntityTypes self.customEntityTypesNotFound = output.customEntityTypesNotFound @@ -2355,9 +2345,8 @@ public enum BatchGetDataQualityResultOutputError: Swift.Error, Swift.Equatable { extension BatchGetDataQualityResultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetDataQualityResultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.results = output.results self.resultsNotFound = output.resultsNotFound @@ -2513,9 +2502,8 @@ public enum BatchGetDevEndpointsOutputError: Swift.Error, Swift.Equatable { extension BatchGetDevEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetDevEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devEndpoints = output.devEndpoints self.devEndpointsNotFound = output.devEndpointsNotFound @@ -2668,9 +2656,8 @@ public enum BatchGetJobsOutputError: Swift.Error, Swift.Equatable { extension BatchGetJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.jobsNotFound = output.jobsNotFound @@ -2871,9 +2858,8 @@ public enum BatchGetPartitionOutputError: Swift.Error, Swift.Equatable { extension BatchGetPartitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetPartitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.partitions = output.partitions self.unprocessedKeys = output.unprocessedKeys @@ -3026,9 +3012,8 @@ public enum BatchGetTriggersOutputError: Swift.Error, Swift.Equatable { extension BatchGetTriggersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetTriggersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.triggers = output.triggers self.triggersNotFound = output.triggersNotFound @@ -3193,9 +3178,8 @@ public enum BatchGetWorkflowsOutputError: Swift.Error, Swift.Equatable { extension BatchGetWorkflowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetWorkflowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.missingWorkflows = output.missingWorkflows self.workflows = output.workflows @@ -3416,9 +3400,8 @@ public enum BatchStopJobRunOutputError: Swift.Error, Swift.Equatable { extension BatchStopJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchStopJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.successfulSubmissions = output.successfulSubmissions @@ -3715,9 +3698,8 @@ public enum BatchUpdatePartitionOutputError: Swift.Error, Swift.Equatable { extension BatchUpdatePartitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdatePartitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -4588,9 +4570,8 @@ public enum CancelMLTaskRunOutputError: Swift.Error, Swift.Equatable { extension CancelMLTaskRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelMLTaskRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status self.taskRunId = output.taskRunId @@ -5577,9 +5558,8 @@ public enum CheckSchemaVersionValidityOutputError: Swift.Error, Swift.Equatable extension CheckSchemaVersionValidityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CheckSchemaVersionValidityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.valid = output.valid @@ -7222,9 +7202,8 @@ extension GlueClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7238,7 +7217,7 @@ extension ConcurrentModificationException { } /// Two processes are trying to modify a resource simultaneously. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7275,9 +7254,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConcurrentRunsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentRunsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7291,7 +7269,7 @@ extension ConcurrentRunsExceededException { } /// Too many jobs are being run concurrently. -public struct ConcurrentRunsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentRunsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7403,9 +7381,8 @@ extension GlueClientTypes { extension ConditionCheckFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConditionCheckFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7419,7 +7396,7 @@ extension ConditionCheckFailureException { } /// A specified condition was not satisfied. -public struct ConditionCheckFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConditionCheckFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7456,9 +7433,8 @@ extension ConditionCheckFailureExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7472,7 +7448,7 @@ extension ConflictException { } /// The CreatePartitions API was called on a table that has indexes enabled. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8923,9 +8899,8 @@ extension GlueClientTypes { extension CrawlerNotRunningException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CrawlerNotRunningExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8939,7 +8914,7 @@ extension CrawlerNotRunningException { } /// The specified crawler is not running. -public struct CrawlerNotRunningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CrawlerNotRunningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8976,9 +8951,8 @@ extension CrawlerNotRunningExceptionBody: Swift.Decodable { extension CrawlerRunningException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CrawlerRunningExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8992,7 +8966,7 @@ extension CrawlerRunningException { } /// The operation cannot be performed because the crawler is already running. -public struct CrawlerRunningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CrawlerRunningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9064,9 +9038,8 @@ extension GlueClientTypes { extension CrawlerStoppingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CrawlerStoppingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9080,7 +9053,7 @@ extension CrawlerStoppingException { } /// The specified crawler is stopping. -public struct CrawlerStoppingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CrawlerStoppingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9476,9 +9449,8 @@ public enum CreateBlueprintOutputError: Swift.Error, Swift.Equatable { extension CreateBlueprintOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBlueprintOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -10299,9 +10271,8 @@ public enum CreateCustomEntityTypeOutputError: Swift.Error, Swift.Equatable { extension CreateCustomEntityTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomEntityTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -10491,9 +10462,8 @@ public enum CreateDataQualityRulesetOutputError: Swift.Error, Swift.Equatable { extension CreateDataQualityRulesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataQualityRulesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -10972,9 +10942,8 @@ public enum CreateDevEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateDevEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDevEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arguments = output.arguments self.availabilityZone = output.availabilityZone @@ -11689,9 +11658,8 @@ public enum CreateJobOutputError: Swift.Error, Swift.Equatable { extension CreateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -12062,9 +12030,8 @@ public enum CreateMLTransformOutputError: Swift.Error, Swift.Equatable { extension CreateMLTransformOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMLTransformOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transformId = output.transformId } else { @@ -12479,9 +12446,8 @@ public enum CreateRegistryOutputError: Swift.Error, Swift.Equatable { extension CreateRegistryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRegistryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.registryArn = output.registryArn @@ -12742,9 +12708,8 @@ public enum CreateSchemaOutputError: Swift.Error, Swift.Equatable { extension CreateSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibility = output.compatibility self.dataFormat = output.dataFormat @@ -13043,9 +13008,8 @@ public enum CreateScriptOutputError: Swift.Error, Swift.Equatable { extension CreateScriptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScriptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pythonScript = output.pythonScript self.scalaCode = output.scalaCode @@ -13185,9 +13149,8 @@ public enum CreateSecurityConfigurationOutputError: Swift.Error, Swift.Equatable extension CreateSecurityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSecurityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.name = output.name @@ -13523,9 +13486,8 @@ public enum CreateSessionOutputError: Swift.Error, Swift.Equatable { extension CreateSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -13939,9 +13901,8 @@ public enum CreateTriggerOutputError: Swift.Error, Swift.Equatable { extension CreateTriggerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTriggerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -14249,9 +14210,8 @@ public enum CreateWorkflowOutputError: Swift.Error, Swift.Equatable { extension CreateWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -16602,9 +16562,8 @@ public enum DeleteBlueprintOutputError: Swift.Error, Swift.Equatable { extension DeleteBlueprintOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBlueprintOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -17260,9 +17219,8 @@ public enum DeleteCustomEntityTypeOutputError: Swift.Error, Swift.Equatable { extension DeleteCustomEntityTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCustomEntityTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -17647,9 +17605,8 @@ public enum DeleteJobOutputError: Swift.Error, Swift.Equatable { extension DeleteJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobName = output.jobName } else { @@ -17764,9 +17721,8 @@ public enum DeleteMLTransformOutputError: Swift.Error, Swift.Equatable { extension DeleteMLTransformOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMLTransformOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transformId = output.transformId } else { @@ -18145,9 +18101,8 @@ public enum DeleteRegistryOutputError: Swift.Error, Swift.Equatable { extension DeleteRegistryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRegistryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryArn = output.registryArn self.registryName = output.registryName @@ -18381,9 +18336,8 @@ public enum DeleteSchemaOutputError: Swift.Error, Swift.Equatable { extension DeleteSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schemaArn = output.schemaArn self.schemaName = output.schemaName @@ -18535,9 +18489,8 @@ public enum DeleteSchemaVersionsOutputError: Swift.Error, Swift.Equatable { extension DeleteSchemaVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSchemaVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schemaVersionErrors = output.schemaVersionErrors } else { @@ -18763,9 +18716,8 @@ public enum DeleteSessionOutputError: Swift.Error, Swift.Equatable { extension DeleteSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -19131,9 +19083,8 @@ public enum DeleteTriggerOutputError: Swift.Error, Swift.Equatable { extension DeleteTriggerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTriggerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -19359,9 +19310,8 @@ public enum DeleteWorkflowOutputError: Swift.Error, Swift.Equatable { extension DeleteWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -20958,9 +20908,8 @@ extension GlueClientTypes { extension EntityNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.fromFederationSource = output.fromFederationSource self.message = output.message @@ -20976,7 +20925,7 @@ extension EntityNotFoundException { } /// A specified entity does not exist -public struct EntityNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21485,9 +21434,8 @@ extension GlueClientTypes { extension FederatedResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FederatedResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.associatedGlueResource = output.associatedGlueResource self.message = output.message @@ -21503,7 +21451,7 @@ extension FederatedResourceAlreadyExistsException { } /// A federated resource already exists. -public struct FederatedResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FederatedResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21644,9 +21592,8 @@ extension GlueClientTypes { extension FederationSourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FederationSourceExceptionBody = try responseDecoder.decode(responseBody: data) self.federationSourceErrorCode = output.federationSourceErrorCode self.message = output.message @@ -21662,7 +21609,7 @@ extension FederationSourceException { } /// A federation source failed. -public struct FederationSourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FederationSourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21707,9 +21654,8 @@ extension FederationSourceExceptionBody: Swift.Decodable { extension FederationSourceRetryableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FederationSourceRetryableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21722,7 +21668,7 @@ extension FederationSourceRetryableException { } } -public struct FederationSourceRetryableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FederationSourceRetryableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22572,9 +22518,8 @@ public enum GetBlueprintOutputError: Swift.Error, Swift.Equatable { extension GetBlueprintOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlueprintOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueprint = output.blueprint } else { @@ -22700,9 +22645,8 @@ public enum GetBlueprintRunOutputError: Swift.Error, Swift.Equatable { extension GetBlueprintRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlueprintRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueprintRun = output.blueprintRun } else { @@ -22841,9 +22785,8 @@ public enum GetBlueprintRunsOutputError: Swift.Error, Swift.Equatable { extension GetBlueprintRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlueprintRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueprintRuns = output.blueprintRuns self.nextToken = output.nextToken @@ -22972,9 +22915,8 @@ public enum GetCatalogImportStatusOutputError: Swift.Error, Swift.Equatable { extension GetCatalogImportStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCatalogImportStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importStatus = output.importStatus } else { @@ -23085,9 +23027,8 @@ public enum GetClassifierOutputError: Swift.Error, Swift.Equatable { extension GetClassifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClassifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.classifier = output.classifier } else { @@ -23207,9 +23148,8 @@ public enum GetClassifiersOutputError: Swift.Error, Swift.Equatable { extension GetClassifiersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClassifiersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.classifiers = output.classifiers self.nextToken = output.nextToken @@ -23420,9 +23360,8 @@ public enum GetColumnStatisticsForPartitionOutputError: Swift.Error, Swift.Equat extension GetColumnStatisticsForPartitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetColumnStatisticsForPartitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnStatisticsList = output.columnStatisticsList self.errors = output.errors @@ -23617,9 +23556,8 @@ public enum GetColumnStatisticsForTableOutputError: Swift.Error, Swift.Equatable extension GetColumnStatisticsForTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetColumnStatisticsForTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnStatisticsList = output.columnStatisticsList self.errors = output.errors @@ -23786,9 +23724,8 @@ public enum GetConnectionOutputError: Swift.Error, Swift.Equatable { extension GetConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -24007,9 +23944,8 @@ public enum GetConnectionsOutputError: Swift.Error, Swift.Equatable { extension GetConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionList = output.connectionList self.nextToken = output.nextToken @@ -24220,9 +24156,8 @@ public enum GetCrawlerMetricsOutputError: Swift.Error, Swift.Equatable { extension GetCrawlerMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCrawlerMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crawlerMetricsList = output.crawlerMetricsList self.nextToken = output.nextToken @@ -24304,9 +24239,8 @@ public enum GetCrawlerOutputError: Swift.Error, Swift.Equatable { extension GetCrawlerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCrawlerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crawler = output.crawler } else { @@ -24426,9 +24360,8 @@ public enum GetCrawlersOutputError: Swift.Error, Swift.Equatable { extension GetCrawlersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCrawlersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crawlers = output.crawlers self.nextToken = output.nextToken @@ -24564,9 +24497,8 @@ public enum GetCustomEntityTypeOutputError: Swift.Error, Swift.Equatable { extension GetCustomEntityTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCustomEntityTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contextWords = output.contextWords self.name = output.name @@ -24707,9 +24639,8 @@ public enum GetDataCatalogEncryptionSettingsOutputError: Swift.Error, Swift.Equa extension GetDataCatalogEncryptionSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataCatalogEncryptionSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataCatalogEncryptionSettings = output.dataCatalogEncryptionSettings } else { @@ -24824,9 +24755,8 @@ public enum GetDataQualityResultOutputError: Swift.Error, Swift.Equatable { extension GetDataQualityResultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataQualityResultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completedOn = output.completedOn self.dataSource = output.dataSource @@ -25050,9 +24980,8 @@ public enum GetDataQualityRuleRecommendationRunOutputError: Swift.Error, Swift.E extension GetDataQualityRuleRecommendationRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataQualityRuleRecommendationRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completedOn = output.completedOn self.createdRulesetName = output.createdRulesetName @@ -25287,9 +25216,8 @@ public enum GetDataQualityRulesetEvaluationRunOutputError: Swift.Error, Swift.Eq extension GetDataQualityRulesetEvaluationRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataQualityRulesetEvaluationRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalRunOptions = output.additionalRunOptions self.completedOn = output.completedOn @@ -25552,9 +25480,8 @@ public enum GetDataQualityRulesetOutputError: Swift.Error, Swift.Equatable { extension GetDataQualityRulesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataQualityRulesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdOn = output.createdOn self.description = output.description @@ -25745,9 +25672,8 @@ public enum GetDatabaseOutputError: Swift.Error, Swift.Equatable { extension GetDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.database = output.database } else { @@ -25903,9 +25829,8 @@ public enum GetDatabasesOutputError: Swift.Error, Swift.Equatable { extension GetDatabasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatabasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databaseList = output.databaseList self.nextToken = output.nextToken @@ -26037,9 +25962,8 @@ public enum GetDataflowGraphOutputError: Swift.Error, Swift.Equatable { extension GetDataflowGraphOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataflowGraphOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dagEdges = output.dagEdges self.dagNodes = output.dagNodes @@ -26182,9 +26106,8 @@ public enum GetDevEndpointOutputError: Swift.Error, Swift.Equatable { extension GetDevEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devEndpoint = output.devEndpoint } else { @@ -26310,9 +26233,8 @@ public enum GetDevEndpointsOutputError: Swift.Error, Swift.Equatable { extension GetDevEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devEndpoints = output.devEndpoints self.nextToken = output.nextToken @@ -26460,9 +26382,8 @@ public enum GetJobBookmarkOutputError: Swift.Error, Swift.Equatable { extension GetJobBookmarkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobBookmarkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobBookmarkEntry = output.jobBookmarkEntry } else { @@ -26577,9 +26498,8 @@ public enum GetJobOutputError: Swift.Error, Swift.Equatable { extension GetJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -26719,9 +26639,8 @@ public enum GetJobRunOutputError: Swift.Error, Swift.Equatable { extension GetJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobRun = output.jobRun } else { @@ -26860,9 +26779,8 @@ public enum GetJobRunsOutputError: Swift.Error, Swift.Equatable { extension GetJobRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobRuns = output.jobRuns self.nextToken = output.nextToken @@ -27007,9 +26925,8 @@ public enum GetJobsOutputError: Swift.Error, Swift.Equatable { extension GetJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -27156,9 +27073,8 @@ public enum GetMLTaskRunOutputError: Swift.Error, Swift.Equatable { extension GetMLTaskRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMLTaskRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completedOn = output.completedOn self.errorString = output.errorString @@ -27411,9 +27327,8 @@ public enum GetMLTaskRunsOutputError: Swift.Error, Swift.Equatable { extension GetMLTaskRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMLTaskRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.taskRuns = output.taskRuns @@ -27547,9 +27462,8 @@ public enum GetMLTransformOutputError: Swift.Error, Swift.Equatable { extension GetMLTransformOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMLTransformOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdOn = output.createdOn self.description = output.description @@ -27903,9 +27817,8 @@ public enum GetMLTransformsOutputError: Swift.Error, Swift.Equatable { extension GetMLTransformsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMLTransformsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transforms = output.transforms @@ -28076,9 +27989,8 @@ public enum GetMappingOutputError: Swift.Error, Swift.Equatable { extension GetMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mapping = output.mapping } else { @@ -28242,9 +28154,8 @@ public enum GetPartitionIndexesOutputError: Swift.Error, Swift.Equatable { extension GetPartitionIndexesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPartitionIndexesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.partitionIndexDescriptorList = output.partitionIndexDescriptorList @@ -28434,9 +28345,8 @@ public enum GetPartitionOutputError: Swift.Error, Swift.Equatable { extension GetPartitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPartitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.partition = output.partition } else { @@ -28691,9 +28601,8 @@ public enum GetPartitionsOutputError: Swift.Error, Swift.Equatable { extension GetPartitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPartitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.partitions = output.partitions @@ -28924,9 +28833,8 @@ public enum GetPlanOutputError: Swift.Error, Swift.Equatable { extension GetPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pythonScript = output.pythonScript self.scalaCode = output.scalaCode @@ -29051,9 +28959,8 @@ public enum GetRegistryOutputError: Swift.Error, Swift.Equatable { extension GetRegistryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegistryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTime = output.createdTime self.description = output.description @@ -29229,9 +29136,8 @@ public enum GetResourcePoliciesOutputError: Swift.Error, Swift.Equatable { extension GetResourcePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.getResourcePoliciesResponseList = output.getResourcePoliciesResponseList self.nextToken = output.nextToken @@ -29364,9 +29270,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.policyHash = output.policyHash @@ -29528,9 +29433,8 @@ public enum GetSchemaByDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetSchemaByDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSchemaByDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTime = output.createdTime self.dataFormat = output.dataFormat @@ -29689,9 +29593,8 @@ public enum GetSchemaOutputError: Swift.Error, Swift.Equatable { extension GetSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibility = output.compatibility self.createdTime = output.createdTime @@ -29953,9 +29856,8 @@ public enum GetSchemaVersionOutputError: Swift.Error, Swift.Equatable { extension GetSchemaVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSchemaVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTime = output.createdTime self.dataFormat = output.dataFormat @@ -30173,9 +30075,8 @@ public enum GetSchemaVersionsDiffOutputError: Swift.Error, Swift.Equatable { extension GetSchemaVersionsDiffOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSchemaVersionsDiffOutputResponseBody = try responseDecoder.decode(responseBody: data) self.diff = output.diff } else { @@ -30290,9 +30191,8 @@ public enum GetSecurityConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetSecurityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSecurityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityConfiguration = output.securityConfiguration } else { @@ -30418,9 +30318,8 @@ public enum GetSecurityConfigurationsOutputError: Swift.Error, Swift.Equatable { extension GetSecurityConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSecurityConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityConfigurations = output.securityConfigurations @@ -30568,9 +30467,8 @@ public enum GetSessionOutputError: Swift.Error, Swift.Equatable { extension GetSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -30714,9 +30612,8 @@ public enum GetStatementOutputError: Swift.Error, Swift.Equatable { extension GetStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statement = output.statement } else { @@ -30888,9 +30785,8 @@ public enum GetTableOutputError: Swift.Error, Swift.Equatable { extension GetTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.table = output.table } else { @@ -31044,9 +30940,8 @@ public enum GetTableVersionOutputError: Swift.Error, Swift.Equatable { extension GetTableVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTableVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableVersion = output.tableVersion } else { @@ -31212,9 +31107,8 @@ public enum GetTableVersionsOutputError: Swift.Error, Swift.Equatable { extension GetTableVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTableVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tableVersions = output.tableVersions @@ -31426,9 +31320,8 @@ public enum GetTablesOutputError: Swift.Error, Swift.Equatable { extension GetTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tableList = output.tableList @@ -31562,9 +31455,8 @@ public enum GetTagsOutputError: Swift.Error, Swift.Equatable { extension GetTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -31688,9 +31580,8 @@ public enum GetTriggerOutputError: Swift.Error, Swift.Equatable { extension GetTriggerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTriggerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trigger = output.trigger } else { @@ -31828,9 +31719,8 @@ public enum GetTriggersOutputError: Swift.Error, Swift.Equatable { extension GetTriggersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTriggersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.triggers = output.triggers @@ -32060,9 +31950,8 @@ public enum GetUnfilteredPartitionMetadataOutputError: Swift.Error, Swift.Equata extension GetUnfilteredPartitionMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUnfilteredPartitionMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedColumns = output.authorizedColumns self.isRegisteredWithLakeFormation = output.isRegisteredWithLakeFormation @@ -32346,9 +32235,8 @@ public enum GetUnfilteredPartitionsMetadataOutputError: Swift.Error, Swift.Equat extension GetUnfilteredPartitionsMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUnfilteredPartitionsMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.unfilteredPartitions = output.unfilteredPartitions @@ -32553,9 +32441,8 @@ public enum GetUnfilteredTableMetadataOutputError: Swift.Error, Swift.Equatable extension GetUnfilteredTableMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUnfilteredTableMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedColumns = output.authorizedColumns self.cellFilters = output.cellFilters @@ -32745,9 +32632,8 @@ public enum GetUserDefinedFunctionOutputError: Swift.Error, Swift.Equatable { extension GetUserDefinedFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserDefinedFunctionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userDefinedFunction = output.userDefinedFunction } else { @@ -32912,9 +32798,8 @@ public enum GetUserDefinedFunctionsOutputError: Swift.Error, Swift.Equatable { extension GetUserDefinedFunctionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserDefinedFunctionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userDefinedFunctions = output.userDefinedFunctions @@ -33060,9 +32945,8 @@ public enum GetWorkflowOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workflow = output.workflow } else { @@ -33202,9 +33086,8 @@ public enum GetWorkflowRunOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.run = output.run } else { @@ -33332,9 +33215,8 @@ public enum GetWorkflowRunPropertiesOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowRunPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowRunPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runProperties = output.runProperties } else { @@ -33494,9 +33376,8 @@ public enum GetWorkflowRunsOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.runs = output.runs @@ -33554,9 +33435,8 @@ extension GetWorkflowRunsOutputResponseBody: Swift.Decodable { extension GlueEncryptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GlueEncryptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -33570,7 +33450,7 @@ extension GlueEncryptionException { } /// An encryption operation failed. -public struct GlueEncryptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlueEncryptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34253,9 +34133,8 @@ extension GlueClientTypes { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -34269,7 +34148,7 @@ extension IdempotentParameterMismatchException { } /// The same unique identifier was associated with two different records. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34306,9 +34185,8 @@ extension IdempotentParameterMismatchExceptionBody: Swift.Decodable { extension IllegalBlueprintStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalBlueprintStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -34322,7 +34200,7 @@ extension IllegalBlueprintStateException { } /// The blueprint is in an invalid state to perform a requested operation. -public struct IllegalBlueprintStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalBlueprintStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34359,9 +34237,8 @@ extension IllegalBlueprintStateExceptionBody: Swift.Decodable { extension IllegalSessionStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalSessionStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -34375,7 +34252,7 @@ extension IllegalSessionStateException { } /// The session is in an invalid state to perform a requested operation. -public struct IllegalSessionStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalSessionStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34412,9 +34289,8 @@ extension IllegalSessionStateExceptionBody: Swift.Decodable { extension IllegalWorkflowStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalWorkflowStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -34428,7 +34304,7 @@ extension IllegalWorkflowStateException { } /// The workflow is in an invalid state to perform a requested operation. -public struct IllegalWorkflowStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalWorkflowStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34591,9 +34467,8 @@ extension GlueClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -34607,7 +34482,7 @@ extension InternalServiceException { } /// An internal service error occurred. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34644,9 +34519,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.fromFederationSource = output.fromFederationSource self.message = output.message @@ -34662,7 +34536,7 @@ extension InvalidInputException { } /// The input provided was not valid. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34707,9 +34581,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension InvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -34723,7 +34596,7 @@ extension InvalidStateException { } /// An error that indicates your data is in an invalid state. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37902,9 +37775,8 @@ public enum ListBlueprintsOutputError: Swift.Error, Swift.Equatable { extension ListBlueprintsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBlueprintsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueprints = output.blueprints self.nextToken = output.nextToken @@ -38067,9 +37939,8 @@ public enum ListCrawlersOutputError: Swift.Error, Swift.Equatable { extension ListCrawlersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCrawlersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crawlerNames = output.crawlerNames self.nextToken = output.nextToken @@ -38249,9 +38120,8 @@ public enum ListCrawlsOutputError: Swift.Error, Swift.Equatable { extension ListCrawlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCrawlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crawls = output.crawls self.nextToken = output.nextToken @@ -38394,9 +38264,8 @@ public enum ListCustomEntityTypesOutputError: Swift.Error, Swift.Equatable { extension ListCustomEntityTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomEntityTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customEntityTypes = output.customEntityTypes self.nextToken = output.nextToken @@ -38551,9 +38420,8 @@ public enum ListDataQualityResultsOutputError: Swift.Error, Swift.Equatable { extension ListDataQualityResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataQualityResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -38709,9 +38577,8 @@ public enum ListDataQualityRuleRecommendationRunsOutputError: Swift.Error, Swift extension ListDataQualityRuleRecommendationRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataQualityRuleRecommendationRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.runs = output.runs @@ -38866,9 +38733,8 @@ public enum ListDataQualityRulesetEvaluationRunsOutputError: Swift.Error, Swift. extension ListDataQualityRulesetEvaluationRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataQualityRulesetEvaluationRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.runs = output.runs @@ -39049,9 +38915,8 @@ public enum ListDataQualityRulesetsOutputError: Swift.Error, Swift.Equatable { extension ListDataQualityRulesetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataQualityRulesetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rulesets = output.rulesets @@ -39220,9 +39085,8 @@ public enum ListDevEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListDevEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devEndpointNames = output.devEndpointNames self.nextToken = output.nextToken @@ -39391,9 +39255,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobNames = output.jobNames self.nextToken = output.nextToken @@ -39586,9 +39449,8 @@ public enum ListMLTransformsOutputError: Swift.Error, Swift.Equatable { extension ListMLTransformsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMLTransformsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transformIds = output.transformIds @@ -39732,9 +39594,8 @@ public enum ListRegistriesOutputError: Swift.Error, Swift.Equatable { extension ListRegistriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegistriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.registries = output.registries @@ -39896,9 +39757,8 @@ public enum ListSchemaVersionsOutputError: Swift.Error, Swift.Equatable { extension ListSchemaVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchemaVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemas = output.schemas @@ -40055,9 +39915,8 @@ public enum ListSchemasOutputError: Swift.Error, Swift.Equatable { extension ListSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemas = output.schemas @@ -40238,9 +40097,8 @@ public enum ListSessionsOutputError: Swift.Error, Swift.Equatable { extension ListSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ids = output.ids self.nextToken = output.nextToken @@ -40421,9 +40279,8 @@ public enum ListStatementsOutputError: Swift.Error, Swift.Equatable { extension ListStatementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStatementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.statements = output.statements @@ -40604,9 +40461,8 @@ public enum ListTriggersOutputError: Swift.Error, Swift.Equatable { extension ListTriggersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTriggersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.triggerNames = output.triggerNames @@ -40749,9 +40605,8 @@ public enum ListWorkflowsOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workflows = output.workflows @@ -41299,9 +41154,8 @@ extension GlueClientTypes { extension MLTransformNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MLTransformNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -41315,7 +41169,7 @@ extension MLTransformNotReadyException { } /// The machine learning transform is not ready to run. -public struct MLTransformNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MLTransformNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42178,9 +42032,8 @@ extension GlueClientTypes { extension NoScheduleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoScheduleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -42194,7 +42047,7 @@ extension NoScheduleException { } /// There is no applicable schedule. -public struct NoScheduleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoScheduleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42488,9 +42341,8 @@ extension GlueClientTypes { extension OperationTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -42504,7 +42356,7 @@ extension OperationTimeoutException { } /// The operation timed out. -public struct OperationTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -43618,9 +43470,8 @@ extension GlueClientTypes { extension PermissionTypeMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PermissionTypeMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -43634,7 +43485,7 @@ extension PermissionTypeMismatchException { } /// The operation timed out. -public struct PermissionTypeMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PermissionTypeMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -44393,9 +44244,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyHash = output.policyHash } else { @@ -44548,9 +44398,8 @@ public enum PutSchemaVersionMetadataOutputError: Swift.Error, Swift.Equatable { extension PutSchemaVersionMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSchemaVersionMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.latestVersion = output.latestVersion self.metadataKey = output.metadataKey @@ -44934,9 +44783,8 @@ public enum QuerySchemaVersionMetadataOutputError: Swift.Error, Swift.Equatable extension QuerySchemaVersionMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QuerySchemaVersionMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadataInfoMap = output.metadataInfoMap self.nextToken = output.nextToken @@ -45398,9 +45246,8 @@ public enum RegisterSchemaVersionOutputError: Swift.Error, Swift.Equatable { extension RegisterSchemaVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterSchemaVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schemaVersionId = output.schemaVersionId self.status = output.status @@ -45789,9 +45636,8 @@ public enum RemoveSchemaVersionMetadataOutputError: Swift.Error, Swift.Equatable extension RemoveSchemaVersionMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveSchemaVersionMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.latestVersion = output.latestVersion self.metadataKey = output.metadataKey @@ -46093,9 +45939,8 @@ public enum ResetJobBookmarkOutputError: Swift.Error, Swift.Equatable { extension ResetJobBookmarkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetJobBookmarkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobBookmarkEntry = output.jobBookmarkEntry } else { @@ -46134,9 +45979,8 @@ extension ResetJobBookmarkOutputResponseBody: Swift.Decodable { extension ResourceNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -46150,7 +45994,7 @@ extension ResourceNotReadyException { } /// A resource was not ready for a transaction. -public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46187,9 +46031,8 @@ extension ResourceNotReadyExceptionBody: Swift.Decodable { extension ResourceNumberLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNumberLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -46203,7 +46046,7 @@ extension ResourceNumberLimitExceededException { } /// A resource numerical limit was exceeded. -public struct ResourceNumberLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNumberLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46473,9 +46316,8 @@ public enum ResumeWorkflowRunOutputError: Swift.Error, Swift.Equatable { extension ResumeWorkflowRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResumeWorkflowRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nodeIds = output.nodeIds self.runId = output.runId @@ -46642,9 +46484,8 @@ public enum RunStatementOutputError: Swift.Error, Swift.Equatable { extension RunStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RunStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -49175,9 +49016,8 @@ extension GlueClientTypes { extension SchedulerNotRunningException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SchedulerNotRunningExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -49191,7 +49031,7 @@ extension SchedulerNotRunningException { } /// The specified scheduler is not running. -public struct SchedulerNotRunningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SchedulerNotRunningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49228,9 +49068,8 @@ extension SchedulerNotRunningExceptionBody: Swift.Decodable { extension SchedulerRunningException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SchedulerRunningExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -49244,7 +49083,7 @@ extension SchedulerRunningException { } /// The specified scheduler is already running. -public struct SchedulerRunningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SchedulerRunningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49281,9 +49120,8 @@ extension SchedulerRunningExceptionBody: Swift.Decodable { extension SchedulerTransitioningException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SchedulerTransitioningExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -49297,7 +49135,7 @@ extension SchedulerTransitioningException { } /// The specified scheduler is transitioning. -public struct SchedulerTransitioningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SchedulerTransitioningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -50069,9 +49907,8 @@ public enum SearchTablesOutputError: Swift.Error, Swift.Equatable { extension SearchTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tableList = output.tableList @@ -51828,9 +51665,8 @@ public enum StartBlueprintRunOutputError: Swift.Error, Swift.Equatable { extension StartBlueprintRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartBlueprintRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runId = output.runId } else { @@ -52178,9 +52014,8 @@ public enum StartDataQualityRuleRecommendationRunOutputError: Swift.Error, Swift extension StartDataQualityRuleRecommendationRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDataQualityRuleRecommendationRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runId = output.runId } else { @@ -52383,9 +52218,8 @@ public enum StartDataQualityRulesetEvaluationRunOutputError: Swift.Error, Swift. extension StartDataQualityRulesetEvaluationRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDataQualityRulesetEvaluationRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runId = output.runId } else { @@ -52513,9 +52347,8 @@ public enum StartExportLabelsTaskRunOutputError: Swift.Error, Swift.Equatable { extension StartExportLabelsTaskRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartExportLabelsTaskRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskRunId = output.taskRunId } else { @@ -52657,9 +52490,8 @@ public enum StartImportLabelsTaskRunOutputError: Swift.Error, Swift.Equatable { extension StartImportLabelsTaskRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImportLabelsTaskRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskRunId = output.taskRunId } else { @@ -52923,9 +52755,8 @@ public enum StartJobRunOutputError: Swift.Error, Swift.Equatable { extension StartJobRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartJobRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobRunId = output.jobRunId } else { @@ -53044,9 +52875,8 @@ public enum StartMLEvaluationTaskRunOutputError: Swift.Error, Swift.Equatable { extension StartMLEvaluationTaskRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMLEvaluationTaskRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskRunId = output.taskRunId } else { @@ -53176,9 +53006,8 @@ public enum StartMLLabelingSetGenerationTaskRunOutputError: Swift.Error, Swift.E extension StartMLLabelingSetGenerationTaskRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMLLabelingSetGenerationTaskRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskRunId = output.taskRunId } else { @@ -53297,9 +53126,8 @@ public enum StartTriggerOutputError: Swift.Error, Swift.Equatable { extension StartTriggerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTriggerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -53442,9 +53270,8 @@ public enum StartWorkflowRunOutputError: Swift.Error, Swift.Equatable { extension StartWorkflowRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartWorkflowRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runId = output.runId } else { @@ -54098,9 +53925,8 @@ public enum StopSessionOutputError: Swift.Error, Swift.Equatable { extension StopSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -54217,9 +54043,8 @@ public enum StopTriggerOutputError: Swift.Error, Swift.Equatable { extension StopTriggerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopTriggerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -57184,9 +57009,8 @@ public enum UpdateBlueprintOutputError: Swift.Error, Swift.Equatable { extension UpdateBlueprintOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBlueprintOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -57531,9 +57355,8 @@ public enum UpdateColumnStatisticsForPartitionOutputError: Swift.Error, Swift.Eq extension UpdateColumnStatisticsForPartitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateColumnStatisticsForPartitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -57709,9 +57532,8 @@ public enum UpdateColumnStatisticsForTableOutputError: Swift.Error, Swift.Equata extension UpdateColumnStatisticsForTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateColumnStatisticsForTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -58472,9 +58294,8 @@ public enum UpdateDataQualityRulesetOutputError: Swift.Error, Swift.Equatable { extension UpdateDataQualityRulesetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataQualityRulesetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.name = output.name @@ -59116,9 +58937,8 @@ public enum UpdateJobFromSourceControlOutputError: Swift.Error, Swift.Equatable extension UpdateJobFromSourceControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateJobFromSourceControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobName = output.jobName } else { @@ -59248,9 +59068,8 @@ public enum UpdateJobOutputError: Swift.Error, Swift.Equatable { extension UpdateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobName = output.jobName } else { @@ -59539,9 +59358,8 @@ public enum UpdateMLTransformOutputError: Swift.Error, Swift.Equatable { extension UpdateMLTransformOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMLTransformOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transformId = output.transformId } else { @@ -59822,9 +59640,8 @@ public enum UpdateRegistryOutputError: Swift.Error, Swift.Equatable { extension UpdateRegistryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRegistryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryArn = output.registryArn self.registryName = output.registryName @@ -59991,9 +59808,8 @@ public enum UpdateSchemaOutputError: Swift.Error, Swift.Equatable { extension UpdateSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryName = output.registryName self.schemaArn = output.schemaArn @@ -60229,9 +60045,8 @@ public enum UpdateSourceControlFromJobOutputError: Swift.Error, Swift.Equatable extension UpdateSourceControlFromJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSourceControlFromJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobName = output.jobName } else { @@ -60516,9 +60331,8 @@ public enum UpdateTriggerOutputError: Swift.Error, Swift.Equatable { extension UpdateTriggerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTriggerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trigger = output.trigger } else { @@ -60809,9 +60623,8 @@ public enum UpdateWorkflowOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -61177,9 +60990,8 @@ extension GlueClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -61193,7 +61005,7 @@ extension ValidationException { } /// A value could not be validated. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -61230,9 +61042,8 @@ extension ValidationExceptionBody: Swift.Decodable { extension VersionMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VersionMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -61246,7 +61057,7 @@ extension VersionMismatchException { } /// There was a version conflict. -public struct VersionMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VersionMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSGrafana/GrafanaClient.swift b/Sources/Services/AWSGrafana/GrafanaClient.swift index 23f3e239e60..82b3144f7d7 100644 --- a/Sources/Services/AWSGrafana/GrafanaClient.swift +++ b/Sources/Services/AWSGrafana/GrafanaClient.swift @@ -208,6 +208,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateLicense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkspace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -263,7 +265,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkspaceApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -298,7 +301,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -318,6 +321,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -330,7 +334,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -350,6 +354,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkspaceApiKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -362,7 +367,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -382,6 +387,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspaceAuthentication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -426,7 +433,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -446,6 +453,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspaceConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -458,7 +466,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -478,6 +486,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateLicense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -490,7 +499,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -510,6 +519,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +533,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -543,6 +553,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -555,7 +566,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -575,6 +586,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +600,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +620,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -623,7 +636,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -643,6 +656,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +670,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +690,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -691,7 +706,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -711,6 +726,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -726,7 +742,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -746,6 +762,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkspaceAuthentication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -761,7 +778,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -781,6 +798,7 @@ extension GrafanaClient: GrafanaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "grafana") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkspaceConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -796,7 +814,7 @@ extension GrafanaClient: GrafanaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGrafana/models/Models.swift b/Sources/Services/AWSGrafana/models/Models.swift index 223441eeec2..829e7b69795 100644 --- a/Sources/Services/AWSGrafana/models/Models.swift +++ b/Sources/Services/AWSGrafana/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient permissions to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -245,9 +244,8 @@ public enum AssociateLicenseOutputError: Swift.Error, Swift.Equatable { extension AssociateLicenseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateLicenseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workspace = output.workspace } else { @@ -482,9 +480,8 @@ extension GrafanaClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -502,7 +499,7 @@ extension ConflictException { } /// A resource was in an inconsistent state during an update or a deletion. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -679,9 +676,8 @@ extension CreateWorkspaceApiKeyOutputResponse: Swift.CustomDebugStringConvertibl extension CreateWorkspaceApiKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkspaceApiKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.key = output.key self.keyName = output.keyName @@ -1070,9 +1066,8 @@ public enum CreateWorkspaceOutputError: Swift.Error, Swift.Equatable { extension CreateWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workspace = output.workspace } else { @@ -1245,9 +1240,8 @@ public enum DeleteWorkspaceApiKeyOutputError: Swift.Error, Swift.Equatable { extension DeleteWorkspaceApiKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWorkspaceApiKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyName = output.keyName self.workspaceId = output.workspaceId @@ -1361,9 +1355,8 @@ public enum DeleteWorkspaceOutputError: Swift.Error, Swift.Equatable { extension DeleteWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workspace = output.workspace } else { @@ -1464,9 +1457,8 @@ public enum DescribeWorkspaceAuthenticationOutputError: Swift.Error, Swift.Equat extension DescribeWorkspaceAuthenticationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceAuthenticationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authentication = output.authentication } else { @@ -1565,9 +1557,8 @@ public enum DescribeWorkspaceConfigurationOutputError: Swift.Error, Swift.Equata extension DescribeWorkspaceConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -1668,9 +1659,8 @@ public enum DescribeWorkspaceOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workspace = output.workspace } else { @@ -1779,9 +1769,8 @@ public enum DisassociateLicenseOutputError: Swift.Error, Swift.Equatable { extension DisassociateLicenseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateLicenseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workspace = output.workspace } else { @@ -1873,9 +1862,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1889,7 +1877,7 @@ extension InternalServerException { } /// Unexpected error while processing the request. Retry the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2075,9 +2063,8 @@ public enum ListPermissionsOutputError: Swift.Error, Swift.Equatable { extension ListPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -2197,9 +2184,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2321,9 +2307,8 @@ public enum ListWorkspacesOutputError: Swift.Error, Swift.Equatable { extension ListWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workspaces = output.workspaces @@ -2564,9 +2549,8 @@ extension GrafanaClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -2584,7 +2568,7 @@ extension ResourceNotFoundException { } /// The request references a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2915,9 +2899,8 @@ extension GrafanaClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -2939,7 +2922,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3126,9 +3109,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -3146,7 +3128,7 @@ extension ThrottlingException { } /// The request was denied because of request throttling. Retry the request. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3557,9 +3539,8 @@ public enum UpdatePermissionsOutputError: Swift.Error, Swift.Equatable { extension UpdatePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -3720,9 +3701,8 @@ public enum UpdateWorkspaceAuthenticationOutputError: Swift.Error, Swift.Equatab extension UpdateWorkspaceAuthenticationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkspaceAuthenticationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authentication = output.authentication } else { @@ -4144,9 +4124,8 @@ public enum UpdateWorkspaceOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workspace = output.workspace } else { @@ -4267,9 +4246,8 @@ extension GrafanaClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -4287,7 +4265,7 @@ extension ValidationException { } /// The value of a parameter in the request caused an error. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSGreengrass/GreengrassClient.swift b/Sources/Services/AWSGreengrass/GreengrassClient.swift index 9798aecb76c..160fb21431d 100644 --- a/Sources/Services/AWSGreengrass/GreengrassClient.swift +++ b/Sources/Services/AWSGreengrass/GreengrassClient.swift @@ -208,6 +208,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateRoleToGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateServiceRoleToAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnectorDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -294,7 +297,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -314,6 +317,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnectorDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -330,7 +334,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -350,6 +354,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCoreDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -366,7 +371,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -386,6 +391,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCoreDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -402,7 +408,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -422,6 +428,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -438,7 +445,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -458,6 +465,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeviceDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -474,7 +482,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -494,6 +502,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeviceDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -510,7 +519,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -530,6 +539,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFunctionDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -546,7 +556,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -566,6 +576,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFunctionDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +593,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +613,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -618,7 +630,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -638,6 +650,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroupCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -651,7 +664,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +684,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroupVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -687,7 +701,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -707,6 +721,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoggerDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -723,7 +738,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -743,6 +758,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoggerDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -759,7 +775,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -779,6 +795,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourceDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -795,7 +812,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -815,6 +832,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourceDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -831,7 +849,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -851,6 +869,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSoftwareUpdateJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -867,7 +886,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -887,6 +906,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubscriptionDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -903,7 +923,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -923,6 +943,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubscriptionDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -939,7 +960,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -959,6 +980,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnectorDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -971,7 +993,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -991,6 +1013,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCoreDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1003,7 +1026,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1023,6 +1046,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeviceDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1035,7 +1059,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1055,6 +1079,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFunctionDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1067,7 +1092,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1112,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1099,7 +1125,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1119,6 +1145,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoggerDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1131,7 +1158,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1151,6 +1178,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourceDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1163,7 +1191,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1183,6 +1211,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubscriptionDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1195,7 +1224,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1215,6 +1244,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateRoleFromGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1227,7 +1257,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1247,6 +1277,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateServiceRoleFromAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1259,7 +1290,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1279,6 +1310,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssociatedRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1291,7 +1323,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1311,6 +1343,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBulkDeploymentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1323,7 +1356,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1343,6 +1376,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectivityInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1355,7 +1389,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1375,6 +1409,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectorDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1387,7 +1422,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1407,6 +1442,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectorDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1420,7 +1456,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1440,6 +1476,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoreDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1452,7 +1489,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1472,6 +1509,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoreDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1522,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1542,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeploymentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1516,7 +1555,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1536,6 +1575,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeviceDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1548,7 +1588,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1568,6 +1608,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeviceDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1581,7 +1622,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1601,6 +1642,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunctionDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1613,7 +1655,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1633,6 +1675,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunctionDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1646,7 +1689,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1666,6 +1709,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1678,7 +1722,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1698,6 +1742,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1710,7 +1755,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1730,6 +1775,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupCertificateConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1742,7 +1788,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1762,6 +1808,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1774,7 +1821,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1794,6 +1841,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoggerDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1806,7 +1854,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1826,6 +1874,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoggerDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1839,7 +1888,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1859,6 +1908,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1871,7 +1921,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1891,6 +1941,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1903,7 +1954,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1923,6 +1974,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceRoleForAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1935,7 +1987,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1955,6 +2007,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSubscriptionDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1967,7 +2020,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1987,6 +2040,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSubscriptionDefinitionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2000,7 +2054,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2020,6 +2074,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getThingRuntimeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2032,7 +2087,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2052,6 +2107,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBulkDeploymentDetailedReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2065,7 +2121,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2085,6 +2141,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBulkDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2098,7 +2155,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2118,6 +2175,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnectorDefinitionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2131,7 +2189,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2151,6 +2209,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnectorDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2164,7 +2223,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2184,6 +2243,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCoreDefinitionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2197,7 +2257,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2217,6 +2277,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCoreDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2230,7 +2291,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2250,6 +2311,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2263,7 +2325,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2283,6 +2345,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceDefinitionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2296,7 +2359,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2316,6 +2379,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2329,7 +2393,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2349,6 +2413,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFunctionDefinitionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2362,7 +2427,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2382,6 +2447,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFunctionDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2395,7 +2461,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2415,6 +2481,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupCertificateAuthorities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2427,7 +2494,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2447,6 +2514,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2460,7 +2528,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2480,6 +2548,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2493,7 +2562,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2513,6 +2582,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLoggerDefinitionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2526,7 +2596,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2546,6 +2616,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLoggerDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2559,7 +2630,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2579,6 +2650,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceDefinitionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2592,7 +2664,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2612,6 +2684,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2625,7 +2698,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2645,6 +2718,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubscriptionDefinitionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2658,7 +2732,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2678,6 +2752,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubscriptionDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2691,7 +2766,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2711,6 +2786,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2723,7 +2799,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2743,6 +2819,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2759,7 +2836,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2779,6 +2856,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBulkDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2795,7 +2873,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2815,6 +2893,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopBulkDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2827,7 +2906,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2847,6 +2926,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2862,7 +2942,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2882,6 +2962,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2895,7 +2976,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2915,6 +2996,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnectivityInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2930,7 +3012,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2950,6 +3032,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnectorDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2965,7 +3048,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2985,6 +3068,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCoreDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3000,7 +3084,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3020,6 +3104,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeviceDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3035,7 +3120,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3055,6 +3140,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFunctionDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3070,7 +3156,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3090,6 +3176,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3105,7 +3192,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3125,6 +3212,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroupCertificateConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3140,7 +3228,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3160,6 +3248,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLoggerDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3175,7 +3264,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3195,6 +3284,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3210,7 +3300,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3230,6 +3320,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubscriptionDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3245,7 +3336,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3265,6 +3356,7 @@ extension GreengrassClient: GreengrassClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThingRuntimeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3280,7 +3372,7 @@ extension GreengrassClient: GreengrassClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGreengrass/models/Models.swift b/Sources/Services/AWSGreengrass/models/Models.swift index a21a88273a5..4f073c0e963 100644 --- a/Sources/Services/AWSGreengrass/models/Models.swift +++ b/Sources/Services/AWSGreengrass/models/Models.swift @@ -84,9 +84,8 @@ public enum AssociateRoleToGroupOutputError: Swift.Error, Swift.Equatable { extension AssociateRoleToGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateRoleToGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedAt = output.associatedAt } else { @@ -197,9 +196,8 @@ public enum AssociateServiceRoleToAccountOutputError: Swift.Error, Swift.Equatab extension AssociateServiceRoleToAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateServiceRoleToAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedAt = output.associatedAt } else { @@ -238,9 +236,8 @@ extension AssociateServiceRoleToAccountOutputResponseBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.errorDetails = output.errorDetails self.message = output.message @@ -256,7 +253,7 @@ extension BadRequestException { } /// General error information. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1029,9 +1026,8 @@ public enum CreateConnectorDefinitionOutputError: Swift.Error, Swift.Equatable { extension CreateConnectorDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectorDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -1233,9 +1229,8 @@ public enum CreateConnectorDefinitionVersionOutputError: Swift.Error, Swift.Equa extension CreateConnectorDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectorDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -1424,9 +1419,8 @@ public enum CreateCoreDefinitionOutputError: Swift.Error, Swift.Equatable { extension CreateCoreDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCoreDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -1628,9 +1622,8 @@ public enum CreateCoreDefinitionVersionOutputError: Swift.Error, Swift.Equatable extension CreateCoreDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCoreDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -1815,9 +1808,8 @@ public enum CreateDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentArn = output.deploymentArn self.deploymentId = output.deploymentId @@ -1985,9 +1977,8 @@ public enum CreateDeviceDefinitionOutputError: Swift.Error, Swift.Equatable { extension CreateDeviceDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeviceDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -2189,9 +2180,8 @@ public enum CreateDeviceDefinitionVersionOutputError: Swift.Error, Swift.Equatab extension CreateDeviceDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeviceDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -2379,9 +2369,8 @@ public enum CreateFunctionDefinitionOutputError: Swift.Error, Swift.Equatable { extension CreateFunctionDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFunctionDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -2596,9 +2585,8 @@ public enum CreateFunctionDefinitionVersionOutputError: Swift.Error, Swift.Equat extension CreateFunctionDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFunctionDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -2736,9 +2724,8 @@ public enum CreateGroupCertificateAuthorityOutputError: Swift.Error, Swift.Equat extension CreateGroupCertificateAuthorityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupCertificateAuthorityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupCertificateAuthorityArn = output.groupCertificateAuthorityArn } else { @@ -2897,9 +2884,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -3161,9 +3147,8 @@ public enum CreateGroupVersionOutputError: Swift.Error, Swift.Equatable { extension CreateGroupVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -3351,9 +3336,8 @@ public enum CreateLoggerDefinitionOutputError: Swift.Error, Swift.Equatable { extension CreateLoggerDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoggerDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -3555,9 +3539,8 @@ public enum CreateLoggerDefinitionVersionOutputError: Swift.Error, Swift.Equatab extension CreateLoggerDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoggerDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -3745,9 +3728,8 @@ public enum CreateResourceDefinitionOutputError: Swift.Error, Swift.Equatable { extension CreateResourceDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -3949,9 +3931,8 @@ public enum CreateResourceDefinitionVersionOutputError: Swift.Error, Swift.Equat extension CreateResourceDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -4182,9 +4163,8 @@ public enum CreateSoftwareUpdateJobOutputError: Swift.Error, Swift.Equatable { extension CreateSoftwareUpdateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSoftwareUpdateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iotJobArn = output.iotJobArn self.iotJobId = output.iotJobId @@ -4362,9 +4342,8 @@ public enum CreateSubscriptionDefinitionOutputError: Swift.Error, Swift.Equatabl extension CreateSubscriptionDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSubscriptionDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -4566,9 +4545,8 @@ public enum CreateSubscriptionDefinitionVersionOutputError: Swift.Error, Swift.E extension CreateSubscriptionDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSubscriptionDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -5542,9 +5520,8 @@ public enum DisassociateRoleFromGroupOutputError: Swift.Error, Swift.Equatable { extension DisassociateRoleFromGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateRoleFromGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disassociatedAt = output.disassociatedAt } else { @@ -5625,9 +5602,8 @@ public enum DisassociateServiceRoleFromAccountOutputError: Swift.Error, Swift.Eq extension DisassociateServiceRoleFromAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateServiceRoleFromAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disassociatedAt = output.disassociatedAt } else { @@ -6308,9 +6284,8 @@ public enum GetAssociatedRoleOutputError: Swift.Error, Swift.Equatable { extension GetAssociatedRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssociatedRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedAt = output.associatedAt self.roleArn = output.roleArn @@ -6412,9 +6387,8 @@ public enum GetBulkDeploymentStatusOutputError: Swift.Error, Swift.Equatable { extension GetBulkDeploymentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBulkDeploymentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bulkDeploymentMetrics = output.bulkDeploymentMetrics self.bulkDeploymentStatus = output.bulkDeploymentStatus @@ -6576,9 +6550,8 @@ public enum GetConnectivityInfoOutputError: Swift.Error, Swift.Equatable { extension GetConnectivityInfoOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectivityInfoOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectivityInfo = output.connectivityInfo self.message = output.message @@ -6689,9 +6662,8 @@ public enum GetConnectorDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetConnectorDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectorDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -6887,9 +6859,8 @@ public enum GetConnectorDefinitionVersionOutputError: Swift.Error, Swift.Equatab extension GetConnectorDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectorDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -7031,9 +7002,8 @@ public enum GetCoreDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetCoreDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoreDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -7212,9 +7182,8 @@ public enum GetCoreDefinitionVersionOutputError: Swift.Error, Swift.Equatable { extension GetCoreDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoreDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -7364,9 +7333,8 @@ public enum GetDeploymentStatusOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentStatus = output.deploymentStatus self.deploymentType = output.deploymentType @@ -7507,9 +7475,8 @@ public enum GetDeviceDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetDeviceDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -7705,9 +7672,8 @@ public enum GetDeviceDefinitionVersionOutputError: Swift.Error, Swift.Equatable extension GetDeviceDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -7849,9 +7815,8 @@ public enum GetFunctionDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetFunctionDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -8047,9 +8012,8 @@ public enum GetFunctionDefinitionVersionOutputError: Swift.Error, Swift.Equatabl extension GetFunctionDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -8201,9 +8165,8 @@ public enum GetGroupCertificateAuthorityOutputError: Swift.Error, Swift.Equatabl extension GetGroupCertificateAuthorityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupCertificateAuthorityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupCertificateAuthorityArn = output.groupCertificateAuthorityArn self.groupCertificateAuthorityId = output.groupCertificateAuthorityId @@ -8317,9 +8280,8 @@ public enum GetGroupCertificateConfigurationOutputError: Swift.Error, Swift.Equa extension GetGroupCertificateConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupCertificateConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateAuthorityExpiryInMilliseconds = output.certificateAuthorityExpiryInMilliseconds self.certificateExpiryInMilliseconds = output.certificateExpiryInMilliseconds @@ -8431,9 +8393,8 @@ public enum GetGroupOutputError: Swift.Error, Swift.Equatable { extension GetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -8612,9 +8573,8 @@ public enum GetGroupVersionOutputError: Swift.Error, Swift.Equatable { extension GetGroupVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -8746,9 +8706,8 @@ public enum GetLoggerDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetLoggerDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoggerDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -8944,9 +8903,8 @@ public enum GetLoggerDefinitionVersionOutputError: Swift.Error, Swift.Equatable extension GetLoggerDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoggerDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -9078,9 +9036,8 @@ public enum GetResourceDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetResourceDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -9259,9 +9216,8 @@ public enum GetResourceDefinitionVersionOutputError: Swift.Error, Swift.Equatabl extension GetResourceDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -9382,9 +9338,8 @@ public enum GetServiceRoleForAccountOutputError: Swift.Error, Swift.Equatable { extension GetServiceRoleForAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceRoleForAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedAt = output.associatedAt self.roleArn = output.roleArn @@ -9486,9 +9441,8 @@ public enum GetSubscriptionDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetSubscriptionDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSubscriptionDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -9684,9 +9638,8 @@ public enum GetSubscriptionDefinitionVersionOutputError: Swift.Error, Swift.Equa extension GetSubscriptionDefinitionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSubscriptionDefinitionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTimestamp = output.creationTimestamp @@ -9830,9 +9783,8 @@ public enum GetThingRuntimeConfigurationOutputError: Swift.Error, Swift.Equatabl extension GetThingRuntimeConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetThingRuntimeConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runtimeConfiguration = output.runtimeConfiguration } else { @@ -10151,9 +10103,8 @@ extension GreengrassClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.errorDetails = output.errorDetails self.message = output.message @@ -10169,7 +10120,7 @@ extension InternalServerErrorException { } /// General error information. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10301,9 +10252,8 @@ public enum ListBulkDeploymentDetailedReportsOutputError: Swift.Error, Swift.Equ extension ListBulkDeploymentDetailedReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBulkDeploymentDetailedReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deployments = output.deployments self.nextToken = output.nextToken @@ -10431,9 +10381,8 @@ public enum ListBulkDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ListBulkDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBulkDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bulkDeployments = output.bulkDeployments self.nextToken = output.nextToken @@ -10569,9 +10518,8 @@ public enum ListConnectorDefinitionVersionsOutputError: Swift.Error, Swift.Equat extension ListConnectorDefinitionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectorDefinitionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -10697,9 +10645,8 @@ public enum ListConnectorDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListConnectorDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectorDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definitions = output.definitions self.nextToken = output.nextToken @@ -10835,9 +10782,8 @@ public enum ListCoreDefinitionVersionsOutputError: Swift.Error, Swift.Equatable extension ListCoreDefinitionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCoreDefinitionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -10963,9 +10909,8 @@ public enum ListCoreDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListCoreDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCoreDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definitions = output.definitions self.nextToken = output.nextToken @@ -11101,9 +11046,8 @@ public enum ListDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deployments = output.deployments self.nextToken = output.nextToken @@ -11239,9 +11183,8 @@ public enum ListDeviceDefinitionVersionsOutputError: Swift.Error, Swift.Equatabl extension ListDeviceDefinitionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceDefinitionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -11367,9 +11310,8 @@ public enum ListDeviceDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListDeviceDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definitions = output.definitions self.nextToken = output.nextToken @@ -11505,9 +11447,8 @@ public enum ListFunctionDefinitionVersionsOutputError: Swift.Error, Swift.Equata extension ListFunctionDefinitionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFunctionDefinitionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -11633,9 +11574,8 @@ public enum ListFunctionDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListFunctionDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFunctionDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definitions = output.definitions self.nextToken = output.nextToken @@ -11748,9 +11688,8 @@ public enum ListGroupCertificateAuthoritiesOutputError: Swift.Error, Swift.Equat extension ListGroupCertificateAuthoritiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupCertificateAuthoritiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupCertificateAuthorities = output.groupCertificateAuthorities } else { @@ -11876,9 +11815,8 @@ public enum ListGroupVersionsOutputError: Swift.Error, Swift.Equatable { extension ListGroupVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -12004,9 +11942,8 @@ public enum ListGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.nextToken = output.nextToken @@ -12142,9 +12079,8 @@ public enum ListLoggerDefinitionVersionsOutputError: Swift.Error, Swift.Equatabl extension ListLoggerDefinitionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLoggerDefinitionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -12270,9 +12206,8 @@ public enum ListLoggerDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListLoggerDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLoggerDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definitions = output.definitions self.nextToken = output.nextToken @@ -12408,9 +12343,8 @@ public enum ListResourceDefinitionVersionsOutputError: Swift.Error, Swift.Equata extension ListResourceDefinitionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceDefinitionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -12536,9 +12470,8 @@ public enum ListResourceDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListResourceDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definitions = output.definitions self.nextToken = output.nextToken @@ -12674,9 +12607,8 @@ public enum ListSubscriptionDefinitionVersionsOutputError: Swift.Error, Swift.Eq extension ListSubscriptionDefinitionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubscriptionDefinitionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -12802,9 +12734,8 @@ public enum ListSubscriptionDefinitionsOutputError: Swift.Error, Swift.Equatable extension ListSubscriptionDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubscriptionDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definitions = output.definitions self.nextToken = output.nextToken @@ -12915,9 +12846,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -13421,9 +13351,8 @@ public enum ResetDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ResetDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentArn = output.deploymentArn self.deploymentId = output.deploymentId @@ -14101,9 +14030,8 @@ public enum StartBulkDeploymentOutputError: Swift.Error, Swift.Equatable { extension StartBulkDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartBulkDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bulkDeploymentArn = output.bulkDeploymentArn self.bulkDeploymentId = output.bulkDeploymentId @@ -14773,9 +14701,8 @@ public enum UpdateConnectivityInfoOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectivityInfoOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectivityInfoOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.version = output.version @@ -15251,9 +15178,8 @@ public enum UpdateGroupCertificateConfigurationOutputError: Swift.Error, Swift.E extension UpdateGroupCertificateConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGroupCertificateConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateAuthorityExpiryInMilliseconds = output.certificateAuthorityExpiryInMilliseconds self.certificateExpiryInMilliseconds = output.certificateExpiryInMilliseconds diff --git a/Sources/Services/AWSGreengrassV2/GreengrassV2Client.swift b/Sources/Services/AWSGreengrassV2/GreengrassV2Client.swift index 5a2816cf10d..3aeff74a1fa 100644 --- a/Sources/Services/AWSGreengrassV2/GreengrassV2Client.swift +++ b/Sources/Services/AWSGreengrassV2/GreengrassV2Client.swift @@ -208,6 +208,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateServiceRoleToAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateClientDeviceWithCoreDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateClientDeviceFromCoreDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -370,6 +374,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComponentVersion") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -393,7 +398,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -413,6 +418,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeployment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -436,7 +442,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -456,6 +462,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +475,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +495,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCoreDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +508,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +528,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -532,7 +541,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -552,6 +561,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +574,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +594,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateServiceRoleFromAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -596,7 +607,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +627,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +641,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -649,6 +661,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComponentVersionArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -661,7 +674,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -681,6 +694,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectivityInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -693,7 +707,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -723,6 +737,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoreDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -735,7 +750,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -755,6 +770,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -767,7 +783,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -787,6 +803,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceRoleForAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -799,7 +816,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -819,6 +836,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClientDevicesAssociatedWithCoreDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -832,7 +850,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -852,6 +870,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponentVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -865,7 +884,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -885,6 +904,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -898,7 +918,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCoreDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -941,7 +962,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -961,6 +982,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -974,7 +996,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -994,6 +1016,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEffectiveDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1007,7 +1030,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1037,6 +1060,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstalledComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1050,7 +1074,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1070,6 +1094,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1082,7 +1107,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1102,6 +1127,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resolveComponentCandidates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1117,7 +1143,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1137,6 +1163,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1152,7 +1179,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1172,6 +1199,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1185,7 +1213,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1205,6 +1233,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "greengrass") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnectivityInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1220,7 +1249,7 @@ extension GreengrassV2Client: GreengrassV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGreengrassV2/models/Models.swift b/Sources/Services/AWSGreengrassV2/models/Models.swift index c10fc1fefc3..8b3e5ef7164 100644 --- a/Sources/Services/AWSGreengrassV2/models/Models.swift +++ b/Sources/Services/AWSGreengrassV2/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have permission to perform the action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -220,9 +219,8 @@ public enum AssociateServiceRoleToAccountOutputError: Swift.Error, Swift.Equatab extension AssociateServiceRoleToAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateServiceRoleToAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedAt = output.associatedAt } else { @@ -403,9 +401,8 @@ public enum BatchAssociateClientDeviceWithCoreDeviceOutputError: Swift.Error, Sw extension BatchAssociateClientDeviceWithCoreDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateClientDeviceWithCoreDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -550,9 +547,8 @@ public enum BatchDisassociateClientDeviceFromCoreDeviceOutputError: Swift.Error, extension BatchDisassociateClientDeviceFromCoreDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateClientDeviceFromCoreDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -663,9 +659,8 @@ public enum CancelDeploymentOutputError: Swift.Error, Swift.Equatable { extension CancelDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1452,9 +1447,8 @@ extension GreengrassV2ClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1472,7 +1466,7 @@ extension ConflictException { } /// Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1812,9 +1806,8 @@ public enum CreateComponentVersionOutputError: Swift.Error, Swift.Equatable { extension CreateComponentVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateComponentVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.componentName = output.componentName @@ -2087,9 +2080,8 @@ public enum CreateDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentId = output.deploymentId self.iotJobArn = output.iotJobArn @@ -2867,9 +2859,8 @@ public enum DescribeComponentOutputError: Swift.Error, Swift.Equatable { extension DescribeComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.componentName = output.componentName @@ -3139,9 +3130,8 @@ public enum DisassociateServiceRoleFromAccountOutputError: Swift.Error, Swift.Eq extension DisassociateServiceRoleFromAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateServiceRoleFromAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disassociatedAt = output.disassociatedAt } else { @@ -3534,9 +3524,8 @@ public enum GetComponentOutputError: Swift.Error, Swift.Equatable { extension GetComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recipe = output.recipe self.recipeOutputFormat = output.recipeOutputFormat @@ -3675,9 +3664,8 @@ public enum GetComponentVersionArtifactOutputError: Swift.Error, Swift.Equatable extension GetComponentVersionArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComponentVersionArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preSignedUrl = output.preSignedUrl } else { @@ -3772,9 +3760,8 @@ public enum GetConnectivityInfoOutputError: Swift.Error, Swift.Equatable { extension GetConnectivityInfoOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectivityInfoOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectivityInfo = output.connectivityInfo self.message = output.message @@ -3893,9 +3880,8 @@ public enum GetCoreDeviceOutputError: Swift.Error, Swift.Equatable { extension GetCoreDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoreDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architecture = output.architecture self.coreDeviceThingName = output.coreDeviceThingName @@ -4068,9 +4054,8 @@ public enum GetDeploymentOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.components = output.components self.creationTimestamp = output.creationTimestamp @@ -4299,9 +4284,8 @@ public enum GetServiceRoleForAccountOutputError: Swift.Error, Swift.Equatable { extension GetServiceRoleForAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceRoleForAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedAt = output.associatedAt self.roleArn = output.roleArn @@ -4564,9 +4548,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4580,7 +4563,7 @@ extension InternalServerException { } /// IoT Greengrass can't process your request right now. Try again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5802,9 +5785,8 @@ public enum ListClientDevicesAssociatedWithCoreDeviceOutputError: Swift.Error, S extension ListClientDevicesAssociatedWithCoreDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClientDevicesAssociatedWithCoreDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedClientDevices = output.associatedClientDevices self.nextToken = output.nextToken @@ -5948,9 +5930,8 @@ public enum ListComponentVersionsOutputError: Swift.Error, Swift.Equatable { extension ListComponentVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentVersions = output.componentVersions self.nextToken = output.nextToken @@ -6094,9 +6075,8 @@ public enum ListComponentsOutputError: Swift.Error, Swift.Equatable { extension ListComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.components = output.components self.nextToken = output.nextToken @@ -6250,9 +6230,8 @@ public enum ListCoreDevicesOutputError: Swift.Error, Swift.Equatable { extension ListCoreDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCoreDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreDevices = output.coreDevices self.nextToken = output.nextToken @@ -6417,9 +6396,8 @@ public enum ListDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deployments = output.deployments self.nextToken = output.nextToken @@ -6563,9 +6541,8 @@ public enum ListEffectiveDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ListEffectiveDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEffectiveDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.effectiveDeployments = output.effectiveDeployments self.nextToken = output.nextToken @@ -6724,9 +6701,8 @@ public enum ListInstalledComponentsOutputError: Swift.Error, Swift.Equatable { extension ListInstalledComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstalledComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.installedComponents = output.installedComponents self.nextToken = output.nextToken @@ -6841,9 +6817,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6923,9 +6898,8 @@ extension GreengrassV2ClientTypes { extension RequestAlreadyInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestAlreadyInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6939,7 +6913,7 @@ extension RequestAlreadyInProgressException { } /// The request is already in progress. This exception occurs when you use a client token for multiple requests while IoT Greengrass is still processing an earlier request that uses the same client token. -public struct RequestAlreadyInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestAlreadyInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7079,9 +7053,8 @@ public enum ResolveComponentCandidatesOutputError: Swift.Error, Swift.Equatable extension ResolveComponentCandidatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResolveComponentCandidatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolvedComponentVersions = output.resolvedComponentVersions } else { @@ -7220,9 +7193,8 @@ extension GreengrassV2ClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -7240,7 +7212,7 @@ extension ResourceNotFoundException { } /// The requested resource can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7295,9 +7267,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -7319,7 +7290,7 @@ extension ServiceQuotaExceededException { } /// Your request exceeds a service quota. For example, you might have the maximum number of components that you can create. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7544,9 +7515,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -7564,7 +7534,7 @@ extension ThrottlingException { } /// Your request exceeded a request rate quota. For example, you might have exceeded the amount of times that you can retrieve device or deployment status per second. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7802,9 +7772,8 @@ public enum UpdateConnectivityInfoOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectivityInfoOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectivityInfoOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.version = output.version @@ -7853,9 +7822,8 @@ extension UpdateConnectivityInfoOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -7873,7 +7841,7 @@ extension ValidationException { } /// The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSGroundStation/GroundStationClient.swift b/Sources/Services/AWSGroundStation/GroundStationClient.swift index 1192af36383..686098e2f0c 100644 --- a/Sources/Services/AWSGroundStation/GroundStationClient.swift +++ b/Sources/Services/AWSGroundStation/GroundStationClient.swift @@ -208,6 +208,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataflowEndpointGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEphemeris") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMissionProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -392,7 +398,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +418,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataflowEndpointGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +431,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +451,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEphemeris") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +464,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +484,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMissionProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +497,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +517,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +530,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +550,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEphemeris") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -552,7 +563,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -572,6 +583,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAgentConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +596,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +616,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -616,7 +629,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +649,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataflowEndpointGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +662,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -668,6 +682,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMinuteUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -683,7 +698,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -703,6 +718,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMissionProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -715,7 +731,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -735,6 +751,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSatellite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -747,7 +764,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -767,6 +784,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +798,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +818,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -815,7 +834,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -835,6 +854,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataflowEndpointGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -848,7 +868,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -868,6 +888,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEphemerides") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +905,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +925,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroundStations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -917,7 +939,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -937,6 +959,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMissionProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -950,7 +973,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -970,6 +993,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSatellites") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -983,7 +1007,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1003,6 +1027,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1015,7 +1040,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1035,6 +1060,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerAgent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1050,7 +1076,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1070,6 +1096,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reserveContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1085,7 +1112,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1105,6 +1132,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1120,7 +1148,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1140,6 +1168,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1153,7 +1182,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1173,6 +1202,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAgentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1188,7 +1218,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1208,6 +1238,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1223,7 +1254,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1243,6 +1274,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEphemeris") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1258,7 +1290,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1278,6 +1310,7 @@ extension GroundStationClient: GroundStationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "groundstation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMissionProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1293,7 +1326,7 @@ extension GroundStationClient: GroundStationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGroundStation/models/Models.swift b/Sources/Services/AWSGroundStation/models/Models.swift index 4a02e21e7b3..86d7c3a8ebb 100644 --- a/Sources/Services/AWSGroundStation/models/Models.swift +++ b/Sources/Services/AWSGroundStation/models/Models.swift @@ -646,9 +646,8 @@ public enum CancelContactOutputError: Swift.Error, Swift.Equatable { extension CancelContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactId = output.contactId } else { @@ -1583,9 +1582,8 @@ public enum CreateConfigOutputError: Swift.Error, Swift.Equatable { extension CreateConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configArn = output.configArn self.configId = output.configId @@ -1780,9 +1778,8 @@ public enum CreateDataflowEndpointGroupOutputError: Swift.Error, Swift.Equatable extension CreateDataflowEndpointGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataflowEndpointGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataflowEndpointGroupId = output.dataflowEndpointGroupId } else { @@ -1993,9 +1990,8 @@ public enum CreateEphemerisOutputError: Swift.Error, Swift.Equatable { extension CreateEphemerisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEphemerisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ephemerisId = output.ephemerisId } else { @@ -2244,9 +2240,8 @@ public enum CreateMissionProfileOutputError: Swift.Error, Swift.Equatable { extension CreateMissionProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMissionProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.missionProfileId = output.missionProfileId } else { @@ -2634,9 +2629,8 @@ public enum DeleteConfigOutputError: Swift.Error, Swift.Equatable { extension DeleteConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configArn = output.configArn self.configId = output.configId @@ -2754,9 +2748,8 @@ public enum DeleteDataflowEndpointGroupOutputError: Swift.Error, Swift.Equatable extension DeleteDataflowEndpointGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDataflowEndpointGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataflowEndpointGroupId = output.dataflowEndpointGroupId } else { @@ -2853,9 +2846,8 @@ public enum DeleteEphemerisOutputError: Swift.Error, Swift.Equatable { extension DeleteEphemerisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEphemerisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ephemerisId = output.ephemerisId } else { @@ -2952,9 +2944,8 @@ public enum DeleteMissionProfileOutputError: Swift.Error, Swift.Equatable { extension DeleteMissionProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMissionProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.missionProfileId = output.missionProfileId } else { @@ -3030,9 +3021,8 @@ extension GroundStationClientTypes { extension DependencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.parameterName = output.parameterName @@ -3048,7 +3038,7 @@ extension DependencyException { } /// Dependency encountered an error. -public struct DependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3150,9 +3140,8 @@ public enum DescribeContactOutputError: Swift.Error, Swift.Equatable { extension DescribeContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactId = output.contactId self.contactStatus = output.contactStatus @@ -3397,9 +3386,8 @@ public enum DescribeEphemerisOutputError: Swift.Error, Swift.Equatable { extension DescribeEphemerisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEphemerisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.enabled = output.enabled @@ -4561,9 +4549,8 @@ public enum GetAgentConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetAgentConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAgentConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentId = output.agentId self.taskingDocument = output.taskingDocument @@ -4678,9 +4665,8 @@ public enum GetConfigOutputError: Swift.Error, Swift.Equatable { extension GetConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configArn = output.configArn self.configData = output.configData @@ -4841,9 +4827,8 @@ public enum GetDataflowEndpointGroupOutputError: Swift.Error, Swift.Equatable { extension GetDataflowEndpointGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataflowEndpointGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactPostPassDurationSeconds = output.contactPostPassDurationSeconds self.contactPrePassDurationSeconds = output.contactPrePassDurationSeconds @@ -5039,9 +5024,8 @@ public enum GetMinuteUsageOutputError: Swift.Error, Swift.Equatable { extension GetMinuteUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMinuteUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.estimatedMinutesRemaining = output.estimatedMinutesRemaining self.isReservedMinutesCustomer = output.isReservedMinutesCustomer @@ -5179,9 +5163,8 @@ public enum GetMissionProfileOutputError: Swift.Error, Swift.Equatable { extension GetMissionProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMissionProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactPostPassDurationSeconds = output.contactPostPassDurationSeconds self.contactPrePassDurationSeconds = output.contactPrePassDurationSeconds @@ -5416,9 +5399,8 @@ public enum GetSatelliteOutputError: Swift.Error, Swift.Equatable { extension GetSatelliteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSatelliteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currentEphemeris = output.currentEphemeris self.groundStations = output.groundStations @@ -5609,9 +5591,8 @@ extension GroundStationClientTypes { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.parameterName = output.parameterName @@ -5627,7 +5608,7 @@ extension InvalidParameterException { } /// One or more parameters are not valid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5793,9 +5774,8 @@ public enum ListConfigsOutputError: Swift.Error, Swift.Equatable { extension ListConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configList = output.configList self.nextToken = output.nextToken @@ -6027,9 +6007,8 @@ public enum ListContactsOutputError: Swift.Error, Swift.Equatable { extension ListContactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactList = output.contactList self.nextToken = output.nextToken @@ -6163,9 +6142,8 @@ public enum ListDataflowEndpointGroupsOutputError: Swift.Error, Swift.Equatable extension ListDataflowEndpointGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataflowEndpointGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataflowEndpointGroupList = output.dataflowEndpointGroupList self.nextToken = output.nextToken @@ -6373,9 +6351,8 @@ public enum ListEphemeridesOutputError: Swift.Error, Swift.Equatable { extension ListEphemeridesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEphemeridesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ephemerides = output.ephemerides self.nextToken = output.nextToken @@ -6516,9 +6493,8 @@ public enum ListGroundStationsOutputError: Swift.Error, Swift.Equatable { extension ListGroundStationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroundStationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groundStationList = output.groundStationList self.nextToken = output.nextToken @@ -6652,9 +6628,8 @@ public enum ListMissionProfilesOutputError: Swift.Error, Swift.Equatable { extension ListMissionProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMissionProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.missionProfileList = output.missionProfileList self.nextToken = output.nextToken @@ -6788,9 +6763,8 @@ public enum ListSatellitesOutputError: Swift.Error, Swift.Equatable { extension ListSatellitesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSatellitesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.satellites = output.satellites @@ -6907,9 +6881,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7283,9 +7256,8 @@ public enum RegisterAgentOutputError: Swift.Error, Swift.Equatable { extension RegisterAgentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterAgentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentId = output.agentId } else { @@ -7475,9 +7447,8 @@ public enum ReserveContactOutputError: Swift.Error, Swift.Equatable { extension ReserveContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReserveContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactId = output.contactId } else { @@ -7517,9 +7488,8 @@ extension ReserveContactOutputResponseBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.parameterName = output.parameterName @@ -7535,7 +7505,7 @@ extension ResourceLimitExceededException { } /// Account limits for this resource have been exceeded. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7579,9 +7549,8 @@ extension ResourceLimitExceededExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7595,7 +7564,7 @@ extension ResourceNotFoundException { } /// Resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8647,9 +8616,8 @@ public enum UpdateAgentStatusOutputError: Swift.Error, Swift.Equatable { extension UpdateAgentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAgentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentId = output.agentId } else { @@ -8793,9 +8761,8 @@ public enum UpdateConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configArn = output.configArn self.configId = output.configId @@ -8961,9 +8928,8 @@ public enum UpdateEphemerisOutputError: Swift.Error, Swift.Equatable { extension UpdateEphemerisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEphemerisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ephemerisId = output.ephemerisId } else { @@ -9192,9 +9158,8 @@ public enum UpdateMissionProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateMissionProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMissionProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.missionProfileId = output.missionProfileId } else { diff --git a/Sources/Services/AWSGuardDuty/GuardDutyClient.swift b/Sources/Services/AWSGuardDuty/GuardDutyClient.swift index 2658212ce83..adb31c2f070 100644 --- a/Sources/Services/AWSGuardDuty/GuardDutyClient.swift +++ b/Sources/Services/AWSGuardDuty/GuardDutyClient.swift @@ -208,6 +208,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptAdministratorInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -259,7 +261,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -279,6 +281,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "archiveFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -294,7 +297,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -314,6 +317,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDetector") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -337,7 +341,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -357,6 +361,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFilter") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -380,7 +385,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -400,6 +405,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIPSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -423,7 +429,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -443,6 +449,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -458,7 +465,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -478,6 +485,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPublishingDestination") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -501,7 +509,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -521,6 +529,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSampleFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -536,7 +545,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -556,6 +565,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createThreatIntelSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -579,7 +589,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -599,6 +609,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "declineInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -614,7 +625,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -634,6 +645,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -646,7 +658,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -666,6 +678,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +691,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +711,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -710,7 +724,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -730,6 +744,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -745,7 +760,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -765,6 +780,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +796,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +816,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePublishingDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -812,7 +829,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -832,6 +849,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteThreatIntelSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +862,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +882,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMalwareScans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +898,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +918,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +932,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +952,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePublishingDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -979,7 +1001,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -999,6 +1021,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFromAdministratorAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1011,7 +1034,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1032,6 +1055,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFromMasterAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1044,7 +1068,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1064,6 +1088,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1079,7 +1104,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1099,6 +1124,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1114,7 +1140,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1134,6 +1160,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAdministratorAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1146,7 +1173,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1166,6 +1193,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoverageStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1181,7 +1209,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1201,6 +1229,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1213,7 +1242,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1233,6 +1262,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1245,7 +1275,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1265,6 +1295,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1311,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1331,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindingsStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1315,7 +1347,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1335,6 +1367,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1380,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1367,6 +1400,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInvitationsCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1379,7 +1413,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1399,6 +1433,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMalwareScanSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1411,7 +1446,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1467,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMasterAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1444,7 +1480,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1464,6 +1500,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMemberDetectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1479,7 +1516,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1499,6 +1536,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1514,7 +1552,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1534,6 +1572,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRemainingFreeTrialDays") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1549,7 +1588,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1569,6 +1608,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getThreatIntelSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1581,7 +1621,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1601,6 +1641,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsageStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1616,7 +1657,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1636,6 +1677,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "inviteMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1651,7 +1693,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1671,6 +1713,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCoverage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1686,7 +1729,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1706,6 +1749,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDetectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1719,7 +1763,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1739,6 +1783,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1752,7 +1797,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1772,6 +1817,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1787,7 +1833,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1807,6 +1853,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIPSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1820,7 +1867,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1840,6 +1887,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1853,7 +1901,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1873,6 +1921,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1886,7 +1935,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1906,6 +1955,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizationAdminAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1919,7 +1969,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1939,6 +1989,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPublishingDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +2003,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2023,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1984,7 +2036,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2004,6 +2056,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThreatIntelSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2017,7 +2070,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2037,6 +2090,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMonitoringMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2052,7 +2106,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2072,6 +2126,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopMonitoringMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2087,7 +2142,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2107,6 +2162,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2122,7 +2178,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2142,6 +2198,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unarchiveFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2157,7 +2214,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2177,6 +2234,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2190,7 +2248,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2210,6 +2268,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2225,7 +2284,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2245,6 +2304,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2260,7 +2320,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2280,6 +2340,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFindingsFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2295,7 +2356,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2315,6 +2376,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2330,7 +2392,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2350,6 +2412,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMalwareScanSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2365,7 +2428,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2385,6 +2448,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMemberDetectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2400,7 +2464,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2420,6 +2484,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2435,7 +2500,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2455,6 +2520,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePublishingDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2470,7 +2536,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2490,6 +2556,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "guardduty") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThreatIntelSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2505,7 +2572,7 @@ extension GuardDutyClient: GuardDutyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSGuardDuty/models/Models.swift b/Sources/Services/AWSGuardDuty/models/Models.swift index 6a2ad8d13bc..6a94199d7e9 100644 --- a/Sources/Services/AWSGuardDuty/models/Models.swift +++ b/Sources/Services/AWSGuardDuty/models/Models.swift @@ -1018,9 +1018,8 @@ extension GuardDutyClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -1036,7 +1035,7 @@ extension BadRequestException { } /// A bad request exception object. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2454,9 +2453,8 @@ public enum CreateDetectorOutputError: Swift.Error, Swift.Equatable { extension CreateDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorId = output.detectorId self.unprocessedDataSources = output.unprocessedDataSources @@ -2780,9 +2778,8 @@ public enum CreateFilterOutputError: Swift.Error, Swift.Equatable { extension CreateFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -2977,9 +2974,8 @@ public enum CreateIPSetOutputError: Swift.Error, Swift.Equatable { extension CreateIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipSetId = output.ipSetId } else { @@ -3111,9 +3107,8 @@ public enum CreateMembersOutputError: Swift.Error, Swift.Equatable { extension CreateMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -3267,9 +3262,8 @@ public enum CreatePublishingDestinationOutputError: Swift.Error, Swift.Equatable extension CreatePublishingDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePublishingDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationId = output.destinationId } else { @@ -3565,9 +3559,8 @@ public enum CreateThreatIntelSetOutputError: Swift.Error, Swift.Equatable { extension CreateThreatIntelSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateThreatIntelSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.threatIntelSetId = output.threatIntelSetId } else { @@ -4111,9 +4104,8 @@ public enum DeclineInvitationsOutputError: Swift.Error, Swift.Equatable { extension DeclineInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeclineInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -4502,9 +4494,8 @@ public enum DeleteInvitationsOutputError: Swift.Error, Swift.Equatable { extension DeleteInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -4645,9 +4636,8 @@ public enum DeleteMembersOutputError: Swift.Error, Swift.Equatable { extension DeleteMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -4957,9 +4947,8 @@ public enum DescribeMalwareScansOutputError: Swift.Error, Swift.Equatable { extension DescribeMalwareScansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMalwareScansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scans = output.scans @@ -5098,9 +5087,8 @@ public enum DescribeOrganizationConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeOrganizationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnable = output.autoEnable self.autoEnableOrganizationMembers = output.autoEnableOrganizationMembers @@ -5270,9 +5258,8 @@ public enum DescribePublishingDestinationOutputError: Swift.Error, Swift.Equatab extension DescribePublishingDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePublishingDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationId = output.destinationId self.destinationProperties = output.destinationProperties @@ -6161,9 +6148,8 @@ public enum DisassociateMembersOutputError: Swift.Error, Swift.Equatable { extension DisassociateMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -7895,9 +7881,8 @@ public enum GetAdministratorAccountOutputError: Swift.Error, Swift.Equatable { extension GetAdministratorAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAdministratorAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.administrator = output.administrator } else { @@ -8041,9 +8026,8 @@ public enum GetCoverageStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetCoverageStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoverageStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coverageStatistics = output.coverageStatistics } else { @@ -8137,9 +8121,8 @@ public enum GetDetectorOutputError: Swift.Error, Swift.Equatable { extension GetDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.dataSources = output.dataSources @@ -8332,9 +8315,8 @@ public enum GetFilterOutputError: Swift.Error, Swift.Equatable { extension GetFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.description = output.description @@ -8539,9 +8521,8 @@ public enum GetFindingsOutputError: Swift.Error, Swift.Equatable { extension GetFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings } else { @@ -8694,9 +8675,8 @@ public enum GetFindingsStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetFindingsStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingsStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingStatistics = output.findingStatistics } else { @@ -8799,9 +8779,8 @@ public enum GetIPSetOutputError: Swift.Error, Swift.Equatable { extension GetIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.format = output.format self.location = output.location @@ -8937,9 +8916,8 @@ public enum GetInvitationsCountOutputError: Swift.Error, Swift.Equatable { extension GetInvitationsCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInvitationsCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invitationsCount = output.invitationsCount } else { @@ -9033,9 +9011,8 @@ public enum GetMalwareScanSettingsOutputError: Swift.Error, Swift.Equatable { extension GetMalwareScanSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMalwareScanSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ebsSnapshotPreservation = output.ebsSnapshotPreservation self.scanResourceCriteria = output.scanResourceCriteria @@ -9140,9 +9117,8 @@ public enum GetMasterAccountOutputError: Swift.Error, Swift.Equatable { extension GetMasterAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMasterAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.master = output.master } else { @@ -9275,9 +9251,8 @@ public enum GetMemberDetectorsOutputError: Swift.Error, Swift.Equatable { extension GetMemberDetectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMemberDetectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberDataSourceConfigurations = output.memberDataSourceConfigurations self.unprocessedAccounts = output.unprocessedAccounts @@ -9438,9 +9413,8 @@ public enum GetMembersOutputError: Swift.Error, Swift.Equatable { extension GetMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.unprocessedAccounts = output.unprocessedAccounts @@ -9600,9 +9574,8 @@ public enum GetRemainingFreeTrialDaysOutputError: Swift.Error, Swift.Equatable { extension GetRemainingFreeTrialDaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRemainingFreeTrialDaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.unprocessedAccounts = output.unprocessedAccounts @@ -9732,9 +9705,8 @@ public enum GetThreatIntelSetOutputError: Swift.Error, Swift.Equatable { extension GetThreatIntelSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetThreatIntelSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.format = output.format self.location = output.location @@ -9955,9 +9927,8 @@ public enum GetUsageStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetUsageStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsageStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.usageStatistics = output.usageStatistics @@ -10332,9 +10303,8 @@ extension GuardDutyClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -10350,7 +10320,7 @@ extension InternalServerErrorException { } /// An internal server error exception object. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10576,9 +10546,8 @@ public enum InviteMembersOutputError: Swift.Error, Swift.Equatable { extension InviteMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InviteMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -11465,9 +11434,8 @@ public enum ListCoverageOutputError: Swift.Error, Swift.Equatable { extension ListCoverageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCoverageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resources = output.resources @@ -11598,9 +11566,8 @@ public enum ListDetectorsOutputError: Swift.Error, Swift.Equatable { extension ListDetectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDetectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorIds = output.detectorIds self.nextToken = output.nextToken @@ -11739,9 +11706,8 @@ public enum ListFiltersOutputError: Swift.Error, Swift.Equatable { extension ListFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.filterNames = output.filterNames self.nextToken = output.nextToken @@ -12011,9 +11977,8 @@ public enum ListFindingsOutputError: Swift.Error, Swift.Equatable { extension ListFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingIds = output.findingIds self.nextToken = output.nextToken @@ -12152,9 +12117,8 @@ public enum ListIPSetsOutputError: Swift.Error, Swift.Equatable { extension ListIPSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIPSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipSetIds = output.ipSetIds self.nextToken = output.nextToken @@ -12285,9 +12249,8 @@ public enum ListInvitationsOutputError: Swift.Error, Swift.Equatable { extension ListInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invitations = output.invitations self.nextToken = output.nextToken @@ -12433,9 +12396,8 @@ public enum ListMembersOutputError: Swift.Error, Swift.Equatable { extension ListMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.nextToken = output.nextToken @@ -12565,9 +12527,8 @@ public enum ListOrganizationAdminAccountsOutputError: Swift.Error, Swift.Equatab extension ListOrganizationAdminAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationAdminAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adminAccounts = output.adminAccounts self.nextToken = output.nextToken @@ -12705,9 +12666,8 @@ public enum ListPublishingDestinationsOutputError: Swift.Error, Swift.Equatable extension ListPublishingDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPublishingDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinations = output.destinations self.nextToken = output.nextToken @@ -12821,9 +12781,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -12951,9 +12910,8 @@ public enum ListThreatIntelSetsOutputError: Swift.Error, Swift.Equatable { extension ListThreatIntelSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThreatIntelSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.threatIntelSetIds = output.threatIntelSetIds @@ -17827,9 +17785,8 @@ public enum StartMonitoringMembersOutputError: Swift.Error, Swift.Equatable { extension StartMonitoringMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMonitoringMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -17970,9 +17927,8 @@ public enum StopMonitoringMembersOutputError: Swift.Error, Swift.Equatable { extension StopMonitoringMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopMonitoringMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -19050,9 +19006,8 @@ public enum UpdateFilterOutputError: Swift.Error, Swift.Equatable { extension UpdateFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name } else { @@ -19570,9 +19525,8 @@ public enum UpdateMemberDetectorsOutputError: Swift.Error, Swift.Equatable { extension UpdateMemberDetectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMemberDetectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { diff --git a/Sources/Services/AWSHealth/HealthClient.swift b/Sources/Services/AWSHealth/HealthClient.swift index 157b852a106..0d4c02f9859 100644 --- a/Sources/Services/AWSHealth/HealthClient.swift +++ b/Sources/Services/AWSHealth/HealthClient.swift @@ -208,6 +208,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAffectedAccountsForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -248,6 +249,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAffectedEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -264,7 +266,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAffectedEntitiesForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEntityAggregates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventAggregates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -439,6 +445,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventDetailsForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +462,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +482,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -491,7 +499,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -515,6 +523,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -531,7 +540,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -560,6 +569,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventsForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -576,7 +586,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -596,6 +606,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHealthServiceStatusForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -612,7 +623,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -632,6 +643,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableHealthServiceAccessForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +660,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -675,6 +687,7 @@ extension HealthClient: HealthClientProtocol { .withRegion(value: config.region) .withSigningName(value: "health") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableHealthServiceAccessForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -691,7 +704,7 @@ extension HealthClient: HealthClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSHealth/models/Models.swift b/Sources/Services/AWSHealth/models/Models.swift index 3a7571650e0..3dc90c06b60 100644 --- a/Sources/Services/AWSHealth/models/Models.swift +++ b/Sources/Services/AWSHealth/models/Models.swift @@ -121,9 +121,8 @@ extension HealthClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -137,7 +136,7 @@ extension ConcurrentModificationException { } /// [EnableHealthServiceAccessForOrganization](https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html) is already in progress. Wait for the action to complete before trying again. To get the current status, use the [DescribeHealthServiceStatusForOrganization](https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html) operation. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -312,9 +311,8 @@ public enum DescribeAffectedAccountsForOrganizationOutputError: Swift.Error, Swi extension DescribeAffectedAccountsForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAffectedAccountsForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.affectedAccounts = output.affectedAccounts self.eventScopeCode = output.eventScopeCode @@ -508,9 +506,8 @@ public enum DescribeAffectedEntitiesForOrganizationOutputError: Swift.Error, Swi extension DescribeAffectedEntitiesForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAffectedEntitiesForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.failedSet = output.failedSet @@ -695,9 +692,8 @@ public enum DescribeAffectedEntitiesOutputError: Swift.Error, Swift.Equatable { extension DescribeAffectedEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAffectedEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -834,9 +830,8 @@ public enum DescribeEntityAggregatesOutputError: Swift.Error, Swift.Equatable { extension DescribeEntityAggregatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEntityAggregatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entityAggregates = output.entityAggregates } else { @@ -990,9 +985,8 @@ public enum DescribeEventAggregatesOutputError: Swift.Error, Swift.Equatable { extension DescribeEventAggregatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventAggregatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventAggregates = output.eventAggregates self.nextToken = output.nextToken @@ -1144,9 +1138,8 @@ public enum DescribeEventDetailsForOrganizationOutputError: Swift.Error, Swift.E extension DescribeEventDetailsForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventDetailsForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedSet = output.failedSet self.successfulSet = output.successfulSet @@ -1307,9 +1300,8 @@ public enum DescribeEventDetailsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedSet = output.failedSet self.successfulSet = output.successfulSet @@ -1483,9 +1475,8 @@ public enum DescribeEventTypesOutputError: Swift.Error, Swift.Equatable { extension DescribeEventTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTypes = output.eventTypes self.nextToken = output.nextToken @@ -1650,9 +1641,8 @@ public enum DescribeEventsForOrganizationOutputError: Swift.Error, Swift.Equatab extension DescribeEventsForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -1817,9 +1807,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -1925,9 +1914,8 @@ public enum DescribeHealthServiceStatusForOrganizationOutputError: Swift.Error, extension DescribeHealthServiceStatusForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHealthServiceStatusForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthServiceAccessStatusForOrganization = output.healthServiceAccessStatusForOrganization } else { @@ -3338,9 +3326,8 @@ extension HealthClientTypes { extension InvalidPaginationToken { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPaginationTokenBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3354,7 +3341,7 @@ extension InvalidPaginationToken { } /// The specified pagination token (nextToken) is not valid. -public struct InvalidPaginationToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3972,9 +3959,8 @@ extension HealthClientTypes { extension UnsupportedLocale { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedLocaleBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3988,7 +3974,7 @@ extension UnsupportedLocale { } /// The specified locale is not supported. -public struct UnsupportedLocale: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedLocale: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSHealthLake/HealthLakeClient.swift b/Sources/Services/AWSHealthLake/HealthLakeClient.swift index d3af3bfdf6f..82096aad53e 100644 --- a/Sources/Services/AWSHealthLake/HealthLakeClient.swift +++ b/Sources/Services/AWSHealthLake/HealthLakeClient.swift @@ -208,6 +208,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFHIRDatastore") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFHIRDatastore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFHIRDatastore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFHIRExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFHIRImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFHIRDatastores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +438,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFHIRExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFHIRImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFHIRExportJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -564,7 +574,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +594,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFHIRImportJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -608,7 +619,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +639,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -644,7 +656,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -664,6 +676,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "healthlake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +693,7 @@ extension HealthLakeClient: HealthLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSHealthLake/models/Models.swift b/Sources/Services/AWSHealthLake/models/Models.swift index a9f3c6e0bcb..6677042a5d2 100644 --- a/Sources/Services/AWSHealthLake/models/Models.swift +++ b/Sources/Services/AWSHealthLake/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access is denied. Your account is not authorized to perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -88,9 +87,8 @@ extension HealthLakeClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -104,7 +102,7 @@ extension ConflictException { } /// The Data Store is in a transition state and the user requested action can not be performed. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -288,9 +286,8 @@ public enum CreateFHIRDatastoreOutputError: Swift.Error, Swift.Equatable { extension CreateFHIRDatastoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFHIRDatastoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastoreArn = output.datastoreArn self.datastoreEndpoint = output.datastoreEndpoint @@ -665,9 +662,8 @@ public enum DeleteFHIRDatastoreOutputError: Swift.Error, Swift.Equatable { extension DeleteFHIRDatastoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFHIRDatastoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastoreArn = output.datastoreArn self.datastoreEndpoint = output.datastoreEndpoint @@ -815,9 +811,8 @@ public enum DescribeFHIRDatastoreOutputError: Swift.Error, Swift.Equatable { extension DescribeFHIRDatastoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFHIRDatastoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastoreProperties = output.datastoreProperties } else { @@ -946,9 +941,8 @@ public enum DescribeFHIRExportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeFHIRExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFHIRExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportJobProperties = output.exportJobProperties } else { @@ -1077,9 +1071,8 @@ public enum DescribeFHIRImportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeFHIRImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFHIRImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importJobProperties = output.importJobProperties } else { @@ -1435,9 +1428,8 @@ extension HealthLakeClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1451,7 +1443,7 @@ extension InternalServerException { } /// Unknown error occurs in the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1671,9 +1663,8 @@ public enum ListFHIRDatastoresOutputError: Swift.Error, Swift.Equatable { extension ListFHIRDatastoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFHIRDatastoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastorePropertiesList = output.datastorePropertiesList self.nextToken = output.nextToken @@ -1882,9 +1873,8 @@ public enum ListFHIRExportJobsOutputError: Swift.Error, Swift.Equatable { extension ListFHIRExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFHIRExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportJobPropertiesList = output.exportJobPropertiesList self.nextToken = output.nextToken @@ -2093,9 +2083,8 @@ public enum ListFHIRImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListFHIRImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFHIRImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importJobPropertiesList = output.importJobPropertiesList self.nextToken = output.nextToken @@ -2226,9 +2215,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2378,9 +2366,8 @@ extension HealthLakeClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2394,7 +2381,7 @@ extension ResourceNotFoundException { } /// The requested Data Store was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2642,9 +2629,8 @@ public enum StartFHIRExportJobOutputError: Swift.Error, Swift.Equatable { extension StartFHIRExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFHIRExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastoreId = output.datastoreId self.jobId = output.jobId @@ -2847,9 +2833,8 @@ public enum StartFHIRImportJobOutputError: Swift.Error, Swift.Equatable { extension StartFHIRImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFHIRImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastoreId = output.datastoreId self.jobId = output.jobId @@ -3064,9 +3049,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3080,7 +3064,7 @@ extension ThrottlingException { } /// The user has exceeded their maximum number of allowed calls to the given API. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3223,9 +3207,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3239,7 +3222,7 @@ extension ValidationException { } /// The user input parameter was invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSHoneycode/HoneycodeClient.swift b/Sources/Services/AWSHoneycode/HoneycodeClient.swift index fd1f9dbbd09..3d780e31d28 100644 --- a/Sources/Services/AWSHoneycode/HoneycodeClient.swift +++ b/Sources/Services/AWSHoneycode/HoneycodeClient.swift @@ -208,6 +208,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateTableRows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteTableRows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateTableRows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpsertTableRows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTableDataImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getScreenData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +401,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +421,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "invokeScreenAutomation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTableColumns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -463,7 +471,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -483,6 +491,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTableRows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -498,7 +507,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -518,6 +527,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -531,7 +541,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -551,6 +561,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -563,7 +574,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -583,6 +594,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "queryTableRows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -598,7 +610,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -618,6 +630,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTableDataImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -633,7 +646,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -653,6 +666,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -668,7 +682,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -688,6 +702,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "honeycode") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -701,7 +716,7 @@ extension HoneycodeClient: HoneycodeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSHoneycode/models/Models.swift b/Sources/Services/AWSHoneycode/models/Models.swift index 7c723c313bb..9d4a2382638 100644 --- a/Sources/Services/AWSHoneycode/models/Models.swift +++ b/Sources/Services/AWSHoneycode/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. Check that the workbook is owned by you and your IAM policy allows access to the resource in the request. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension AutomationExecutionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AutomationExecutionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension AutomationExecutionException { } /// The automation execution did not end successfully. -public struct AutomationExecutionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AutomationExecutionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -108,9 +106,8 @@ extension AutomationExecutionExceptionBody: Swift.Decodable { extension AutomationExecutionTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AutomationExecutionTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -124,7 +121,7 @@ extension AutomationExecutionTimeoutException { } /// The automation execution timed out. -public struct AutomationExecutionTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AutomationExecutionTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -284,9 +281,8 @@ public enum BatchCreateTableRowsOutputError: Swift.Error, Swift.Equatable { extension BatchCreateTableRowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateTableRowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdRows = output.createdRows self.failedBatchItems = output.failedBatchItems @@ -487,9 +483,8 @@ public enum BatchDeleteTableRowsOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteTableRowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteTableRowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedBatchItems = output.failedBatchItems self.workbookCursor = output.workbookCursor @@ -670,9 +665,8 @@ public enum BatchUpdateTableRowsOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateTableRowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateTableRowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedBatchItems = output.failedBatchItems self.workbookCursor = output.workbookCursor @@ -855,9 +849,8 @@ public enum BatchUpsertTableRowsOutputError: Swift.Error, Swift.Equatable { extension BatchUpsertTableRowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpsertTableRowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedBatchItems = output.failedBatchItems self.rows = output.rows @@ -1410,9 +1403,8 @@ public enum DescribeTableDataImportJobOutputError: Swift.Error, Swift.Equatable extension DescribeTableDataImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTableDataImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.jobMetadata = output.jobMetadata @@ -1920,9 +1912,8 @@ public enum GetScreenDataOutputError: Swift.Error, Swift.Equatable { extension GetScreenDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetScreenDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -2236,9 +2227,8 @@ extension HoneycodeClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2252,7 +2242,7 @@ extension InternalServerException { } /// There were unexpected errors from the server. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2448,9 +2438,8 @@ public enum InvokeScreenAutomationOutputError: Swift.Error, Swift.Equatable { extension InvokeScreenAutomationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvokeScreenAutomationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workbookCursor = output.workbookCursor } else { @@ -2580,9 +2569,8 @@ public enum ListTableColumnsOutputError: Swift.Error, Swift.Equatable { extension ListTableColumnsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTableColumnsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tableColumns = output.tableColumns @@ -2784,9 +2772,8 @@ public enum ListTableRowsOutputError: Swift.Error, Swift.Equatable { extension ListTableRowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTableRowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnIds = output.columnIds self.nextToken = output.nextToken @@ -2985,9 +2972,8 @@ public enum ListTablesOutputError: Swift.Error, Swift.Equatable { extension ListTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tables = output.tables @@ -3121,9 +3107,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3293,9 +3278,8 @@ public enum QueryTableRowsOutputError: Swift.Error, Swift.Equatable { extension QueryTableRowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryTableRowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnIds = output.columnIds self.nextToken = output.nextToken @@ -3385,9 +3369,8 @@ extension QueryTableRowsOutputResponseBody: Swift.Decodable { extension RequestTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3401,7 +3384,7 @@ extension RequestTimeoutException { } /// The request timed out. -public struct RequestTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3437,9 +3420,8 @@ extension RequestTimeoutExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3453,7 +3435,7 @@ extension ResourceNotFoundException { } /// A Workbook, Table, App, Screen or Screen Automation was not found with the given ID. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3618,9 +3600,8 @@ extension HoneycodeClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3634,7 +3615,7 @@ extension ServiceQuotaExceededException { } /// The request caused service quota to be breached. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3671,9 +3652,8 @@ extension ServiceQuotaExceededExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3687,7 +3667,7 @@ extension ServiceUnavailableException { } /// Remote service is unreachable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3897,9 +3877,8 @@ public enum StartTableDataImportJobOutputError: Swift.Error, Swift.Equatable { extension StartTableDataImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTableDataImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -4328,9 +4307,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4344,7 +4322,7 @@ extension ThrottlingException { } /// Tps(transactions per second) rate reached. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4697,9 +4675,8 @@ extension HoneycodeClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4713,7 +4690,7 @@ extension ValidationException { } /// Request is invalid. The message in the response contains details on why the request is invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIAM/IAMClient.swift b/Sources/Services/AWSIAM/IAMClient.swift index e5d7eccdc9e..bf53d6d9e96 100644 --- a/Sources/Services/AWSIAM/IAMClient.swift +++ b/Sources/Services/AWSIAM/IAMClient.swift @@ -204,6 +204,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addClientIDToOpenIDConnectProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addRoleToInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addUserToGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachRolePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachUserPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "changePassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccountAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +580,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +600,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoginProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +616,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -635,6 +647,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOpenIDConnectProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -650,7 +663,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -670,6 +683,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -685,7 +699,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -705,6 +719,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -720,7 +735,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -740,6 +755,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -755,7 +771,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -775,6 +791,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSAMLProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -790,7 +807,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -810,6 +827,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceLinkedRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -825,7 +843,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -845,6 +863,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceSpecificCredential") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -860,7 +879,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -880,6 +899,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -895,7 +915,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -915,6 +935,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVirtualMFADevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -930,7 +951,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -950,6 +971,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateMFADevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -965,7 +987,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -985,6 +1007,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1000,7 +1023,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1020,6 +1043,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccountAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1035,7 +1059,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1055,6 +1079,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccountPasswordPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1070,7 +1095,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1090,6 +1115,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1105,7 +1131,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1125,6 +1151,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1140,7 +1167,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1187,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1175,7 +1203,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1195,6 +1223,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoginProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1210,7 +1239,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1230,6 +1259,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOpenIDConnectProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1245,7 +1275,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1274,6 +1304,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1289,7 +1320,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1309,6 +1340,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1324,7 +1356,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1355,6 +1387,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1370,7 +1403,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1390,6 +1423,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRolePermissionsBoundary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1405,7 +1439,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1425,6 +1459,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRolePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1440,7 +1475,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1460,6 +1495,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSAMLProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1475,7 +1511,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1495,6 +1531,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSSHPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1510,7 +1547,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1530,6 +1567,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServerCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1545,7 +1583,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1565,6 +1603,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceLinkedRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1580,7 +1619,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1600,6 +1639,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceSpecificCredential") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1615,7 +1655,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1635,6 +1675,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSigningCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1650,7 +1691,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1688,6 +1729,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1703,7 +1745,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1723,6 +1765,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserPermissionsBoundary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1738,7 +1781,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1758,6 +1801,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1773,7 +1817,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1793,6 +1837,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVirtualMFADevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1873,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1843,7 +1889,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1863,6 +1909,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachRolePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1878,7 +1925,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1898,6 +1945,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachUserPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1913,7 +1961,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1933,6 +1981,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableMFADevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1948,7 +1997,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1968,6 +2017,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateCredentialReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1983,7 +2033,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2025,6 +2075,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateOrganizationsAccessReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2040,7 +2091,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2067,6 +2118,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateServiceLastAccessedDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2082,7 +2134,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2102,6 +2154,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessKeyLastUsed") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2117,7 +2170,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2137,6 +2190,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountAuthorizationDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2152,7 +2206,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2172,6 +2226,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountPasswordPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2187,7 +2242,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2207,6 +2262,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2222,7 +2278,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2242,6 +2298,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContextKeysForCustomPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2257,7 +2314,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2277,6 +2334,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContextKeysForPrincipalPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2292,7 +2350,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2312,6 +2370,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCredentialReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2327,7 +2386,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2347,6 +2406,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2362,7 +2422,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2382,6 +2442,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2397,7 +2458,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2417,6 +2478,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2432,7 +2494,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2452,6 +2514,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoginProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2467,7 +2530,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2487,6 +2550,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOpenIDConnectProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2502,7 +2566,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2522,6 +2586,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOrganizationsAccessReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2537,7 +2602,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2557,6 +2622,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2572,7 +2638,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2592,6 +2658,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2607,7 +2674,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2627,6 +2694,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2642,7 +2710,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2662,6 +2730,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRolePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2677,7 +2746,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2697,6 +2766,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSAMLProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2712,7 +2782,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2732,6 +2802,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSSHPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2747,7 +2818,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2767,6 +2838,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServerCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2782,7 +2854,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2813,6 +2885,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceLastAccessedDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2828,7 +2901,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2855,6 +2928,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceLastAccessedDetailsWithEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2870,7 +2944,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2890,6 +2964,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceLinkedRoleDeletionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2905,7 +2980,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2925,6 +3000,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2940,7 +3016,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2960,6 +3036,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2975,7 +3052,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2995,6 +3072,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3010,7 +3088,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3030,6 +3108,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3045,7 +3124,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3065,6 +3144,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttachedGroupPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3080,7 +3160,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3100,6 +3180,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttachedRolePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3115,7 +3196,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3135,6 +3216,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttachedUserPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3150,7 +3232,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3170,6 +3252,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntitiesForPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3185,7 +3268,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3205,6 +3288,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3220,7 +3304,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3240,6 +3324,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3255,7 +3340,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3275,6 +3360,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupsForUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3290,7 +3376,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3310,6 +3396,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceProfileTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3325,7 +3412,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3345,6 +3432,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3360,7 +3448,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3380,6 +3468,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceProfilesForRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3395,7 +3484,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3415,6 +3504,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMFADeviceTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3430,7 +3520,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3450,6 +3540,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMFADevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3465,7 +3556,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3485,6 +3576,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOpenIDConnectProviderTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3500,7 +3592,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3520,6 +3612,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOpenIDConnectProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3535,7 +3628,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3555,6 +3648,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3570,7 +3664,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3599,6 +3693,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPoliciesGrantingServiceAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3614,7 +3709,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3634,6 +3729,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicyTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3649,7 +3745,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3669,6 +3765,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicyVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3684,7 +3781,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3704,6 +3801,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRolePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3719,7 +3817,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3739,6 +3837,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoleTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3754,7 +3853,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3774,6 +3873,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3789,7 +3889,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3809,6 +3909,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSAMLProviderTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3824,7 +3925,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3844,6 +3945,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSAMLProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3859,7 +3961,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3879,6 +3981,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSSHPublicKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3894,7 +3997,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3914,6 +4017,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServerCertificateTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3929,7 +4033,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3949,6 +4053,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServerCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3964,7 +4069,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3984,6 +4089,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceSpecificCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3999,7 +4105,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4019,6 +4125,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSigningCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4034,7 +4141,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4054,6 +4161,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4069,7 +4177,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4089,6 +4197,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4104,7 +4213,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4124,6 +4233,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4139,7 +4249,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4159,6 +4269,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVirtualMFADevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4174,7 +4285,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4194,6 +4305,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4209,7 +4321,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4229,6 +4341,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRolePermissionsBoundary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4244,7 +4357,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4264,6 +4377,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRolePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4279,7 +4393,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4299,6 +4413,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putUserPermissionsBoundary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4314,7 +4429,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4334,6 +4449,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putUserPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4349,7 +4465,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4369,6 +4485,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeClientIDFromOpenIDConnectProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4384,7 +4501,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4404,6 +4521,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeRoleFromInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4419,7 +4537,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4439,6 +4557,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeUserFromGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4454,7 +4573,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4474,6 +4593,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetServiceSpecificCredential") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4489,7 +4609,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4509,6 +4629,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resyncMFADevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4524,7 +4645,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4544,6 +4665,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setDefaultPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4559,7 +4681,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4579,6 +4701,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setSecurityTokenServicePreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4594,7 +4717,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4614,6 +4737,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "simulateCustomPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4629,7 +4753,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4649,6 +4773,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "simulatePrincipalPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4664,7 +4789,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4695,6 +4820,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4710,7 +4836,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4741,6 +4867,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagMFADevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4756,7 +4883,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4787,6 +4914,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagOpenIDConnectProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4802,7 +4930,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4833,6 +4961,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4848,7 +4977,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4884,6 +5013,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4899,7 +5029,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4930,6 +5060,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagSAMLProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4945,7 +5076,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4978,6 +5109,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagServerCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4993,7 +5125,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5029,6 +5161,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5044,7 +5177,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5064,6 +5197,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagInstanceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5079,7 +5213,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5099,6 +5233,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagMFADevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5114,7 +5249,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5134,6 +5269,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagOpenIDConnectProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5149,7 +5285,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5169,6 +5305,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5184,7 +5321,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5204,6 +5341,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5219,7 +5357,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5239,6 +5377,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagSAMLProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5254,7 +5393,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5274,6 +5413,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagServerCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5289,7 +5429,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5309,6 +5449,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5324,7 +5465,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5344,6 +5485,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccessKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5359,7 +5501,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5379,6 +5521,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountPasswordPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5394,7 +5537,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5414,6 +5557,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssumeRolePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5429,7 +5573,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5449,6 +5593,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5464,7 +5609,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5484,6 +5629,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLoginProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5499,7 +5645,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5519,6 +5665,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOpenIDConnectProviderThumbprint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5534,7 +5681,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5554,6 +5701,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5569,7 +5717,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5589,6 +5737,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoleDescription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5604,7 +5753,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5624,6 +5773,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSAMLProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5639,7 +5789,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5659,6 +5809,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSSHPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5674,7 +5825,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5694,6 +5845,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServerCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5709,7 +5861,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5729,6 +5881,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceSpecificCredential") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5744,7 +5897,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5764,6 +5917,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSigningCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5779,7 +5933,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5799,6 +5953,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5814,7 +5969,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5834,6 +5989,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadSSHPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5849,7 +6005,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5869,6 +6025,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadServerCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5884,7 +6041,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5904,6 +6061,7 @@ extension IAMClient: IAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadSigningCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5919,7 +6077,7 @@ extension IAMClient: IAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIAM/models/Models.swift b/Sources/Services/AWSIAM/models/Models.swift index 6a80c3d2664..0a5dfd71226 100644 --- a/Sources/Services/AWSIAM/models/Models.swift +++ b/Sources/Services/AWSIAM/models/Models.swift @@ -1158,7 +1158,7 @@ public struct ChangePasswordOutputResponse: Swift.Equatable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1173,7 +1173,7 @@ extension ConcurrentModificationException { } /// The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1422,9 +1422,8 @@ public enum CreateAccessKeyOutputError: Swift.Error, Swift.Equatable { extension CreateAccessKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKey = output.accessKey } else { @@ -1631,9 +1630,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -1798,9 +1796,8 @@ public enum CreateInstanceProfileOutputError: Swift.Error, Swift.Equatable { extension CreateInstanceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstanceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceProfile = output.instanceProfile } else { @@ -1945,9 +1942,8 @@ public enum CreateLoginProfileOutputError: Swift.Error, Swift.Equatable { extension CreateLoginProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoginProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loginProfile = output.loginProfile } else { @@ -2176,9 +2172,8 @@ public enum CreateOpenIDConnectProviderOutputError: Swift.Error, Swift.Equatable extension CreateOpenIDConnectProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOpenIDConnectProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.openIDConnectProviderArn = output.openIDConnectProviderArn self.tags = output.tags @@ -2400,9 +2395,8 @@ public enum CreatePolicyOutputError: Swift.Error, Swift.Equatable { extension CreatePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -2547,9 +2541,8 @@ public enum CreatePolicyVersionOutputError: Swift.Error, Swift.Equatable { extension CreatePolicyVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePolicyVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyVersion = output.policyVersion } else { @@ -2769,9 +2762,8 @@ public enum CreateRoleOutputError: Swift.Error, Swift.Equatable { extension CreateRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.role = output.role } else { @@ -2937,9 +2929,8 @@ public enum CreateSAMLProviderOutputError: Swift.Error, Swift.Equatable { extension CreateSAMLProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSAMLProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.samlProviderArn = output.samlProviderArn self.tags = output.tags @@ -3102,9 +3093,8 @@ public enum CreateServiceLinkedRoleOutputError: Swift.Error, Swift.Equatable { extension CreateServiceLinkedRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceLinkedRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.role = output.role } else { @@ -3227,9 +3217,8 @@ public enum CreateServiceSpecificCredentialOutputError: Swift.Error, Swift.Equat extension CreateServiceSpecificCredentialOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceSpecificCredentialOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSpecificCredential = output.serviceSpecificCredential } else { @@ -3405,9 +3394,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -3571,9 +3559,8 @@ public enum CreateVirtualMFADeviceOutputError: Swift.Error, Swift.Equatable { extension CreateVirtualMFADeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVirtualMFADeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.virtualMFADevice = output.virtualMFADevice } else { @@ -3615,7 +3602,7 @@ extension CreateVirtualMFADeviceOutputResponseBody: Swift.Decodable { extension CredentialReportExpiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3630,7 +3617,7 @@ extension CredentialReportExpiredException { } /// The request was rejected because the most recent credential report has expired. To generate a new credential report, use [GenerateCredentialReport]. For more information about credential report expiration, see [Getting credential reports](https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) in the IAM User Guide. -public struct CredentialReportExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CredentialReportExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3666,7 +3653,7 @@ extension CredentialReportExpiredExceptionBody: Swift.Decodable { extension CredentialReportNotPresentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3681,7 +3668,7 @@ extension CredentialReportNotPresentException { } /// The request was rejected because the credential report does not exist. To generate a credential report, use [GenerateCredentialReport]. -public struct CredentialReportNotPresentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CredentialReportNotPresentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3717,7 +3704,7 @@ extension CredentialReportNotPresentExceptionBody: Swift.Decodable { extension CredentialReportNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3732,7 +3719,7 @@ extension CredentialReportNotReadyException { } /// The request was rejected because the credential report is still being generated. -public struct CredentialReportNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CredentialReportNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4090,7 +4077,7 @@ public struct DeleteAccountPasswordPolicyOutputResponse: Swift.Equatable { extension DeleteConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4105,7 +4092,7 @@ extension DeleteConflictException { } /// The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities. -public struct DeleteConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeleteConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5335,9 +5322,8 @@ public enum DeleteServiceLinkedRoleOutputError: Swift.Error, Swift.Equatable { extension DeleteServiceLinkedRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceLinkedRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletionTaskId = output.deletionTaskId } else { @@ -6294,7 +6280,7 @@ public struct DetachUserPolicyOutputResponse: Swift.Equatable { extension DuplicateCertificateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6309,7 +6295,7 @@ extension DuplicateCertificateException { } /// The request was rejected because the same certificate is associated with an IAM user in the account. -public struct DuplicateCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6345,7 +6331,7 @@ extension DuplicateCertificateExceptionBody: Swift.Decodable { extension DuplicateSSHPublicKeyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6360,7 +6346,7 @@ extension DuplicateSSHPublicKeyException { } /// The request was rejected because the SSH public key is already associated with the specified IAM user. -public struct DuplicateSSHPublicKeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateSSHPublicKeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6551,7 +6537,7 @@ extension IAMClientTypes { extension EntityAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6566,7 +6552,7 @@ extension EntityAlreadyExistsException { } /// The request was rejected because it attempted to create a resource that already exists. -public struct EntityAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6727,7 +6713,7 @@ extension IAMClientTypes { extension EntityTemporarilyUnmodifiableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6742,7 +6728,7 @@ extension EntityTemporarilyUnmodifiableException { } /// The request was rejected because it referenced an entity that is temporarily unmodifiable, such as a user name that was deleted and then recreated. The error indicates that the request is likely to succeed if you try again after waiting several minutes. The error message describes the entity. -public struct EntityTemporarilyUnmodifiableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityTemporarilyUnmodifiableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7129,9 +7115,8 @@ public enum GenerateCredentialReportOutputError: Swift.Error, Swift.Equatable { extension GenerateCredentialReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateCredentialReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.state = output.state @@ -7260,9 +7245,8 @@ public enum GenerateOrganizationsAccessReportOutputError: Swift.Error, Swift.Equ extension GenerateOrganizationsAccessReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateOrganizationsAccessReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -7382,9 +7366,8 @@ public enum GenerateServiceLastAccessedDetailsOutputError: Swift.Error, Swift.Eq extension GenerateServiceLastAccessedDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateServiceLastAccessedDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -7491,9 +7474,8 @@ public enum GetAccessKeyLastUsedOutputError: Swift.Error, Swift.Equatable { extension GetAccessKeyLastUsedOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessKeyLastUsedOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKeyLastUsed = output.accessKeyLastUsed self.userName = output.userName @@ -7658,9 +7640,8 @@ public enum GetAccountAuthorizationDetailsOutputError: Swift.Error, Swift.Equata extension GetAccountAuthorizationDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountAuthorizationDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupDetailList = output.groupDetailList self.isTruncated = output.isTruncated @@ -7861,9 +7842,8 @@ public enum GetAccountPasswordPolicyOutputError: Swift.Error, Swift.Equatable { extension GetAccountPasswordPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountPasswordPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.passwordPolicy = output.passwordPolicy } else { @@ -7945,9 +7925,8 @@ public enum GetAccountSummaryOutputError: Swift.Error, Swift.Equatable { extension GetAccountSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summaryMap = output.summaryMap } else { @@ -8104,9 +8083,8 @@ public enum GetContextKeysForCustomPolicyOutputError: Swift.Error, Swift.Equatab extension GetContextKeysForCustomPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContextKeysForCustomPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contextKeyNames = output.contextKeyNames } else { @@ -8276,9 +8254,8 @@ public enum GetContextKeysForPrincipalPolicyOutputError: Swift.Error, Swift.Equa extension GetContextKeysForPrincipalPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContextKeysForPrincipalPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contextKeyNames = output.contextKeyNames } else { @@ -8382,9 +8359,8 @@ public enum GetCredentialReportOutputError: Swift.Error, Swift.Equatable { extension GetCredentialReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCredentialReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content self.generatedTime = output.generatedTime @@ -8544,9 +8520,8 @@ public enum GetGroupOutputError: Swift.Error, Swift.Equatable { extension GetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group self.isTruncated = output.isTruncated @@ -8717,9 +8692,8 @@ public enum GetGroupPolicyOutputError: Swift.Error, Swift.Equatable { extension GetGroupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupName = output.groupName self.policyDocument = output.policyDocument @@ -8865,9 +8839,8 @@ public enum GetInstanceProfileOutputError: Swift.Error, Swift.Equatable { extension GetInstanceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceProfile = output.instanceProfile } else { @@ -8978,9 +8951,8 @@ public enum GetLoginProfileOutputError: Swift.Error, Swift.Equatable { extension GetLoginProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoginProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loginProfile = output.loginProfile } else { @@ -9093,9 +9065,8 @@ public enum GetOpenIDConnectProviderOutputError: Swift.Error, Swift.Equatable { extension GetOpenIDConnectProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOpenIDConnectProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientIDList = output.clientIDList self.createDate = output.createDate @@ -9327,9 +9298,8 @@ public enum GetOrganizationsAccessReportOutputError: Swift.Error, Swift.Equatabl extension GetOrganizationsAccessReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOrganizationsAccessReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessDetails = output.accessDetails self.errorDetails = output.errorDetails @@ -9553,9 +9523,8 @@ public enum GetPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -9679,9 +9648,8 @@ public enum GetPolicyVersionOutputError: Swift.Error, Swift.Equatable { extension GetPolicyVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyVersion = output.policyVersion } else { @@ -9804,9 +9772,8 @@ public enum GetRoleOutputError: Swift.Error, Swift.Equatable { extension GetRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.role = output.role } else { @@ -9929,9 +9896,8 @@ public enum GetRolePolicyOutputError: Swift.Error, Swift.Equatable { extension GetRolePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRolePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyDocument = output.policyDocument self.policyName = output.policyName @@ -10066,9 +10032,8 @@ public enum GetSAMLProviderOutputError: Swift.Error, Swift.Equatable { extension GetSAMLProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSAMLProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createDate = output.createDate self.samlMetadataDocument = output.samlMetadataDocument @@ -10249,9 +10214,8 @@ public enum GetSSHPublicKeyOutputError: Swift.Error, Swift.Equatable { extension GetSSHPublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSSHPublicKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sshPublicKey = output.sshPublicKey } else { @@ -10361,9 +10325,8 @@ public enum GetServerCertificateOutputError: Swift.Error, Swift.Equatable { extension GetServerCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServerCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverCertificate = output.serverCertificate } else { @@ -10496,9 +10459,8 @@ public enum GetServiceLastAccessedDetailsOutputError: Swift.Error, Swift.Equatab extension GetServiceLastAccessedDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceLastAccessedDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.isTruncated = output.isTruncated @@ -10732,9 +10694,8 @@ public enum GetServiceLastAccessedDetailsWithEntitiesOutputError: Swift.Error, S extension GetServiceLastAccessedDetailsWithEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceLastAccessedDetailsWithEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entityDetailsList = output.entityDetailsList self.error = output.error @@ -10926,9 +10887,8 @@ public enum GetServiceLinkedRoleDeletionStatusOutputError: Swift.Error, Swift.Eq extension GetServiceLinkedRoleDeletionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceLinkedRoleDeletionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reason = output.reason self.status = output.status @@ -11060,9 +11020,8 @@ public enum GetUserOutputError: Swift.Error, Swift.Equatable { extension GetUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -11185,9 +11144,8 @@ public enum GetUserPolicyOutputError: Swift.Error, Swift.Equatable { extension GetUserPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyDocument = output.policyDocument self.policyName = output.policyName @@ -11677,7 +11635,7 @@ extension IAMClientTypes { extension InvalidAuthenticationCodeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11692,7 +11650,7 @@ extension InvalidAuthenticationCodeException { } /// The request was rejected because the authentication code was not recognized. The error message describes the specific error. -public struct InvalidAuthenticationCodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAuthenticationCodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11728,7 +11686,7 @@ extension InvalidAuthenticationCodeExceptionBody: Swift.Decodable { extension InvalidCertificateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11743,7 +11701,7 @@ extension InvalidCertificateException { } /// The request was rejected because the certificate is invalid. -public struct InvalidCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11779,7 +11737,7 @@ extension InvalidCertificateExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11794,7 +11752,7 @@ extension InvalidInputException { } /// The request was rejected because an invalid or out-of-range value was supplied for an input parameter. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11830,7 +11788,7 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension InvalidPublicKeyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11845,7 +11803,7 @@ extension InvalidPublicKeyException { } /// The request was rejected because the public key is malformed or otherwise invalid. -public struct InvalidPublicKeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPublicKeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11881,7 +11839,7 @@ extension InvalidPublicKeyExceptionBody: Swift.Decodable { extension InvalidUserTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11896,7 +11854,7 @@ extension InvalidUserTypeException { } /// The request was rejected because the type of user for the transaction was incorrect. -public struct InvalidUserTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUserTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11967,7 +11925,7 @@ extension IAMClientTypes { extension KeyPairMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11982,7 +11940,7 @@ extension KeyPairMismatchException { } /// The request was rejected because the public key certificate and the private key do not match. -public struct KeyPairMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KeyPairMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12018,7 +11976,7 @@ extension KeyPairMismatchExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12033,7 +11991,7 @@ extension LimitExceededException { } /// The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12159,9 +12117,8 @@ public enum ListAccessKeysOutputError: Swift.Error, Swift.Equatable { extension ListAccessKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKeyMetadata = output.accessKeyMetadata self.isTruncated = output.isTruncated @@ -12317,9 +12274,8 @@ public enum ListAccountAliasesOutputError: Swift.Error, Swift.Equatable { extension ListAccountAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAliases = output.accountAliases self.isTruncated = output.isTruncated @@ -12502,9 +12458,8 @@ public enum ListAttachedGroupPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListAttachedGroupPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttachedGroupPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachedPolicies = output.attachedPolicies self.isTruncated = output.isTruncated @@ -12686,9 +12641,8 @@ public enum ListAttachedRolePoliciesOutputError: Swift.Error, Swift.Equatable { extension ListAttachedRolePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttachedRolePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachedPolicies = output.attachedPolicies self.isTruncated = output.isTruncated @@ -12870,9 +12824,8 @@ public enum ListAttachedUserPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListAttachedUserPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttachedUserPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachedPolicies = output.attachedPolicies self.isTruncated = output.isTruncated @@ -13076,9 +13029,8 @@ public enum ListEntitiesForPolicyOutputError: Swift.Error, Swift.Equatable { extension ListEntitiesForPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntitiesForPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -13301,9 +13253,8 @@ public enum ListGroupPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListGroupPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -13473,9 +13424,8 @@ public enum ListGroupsForUserOutputError: Swift.Error, Swift.Equatable { extension ListGroupsForUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsForUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.isTruncated = output.isTruncated @@ -13642,9 +13592,8 @@ public enum ListGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.isTruncated = output.isTruncated @@ -13814,9 +13763,8 @@ public enum ListInstanceProfileTagsOutputError: Swift.Error, Swift.Equatable { extension ListInstanceProfileTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceProfileTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -13985,9 +13933,8 @@ public enum ListInstanceProfilesForRoleOutputError: Swift.Error, Swift.Equatable extension ListInstanceProfilesForRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceProfilesForRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceProfiles = output.instanceProfiles self.isTruncated = output.isTruncated @@ -14154,9 +14101,8 @@ public enum ListInstanceProfilesOutputError: Swift.Error, Swift.Equatable { extension ListInstanceProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceProfiles = output.instanceProfiles self.isTruncated = output.isTruncated @@ -14328,9 +14274,8 @@ public enum ListMFADeviceTagsOutputError: Swift.Error, Swift.Equatable { extension ListMFADeviceTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMFADeviceTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -14498,9 +14443,8 @@ public enum ListMFADevicesOutputError: Swift.Error, Swift.Equatable { extension ListMFADevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMFADevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -14672,9 +14616,8 @@ public enum ListOpenIDConnectProviderTagsOutputError: Swift.Error, Swift.Equatab extension ListOpenIDConnectProviderTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOpenIDConnectProviderTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -14792,9 +14735,8 @@ public enum ListOpenIDConnectProvidersOutputError: Swift.Error, Swift.Equatable extension ListOpenIDConnectProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOpenIDConnectProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.openIDConnectProviderList = output.openIDConnectProviderList } else { @@ -15041,9 +14983,8 @@ public enum ListPoliciesGrantingServiceAccessOutputError: Swift.Error, Swift.Equ extension ListPoliciesGrantingServiceAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPoliciesGrantingServiceAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -15242,9 +15183,8 @@ public enum ListPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -15415,9 +15355,8 @@ public enum ListPolicyTagsOutputError: Swift.Error, Swift.Equatable { extension ListPolicyTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPolicyTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -15588,9 +15527,8 @@ public enum ListPolicyVersionsOutputError: Swift.Error, Swift.Equatable { extension ListPolicyVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPolicyVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -15759,9 +15697,8 @@ public enum ListRolePoliciesOutputError: Swift.Error, Swift.Equatable { extension ListRolePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRolePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -15931,9 +15868,8 @@ public enum ListRoleTagsOutputError: Swift.Error, Swift.Equatable { extension ListRoleTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoleTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -16099,9 +16035,8 @@ public enum ListRolesOutputError: Swift.Error, Swift.Equatable { extension ListRolesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRolesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -16273,9 +16208,8 @@ public enum ListSAMLProviderTagsOutputError: Swift.Error, Swift.Equatable { extension ListSAMLProviderTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSAMLProviderTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -16393,9 +16327,8 @@ public enum ListSAMLProvidersOutputError: Swift.Error, Swift.Equatable { extension ListSAMLProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSAMLProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.samlProviderList = output.samlProviderList } else { @@ -16541,9 +16474,8 @@ public enum ListSSHPublicKeysOutputError: Swift.Error, Swift.Equatable { extension ListSSHPublicKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSSHPublicKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -16712,9 +16644,8 @@ public enum ListServerCertificateTagsOutputError: Swift.Error, Swift.Equatable { extension ListServerCertificateTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServerCertificateTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -16880,9 +16811,8 @@ public enum ListServerCertificatesOutputError: Swift.Error, Swift.Equatable { extension ListServerCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServerCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -17040,9 +16970,8 @@ public enum ListServiceSpecificCredentialsOutputError: Swift.Error, Swift.Equata extension ListServiceSpecificCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceSpecificCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSpecificCredentials = output.serviceSpecificCredentials } else { @@ -17189,9 +17118,8 @@ public enum ListSigningCertificatesOutputError: Swift.Error, Swift.Equatable { extension ListSigningCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSigningCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.isTruncated = output.isTruncated @@ -17361,9 +17289,8 @@ public enum ListUserPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListUserPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -17533,9 +17460,8 @@ public enum ListUserTagsOutputError: Swift.Error, Swift.Equatable { extension ListUserTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -17701,9 +17627,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -17868,9 +17793,8 @@ public enum ListVirtualMFADevicesOutputError: Swift.Error, Swift.Equatable { extension ListVirtualMFADevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVirtualMFADevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.marker = output.marker @@ -18064,7 +17988,7 @@ extension IAMClientTypes { extension MalformedCertificateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18079,7 +18003,7 @@ extension MalformedCertificateException { } /// The request was rejected because the certificate was malformed or expired. The error message describes the specific error. -public struct MalformedCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedCertificateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18115,7 +18039,7 @@ extension MalformedCertificateExceptionBody: Swift.Decodable { extension MalformedPolicyDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18130,7 +18054,7 @@ extension MalformedPolicyDocumentException { } /// The request was rejected because the policy document was malformed. The error message describes the specific error. -public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18337,7 +18261,7 @@ extension IAMClientTypes { extension NoSuchEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18352,7 +18276,7 @@ extension NoSuchEntityException { } /// The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource. -public struct NoSuchEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18583,7 +18507,7 @@ extension IAMClientTypes { extension PasswordPolicyViolationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18598,7 +18522,7 @@ extension PasswordPolicyViolationException { } /// The request was rejected because the provided password did not meet the requirements imposed by the account password policy. -public struct PasswordPolicyViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PasswordPolicyViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18949,7 +18873,7 @@ extension IAMClientTypes { extension PolicyEvaluationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18964,7 +18888,7 @@ extension PolicyEvaluationException { } /// The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure. -public struct PolicyEvaluationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyEvaluationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19122,7 +19046,7 @@ extension IAMClientTypes { extension PolicyNotAttachableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19137,7 +19061,7 @@ extension PolicyNotAttachableException { } /// The request failed because Amazon Web Services service role policies can only be attached to the service-linked role for that service. -public struct PolicyNotAttachableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyNotAttachableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20398,7 +20322,7 @@ extension IAMClientTypes { extension ReportGenerationLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -20413,7 +20337,7 @@ extension ReportGenerationLimitExceededException { } /// The request failed because the maximum number of concurrent requests for this account are already running. -public struct ReportGenerationLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReportGenerationLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20562,9 +20486,8 @@ public enum ResetServiceSpecificCredentialOutputError: Swift.Error, Swift.Equata extension ResetServiceSpecificCredentialOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetServiceSpecificCredentialOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSpecificCredential = output.serviceSpecificCredential } else { @@ -21815,7 +21738,7 @@ extension IAMClientTypes { extension ServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21830,7 +21753,7 @@ extension ServiceFailureException { } /// The request processing has failed because of an unknown error, exception or failure. -public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21989,7 +21912,7 @@ extension IAMClientTypes { extension ServiceNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22004,7 +21927,7 @@ extension ServiceNotSupportedException { } /// The specified service does not support service-specific credentials. -public struct ServiceNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22828,9 +22751,8 @@ public enum SimulateCustomPolicyOutputError: Swift.Error, Swift.Equatable { extension SimulateCustomPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SimulateCustomPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluationResults = output.evaluationResults self.isTruncated = output.isTruncated @@ -23260,9 +23182,8 @@ public enum SimulatePrincipalPolicyOutputError: Swift.Error, Swift.Equatable { extension SimulatePrincipalPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SimulatePrincipalPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluationResults = output.evaluationResults self.isTruncated = output.isTruncated @@ -24675,7 +24596,7 @@ extension IAMClientTypes { extension UnmodifiableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24690,7 +24611,7 @@ extension UnmodifiableEntityException { } /// The request was rejected because service-linked roles are protected Amazon Web Services resources. Only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service. -public struct UnmodifiableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnmodifiableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24726,7 +24647,7 @@ extension UnmodifiableEntityExceptionBody: Swift.Decodable { extension UnrecognizedPublicKeyEncodingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24741,7 +24662,7 @@ extension UnrecognizedPublicKeyEncodingException { } /// The request was rejected because the public key encoding format is unsupported or unrecognized. -public struct UnrecognizedPublicKeyEncodingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnrecognizedPublicKeyEncodingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26546,9 +26467,8 @@ public enum UpdateRoleDescriptionOutputError: Swift.Error, Swift.Equatable { extension UpdateRoleDescriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRoleDescriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.role = output.role } else { @@ -26776,9 +26696,8 @@ public enum UpdateSAMLProviderOutputError: Swift.Error, Swift.Equatable { extension UpdateSAMLProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSAMLProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.samlProviderArn = output.samlProviderArn } else { @@ -27431,9 +27350,8 @@ public enum UploadSSHPublicKeyOutputError: Swift.Error, Swift.Equatable { extension UploadSSHPublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadSSHPublicKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sshPublicKey = output.sshPublicKey } else { @@ -27659,9 +27577,8 @@ public enum UploadServerCertificateOutputError: Swift.Error, Swift.Equatable { extension UploadServerCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadServerCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverCertificateMetadata = output.serverCertificateMetadata self.tags = output.tags @@ -27825,9 +27742,8 @@ public enum UploadSigningCertificateOutputError: Swift.Error, Swift.Equatable { extension UploadSigningCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadSigningCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate } else { diff --git a/Sources/Services/AWSIVSRealTime/IVSRealTimeClient.swift b/Sources/Services/AWSIVSRealTime/IVSRealTimeClient.swift index a30abdfc2c6..16a1b17c61d 100644 --- a/Sources/Services/AWSIVSRealTime/IVSRealTimeClient.swift +++ b/Sources/Services/AWSIVSRealTime/IVSRealTimeClient.swift @@ -208,6 +208,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createParticipantToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disconnectParticipant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +473,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +493,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -498,7 +507,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -518,6 +527,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -533,7 +543,7 @@ extension IVSRealTimeClient: IVSRealTimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIVSRealTime/models/Models.swift b/Sources/Services/AWSIVSRealTime/models/Models.swift index 02e5f20d779..b3e41b414e7 100644 --- a/Sources/Services/AWSIVSRealTime/models/Models.swift +++ b/Sources/Services/AWSIVSRealTime/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -57,9 +56,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -73,7 +71,7 @@ extension ConflictException { } /// -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -260,9 +258,8 @@ public enum CreateParticipantTokenOutputError: Swift.Error, Swift.Equatable { extension CreateParticipantTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateParticipantTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.participantToken = output.participantToken } else { @@ -424,9 +421,8 @@ public enum CreateStageOutputError: Swift.Error, Swift.Equatable { extension CreateStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.participantTokens = output.participantTokens self.stage = output.stage @@ -757,9 +753,8 @@ public enum GetStageOutputError: Swift.Error, Swift.Equatable { extension GetStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stage = output.stage } else { @@ -798,9 +793,8 @@ extension GetStageOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -814,7 +808,7 @@ extension InternalServerException { } /// -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -936,9 +930,8 @@ public enum ListStagesOutputError: Swift.Error, Swift.Equatable { extension ListStagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stages = output.stages @@ -1054,9 +1047,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1350,9 +1342,8 @@ extension IVSRealTimeClientTypes { extension PendingVerification { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PendingVerificationBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -1366,7 +1357,7 @@ extension PendingVerification { } /// -public struct PendingVerification: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PendingVerification: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1403,9 +1394,8 @@ extension PendingVerificationBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -1419,7 +1409,7 @@ extension ResourceNotFoundException { } /// -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1456,9 +1446,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -1472,7 +1461,7 @@ extension ServiceQuotaExceededException { } /// -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1948,9 +1937,8 @@ public enum UpdateStageOutputError: Swift.Error, Swift.Equatable { extension UpdateStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stage = output.stage } else { @@ -1989,9 +1977,8 @@ extension UpdateStageOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -2005,7 +1992,7 @@ extension ValidationException { } /// -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIdentitystore/IdentitystoreClient.swift b/Sources/Services/AWSIdentitystore/IdentitystoreClient.swift index 8a4c016dc44..5736454d150 100644 --- a/Sources/Services/AWSIdentitystore/IdentitystoreClient.swift +++ b/Sources/Services/AWSIdentitystore/IdentitystoreClient.swift @@ -208,6 +208,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroupMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroupMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGroupMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupMembershipId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "isMemberInGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupMemberships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupMembershipsForMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "identitystore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension IdentitystoreClient: IdentitystoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIdentitystore/models/Models.swift b/Sources/Services/AWSIdentitystore/models/Models.swift index 558003c5f77..cc7c6e5110c 100644 --- a/Sources/Services/AWSIdentitystore/models/Models.swift +++ b/Sources/Services/AWSIdentitystore/models/Models.swift @@ -3,7 +3,7 @@ import AWSClientRuntime import ClientRuntime /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -230,9 +230,8 @@ extension IdentitystoreClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -254,7 +253,7 @@ extension ConflictException { /// * Performing the requested operation would violate an existing uniqueness claim in the identity store. Resolve the conflict before retrying this request. /// /// * The requested resource was being concurrently modified by another request. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -521,9 +520,8 @@ public enum CreateGroupMembershipOutputError: Swift.Error, Swift.Equatable { extension CreateGroupMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityStoreId = output.identityStoreId self.membershipId = output.membershipId @@ -602,9 +600,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupId = output.groupId self.identityStoreId = output.identityStoreId @@ -928,9 +925,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityStoreId = output.identityStoreId self.userId = output.userId @@ -1418,9 +1414,8 @@ public enum DescribeGroupMembershipOutputError: Swift.Error, Swift.Equatable { extension DescribeGroupMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGroupMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupId = output.groupId self.identityStoreId = output.identityStoreId @@ -1522,9 +1517,8 @@ extension DescribeGroupOutputResponse: Swift.CustomDebugStringConvertible { extension DescribeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.displayName = output.displayName @@ -1704,9 +1698,8 @@ extension DescribeUserOutputResponse: Swift.CustomDebugStringConvertible { extension DescribeUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addresses = output.addresses self.displayName = output.displayName @@ -2182,9 +2175,8 @@ public enum GetGroupIdOutputError: Swift.Error, Swift.Equatable { extension GetGroupIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupId = output.groupId self.identityStoreId = output.identityStoreId @@ -2333,9 +2325,8 @@ public enum GetGroupMembershipIdOutputError: Swift.Error, Swift.Equatable { extension GetGroupMembershipIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupMembershipIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityStoreId = output.identityStoreId self.membershipId = output.membershipId @@ -2471,9 +2462,8 @@ public enum GetUserIdOutputError: Swift.Error, Swift.Equatable { extension GetUserIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityStoreId = output.identityStoreId self.userId = output.userId @@ -2743,7 +2733,7 @@ extension IdentitystoreClientTypes { } /// The request processing has failed because of an unknown error, exception or failure with an internal server. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2881,9 +2871,8 @@ public enum IsMemberInGroupsOutputError: Swift.Error, Swift.Equatable { extension IsMemberInGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IsMemberInGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.results = output.results } else { @@ -3041,9 +3030,8 @@ public enum ListGroupMembershipsForMemberOutputError: Swift.Error, Swift.Equatab extension ListGroupMembershipsForMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupMembershipsForMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupMemberships = output.groupMemberships self.nextToken = output.nextToken @@ -3211,9 +3199,8 @@ public enum ListGroupMembershipsOutputError: Swift.Error, Swift.Equatable { extension ListGroupMembershipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupMembershipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupMemberships = output.groupMemberships self.nextToken = output.nextToken @@ -3393,9 +3380,8 @@ public enum ListGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.nextToken = output.nextToken @@ -3575,9 +3561,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.users = output.users @@ -3823,9 +3808,8 @@ extension IdentitystoreClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -3845,7 +3829,7 @@ extension ResourceNotFoundException { } /// Indicates that a requested resource is not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3943,9 +3927,8 @@ extension IdentitystoreClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -3961,7 +3944,7 @@ extension ServiceQuotaExceededException { } /// The request would cause the number of users or groups in the identity store to exceed the maximum allowed. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4004,7 +3987,7 @@ extension ServiceQuotaExceededExceptionBody: Swift.Decodable { } /// Indicates that the principal has crossed the throttling limits of the API operations. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4567,9 +4550,8 @@ extension IdentitystoreClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -4585,7 +4567,7 @@ extension ValidationException { } /// The request failed because it contains a syntax error. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSImagebuilder/ImagebuilderClient.swift b/Sources/Services/AWSImagebuilder/ImagebuilderClient.swift index 60d6d4323d0..6c763f3b6a3 100644 --- a/Sources/Services/AWSImagebuilder/ImagebuilderClient.swift +++ b/Sources/Services/AWSImagebuilder/ImagebuilderClient.swift @@ -208,6 +208,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelImageCreation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -255,6 +256,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -278,7 +280,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -298,6 +300,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContainerRecipe") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -321,7 +324,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -341,6 +344,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDistributionConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -364,7 +368,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +388,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -407,7 +412,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -427,6 +432,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImagePipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -450,7 +456,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -470,6 +476,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImageRecipe") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -493,7 +500,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -513,6 +520,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInfrastructureConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -536,7 +544,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -556,6 +564,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +578,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +598,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContainerRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -602,7 +612,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -622,6 +632,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDistributionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -635,7 +646,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -661,6 +672,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +686,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +706,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImagePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -707,7 +720,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -727,6 +740,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImageRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -740,7 +754,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -760,6 +774,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInfrastructureConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -773,7 +788,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -793,6 +808,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -806,7 +822,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -826,6 +842,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComponentPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -839,7 +856,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +876,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +890,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +910,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerRecipePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -905,7 +924,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -925,6 +944,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDistributionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -938,7 +958,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -958,6 +978,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -971,7 +992,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -991,6 +1012,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImagePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1004,7 +1026,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1024,6 +1046,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImagePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1037,7 +1060,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1057,6 +1080,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImageRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1070,7 +1094,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1090,6 +1114,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImageRecipePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1103,7 +1128,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1123,6 +1148,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInfrastructureConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1136,7 +1162,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1156,6 +1182,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1169,7 +1196,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1189,6 +1216,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowStepExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1202,7 +1230,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1222,6 +1250,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1245,7 +1274,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1265,6 +1294,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importVmImage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1288,7 +1318,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1308,6 +1338,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponentBuildVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1323,7 +1354,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1343,6 +1374,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1358,7 +1390,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1378,6 +1410,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContainerRecipes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1393,7 +1426,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1413,6 +1446,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributionConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1462,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1482,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImageBuildVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1463,7 +1498,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1483,6 +1518,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImagePackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1498,7 +1534,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1518,6 +1554,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImagePipelineImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1533,7 +1570,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1553,6 +1590,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImagePipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1568,7 +1606,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1588,6 +1626,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImageRecipes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1603,7 +1642,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1631,6 +1670,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImageScanFindingAggregations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1646,7 +1686,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1666,6 +1706,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImageScanFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1681,7 +1722,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1701,6 +1742,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1716,7 +1758,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1736,6 +1778,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInfrastructureConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1751,7 +1794,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1771,6 +1814,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1783,7 +1827,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1803,6 +1847,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflowExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1818,7 +1863,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1838,6 +1883,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflowStepExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1853,7 +1899,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1873,6 +1919,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putComponentPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1888,7 +1935,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1908,6 +1955,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putContainerRecipePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1923,7 +1971,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1943,6 +1991,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putImagePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1958,7 +2007,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1978,6 +2027,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putImageRecipePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1993,7 +2043,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2013,6 +2063,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImagePipelineExecution") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2036,7 +2087,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2056,6 +2107,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2071,7 +2123,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2091,6 +2143,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2104,7 +2157,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2124,6 +2177,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDistributionConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2147,7 +2201,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2167,6 +2221,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateImagePipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2190,7 +2245,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2210,6 +2265,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { .withRegion(value: config.region) .withSigningName(value: "imagebuilder") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInfrastructureConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2233,7 +2289,7 @@ extension ImagebuilderClient: ImagebuilderClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSImagebuilder/models/Models.swift b/Sources/Services/AWSImagebuilder/models/Models.swift index 670230b0151..fff7dfd2be8 100644 --- a/Sources/Services/AWSImagebuilder/models/Models.swift +++ b/Sources/Services/AWSImagebuilder/models/Models.swift @@ -323,9 +323,8 @@ extension ImagebuilderClientTypes { extension CallRateLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CallRateLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -339,7 +338,7 @@ extension CallRateLimitExceededException { } /// You have exceeded the permitted request rate for the specific operation. -public struct CallRateLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CallRateLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -472,9 +471,8 @@ public enum CancelImageCreationOutputError: Swift.Error, Swift.Equatable { extension CancelImageCreationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelImageCreationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.imageBuildVersionArn = output.imageBuildVersionArn @@ -533,9 +531,8 @@ extension CancelImageCreationOutputResponseBody: Swift.Decodable { extension ClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -549,7 +546,7 @@ extension ClientException { } /// These errors are usually caused by a client action, such as using an action or resource on behalf of a user that doesn't have permissions to use the action or resource, or specifying an invalid resource identifier. -public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2241,9 +2238,8 @@ public enum CreateComponentOutputError: Swift.Error, Swift.Equatable { extension CreateComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.componentBuildVersionArn = output.componentBuildVersionArn @@ -2602,9 +2598,8 @@ public enum CreateContainerRecipeOutputError: Swift.Error, Swift.Equatable { extension CreateContainerRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContainerRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.containerRecipeArn = output.containerRecipeArn @@ -2827,9 +2822,8 @@ public enum CreateDistributionConfigurationOutputError: Swift.Error, Swift.Equat extension CreateDistributionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDistributionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.distributionConfigurationArn = output.distributionConfigurationArn @@ -3083,9 +3077,8 @@ public enum CreateImageOutputError: Swift.Error, Swift.Equatable { extension CreateImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.imageBuildVersionArn = output.imageBuildVersionArn @@ -3390,9 +3383,8 @@ public enum CreateImagePipelineOutputError: Swift.Error, Swift.Equatable { extension CreateImagePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImagePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.imagePipelineArn = output.imagePipelineArn @@ -3689,9 +3681,8 @@ public enum CreateImageRecipeOutputError: Swift.Error, Swift.Equatable { extension CreateImageRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImageRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.imageRecipeArn = output.imageRecipeArn @@ -4044,9 +4035,8 @@ public enum CreateInfrastructureConfigurationOutputError: Swift.Error, Swift.Equ extension CreateInfrastructureConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInfrastructureConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.infrastructureConfigurationArn = output.infrastructureConfigurationArn @@ -4389,9 +4379,8 @@ public enum DeleteComponentOutputError: Swift.Error, Swift.Equatable { extension DeleteComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentBuildVersionArn = output.componentBuildVersionArn self.requestId = output.requestId @@ -4517,9 +4506,8 @@ public enum DeleteContainerRecipeOutputError: Swift.Error, Swift.Equatable { extension DeleteContainerRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteContainerRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerRecipeArn = output.containerRecipeArn self.requestId = output.requestId @@ -4645,9 +4633,8 @@ public enum DeleteDistributionConfigurationOutputError: Swift.Error, Swift.Equat extension DeleteDistributionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDistributionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.distributionConfigurationArn = output.distributionConfigurationArn self.requestId = output.requestId @@ -4773,9 +4760,8 @@ public enum DeleteImageOutputError: Swift.Error, Swift.Equatable { extension DeleteImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageBuildVersionArn = output.imageBuildVersionArn self.requestId = output.requestId @@ -4901,9 +4887,8 @@ public enum DeleteImagePipelineOutputError: Swift.Error, Swift.Equatable { extension DeleteImagePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteImagePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imagePipelineArn = output.imagePipelineArn self.requestId = output.requestId @@ -5029,9 +5014,8 @@ public enum DeleteImageRecipeOutputError: Swift.Error, Swift.Equatable { extension DeleteImageRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteImageRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageRecipeArn = output.imageRecipeArn self.requestId = output.requestId @@ -5157,9 +5141,8 @@ public enum DeleteInfrastructureConfigurationOutputError: Swift.Error, Swift.Equ extension DeleteInfrastructureConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInfrastructureConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.infrastructureConfigurationArn = output.infrastructureConfigurationArn self.requestId = output.requestId @@ -6056,9 +6039,8 @@ extension ImagebuilderClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6072,7 +6054,7 @@ extension ForbiddenException { } /// You are not authorized to perform the requested operation. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6183,9 +6165,8 @@ public enum GetComponentOutputError: Swift.Error, Swift.Equatable { extension GetComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.component = output.component self.requestId = output.requestId @@ -6309,9 +6290,8 @@ public enum GetComponentPolicyOutputError: Swift.Error, Swift.Equatable { extension GetComponentPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComponentPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.requestId = output.requestId @@ -6435,9 +6415,8 @@ public enum GetContainerRecipeOutputError: Swift.Error, Swift.Equatable { extension GetContainerRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerRecipe = output.containerRecipe self.requestId = output.requestId @@ -6561,9 +6540,8 @@ public enum GetContainerRecipePolicyOutputError: Swift.Error, Swift.Equatable { extension GetContainerRecipePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerRecipePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.requestId = output.requestId @@ -6687,9 +6665,8 @@ public enum GetDistributionConfigurationOutputError: Swift.Error, Swift.Equatabl extension GetDistributionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDistributionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.distributionConfiguration = output.distributionConfiguration self.requestId = output.requestId @@ -6813,9 +6790,8 @@ public enum GetImageOutputError: Swift.Error, Swift.Equatable { extension GetImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.image = output.image self.requestId = output.requestId @@ -6939,9 +6915,8 @@ public enum GetImagePipelineOutputError: Swift.Error, Swift.Equatable { extension GetImagePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImagePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imagePipeline = output.imagePipeline self.requestId = output.requestId @@ -7065,9 +7040,8 @@ public enum GetImagePolicyOutputError: Swift.Error, Swift.Equatable { extension GetImagePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImagePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.requestId = output.requestId @@ -7191,9 +7165,8 @@ public enum GetImageRecipeOutputError: Swift.Error, Swift.Equatable { extension GetImageRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImageRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageRecipe = output.imageRecipe self.requestId = output.requestId @@ -7317,9 +7290,8 @@ public enum GetImageRecipePolicyOutputError: Swift.Error, Swift.Equatable { extension GetImageRecipePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImageRecipePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.requestId = output.requestId @@ -7444,9 +7416,8 @@ public enum GetInfrastructureConfigurationOutputError: Swift.Error, Swift.Equata extension GetInfrastructureConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInfrastructureConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.infrastructureConfiguration = output.infrastructureConfiguration self.requestId = output.requestId @@ -7571,9 +7542,8 @@ public enum GetWorkflowExecutionOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endTime = output.endTime self.imageBuildVersionArn = output.imageBuildVersionArn @@ -7807,9 +7777,8 @@ public enum GetWorkflowStepExecutionOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowStepExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowStepExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.description = output.description @@ -8008,9 +7977,8 @@ extension GetWorkflowStepExecutionOutputResponseBody: Swift.Decodable { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8024,7 +7992,7 @@ extension IdempotentParameterMismatchException { } /// You have specified a client token for an operation using parameter values that differ from a previous request that used the same client token. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10179,9 +10147,8 @@ public enum ImportComponentOutputError: Swift.Error, Swift.Equatable { extension ImportComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.componentBuildVersionArn = output.componentBuildVersionArn @@ -10414,9 +10381,8 @@ public enum ImportVmImageOutputError: Swift.Error, Swift.Equatable { extension ImportVmImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportVmImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.imageArn = output.imageArn @@ -11068,9 +11034,8 @@ extension ImagebuilderClientTypes { extension InvalidPaginationTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPaginationTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11084,7 +11049,7 @@ extension InvalidPaginationTokenException { } /// You have provided an invalid pagination token in your request. -public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11120,9 +11085,8 @@ extension InvalidPaginationTokenExceptionBody: Swift.Decodable { extension InvalidParameterCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterCombinationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11136,7 +11100,7 @@ extension InvalidParameterCombinationException { } /// You have specified two or more mutually exclusive parameters. Review the error message for details. -public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11172,9 +11136,8 @@ extension InvalidParameterCombinationExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11188,7 +11151,7 @@ extension InvalidParameterException { } /// The specified parameter is invalid. Review the available parameters for the API request. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11224,9 +11187,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11240,7 +11202,7 @@ extension InvalidParameterValueException { } /// The value that you provided for the specified parameter is invalid. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11276,9 +11238,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11292,7 +11253,7 @@ extension InvalidRequestException { } /// You have requested an action that that the service doesn't support. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11328,9 +11289,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidVersionNumberException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidVersionNumberExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11344,7 +11304,7 @@ extension InvalidVersionNumberException { } /// Your version number is out of bounds or does not follow the required syntax. -public struct InvalidVersionNumberException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVersionNumberException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11655,9 +11615,8 @@ public enum ListComponentBuildVersionsOutputError: Swift.Error, Swift.Equatable extension ListComponentBuildVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentBuildVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentSummaryList = output.componentSummaryList self.nextToken = output.nextToken @@ -11878,9 +11837,8 @@ public enum ListComponentsOutputError: Swift.Error, Swift.Equatable { extension ListComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentVersionList = output.componentVersionList self.nextToken = output.nextToken @@ -12085,9 +12043,8 @@ public enum ListContainerRecipesOutputError: Swift.Error, Swift.Equatable { extension ListContainerRecipesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContainerRecipesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerRecipeSummaryList = output.containerRecipeSummaryList self.nextToken = output.nextToken @@ -12272,9 +12229,8 @@ public enum ListDistributionConfigurationsOutputError: Swift.Error, Swift.Equata extension ListDistributionConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDistributionConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.distributionConfigurationSummaryList = output.distributionConfigurationSummaryList self.nextToken = output.nextToken @@ -12482,9 +12438,8 @@ public enum ListImageBuildVersionsOutputError: Swift.Error, Swift.Equatable { extension ListImageBuildVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImageBuildVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageSummaryList = output.imageSummaryList self.nextToken = output.nextToken @@ -12660,9 +12615,8 @@ public enum ListImagePackagesOutputError: Swift.Error, Swift.Equatable { extension ListImagePackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImagePackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imagePackageList = output.imagePackageList self.nextToken = output.nextToken @@ -12866,9 +12820,8 @@ public enum ListImagePipelineImagesOutputError: Swift.Error, Swift.Equatable { extension ListImagePipelineImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImagePipelineImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageSummaryList = output.imageSummaryList self.nextToken = output.nextToken @@ -13065,9 +13018,8 @@ public enum ListImagePipelinesOutputError: Swift.Error, Swift.Equatable { extension ListImagePipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImagePipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imagePipelineList = output.imagePipelineList self.nextToken = output.nextToken @@ -13270,9 +13222,8 @@ public enum ListImageRecipesOutputError: Swift.Error, Swift.Equatable { extension ListImageRecipesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImageRecipesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageRecipeSummaryList = output.imageRecipeSummaryList self.nextToken = output.nextToken @@ -13433,9 +13384,8 @@ public enum ListImageScanFindingAggregationsOutputError: Swift.Error, Swift.Equa extension ListImageScanFindingAggregationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImageScanFindingAggregationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregationType = output.aggregationType self.nextToken = output.nextToken @@ -13652,9 +13602,8 @@ public enum ListImageScanFindingsOutputError: Swift.Error, Swift.Equatable { extension ListImageScanFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImageScanFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings self.nextToken = output.nextToken @@ -13885,9 +13834,8 @@ public enum ListImagesOutputError: Swift.Error, Swift.Equatable { extension ListImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageVersionList = output.imageVersionList self.nextToken = output.nextToken @@ -14072,9 +14020,8 @@ public enum ListInfrastructureConfigurationsOutputError: Swift.Error, Swift.Equa extension ListInfrastructureConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInfrastructureConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.infrastructureConfigurationSummaryList = output.infrastructureConfigurationSummaryList self.nextToken = output.nextToken @@ -14199,9 +14146,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -14355,9 +14301,8 @@ public enum ListWorkflowExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageBuildVersionArn = output.imageBuildVersionArn self.message = output.message @@ -14551,9 +14496,8 @@ public enum ListWorkflowStepExecutionsOutputError: Swift.Error, Swift.Equatable extension ListWorkflowStepExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowStepExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageBuildVersionArn = output.imageBuildVersionArn self.message = output.message @@ -15170,9 +15114,8 @@ public enum PutComponentPolicyOutputError: Swift.Error, Swift.Equatable { extension PutComponentPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutComponentPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentArn = output.componentArn self.requestId = output.requestId @@ -15318,9 +15261,8 @@ public enum PutContainerRecipePolicyOutputError: Swift.Error, Swift.Equatable { extension PutContainerRecipePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutContainerRecipePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerRecipeArn = output.containerRecipeArn self.requestId = output.requestId @@ -15466,9 +15408,8 @@ public enum PutImagePolicyOutputError: Swift.Error, Swift.Equatable { extension PutImagePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutImagePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageArn = output.imageArn self.requestId = output.requestId @@ -15614,9 +15555,8 @@ public enum PutImageRecipePolicyOutputError: Swift.Error, Swift.Equatable { extension PutImageRecipePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutImageRecipePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageRecipeArn = output.imageRecipeArn self.requestId = output.requestId @@ -15745,9 +15685,8 @@ extension ImagebuilderClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15761,7 +15700,7 @@ extension ResourceAlreadyExistsException { } /// The resource that you are trying to create already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15797,9 +15736,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceDependencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceDependencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15813,7 +15751,7 @@ extension ResourceDependencyException { } /// You have attempted to mutate or delete a resource with a dependency that prohibits this action. See the error message for more details. -public struct ResourceDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15849,9 +15787,8 @@ extension ResourceDependencyExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15865,7 +15802,7 @@ extension ResourceInUseException { } /// The resource that you are trying to operate on is currently in use. Review the message details and retry later. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15901,9 +15838,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15917,7 +15853,7 @@ extension ResourceNotFoundException { } /// At least one of the resources referenced by your request does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16127,9 +16063,8 @@ extension ImagebuilderClientTypes { extension ServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16143,7 +16078,7 @@ extension ServiceException { } /// This exception is thrown when the service encounters an unrecoverable exception. -public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16179,9 +16114,8 @@ extension ServiceExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16195,7 +16129,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded the number of permitted resources or operations for this service. For service quotas, see [EC2 Image Builder endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/imagebuilder.html#limits_imagebuilder). -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16231,9 +16165,8 @@ extension ServiceQuotaExceededExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16247,7 +16180,7 @@ extension ServiceUnavailableException { } /// The service is unable to process your request at this time. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16447,9 +16380,8 @@ public enum StartImagePipelineExecutionOutputError: Swift.Error, Swift.Equatable extension StartImagePipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImagePipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.imageBuildVersionArn = output.imageBuildVersionArn @@ -16919,9 +16851,8 @@ public enum UpdateDistributionConfigurationOutputError: Swift.Error, Swift.Equat extension UpdateDistributionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDistributionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.distributionConfigurationArn = output.distributionConfigurationArn @@ -17198,9 +17129,8 @@ public enum UpdateImagePipelineOutputError: Swift.Error, Swift.Equatable { extension UpdateImagePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateImagePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.imagePipelineArn = output.imagePipelineArn @@ -17529,9 +17459,8 @@ public enum UpdateInfrastructureConfigurationOutputError: Swift.Error, Swift.Equ extension UpdateInfrastructureConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInfrastructureConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.infrastructureConfigurationArn = output.infrastructureConfigurationArn diff --git a/Sources/Services/AWSInspector/InspectorClient.swift b/Sources/Services/AWSInspector/InspectorClient.swift index 77467456c0d..91a261d58e0 100644 --- a/Sources/Services/AWSInspector/InspectorClient.swift +++ b/Sources/Services/AWSInspector/InspectorClient.swift @@ -208,6 +208,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addAttributesToFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssessmentTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssessmentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExclusionsPreview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourceGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssessmentRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssessmentTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssessmentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAssessmentRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAssessmentTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAssessmentTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCrossAccountAccessRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExclusions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourceGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRulesPackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssessmentReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExclusionsPreview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTelemetryMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessmentRunAgents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessmentRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessmentTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssessmentTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExclusions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRulesPackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "previewAgents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerCrossAccountAccessRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeAttributesFromFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAssessmentRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopAssessmentRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "subscribeToEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unsubscribeFromEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension InspectorClient: InspectorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssessmentTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension InspectorClient: InspectorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSInspector/models/Models.swift b/Sources/Services/AWSInspector/models/Models.swift index 7703aa5fd9c..9e0376a49bb 100644 --- a/Sources/Services/AWSInspector/models/Models.swift +++ b/Sources/Services/AWSInspector/models/Models.swift @@ -54,9 +54,8 @@ extension InspectorClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.canRetry = output.canRetry self.errorCode = output.errorCode @@ -74,7 +73,7 @@ extension AccessDeniedException { } /// You do not have required permissions to access the requested resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -245,9 +244,8 @@ public enum AddAttributesToFindingsOutputError: Swift.Error, Swift.Equatable { extension AddAttributesToFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddAttributesToFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedItems = output.failedItems } else { @@ -599,9 +597,8 @@ extension InspectorClientTypes { extension AgentsAlreadyRunningAssessmentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AgentsAlreadyRunningAssessmentExceptionBody = try responseDecoder.decode(responseBody: data) self.agents = output.agents self.agentsTruncated = output.agentsTruncated @@ -621,7 +618,7 @@ extension AgentsAlreadyRunningAssessmentException { } /// You started an assessment run, but one of the instances is already participating in another assessment run. -public struct AgentsAlreadyRunningAssessmentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AgentsAlreadyRunningAssessmentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1174,9 +1171,8 @@ extension InspectorClientTypes { extension AssessmentRunInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssessmentRunInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.assessmentRunArns = output.assessmentRunArns self.assessmentRunArnsTruncated = output.assessmentRunArnsTruncated @@ -1196,7 +1192,7 @@ extension AssessmentRunInProgressException { } /// You cannot perform a specified action if an assessment run is currently in progress. -public struct AssessmentRunInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssessmentRunInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2147,9 +2143,8 @@ public enum CreateAssessmentTargetOutputError: Swift.Error, Swift.Equatable { extension CreateAssessmentTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssessmentTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentTargetArn = output.assessmentTargetArn } else { @@ -2344,9 +2339,8 @@ public enum CreateAssessmentTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateAssessmentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssessmentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentTemplateArn = output.assessmentTemplateArn } else { @@ -2466,9 +2460,8 @@ public enum CreateExclusionsPreviewOutputError: Swift.Error, Swift.Equatable { extension CreateExclusionsPreviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExclusionsPreviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.previewToken = output.previewToken } else { @@ -2598,9 +2591,8 @@ public enum CreateResourceGroupOutputError: Swift.Error, Swift.Equatable { extension CreateResourceGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceGroupArn = output.resourceGroupArn } else { @@ -2994,9 +2986,8 @@ public enum DescribeAssessmentRunsOutputError: Swift.Error, Swift.Equatable { extension DescribeAssessmentRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssessmentRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentRuns = output.assessmentRuns self.failedItems = output.failedItems @@ -3149,9 +3140,8 @@ public enum DescribeAssessmentTargetsOutputError: Swift.Error, Swift.Equatable { extension DescribeAssessmentTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssessmentTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentTargets = output.assessmentTargets self.failedItems = output.failedItems @@ -3303,9 +3293,8 @@ public enum DescribeAssessmentTemplatesOutputError: Swift.Error, Swift.Equatable extension DescribeAssessmentTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssessmentTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentTemplates = output.assessmentTemplates self.failedItems = output.failedItems @@ -3424,9 +3413,8 @@ public enum DescribeCrossAccountAccessRoleOutputError: Swift.Error, Swift.Equata extension DescribeCrossAccountAccessRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCrossAccountAccessRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registeredAt = output.registeredAt self.roleArn = output.roleArn @@ -3584,9 +3572,8 @@ public enum DescribeExclusionsOutputError: Swift.Error, Swift.Equatable { extension DescribeExclusionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExclusionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exclusions = output.exclusions self.failedItems = output.failedItems @@ -3751,9 +3738,8 @@ public enum DescribeFindingsOutputError: Swift.Error, Swift.Equatable { extension DescribeFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedItems = output.failedItems self.findings = output.findings @@ -3906,9 +3892,8 @@ public enum DescribeResourceGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeResourceGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourceGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedItems = output.failedItems self.resourceGroups = output.resourceGroups @@ -4073,9 +4058,8 @@ public enum DescribeRulesPackagesOutputError: Swift.Error, Swift.Equatable { extension DescribeRulesPackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRulesPackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedItems = output.failedItems self.rulesPackages = output.rulesPackages @@ -5075,9 +5059,8 @@ public enum GetAssessmentReportOutputError: Swift.Error, Swift.Equatable { extension GetAssessmentReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssessmentReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status self.url = output.url @@ -5252,9 +5235,8 @@ public enum GetExclusionsPreviewOutputError: Swift.Error, Swift.Equatable { extension GetExclusionsPreviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExclusionsPreviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exclusionPreviews = output.exclusionPreviews self.nextToken = output.nextToken @@ -5399,9 +5381,8 @@ public enum GetTelemetryMetadataOutputError: Swift.Error, Swift.Equatable { extension GetTelemetryMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTelemetryMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.telemetryMetadata = output.telemetryMetadata } else { @@ -5547,9 +5528,8 @@ extension InspectorClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.canRetry = output.canRetry self.message = output.message @@ -5565,7 +5545,7 @@ extension InternalException { } /// Internal server error. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5644,9 +5624,8 @@ extension InspectorClientTypes { extension InvalidCrossAccountRoleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCrossAccountRoleExceptionBody = try responseDecoder.decode(responseBody: data) self.canRetry = output.canRetry self.errorCode = output.errorCode @@ -5664,7 +5643,7 @@ extension InvalidCrossAccountRoleException { } /// Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run. -public struct InvalidCrossAccountRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCrossAccountRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5908,9 +5887,8 @@ extension InspectorClientTypes { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.canRetry = output.canRetry self.errorCode = output.errorCode @@ -5928,7 +5906,7 @@ extension InvalidInputException { } /// The request was rejected because an invalid or out-of-range value was supplied for an input parameter. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6025,9 +6003,8 @@ extension InspectorClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.canRetry = output.canRetry self.errorCode = output.errorCode @@ -6045,7 +6022,7 @@ extension LimitExceededException { } /// The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6213,9 +6190,8 @@ public enum ListAssessmentRunAgentsOutputError: Swift.Error, Swift.Equatable { extension ListAssessmentRunAgentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentRunAgentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentRunAgents = output.assessmentRunAgents self.nextToken = output.nextToken @@ -6397,9 +6373,8 @@ public enum ListAssessmentRunsOutputError: Swift.Error, Swift.Equatable { extension ListAssessmentRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentRunArns = output.assessmentRunArns self.nextToken = output.nextToken @@ -6555,9 +6530,8 @@ public enum ListAssessmentTargetsOutputError: Swift.Error, Swift.Equatable { extension ListAssessmentTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentTargetArns = output.assessmentTargetArns self.nextToken = output.nextToken @@ -6739,9 +6713,8 @@ public enum ListAssessmentTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListAssessmentTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssessmentTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentTemplateArns = output.assessmentTemplateArns self.nextToken = output.nextToken @@ -6899,9 +6872,8 @@ public enum ListEventSubscriptionsOutputError: Swift.Error, Swift.Equatable { extension ListEventSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscriptions = output.subscriptions @@ -7060,9 +7032,8 @@ public enum ListExclusionsOutputError: Swift.Error, Swift.Equatable { extension ListExclusionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExclusionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exclusionArns = output.exclusionArns self.nextToken = output.nextToken @@ -7244,9 +7215,8 @@ public enum ListFindingsOutputError: Swift.Error, Swift.Equatable { extension ListFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingArns = output.findingArns self.nextToken = output.nextToken @@ -7390,9 +7360,8 @@ public enum ListRulesPackagesOutputError: Swift.Error, Swift.Equatable { extension ListRulesPackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesPackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rulesPackageArns = output.rulesPackageArns @@ -7527,9 +7496,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7818,9 +7786,8 @@ extension InspectorClientTypes { extension NoSuchEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.canRetry = output.canRetry self.errorCode = output.errorCode @@ -7838,7 +7805,7 @@ extension NoSuchEntityException { } /// The request was rejected because it referenced an entity that does not exist. The error code describes the entity. -public struct NoSuchEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7996,9 +7963,8 @@ public enum PreviewAgentsOutputError: Swift.Error, Swift.Equatable { extension PreviewAgentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreviewAgentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentPreviews = output.agentPreviews self.nextToken = output.nextToken @@ -8057,9 +8023,8 @@ extension PreviewAgentsOutputResponseBody: Swift.Decodable { extension PreviewGenerationInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreviewGenerationInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8073,7 +8038,7 @@ extension PreviewGenerationInProgressException { } /// The request is rejected. The specified assessment template is currently generating an exclusions preview. -public struct PreviewGenerationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreviewGenerationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8390,9 +8355,8 @@ public enum RemoveAttributesFromFindingsOutputError: Swift.Error, Swift.Equatabl extension RemoveAttributesFromFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveAttributesFromFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedItems = output.failedItems } else { @@ -8857,9 +8821,8 @@ extension InspectorClientTypes { extension ServiceTemporarilyUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceTemporarilyUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.canRetry = output.canRetry self.message = output.message @@ -8875,7 +8838,7 @@ extension ServiceTemporarilyUnavailableException { } /// The serice is temporary unavailable. -public struct ServiceTemporarilyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceTemporarilyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9171,9 +9134,8 @@ public enum StartAssessmentRunOutputError: Swift.Error, Swift.Equatable { extension StartAssessmentRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAssessmentRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentRunArn = output.assessmentRunArn } else { @@ -9793,9 +9755,8 @@ public struct UnsubscribeFromEventOutputResponse: Swift.Equatable { extension UnsupportedFeatureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedFeatureExceptionBody = try responseDecoder.decode(responseBody: data) self.canRetry = output.canRetry self.message = output.message @@ -9811,7 +9772,7 @@ extension UnsupportedFeatureException { } /// Used by the [GetAssessmentReport] API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available. -public struct UnsupportedFeatureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedFeatureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSInspector2/Inspector2Client.swift b/Sources/Services/AWSInspector2/Inspector2Client.swift index 28e5e53835f..ba679dd5416 100644 --- a/Sources/Services/AWSInspector2/Inspector2Client.swift +++ b/Sources/Services/AWSInspector2/Inspector2Client.swift @@ -208,6 +208,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetAccountStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetFreeTrialInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelFindingsReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFindingsReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +473,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +493,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +509,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +529,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableDelegatedAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +545,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +565,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -570,7 +581,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -590,6 +601,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enable") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -613,7 +625,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -633,6 +645,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableDelegatedAdminAccount") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -656,7 +669,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -688,7 +702,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -708,6 +722,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDelegatedAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -720,7 +735,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -740,6 +755,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindingsReportStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -755,7 +771,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -775,6 +791,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -790,7 +807,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -810,6 +827,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -825,7 +843,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -845,6 +863,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCoverage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -860,7 +879,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -880,6 +899,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCoverageStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -895,7 +915,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -915,6 +935,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDelegatedAdminAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -930,7 +951,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -950,6 +971,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -965,7 +987,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -985,6 +1007,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindingAggregations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1000,7 +1023,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1020,6 +1043,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1035,7 +1059,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1055,6 +1079,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1070,7 +1095,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1090,6 +1115,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1102,7 +1128,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1148,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsageTotals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1164,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1184,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1172,7 +1200,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1192,6 +1220,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1205,7 +1234,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1225,6 +1254,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1270,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1290,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1306,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1326,7 @@ extension Inspector2Client: Inspector2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "inspector2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1310,7 +1342,7 @@ extension Inspector2Client: Inspector2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSInspector2/models/Models.swift b/Sources/Services/AWSInspector2/models/Models.swift index 784e15f0a41..ad700dc7dba 100644 --- a/Sources/Services/AWSInspector2/models/Models.swift +++ b/Sources/Services/AWSInspector2/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -997,9 +996,8 @@ public enum AssociateMemberOutputError: Swift.Error, Swift.Equatable { extension AssociateMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId } else { @@ -1817,9 +1815,8 @@ extension Inspector2ClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1833,7 +1830,7 @@ extension BadRequestException { } /// One or more tags submitted as part of the request is not valid. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1959,9 +1956,8 @@ public enum BatchGetAccountStatusOutputError: Swift.Error, Swift.Equatable { extension BatchGetAccountStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetAccountStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.failedAccounts = output.failedAccounts @@ -2117,9 +2113,8 @@ public enum BatchGetFreeTrialInfoOutputError: Swift.Error, Swift.Equatable { extension BatchGetFreeTrialInfoOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetFreeTrialInfoOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.failedAccounts = output.failedAccounts @@ -2266,9 +2261,8 @@ public enum CancelFindingsReportOutputError: Swift.Error, Swift.Equatable { extension CancelFindingsReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelFindingsReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportId = output.reportId } else { @@ -2308,9 +2302,8 @@ extension CancelFindingsReportOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -2328,7 +2321,7 @@ extension ConflictException { } /// A conflict occurred. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3163,9 +3156,8 @@ public enum CreateFilterOutputError: Swift.Error, Swift.Equatable { extension CreateFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3308,9 +3300,8 @@ public enum CreateFindingsReportOutputError: Swift.Error, Swift.Equatable { extension CreateFindingsReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFindingsReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportId = output.reportId } else { @@ -3840,9 +3831,8 @@ public enum DeleteFilterOutputError: Swift.Error, Swift.Equatable { extension DeleteFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3930,9 +3920,8 @@ public enum DescribeOrganizationConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeOrganizationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnable = output.autoEnable self.maxAccountLimitReached = output.maxAccountLimitReached @@ -4118,9 +4107,8 @@ public enum DisableDelegatedAdminAccountOutputError: Swift.Error, Swift.Equatabl extension DisableDelegatedAdminAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableDelegatedAdminAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegatedAdminAccountId = output.delegatedAdminAccountId } else { @@ -4273,9 +4261,8 @@ public enum DisableOutputError: Swift.Error, Swift.Equatable { extension DisableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.failedAccounts = output.failedAccounts @@ -4419,9 +4406,8 @@ public enum DisassociateMemberOutputError: Swift.Error, Swift.Equatable { extension DisassociateMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId } else { @@ -5257,9 +5243,8 @@ public enum EnableDelegatedAdminAccountOutputError: Swift.Error, Swift.Equatable extension EnableDelegatedAdminAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableDelegatedAdminAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegatedAdminAccountId = output.delegatedAdminAccountId } else { @@ -5425,9 +5410,8 @@ public enum EnableOutputError: Swift.Error, Swift.Equatable { extension EnableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.failedAccounts = output.failedAccounts @@ -7598,9 +7582,8 @@ public enum GetConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ecrConfiguration = output.ecrConfiguration } else { @@ -7689,9 +7672,8 @@ public enum GetDelegatedAdminAccountOutputError: Swift.Error, Swift.Equatable { extension GetDelegatedAdminAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDelegatedAdminAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegatedAdmin = output.delegatedAdmin } else { @@ -7807,9 +7789,8 @@ public enum GetFindingsReportStatusOutputError: Swift.Error, Swift.Equatable { extension GetFindingsReportStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingsReportStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destination = output.destination self.errorCode = output.errorCode @@ -7976,9 +7957,8 @@ public enum GetMemberOutputError: Swift.Error, Swift.Equatable { extension GetMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.member = output.member } else { @@ -8323,9 +8303,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8339,7 +8318,7 @@ extension InternalServerException { } /// The request has failed due to an internal failure of the Amazon Inspector service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9148,9 +9127,8 @@ public enum ListAccountPermissionsOutputError: Swift.Error, Swift.Equatable { extension ListAccountPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -9306,9 +9284,8 @@ public enum ListCoverageOutputError: Swift.Error, Swift.Equatable { extension ListCoverageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCoverageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coveredResources = output.coveredResources self.nextToken = output.nextToken @@ -9463,9 +9440,8 @@ public enum ListCoverageStatisticsOutputError: Swift.Error, Swift.Equatable { extension ListCoverageStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCoverageStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.countsByGroup = output.countsByGroup self.nextToken = output.nextToken @@ -9621,9 +9597,8 @@ public enum ListDelegatedAdminAccountsOutputError: Swift.Error, Swift.Equatable extension ListDelegatedAdminAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDelegatedAdminAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegatedAdminAccounts = output.delegatedAdminAccounts self.nextToken = output.nextToken @@ -9804,9 +9779,8 @@ public enum ListFiltersOutputError: Swift.Error, Swift.Equatable { extension ListFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.filters = output.filters self.nextToken = output.nextToken @@ -9999,9 +9973,8 @@ public enum ListFindingAggregationsOutputError: Swift.Error, Swift.Equatable { extension ListFindingAggregationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingAggregationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregationType = output.aggregationType self.nextToken = output.nextToken @@ -10179,9 +10152,8 @@ public enum ListFindingsOutputError: Swift.Error, Swift.Equatable { extension ListFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings self.nextToken = output.nextToken @@ -10338,9 +10310,8 @@ public enum ListMembersOutputError: Swift.Error, Swift.Equatable { extension ListMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.nextToken = output.nextToken @@ -10457,9 +10428,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10618,9 +10588,8 @@ public enum ListUsageTotalsOutputError: Swift.Error, Swift.Equatable { extension ListUsageTotalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsageTotalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.totals = output.totals @@ -12265,9 +12234,8 @@ extension Inspector2ClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12281,7 +12249,7 @@ extension ResourceNotFoundException { } /// The operation tried to access an invalid resource. Make sure the resource is specified correctly. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12861,9 +12829,8 @@ extension Inspector2ClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -12879,7 +12846,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13531,9 +13498,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13547,7 +13513,7 @@ extension ThrottlingException { } /// The limit on the number of requests per second was exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14103,9 +14069,8 @@ public enum UpdateFilterOutputError: Swift.Error, Swift.Equatable { extension UpdateFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -14221,9 +14186,8 @@ public enum UpdateOrganizationConfigurationOutputError: Swift.Error, Swift.Equat extension UpdateOrganizationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateOrganizationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnable = output.autoEnable } else { @@ -14423,9 +14387,8 @@ extension Inspector2ClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -14443,7 +14406,7 @@ extension ValidationException { } /// The request has failed validation due to missing required fields or having invalid inputs. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSInternetMonitor/InternetMonitorClient.swift b/Sources/Services/AWSInternetMonitor/InternetMonitorClient.swift index 1e8b1c9cca6..95425f1e9a1 100644 --- a/Sources/Services/AWSInternetMonitor/InternetMonitorClient.swift +++ b/Sources/Services/AWSInternetMonitor/InternetMonitorClient.swift @@ -208,6 +208,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMonitor") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -263,7 +265,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHealthEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -295,7 +298,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -315,6 +318,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -327,7 +331,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -347,6 +351,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHealthEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMonitors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -393,7 +399,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -413,6 +419,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -425,7 +432,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -445,6 +452,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -460,7 +468,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -480,6 +488,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -493,7 +502,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -513,6 +522,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "internetmonitor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMonitor") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -536,7 +546,7 @@ extension InternetMonitorClient: InternetMonitorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSInternetMonitor/models/Models.swift b/Sources/Services/AWSInternetMonitor/models/Models.swift index fa1d0697090..785c6467634 100644 --- a/Sources/Services/AWSInternetMonitor/models/Models.swift +++ b/Sources/Services/AWSInternetMonitor/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient permission to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -111,9 +110,8 @@ extension InternetMonitorClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -127,7 +125,7 @@ extension BadRequestException { } /// A bad request was received. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -163,9 +161,8 @@ extension BadRequestExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -179,7 +176,7 @@ extension ConflictException { } /// The requested resource is in use. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -391,9 +388,8 @@ public enum CreateMonitorOutputError: Swift.Error, Swift.Equatable { extension CreateMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.status = output.status @@ -580,9 +576,8 @@ public enum GetHealthEventOutputError: Swift.Error, Swift.Equatable { extension GetHealthEventOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHealthEventOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.endedAt = output.endedAt @@ -786,9 +781,8 @@ public enum GetMonitorOutputError: Swift.Error, Swift.Equatable { extension GetMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.internetMeasurementsLogDelivery = output.internetMeasurementsLogDelivery @@ -1338,9 +1332,8 @@ extension InternetMonitorClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1354,7 +1347,7 @@ extension InternalServerErrorException { } /// There was an internal server error. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1390,9 +1383,8 @@ extension InternalServerErrorExceptionBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1406,7 +1398,7 @@ extension InternalServerException { } /// An internal error occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1522,9 +1514,8 @@ extension InternetMonitorClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1538,7 +1529,7 @@ extension LimitExceededException { } /// The request exceeded a service quota. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1682,9 +1673,8 @@ public enum ListHealthEventsOutputError: Swift.Error, Swift.Equatable { extension ListHealthEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHealthEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthEvents = output.healthEvents self.nextToken = output.nextToken @@ -1827,9 +1817,8 @@ public enum ListMonitorsOutputError: Swift.Error, Swift.Equatable { extension ListMonitorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMonitorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitors = output.monitors self.nextToken = output.nextToken @@ -1949,9 +1938,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2310,9 +2298,8 @@ extension InternetMonitorClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2326,7 +2313,7 @@ extension NotFoundException { } /// The request specifies something that doesn't exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2427,9 +2414,8 @@ extension InternetMonitorClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2443,7 +2429,7 @@ extension ResourceNotFoundException { } /// The request specifies a resource that doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2697,9 +2683,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2713,7 +2698,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2749,9 +2734,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2765,7 +2749,7 @@ extension TooManyRequestsException { } /// There were too many requests. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3109,9 +3093,8 @@ public enum UpdateMonitorOutputError: Swift.Error, Swift.Equatable { extension UpdateMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitorArn = output.monitorArn self.status = output.status @@ -3162,9 +3145,8 @@ extension UpdateMonitorOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3178,7 +3160,7 @@ extension ValidationException { } /// Invalid request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoT/IoTClient.swift b/Sources/Services/AWSIoT/IoTClient.swift index 678355fc19a..6ddd80daaa2 100644 --- a/Sources/Services/AWSIoT/IoTClient.swift +++ b/Sources/Services/AWSIoT/IoTClient.swift @@ -208,6 +208,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptCertificateTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addThingToBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -256,7 +258,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -276,6 +278,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addThingToThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -291,7 +294,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -320,6 +323,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTargetsWithJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +360,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +376,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -392,6 +397,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachPrincipalPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -405,7 +411,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -425,6 +431,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -438,7 +445,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -458,6 +465,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachThingPrincipal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -471,7 +479,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -491,6 +499,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelAuditMitigationActionsTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelAuditTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +545,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +565,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelCertificateTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -567,7 +578,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +598,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelDetectMitigationActionsTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +611,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -619,6 +631,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -635,7 +648,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -655,6 +668,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJobExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -671,7 +685,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -691,6 +705,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "clearDefaultAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -703,7 +718,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -723,6 +738,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "confirmTopicRuleDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -735,7 +751,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -755,6 +771,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAuditSuppression") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -778,7 +795,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -798,6 +815,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -813,7 +831,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -833,6 +851,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -848,7 +867,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -868,6 +887,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCertificateFromCsr") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +904,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +924,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomMetric") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -927,7 +948,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -947,6 +968,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDimension") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -970,7 +992,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -990,6 +1012,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomainConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1005,7 +1028,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1025,6 +1048,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDynamicThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1040,7 +1064,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1060,6 +1084,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleetMetric") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1075,7 +1100,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1095,6 +1120,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1110,7 +1136,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1130,6 +1156,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1145,7 +1172,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1165,6 +1192,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKeysAndCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1178,7 +1206,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1198,6 +1226,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMitigationAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1213,7 +1242,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1233,6 +1262,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOTAUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1278,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1298,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1283,7 +1314,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1303,6 +1334,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1319,7 +1351,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1339,6 +1371,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProvisioningClaim") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1351,7 +1384,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1371,6 +1404,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProvisioningTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1386,7 +1420,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1406,6 +1440,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProvisioningTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1422,7 +1457,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1442,6 +1477,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoleAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1457,7 +1493,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1477,6 +1513,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createScheduledAudit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1492,7 +1529,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1512,6 +1549,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1527,7 +1565,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1547,6 +1585,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1562,7 +1601,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1582,6 +1621,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1597,7 +1637,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1617,6 +1657,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1632,7 +1673,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1652,6 +1693,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createThingType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1667,7 +1709,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1687,6 +1729,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTopicRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1703,7 +1746,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1723,6 +1766,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTopicRuleDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1738,7 +1782,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1758,6 +1802,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccountAuditConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1771,7 +1816,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1791,6 +1836,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAuditSuppression") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1806,7 +1852,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1826,6 +1872,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1838,7 +1885,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1858,6 +1905,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1871,7 +1919,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1891,6 +1939,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCACertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1903,7 +1952,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1923,6 +1972,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1936,7 +1986,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1956,6 +2006,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomMetric") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1968,7 +2019,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1988,6 +2039,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDimension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2000,7 +2052,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2020,6 +2072,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomainConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2032,7 +2085,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2052,6 +2105,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDynamicThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2065,7 +2119,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2085,6 +2139,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleetMetric") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2098,7 +2153,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2118,6 +2173,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2131,7 +2187,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2151,6 +2207,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJobExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2164,7 +2221,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2184,6 +2241,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2196,7 +2254,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2216,6 +2274,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMitigationAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2228,7 +2287,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2248,6 +2307,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOTAUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2261,7 +2321,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2281,6 +2341,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2293,7 +2354,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2313,6 +2374,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2325,7 +2387,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2345,6 +2407,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProvisioningTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2357,7 +2420,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2377,6 +2440,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProvisioningTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2389,7 +2453,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2409,6 +2473,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegistrationCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2421,7 +2486,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2441,6 +2506,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoleAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2453,7 +2519,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2473,6 +2539,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScheduledAudit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2485,7 +2552,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2505,6 +2572,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2518,7 +2586,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2538,6 +2606,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2550,7 +2619,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2570,6 +2639,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2583,7 +2653,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2603,6 +2673,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2616,7 +2687,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2636,6 +2707,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteThingType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2648,7 +2720,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2668,6 +2740,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTopicRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2680,7 +2753,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2700,6 +2773,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTopicRuleDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2712,7 +2786,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2732,6 +2806,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteV2LoggingLevel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2745,7 +2820,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2765,6 +2840,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprecateThingType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2780,7 +2856,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2800,6 +2876,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAuditConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2812,7 +2889,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2832,6 +2909,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAuditFinding") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2844,7 +2922,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2864,6 +2942,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAuditMitigationActionsTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2876,7 +2955,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2896,6 +2975,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAuditSuppression") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2911,7 +2991,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2931,6 +3011,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAuditTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2943,7 +3024,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2963,6 +3044,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2975,7 +3057,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2995,6 +3077,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3007,7 +3090,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3027,6 +3110,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCACertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3039,7 +3123,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3059,6 +3143,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3071,7 +3156,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3091,6 +3176,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomMetric") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3103,7 +3189,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3123,6 +3209,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDefaultAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3135,7 +3222,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3155,6 +3242,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDetectMitigationActionsTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3167,7 +3255,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3187,6 +3275,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDimension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3199,7 +3288,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3219,6 +3308,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomainConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3231,7 +3321,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3251,6 +3341,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3264,7 +3355,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3284,6 +3375,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3296,7 +3388,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3316,6 +3408,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetMetric") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3328,7 +3421,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3348,6 +3441,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3360,7 +3454,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3380,6 +3474,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3392,7 +3487,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3412,6 +3507,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3425,7 +3521,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3445,6 +3541,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3457,7 +3554,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3477,6 +3574,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeManagedJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3490,7 +3588,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3510,6 +3608,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMitigationAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3522,7 +3621,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3542,6 +3641,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProvisioningTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3554,7 +3654,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3574,6 +3674,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProvisioningTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3586,7 +3687,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3606,6 +3707,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRoleAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3618,7 +3720,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3638,6 +3740,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScheduledAudit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3650,7 +3753,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3670,6 +3773,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3682,7 +3786,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3702,6 +3806,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3714,7 +3819,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3734,6 +3839,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3746,7 +3852,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3766,6 +3872,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3778,7 +3885,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3798,6 +3905,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeThingRegistrationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3810,7 +3918,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3830,6 +3938,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeThingType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3842,7 +3951,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3862,6 +3971,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3877,7 +3987,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3898,6 +4008,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachPrincipalPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3911,7 +4022,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3931,6 +4042,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3944,7 +4056,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3964,6 +4076,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachThingPrincipal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3977,7 +4090,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3997,6 +4110,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableTopicRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4009,7 +4123,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4029,6 +4143,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableTopicRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4041,7 +4156,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4061,6 +4176,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBehaviorModelTrainingSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4074,7 +4190,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4094,6 +4210,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketsAggregation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4109,7 +4226,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4129,6 +4246,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCardinality") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4144,7 +4262,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4164,6 +4282,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEffectivePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4180,7 +4299,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4200,6 +4319,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIndexingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4212,7 +4332,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4232,6 +4352,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4244,7 +4365,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4264,6 +4385,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4276,7 +4398,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4296,6 +4418,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOTAUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4308,7 +4431,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4328,6 +4451,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPercentiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4343,7 +4467,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4363,6 +4487,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4375,7 +4500,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4395,6 +4520,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4407,7 +4533,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4427,6 +4553,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegistrationCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4439,7 +4566,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4459,6 +4586,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4474,7 +4602,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4494,6 +4622,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTopicRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4506,7 +4635,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4526,6 +4655,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTopicRuleDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4538,7 +4668,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4558,6 +4688,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getV2LoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4570,7 +4701,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4590,6 +4721,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActiveViolations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4603,7 +4735,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4623,6 +4755,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttachedPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4636,7 +4769,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4656,6 +4789,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAuditFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4671,7 +4805,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4691,6 +4825,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAuditMitigationActionsExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4704,7 +4839,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4724,6 +4859,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAuditMitigationActionsTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4737,7 +4873,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4757,6 +4893,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAuditSuppressions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4772,7 +4909,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4792,6 +4929,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAuditTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4805,7 +4943,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4825,6 +4963,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAuthorizers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4838,7 +4977,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4858,6 +4997,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBillingGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4871,7 +5011,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4891,6 +5031,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCACertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4904,7 +5045,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4924,6 +5065,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4937,7 +5079,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4957,6 +5099,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCertificatesByCA") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4970,7 +5113,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4990,6 +5133,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5003,7 +5147,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5023,6 +5167,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDetectMitigationActionsExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5036,7 +5181,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5056,6 +5201,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDetectMitigationActionsTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5069,7 +5215,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5089,6 +5235,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDimensions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5102,7 +5249,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5122,6 +5269,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5135,7 +5283,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5155,6 +5303,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFleetMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5168,7 +5317,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5188,6 +5337,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIndices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5201,7 +5351,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5221,6 +5371,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobExecutionsForJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5234,7 +5385,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5254,6 +5405,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobExecutionsForThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5267,7 +5419,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5287,6 +5439,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5300,7 +5453,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5320,6 +5473,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5333,7 +5487,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5353,6 +5507,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listManagedJobTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5366,7 +5521,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5386,6 +5541,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMetricValues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5399,7 +5555,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5419,6 +5575,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMitigationActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5432,7 +5589,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5452,6 +5609,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOTAUpdates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5465,7 +5623,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5485,6 +5643,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOutgoingCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5498,7 +5657,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5518,6 +5677,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5531,7 +5691,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5552,6 +5712,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicyPrincipals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5566,7 +5727,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5586,6 +5747,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicyVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5598,7 +5760,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5619,6 +5781,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPrincipalPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5633,7 +5796,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5653,6 +5816,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPrincipalThings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5667,7 +5831,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5687,6 +5851,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProvisioningTemplateVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5700,7 +5865,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5720,6 +5885,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProvisioningTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5733,7 +5899,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5774,6 +5940,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRelatedResourcesForAuditFinding") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5787,7 +5954,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5807,6 +5974,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoleAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5820,7 +5988,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5840,6 +6008,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listScheduledAudits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5853,7 +6022,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5873,6 +6042,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5886,7 +6056,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5906,6 +6076,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityProfilesForTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5919,7 +6090,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5939,6 +6110,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5952,7 +6124,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5972,6 +6144,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5985,7 +6158,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6005,6 +6178,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargetsForPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6018,7 +6192,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6038,6 +6212,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargetsForSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6051,7 +6226,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6071,6 +6246,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThingGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6084,7 +6260,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6104,6 +6280,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThingGroupsForThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6117,7 +6294,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6137,6 +6314,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThingPrincipals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6150,7 +6328,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6170,6 +6348,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThingRegistrationTaskReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6183,7 +6362,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6203,6 +6382,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThingRegistrationTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6216,7 +6396,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6236,6 +6416,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThingTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6249,7 +6430,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6269,6 +6450,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6282,7 +6464,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6302,6 +6484,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThingsInBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6315,7 +6498,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6335,6 +6518,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThingsInThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6348,7 +6532,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6368,6 +6552,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTopicRuleDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6381,7 +6566,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6401,6 +6586,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTopicRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6414,7 +6600,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6434,6 +6620,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listV2LoggingLevels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6447,7 +6634,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6467,6 +6654,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listViolationEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6480,7 +6668,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6500,6 +6688,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putVerificationStateOnViolation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6515,7 +6704,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6535,6 +6724,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerCACertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6551,7 +6741,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6571,6 +6761,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6587,7 +6778,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6607,6 +6798,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerCertificateWithoutCA") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6622,7 +6814,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6642,6 +6834,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6657,7 +6850,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6677,6 +6870,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectCertificateTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6692,7 +6886,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6712,6 +6906,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeThingFromBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6727,7 +6922,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6747,6 +6942,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeThingFromThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6762,7 +6958,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6782,6 +6978,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replaceTopicRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6797,7 +6994,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6817,6 +7014,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6832,7 +7030,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6852,6 +7050,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setDefaultAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6867,7 +7066,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6887,6 +7086,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setDefaultPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6899,7 +7099,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6919,6 +7119,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6934,7 +7135,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6954,6 +7155,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setV2LoggingLevel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6969,7 +7171,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6989,6 +7191,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setV2LoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7004,7 +7207,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7024,6 +7227,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAuditMitigationActionsTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -7047,7 +7251,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7067,6 +7271,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDetectMitigationActionsTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -7090,7 +7295,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7110,6 +7315,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startOnDemandAuditTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7125,7 +7331,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7145,6 +7351,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startThingRegistrationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7160,7 +7367,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7180,6 +7387,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopThingRegistrationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7192,7 +7400,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7212,6 +7420,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7227,7 +7436,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7247,6 +7456,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7263,7 +7473,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7283,6 +7493,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testInvokeAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7298,7 +7509,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7318,6 +7529,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "transferCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7334,7 +7546,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7354,6 +7566,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7369,7 +7582,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7389,6 +7602,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountAuditConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7404,7 +7618,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7424,6 +7638,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAuditSuppression") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7439,7 +7654,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7459,6 +7674,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAuthorizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7474,7 +7690,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7494,6 +7710,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBillingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7509,7 +7726,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7529,6 +7746,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCACertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7545,7 +7763,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7565,6 +7783,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7578,7 +7797,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7598,6 +7817,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCustomMetric") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7613,7 +7833,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7633,6 +7853,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDimension") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7648,7 +7869,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7668,6 +7889,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7683,7 +7905,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7703,6 +7925,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDynamicThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7718,7 +7941,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7738,6 +7961,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7753,7 +7977,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7773,6 +7997,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFleetMetric") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7788,7 +8013,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7808,6 +8033,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIndexingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7823,7 +8049,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7843,6 +8069,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7859,7 +8086,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7879,6 +8106,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMitigationAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7894,7 +8122,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7914,6 +8142,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProvisioningTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7929,7 +8158,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7949,6 +8178,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoleAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7964,7 +8194,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7984,6 +8214,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateScheduledAudit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7999,7 +8230,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8019,6 +8250,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecurityProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8035,7 +8267,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8055,6 +8287,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8070,7 +8303,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8090,6 +8323,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8105,7 +8339,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8125,6 +8359,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8140,7 +8375,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8160,6 +8395,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThingGroupsForThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8175,7 +8411,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8195,6 +8431,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTopicRuleDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8210,7 +8447,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8230,6 +8467,7 @@ extension IoTClient: IoTClientProtocol { .withRegion(value: config.region) .withSigningName(value: "execute-api") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateSecurityProfileBehaviors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8245,7 +8483,7 @@ extension IoTClient: IoTClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoT/models/Models.swift b/Sources/Services/AWSIoT/models/Models.swift index b09692c90cc..68228cd0703 100644 --- a/Sources/Services/AWSIoT/models/Models.swift +++ b/Sources/Services/AWSIoT/models/Models.swift @@ -1487,9 +1487,8 @@ public enum AssociateTargetsWithJobOutputError: Swift.Error, Swift.Equatable { extension AssociateTargetsWithJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTargetsWithJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.jobArn = output.jobArn @@ -5139,9 +5138,8 @@ public enum CancelJobOutputError: Swift.Error, Swift.Equatable { extension CancelJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.jobArn = output.jobArn @@ -5325,9 +5323,8 @@ extension IoTClientTypes { extension CertificateConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5341,7 +5338,7 @@ extension CertificateConflictException { } /// Unable to verify the CA certificate used to sign the device certificate you are attempting to register. This is happens when you have registered more than one CA certificate that has the same subject field and public key. -public struct CertificateConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5575,9 +5572,8 @@ extension IoTClientTypes { extension CertificateStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5591,7 +5587,7 @@ extension CertificateStateException { } /// The certificate operation is not allowed. -public struct CertificateStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5672,9 +5668,8 @@ extension IoTClientTypes { extension CertificateValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5688,7 +5683,7 @@ extension CertificateValidationException { } /// The certificate is invalid. -public struct CertificateValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6380,9 +6375,8 @@ public struct ConfirmTopicRuleDestinationOutputResponse: Swift.Equatable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6396,7 +6390,7 @@ extension ConflictException { } /// A resource with the same name already exists. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6432,9 +6426,8 @@ extension ConflictExceptionBody: Swift.Decodable { extension ConflictingResourceUpdateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictingResourceUpdateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6448,7 +6441,7 @@ extension ConflictingResourceUpdateException { } /// A conflicting resource update exception. This exception is thrown when two pending updates cause a conflict. -public struct ConflictingResourceUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictingResourceUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6821,9 +6814,8 @@ public enum CreateAuthorizerOutputError: Swift.Error, Swift.Equatable { extension CreateAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerArn = output.authorizerArn self.authorizerName = output.authorizerName @@ -6979,9 +6971,8 @@ public enum CreateBillingGroupOutputError: Swift.Error, Swift.Equatable { extension CreateBillingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBillingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingGroupArn = output.billingGroupArn self.billingGroupId = output.billingGroupId @@ -7136,9 +7127,8 @@ public enum CreateCertificateFromCsrOutputError: Swift.Error, Swift.Equatable { extension CreateCertificateFromCsrOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCertificateFromCsrOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn self.certificateId = output.certificateId @@ -7333,9 +7323,8 @@ public enum CreateCustomMetricOutputError: Swift.Error, Swift.Equatable { extension CreateCustomMetricOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomMetricOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricArn = output.metricArn self.metricName = output.metricName @@ -7532,9 +7521,8 @@ public enum CreateDimensionOutputError: Swift.Error, Swift.Equatable { extension CreateDimensionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDimensionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -7758,9 +7746,8 @@ public enum CreateDomainConfigurationOutputError: Swift.Error, Swift.Equatable { extension CreateDomainConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainConfigurationArn = output.domainConfigurationArn self.domainConfigurationName = output.domainConfigurationName @@ -7959,9 +7946,8 @@ public enum CreateDynamicThingGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDynamicThingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDynamicThingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexName = output.indexName self.queryString = output.queryString @@ -8259,9 +8245,8 @@ public enum CreateFleetMetricOutputError: Swift.Error, Swift.Equatable { extension CreateFleetMetricOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetMetricOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricArn = output.metricArn self.metricName = output.metricName @@ -8602,9 +8587,8 @@ public enum CreateJobOutputError: Swift.Error, Swift.Equatable { extension CreateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.jobArn = output.jobArn @@ -8895,9 +8879,8 @@ public enum CreateJobTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobTemplateArn = output.jobTemplateArn self.jobTemplateId = output.jobTemplateId @@ -9017,9 +9000,8 @@ public enum CreateKeysAndCertificateOutputError: Swift.Error, Swift.Equatable { extension CreateKeysAndCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateKeysAndCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn self.certificateId = output.certificateId @@ -9212,9 +9194,8 @@ public enum CreateMitigationActionOutputError: Swift.Error, Swift.Equatable { extension CreateMitigationActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMitigationActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionArn = output.actionArn self.actionId = output.actionId @@ -9549,9 +9530,8 @@ public enum CreateOTAUpdateOutputError: Swift.Error, Swift.Equatable { extension CreateOTAUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOTAUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsIotJobArn = output.awsIotJobArn self.awsIotJobId = output.awsIotJobId @@ -9745,9 +9725,8 @@ public enum CreatePolicyOutputError: Swift.Error, Swift.Equatable { extension CreatePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyArn = output.policyArn self.policyDocument = output.policyDocument @@ -9927,9 +9906,8 @@ public enum CreatePolicyVersionOutputError: Swift.Error, Swift.Equatable { extension CreatePolicyVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePolicyVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isDefaultVersion = output.isDefaultVersion self.policyArn = output.policyArn @@ -10062,9 +10040,8 @@ public enum CreateProvisioningClaimOutputError: Swift.Error, Swift.Equatable { extension CreateProvisioningClaimOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProvisioningClaimOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateId = output.certificateId self.certificatePem = output.certificatePem @@ -10311,9 +10288,8 @@ public enum CreateProvisioningTemplateOutputError: Swift.Error, Swift.Equatable extension CreateProvisioningTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProvisioningTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultVersionId = output.defaultVersionId self.templateArn = output.templateArn @@ -10479,9 +10455,8 @@ public enum CreateProvisioningTemplateVersionOutputError: Swift.Error, Swift.Equ extension CreateProvisioningTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProvisioningTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isDefaultVersion = output.isDefaultVersion self.templateArn = output.templateArn @@ -10676,9 +10651,8 @@ public enum CreateRoleAliasOutputError: Swift.Error, Swift.Equatable { extension CreateRoleAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRoleAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roleAlias = output.roleAlias self.roleAliasArn = output.roleAliasArn @@ -10886,9 +10860,8 @@ public enum CreateScheduledAuditOutputError: Swift.Error, Swift.Equatable { extension CreateScheduledAuditOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScheduledAuditOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduledAuditArn = output.scheduledAuditArn } else { @@ -11131,9 +11104,8 @@ public enum CreateSecurityProfileOutputError: Swift.Error, Swift.Equatable { extension CreateSecurityProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSecurityProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityProfileArn = output.securityProfileArn self.securityProfileName = output.securityProfileName @@ -11335,9 +11307,8 @@ public enum CreateStreamOutputError: Swift.Error, Swift.Equatable { extension CreateStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.streamArn = output.streamArn @@ -11525,9 +11496,8 @@ public enum CreateThingGroupOutputError: Swift.Error, Swift.Equatable { extension CreateThingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateThingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.thingGroupArn = output.thingGroupArn self.thingGroupId = output.thingGroupId @@ -11700,9 +11670,8 @@ public enum CreateThingOutputError: Swift.Error, Swift.Equatable { extension CreateThingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateThingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.thingArn = output.thingArn self.thingId = output.thingId @@ -11874,9 +11843,8 @@ public enum CreateThingTypeOutputError: Swift.Error, Swift.Equatable { extension CreateThingTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateThingTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.thingTypeArn = output.thingTypeArn self.thingTypeId = output.thingTypeId @@ -12014,9 +11982,8 @@ public enum CreateTopicRuleDestinationOutputError: Swift.Error, Swift.Equatable extension CreateTopicRuleDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTopicRuleDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.topicRuleDestination = output.topicRuleDestination } else { @@ -12069,15 +12036,15 @@ public struct CreateTopicRuleInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let topicRulePayload = input.operationInput.topicRulePayload { - let topicRulePayloaddata = try encoder.encode(topicRulePayload) - let topicRulePayloadbody = ClientRuntime.HttpBody.data(topicRulePayloaddata) - input.builder.withBody(topicRulePayloadbody) + let topicRulePayloadData = try encoder.encode(topicRulePayload) + let topicRulePayloadBody = ClientRuntime.HttpBody.data(topicRulePayloadData) + input.builder.withBody(topicRulePayloadBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let topicRulePayloaddata = "{}".data(using: .utf8)! - let topicRulePayloadbody = ClientRuntime.HttpBody.data(topicRulePayloaddata) - input.builder.withBody(topicRulePayloadbody) + let topicRulePayloadData = "{}".data(using: .utf8)! + let topicRulePayloadBody = ClientRuntime.HttpBody.data(topicRulePayloadData) + input.builder.withBody(topicRulePayloadBody) } } } catch let err { @@ -12864,9 +12831,8 @@ public struct DeleteCertificateOutputResponse: Swift.Equatable { extension DeleteConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12880,7 +12846,7 @@ extension DeleteConflictException { } /// You can't delete the resource because it is attached to one or more resources. -public struct DeleteConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeleteConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15107,9 +15073,8 @@ public enum DescribeAccountAuditConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeAccountAuditConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAuditConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auditCheckConfigurations = output.auditCheckConfigurations self.auditNotificationTargetConfigurations = output.auditNotificationTargetConfigurations @@ -15245,9 +15210,8 @@ public enum DescribeAuditFindingOutputError: Swift.Error, Swift.Equatable { extension DescribeAuditFindingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAuditFindingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.finding = output.finding } else { @@ -15345,9 +15309,8 @@ public enum DescribeAuditMitigationActionsTaskOutputError: Swift.Error, Swift.Eq extension DescribeAuditMitigationActionsTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAuditMitigationActionsTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionsDefinition = output.actionsDefinition self.auditCheckToActionsMapping = output.auditCheckToActionsMapping @@ -15569,9 +15532,8 @@ public enum DescribeAuditSuppressionOutputError: Swift.Error, Swift.Equatable { extension DescribeAuditSuppressionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAuditSuppressionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checkName = output.checkName self.description = output.description @@ -15709,9 +15671,8 @@ public enum DescribeAuditTaskOutputError: Swift.Error, Swift.Equatable { extension DescribeAuditTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAuditTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auditDetails = output.auditDetails self.scheduledAuditName = output.scheduledAuditName @@ -15872,9 +15833,8 @@ public enum DescribeAuthorizerOutputError: Swift.Error, Swift.Equatable { extension DescribeAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerDescription = output.authorizerDescription } else { @@ -15972,9 +15932,8 @@ public enum DescribeBillingGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeBillingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBillingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingGroupArn = output.billingGroupArn self.billingGroupId = output.billingGroupId @@ -16127,9 +16086,8 @@ public enum DescribeCACertificateOutputError: Swift.Error, Swift.Equatable { extension DescribeCACertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCACertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateDescription = output.certificateDescription self.registrationConfig = output.registrationConfig @@ -16243,9 +16201,8 @@ public enum DescribeCertificateOutputError: Swift.Error, Swift.Equatable { extension DescribeCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateDescription = output.certificateDescription } else { @@ -16344,9 +16301,8 @@ public enum DescribeCustomMetricOutputError: Swift.Error, Swift.Equatable { extension DescribeCustomMetricOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomMetricOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.displayName = output.displayName @@ -16487,9 +16443,8 @@ public enum DescribeDefaultAuthorizerOutputError: Swift.Error, Swift.Equatable { extension DescribeDefaultAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDefaultAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerDescription = output.authorizerDescription } else { @@ -16587,9 +16542,8 @@ public enum DescribeDetectMitigationActionsTaskOutputError: Swift.Error, Swift.E extension DescribeDetectMitigationActionsTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDetectMitigationActionsTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskSummary = output.taskSummary } else { @@ -16687,9 +16641,8 @@ public enum DescribeDimensionOutputError: Swift.Error, Swift.Equatable { extension DescribeDimensionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDimensionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDate = output.creationDate @@ -16850,9 +16803,8 @@ public enum DescribeDomainConfigurationOutputError: Swift.Error, Swift.Equatable extension DescribeDomainConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerConfig = output.authorizerConfig self.domainConfigurationArn = output.domainConfigurationArn @@ -17069,9 +17021,8 @@ public enum DescribeEndpointOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointAddress = output.endpointAddress } else { @@ -17155,9 +17106,8 @@ public enum DescribeEventConfigurationsOutputError: Swift.Error, Swift.Equatable extension DescribeEventConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.eventConfigurations = output.eventConfigurations @@ -17288,9 +17238,8 @@ public enum DescribeFleetMetricOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetMetricOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetMetricOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregationField = output.aggregationField self.aggregationType = output.aggregationType @@ -17512,9 +17461,8 @@ public enum DescribeIndexOutputError: Swift.Error, Swift.Equatable { extension DescribeIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexName = output.indexName self.indexStatus = output.indexStatus @@ -17667,9 +17615,8 @@ public enum DescribeJobExecutionOutputError: Swift.Error, Swift.Equatable { extension DescribeJobExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.execution = output.execution } else { @@ -17767,9 +17714,8 @@ public enum DescribeJobOutputError: Swift.Error, Swift.Equatable { extension DescribeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentSource = output.documentSource self.job = output.job @@ -17877,9 +17823,8 @@ public enum DescribeJobTemplateOutputError: Swift.Error, Swift.Equatable { extension DescribeJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abortConfig = output.abortConfig self.createdAt = output.createdAt @@ -18113,9 +18058,8 @@ public enum DescribeManagedJobTemplateOutputError: Swift.Error, Swift.Equatable extension DescribeManagedJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeManagedJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.document = output.document @@ -18291,9 +18235,8 @@ public enum DescribeMitigationActionOutputError: Swift.Error, Swift.Equatable { extension DescribeMitigationActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMitigationActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionArn = output.actionArn self.actionId = output.actionId @@ -18463,9 +18406,8 @@ public enum DescribeProvisioningTemplateOutputError: Swift.Error, Swift.Equatabl extension DescribeProvisioningTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProvisioningTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.defaultVersionId = output.defaultVersionId @@ -18673,9 +18615,8 @@ public enum DescribeProvisioningTemplateVersionOutputError: Swift.Error, Swift.E extension DescribeProvisioningTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProvisioningTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.isDefaultVersion = output.isDefaultVersion @@ -18807,9 +18748,8 @@ public enum DescribeRoleAliasOutputError: Swift.Error, Swift.Equatable { extension DescribeRoleAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRoleAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roleAliasDescription = output.roleAliasDescription } else { @@ -18907,9 +18847,8 @@ public enum DescribeScheduledAuditOutputError: Swift.Error, Swift.Equatable { extension DescribeScheduledAuditOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduledAuditOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dayOfMonth = output.dayOfMonth self.dayOfWeek = output.dayOfWeek @@ -19066,9 +19005,8 @@ public enum DescribeSecurityProfileOutputError: Swift.Error, Swift.Equatable { extension DescribeSecurityProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSecurityProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalMetricsToRetain = output.additionalMetricsToRetain self.additionalMetricsToRetainV2 = output.additionalMetricsToRetainV2 @@ -19297,9 +19235,8 @@ public enum DescribeStreamOutputError: Swift.Error, Swift.Equatable { extension DescribeStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamInfo = output.streamInfo } else { @@ -19397,9 +19334,8 @@ public enum DescribeThingGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeThingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeThingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexName = output.indexName self.queryString = output.queryString @@ -19592,9 +19528,8 @@ public enum DescribeThingOutputError: Swift.Error, Swift.Equatable { extension DescribeThingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeThingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes self.billingGroupName = output.billingGroupName @@ -19774,9 +19709,8 @@ public enum DescribeThingRegistrationTaskOutputError: Swift.Error, Swift.Equatab extension DescribeThingRegistrationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeThingRegistrationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.failureCount = output.failureCount @@ -19989,9 +19923,8 @@ public enum DescribeThingTypeOutputError: Swift.Error, Swift.Equatable { extension DescribeThingTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeThingTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.thingTypeArn = output.thingTypeArn self.thingTypeId = output.thingTypeId @@ -22453,9 +22386,8 @@ public enum GetBehaviorModelTrainingSummariesOutputError: Swift.Error, Swift.Equ extension GetBehaviorModelTrainingSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBehaviorModelTrainingSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -22649,9 +22581,8 @@ public enum GetBucketsAggregationOutputError: Swift.Error, Swift.Equatable { extension GetBucketsAggregationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketsAggregationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buckets = output.buckets self.totalCount = output.totalCount @@ -22831,9 +22762,8 @@ public enum GetCardinalityOutputError: Swift.Error, Swift.Equatable { extension GetCardinalityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCardinalityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cardinality = output.cardinality } else { @@ -22982,9 +22912,8 @@ public enum GetEffectivePoliciesOutputError: Swift.Error, Swift.Equatable { extension GetEffectivePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEffectivePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.effectivePolicies = output.effectivePolicies } else { @@ -23082,9 +23011,8 @@ public enum GetIndexingConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetIndexingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIndexingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.thingGroupIndexingConfiguration = output.thingGroupIndexingConfiguration self.thingIndexingConfiguration = output.thingIndexingConfiguration @@ -23192,9 +23120,8 @@ public enum GetJobDocumentOutputError: Swift.Error, Swift.Equatable { extension GetJobDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.document = output.document } else { @@ -23280,9 +23207,8 @@ public enum GetLoggingOptionsOutputError: Swift.Error, Swift.Equatable { extension GetLoggingOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoggingOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logLevel = output.logLevel self.roleArn = output.roleArn @@ -23395,9 +23321,8 @@ public enum GetOTAUpdateOutputError: Swift.Error, Swift.Equatable { extension GetOTAUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOTAUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.otaUpdateInfo = output.otaUpdateInfo } else { @@ -23582,9 +23507,8 @@ public enum GetPercentilesOutputError: Swift.Error, Swift.Equatable { extension GetPercentilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPercentilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.percentiles = output.percentiles } else { @@ -23696,9 +23620,8 @@ public enum GetPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.defaultVersionId = output.defaultVersionId @@ -23870,9 +23793,8 @@ public enum GetPolicyVersionOutputError: Swift.Error, Swift.Equatable { extension GetPolicyVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.generationId = output.generationId @@ -24033,9 +23955,8 @@ public enum GetRegistrationCodeOutputError: Swift.Error, Swift.Equatable { extension GetRegistrationCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegistrationCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registrationCode = output.registrationCode } else { @@ -24197,9 +24118,8 @@ public enum GetStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statistics = output.statistics } else { @@ -24297,9 +24217,8 @@ public enum GetTopicRuleDestinationOutputError: Swift.Error, Swift.Equatable { extension GetTopicRuleDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTopicRuleDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.topicRuleDestination = output.topicRuleDestination } else { @@ -24398,9 +24317,8 @@ public enum GetTopicRuleOutputError: Swift.Error, Swift.Equatable { extension GetTopicRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTopicRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule self.ruleArn = output.ruleArn @@ -24496,9 +24414,8 @@ public enum GetV2LoggingOptionsOutputError: Swift.Error, Swift.Equatable { extension GetV2LoggingOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetV2LoggingOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultLogLevel = output.defaultLogLevel self.disableAllLogs = output.disableAllLogs @@ -24972,9 +24889,8 @@ extension IoTClientTypes { extension IndexNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IndexNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24988,7 +24904,7 @@ extension IndexNotReadyException { } /// The index is not ready. -public struct IndexNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IndexNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25107,9 +25023,8 @@ extension IoTClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25123,7 +25038,7 @@ extension InternalException { } /// An unexpected error has occurred. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25160,9 +25075,8 @@ extension InternalExceptionBody: Swift.Decodable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25176,7 +25090,7 @@ extension InternalFailureException { } /// An unexpected error has occurred. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25213,9 +25127,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25229,7 +25142,7 @@ extension InternalServerException { } /// Internal error from the service that indicates an unexpected error or that the service is unavailable. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25265,9 +25178,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidAggregationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAggregationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25281,7 +25193,7 @@ extension InvalidAggregationException { } /// The aggregation is invalid. -public struct InvalidAggregationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAggregationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25317,9 +25229,8 @@ extension InvalidAggregationExceptionBody: Swift.Decodable { extension InvalidQueryException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidQueryExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25333,7 +25244,7 @@ extension InvalidQueryException { } /// The query is invalid. -public struct InvalidQueryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidQueryException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25370,9 +25281,8 @@ extension InvalidQueryExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25386,7 +25296,7 @@ extension InvalidRequestException { } /// The request is not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25423,9 +25333,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidResponseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResponseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25439,7 +25348,7 @@ extension InvalidResponseException { } /// The response is invalid. -public struct InvalidResponseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResponseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25476,9 +25385,8 @@ extension InvalidResponseExceptionBody: Swift.Decodable { extension InvalidStateTransitionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateTransitionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25492,7 +25400,7 @@ extension InvalidStateTransitionException { } /// An attempt was made to change to an invalid state, for example by deleting a job or a job execution which is "IN_PROGRESS" without setting the force parameter. -public struct InvalidStateTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27230,9 +27138,8 @@ extension IoTClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27246,7 +27153,7 @@ extension LimitExceededException { } /// A limit has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27399,9 +27306,8 @@ public enum ListActiveViolationsOutputError: Swift.Error, Swift.Equatable { extension ListActiveViolationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActiveViolationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeViolations = output.activeViolations self.nextToken = output.nextToken @@ -27557,9 +27463,8 @@ public enum ListAttachedPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListAttachedPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttachedPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.policies = output.policies @@ -27774,9 +27679,8 @@ public enum ListAuditFindingsOutputError: Swift.Error, Swift.Equatable { extension ListAuditFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAuditFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings self.nextToken = output.nextToken @@ -27938,9 +27842,8 @@ public enum ListAuditMitigationActionsExecutionsOutputError: Swift.Error, Swift. extension ListAuditMitigationActionsExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAuditMitigationActionsExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionsExecutions = output.actionsExecutions self.nextToken = output.nextToken @@ -28118,9 +28021,8 @@ public enum ListAuditMitigationActionsTasksOutputError: Swift.Error, Swift.Equat extension ListAuditMitigationActionsTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAuditMitigationActionsTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tasks = output.tasks @@ -28299,9 +28201,8 @@ public enum ListAuditSuppressionsOutputError: Swift.Error, Swift.Equatable { extension ListAuditSuppressionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAuditSuppressionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.suppressions = output.suppressions @@ -28471,9 +28372,8 @@ public enum ListAuditTasksOutputError: Swift.Error, Swift.Equatable { extension ListAuditTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAuditTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tasks = output.tasks @@ -28625,9 +28525,8 @@ public enum ListAuthorizersOutputError: Swift.Error, Swift.Equatable { extension ListAuthorizersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAuthorizersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizers = output.authorizers self.nextMarker = output.nextMarker @@ -28769,9 +28668,8 @@ public enum ListBillingGroupsOutputError: Swift.Error, Swift.Equatable { extension ListBillingGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBillingGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingGroups = output.billingGroups self.nextToken = output.nextToken @@ -28924,9 +28822,8 @@ public enum ListCACertificatesOutputError: Swift.Error, Swift.Equatable { extension ListCACertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCACertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.nextMarker = output.nextMarker @@ -29080,9 +28977,8 @@ public enum ListCertificatesByCAOutputError: Swift.Error, Swift.Equatable { extension ListCertificatesByCAOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCertificatesByCAOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.nextMarker = output.nextMarker @@ -29228,9 +29124,8 @@ public enum ListCertificatesOutputError: Swift.Error, Swift.Equatable { extension ListCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.nextMarker = output.nextMarker @@ -29363,9 +29258,8 @@ public enum ListCustomMetricsOutputError: Swift.Error, Swift.Equatable { extension ListCustomMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricNames = output.metricNames self.nextToken = output.nextToken @@ -29537,9 +29431,8 @@ public enum ListDetectMitigationActionsExecutionsOutputError: Swift.Error, Swift extension ListDetectMitigationActionsExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDetectMitigationActionsExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionsExecutions = output.actionsExecutions self.nextToken = output.nextToken @@ -29693,9 +29586,8 @@ public enum ListDetectMitigationActionsTasksOutputError: Swift.Error, Swift.Equa extension ListDetectMitigationActionsTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDetectMitigationActionsTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tasks = output.tasks @@ -29827,9 +29719,8 @@ public enum ListDimensionsOutputError: Swift.Error, Swift.Equatable { extension ListDimensionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDimensionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dimensionNames = output.dimensionNames self.nextToken = output.nextToken @@ -29973,9 +29864,8 @@ public enum ListDomainConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListDomainConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainConfigurations = output.domainConfigurations self.nextMarker = output.nextMarker @@ -30111,9 +30001,8 @@ public enum ListFleetMetricsOutputError: Swift.Error, Swift.Equatable { extension ListFleetMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFleetMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetMetrics = output.fleetMetrics self.nextToken = output.nextToken @@ -30249,9 +30138,8 @@ public enum ListIndicesOutputError: Swift.Error, Swift.Equatable { extension ListIndicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIndicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexNames = output.indexNames self.nextToken = output.nextToken @@ -30401,9 +30289,8 @@ public enum ListJobExecutionsForJobOutputError: Swift.Error, Swift.Equatable { extension ListJobExecutionsForJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobExecutionsForJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionSummaries = output.executionSummaries self.nextToken = output.nextToken @@ -30569,9 +30456,8 @@ public enum ListJobExecutionsForThingOutputError: Swift.Error, Swift.Equatable { extension ListJobExecutionsForThingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobExecutionsForThingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionSummaries = output.executionSummaries self.nextToken = output.nextToken @@ -30703,9 +30589,8 @@ public enum ListJobTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListJobTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobTemplates = output.jobTemplates self.nextToken = output.nextToken @@ -30879,9 +30764,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -31023,9 +30907,8 @@ public enum ListManagedJobTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListManagedJobTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListManagedJobTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedJobTemplates = output.managedJobTemplates self.nextToken = output.nextToken @@ -31219,9 +31102,8 @@ public enum ListMetricValuesOutputError: Swift.Error, Swift.Equatable { extension ListMetricValuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMetricValuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricDatumList = output.metricDatumList self.nextToken = output.nextToken @@ -31361,9 +31243,8 @@ public enum ListMitigationActionsOutputError: Swift.Error, Swift.Equatable { extension ListMitigationActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMitigationActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionIdentifiers = output.actionIdentifiers self.nextToken = output.nextToken @@ -31507,9 +31388,8 @@ public enum ListOTAUpdatesOutputError: Swift.Error, Swift.Equatable { extension ListOTAUpdatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOTAUpdatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.otaUpdates = output.otaUpdates @@ -31654,9 +31534,8 @@ public enum ListOutgoingCertificatesOutputError: Swift.Error, Swift.Equatable { extension ListOutgoingCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOutgoingCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.outgoingCertificates = output.outgoingCertificates @@ -31802,9 +31681,8 @@ public enum ListPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.policies = output.policies @@ -31967,9 +31845,8 @@ public enum ListPolicyPrincipalsOutputError: Swift.Error, Swift.Equatable { extension ListPolicyPrincipalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPolicyPrincipalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.principals = output.principals @@ -32092,9 +31969,8 @@ public enum ListPolicyVersionsOutputError: Swift.Error, Swift.Equatable { extension ListPolicyVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPolicyVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyVersions = output.policyVersions } else { @@ -32247,9 +32123,8 @@ public enum ListPrincipalPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListPrincipalPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPrincipalPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.policies = output.policies @@ -32404,9 +32279,8 @@ public enum ListPrincipalThingsOutputError: Swift.Error, Swift.Equatable { extension ListPrincipalThingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPrincipalThingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.things = output.things @@ -32551,9 +32425,8 @@ public enum ListProvisioningTemplateVersionsOutputError: Swift.Error, Swift.Equa extension ListProvisioningTemplateVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProvisioningTemplateVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -32687,9 +32560,8 @@ public enum ListProvisioningTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListProvisioningTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProvisioningTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templates = output.templates @@ -32834,9 +32706,8 @@ public enum ListRelatedResourcesForAuditFindingOutputError: Swift.Error, Swift.E extension ListRelatedResourcesForAuditFindingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRelatedResourcesForAuditFindingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.relatedResources = output.relatedResources @@ -32980,9 +32851,8 @@ public enum ListRoleAliasesOutputError: Swift.Error, Swift.Equatable { extension ListRoleAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoleAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.roleAliases = output.roleAliases @@ -33114,9 +32984,8 @@ public enum ListScheduledAuditsOutputError: Swift.Error, Swift.Equatable { extension ListScheduledAuditsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListScheduledAuditsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduledAudits = output.scheduledAudits @@ -33269,9 +33138,8 @@ public enum ListSecurityProfilesForTargetOutputError: Swift.Error, Swift.Equatab extension ListSecurityProfilesForTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityProfilesForTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityProfileTargetMappings = output.securityProfileTargetMappings @@ -33421,9 +33289,8 @@ public enum ListSecurityProfilesOutputError: Swift.Error, Swift.Equatable { extension ListSecurityProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityProfileIdentifiers = output.securityProfileIdentifiers @@ -33567,9 +33434,8 @@ public enum ListStreamsOutputError: Swift.Error, Swift.Equatable { extension ListStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streams = output.streams @@ -33706,9 +33572,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -33856,9 +33721,8 @@ public enum ListTargetsForPolicyOutputError: Swift.Error, Swift.Equatable { extension ListTargetsForPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetsForPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.targets = output.targets @@ -34000,9 +33864,8 @@ public enum ListTargetsForSecurityProfileOutputError: Swift.Error, Swift.Equatab extension ListTargetsForSecurityProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetsForSecurityProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityProfileTargets = output.securityProfileTargets @@ -34144,9 +34007,8 @@ public enum ListThingGroupsForThingOutputError: Swift.Error, Swift.Equatable { extension ListThingGroupsForThingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingGroupsForThingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.thingGroups = output.thingGroups @@ -34304,9 +34166,8 @@ public enum ListThingGroupsOutputError: Swift.Error, Swift.Equatable { extension ListThingGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.thingGroups = output.thingGroups @@ -34453,9 +34314,8 @@ public enum ListThingPrincipalsOutputError: Swift.Error, Swift.Equatable { extension ListThingPrincipalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingPrincipalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.principals = output.principals @@ -34609,9 +34469,8 @@ public enum ListThingRegistrationTaskReportsOutputError: Swift.Error, Swift.Equa extension ListThingRegistrationTaskReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingRegistrationTaskReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportType = output.reportType @@ -34763,9 +34622,8 @@ public enum ListThingRegistrationTasksOutputError: Swift.Error, Swift.Equatable extension ListThingRegistrationTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingRegistrationTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.taskIds = output.taskIds @@ -34910,9 +34768,8 @@ public enum ListThingTypesOutputError: Swift.Error, Swift.Equatable { extension ListThingTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.thingTypes = output.thingTypes @@ -35055,9 +34912,8 @@ public enum ListThingsInBillingGroupOutputError: Swift.Error, Swift.Equatable { extension ListThingsInBillingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingsInBillingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.things = output.things @@ -35207,9 +35063,8 @@ public enum ListThingsInThingGroupOutputError: Swift.Error, Swift.Equatable { extension ListThingsInThingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingsInThingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.things = output.things @@ -35378,9 +35233,8 @@ public enum ListThingsOutputError: Swift.Error, Swift.Equatable { extension ListThingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.things = output.things @@ -35515,9 +35369,8 @@ public enum ListTopicRuleDestinationsOutputError: Swift.Error, Swift.Equatable { extension ListTopicRuleDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTopicRuleDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationSummaries = output.destinationSummaries self.nextToken = output.nextToken @@ -35666,9 +35519,8 @@ public enum ListTopicRulesOutputError: Swift.Error, Swift.Equatable { extension ListTopicRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTopicRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rules = output.rules @@ -35811,9 +35663,8 @@ public enum ListV2LoggingLevelsOutputError: Swift.Error, Swift.Equatable { extension ListV2LoggingLevelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListV2LoggingLevelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logTargetConfigurations = output.logTargetConfigurations self.nextToken = output.nextToken @@ -36007,9 +35858,8 @@ public enum ListViolationEventsOutputError: Swift.Error, Swift.Equatable { extension ListViolationEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListViolationEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.violationEvents = output.violationEvents @@ -36505,9 +36355,8 @@ extension IoTClientTypes { extension MalformedPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -36521,7 +36370,7 @@ extension MalformedPolicyException { } /// The policy documentation is not valid. -public struct MalformedPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37482,9 +37331,8 @@ extension IoTClientTypes { extension NotConfiguredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotConfiguredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37498,7 +37346,7 @@ extension NotConfiguredException { } /// The resource is not configured. -public struct NotConfiguredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotConfiguredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -39098,9 +38946,8 @@ public enum RegisterCACertificateOutputError: Swift.Error, Swift.Equatable { extension RegisterCACertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterCACertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn self.certificateId = output.certificateId @@ -39279,9 +39126,8 @@ public enum RegisterCertificateOutputError: Swift.Error, Swift.Equatable { extension RegisterCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn self.certificateId = output.certificateId @@ -39427,9 +39273,8 @@ public enum RegisterCertificateWithoutCAOutputError: Swift.Error, Swift.Equatabl extension RegisterCertificateWithoutCAOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterCertificateWithoutCAOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateArn = output.certificateArn self.certificateId = output.certificateId @@ -39584,9 +39429,8 @@ public enum RegisterThingOutputError: Swift.Error, Swift.Equatable { extension RegisterThingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterThingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificatePem = output.certificatePem self.resourceArns = output.resourceArns @@ -39644,9 +39488,8 @@ extension RegisterThingOutputResponseBody: Swift.Decodable { extension RegistrationCodeValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegistrationCodeValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -39660,7 +39503,7 @@ extension RegistrationCodeValidationException { } /// The registration code is invalid. -public struct RegistrationCodeValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RegistrationCodeValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -40211,15 +40054,15 @@ public struct ReplaceTopicRuleInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let topicRulePayload = input.operationInput.topicRulePayload { - let topicRulePayloaddata = try encoder.encode(topicRulePayload) - let topicRulePayloadbody = ClientRuntime.HttpBody.data(topicRulePayloaddata) - input.builder.withBody(topicRulePayloadbody) + let topicRulePayloadData = try encoder.encode(topicRulePayload) + let topicRulePayloadBody = ClientRuntime.HttpBody.data(topicRulePayloadData) + input.builder.withBody(topicRulePayloadBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let topicRulePayloaddata = "{}".data(using: .utf8)! - let topicRulePayloadbody = ClientRuntime.HttpBody.data(topicRulePayloaddata) - input.builder.withBody(topicRulePayloadbody) + let topicRulePayloadData = "{}".data(using: .utf8)! + let topicRulePayloadBody = ClientRuntime.HttpBody.data(topicRulePayloadData) + input.builder.withBody(topicRulePayloadBody) } } } catch let err { @@ -40433,9 +40276,8 @@ extension IoTClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceArn = output.resourceArn @@ -40453,7 +40295,7 @@ extension ResourceAlreadyExistsException { } /// The resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -40631,9 +40473,8 @@ extension IoTClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -40647,7 +40488,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -40684,9 +40525,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceRegistrationFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceRegistrationFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -40700,7 +40540,7 @@ extension ResourceRegistrationFailureException { } /// The resource registration failed. -public struct ResourceRegistrationFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceRegistrationFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -41501,9 +41341,8 @@ public enum SearchIndexOutputError: Swift.Error, Swift.Equatable { extension SearchIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.thingGroups = output.thingGroups @@ -41830,9 +41669,8 @@ extension IoTClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -41846,7 +41684,7 @@ extension ServiceUnavailableException { } /// The service is temporarily unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -41965,9 +41803,8 @@ public enum SetDefaultAuthorizerOutputError: Swift.Error, Swift.Equatable { extension SetDefaultAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetDefaultAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerArn = output.authorizerArn self.authorizerName = output.authorizerName @@ -42112,15 +41949,15 @@ public struct SetLoggingOptionsInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let loggingOptionsPayload = input.operationInput.loggingOptionsPayload { - let loggingOptionsPayloaddata = try encoder.encode(loggingOptionsPayload) - let loggingOptionsPayloadbody = ClientRuntime.HttpBody.data(loggingOptionsPayloaddata) - input.builder.withBody(loggingOptionsPayloadbody) + let loggingOptionsPayloadData = try encoder.encode(loggingOptionsPayload) + let loggingOptionsPayloadBody = ClientRuntime.HttpBody.data(loggingOptionsPayloadData) + input.builder.withBody(loggingOptionsPayloadBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let loggingOptionsPayloaddata = "{}".data(using: .utf8)! - let loggingOptionsPayloadbody = ClientRuntime.HttpBody.data(loggingOptionsPayloaddata) - input.builder.withBody(loggingOptionsPayloadbody) + let loggingOptionsPayloadData = "{}".data(using: .utf8)! + let loggingOptionsPayloadBody = ClientRuntime.HttpBody.data(loggingOptionsPayloadData) + input.builder.withBody(loggingOptionsPayloadBody) } } } catch let err { @@ -42599,9 +42436,8 @@ extension IoTClientTypes { extension SqlParseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SqlParseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -42615,7 +42451,7 @@ extension SqlParseException { } /// The Rule-SQL expression can't be parsed correctly. -public struct SqlParseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SqlParseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42843,9 +42679,8 @@ public enum StartAuditMitigationActionsTaskOutputError: Swift.Error, Swift.Equat extension StartAuditMitigationActionsTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAuditMitigationActionsTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskId = output.taskId } else { @@ -43044,9 +42879,8 @@ public enum StartDetectMitigationActionsTaskOutputError: Swift.Error, Swift.Equa extension StartDetectMitigationActionsTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDetectMitigationActionsTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskId = output.taskId } else { @@ -43173,9 +43007,8 @@ public enum StartOnDemandAuditTaskOutputError: Swift.Error, Swift.Equatable { extension StartOnDemandAuditTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartOnDemandAuditTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskId = output.taskId } else { @@ -43384,9 +43217,8 @@ public enum StartThingRegistrationTaskOutputError: Swift.Error, Swift.Equatable extension StartThingRegistrationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartThingRegistrationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskId = output.taskId } else { @@ -44197,9 +44029,8 @@ extension IoTClientTypes { extension TaskAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TaskAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -44213,7 +44044,7 @@ extension TaskAlreadyExistsException { } /// This exception occurs if you attempt to start a task with the same task-id as an existing task but with a different clientRequestToken. -public struct TaskAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TaskAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -44669,9 +44500,8 @@ public enum TestAuthorizationOutputError: Swift.Error, Swift.Equatable { extension TestAuthorizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestAuthorizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authResults = output.authResults } else { @@ -44856,9 +44686,8 @@ public enum TestInvokeAuthorizerOutputError: Swift.Error, Swift.Equatable { extension TestInvokeAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestInvokeAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disconnectAfterInSeconds = output.disconnectAfterInSeconds self.isAuthenticated = output.isAuthenticated @@ -45928,9 +45757,8 @@ extension IoTClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -45944,7 +45772,7 @@ extension ThrottlingException { } /// The rate exceeds the limit. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46803,9 +46631,8 @@ extension IoTClientTypes { extension TransferAlreadyCompletedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransferAlreadyCompletedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -46819,7 +46646,7 @@ extension TransferAlreadyCompletedException { } /// You can't revert the certificate transfer because the transfer is already complete. -public struct TransferAlreadyCompletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransferAlreadyCompletedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46968,9 +46795,8 @@ public enum TransferCertificateOutputError: Swift.Error, Swift.Equatable { extension TransferCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransferCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transferredCertificateArn = output.transferredCertificateArn } else { @@ -47010,9 +46836,8 @@ extension TransferCertificateOutputResponseBody: Swift.Decodable { extension TransferConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransferConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47026,7 +46851,7 @@ extension TransferConflictException { } /// You can't transfer the certificate because authorization policies are still attached. -public struct TransferConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransferConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47138,9 +46963,8 @@ extension IoTClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47154,7 +46978,7 @@ extension UnauthorizedException { } /// You are not authorized to perform this operation. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47717,9 +47541,8 @@ public enum UpdateAuthorizerOutputError: Swift.Error, Swift.Equatable { extension UpdateAuthorizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAuthorizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizerArn = output.authorizerArn self.authorizerName = output.authorizerName @@ -47866,9 +47689,8 @@ public enum UpdateBillingGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateBillingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBillingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.version = output.version } else { @@ -48258,9 +48080,8 @@ public enum UpdateCustomMetricOutputError: Swift.Error, Swift.Equatable { extension UpdateCustomMetricOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCustomMetricOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.displayName = output.displayName @@ -48481,9 +48302,8 @@ public enum UpdateDimensionOutputError: Swift.Error, Swift.Equatable { extension UpdateDimensionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDimensionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDate = output.creationDate @@ -48694,9 +48514,8 @@ public enum UpdateDomainConfigurationOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainConfigurationArn = output.domainConfigurationArn self.domainConfigurationName = output.domainConfigurationName @@ -48881,9 +48700,8 @@ public enum UpdateDynamicThingGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateDynamicThingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDynamicThingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.version = output.version } else { @@ -49583,9 +49401,8 @@ public enum UpdateMitigationActionOutputError: Swift.Error, Swift.Equatable { extension UpdateMitigationActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMitigationActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionArn = output.actionArn self.actionId = output.actionId @@ -49888,9 +49705,8 @@ public enum UpdateRoleAliasOutputError: Swift.Error, Swift.Equatable { extension UpdateRoleAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRoleAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roleAlias = output.roleAlias self.roleAliasArn = output.roleAliasArn @@ -50070,9 +49886,8 @@ public enum UpdateScheduledAuditOutputError: Swift.Error, Swift.Equatable { extension UpdateScheduledAuditOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateScheduledAuditOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduledAuditArn = output.scheduledAuditArn } else { @@ -50346,9 +50161,8 @@ public enum UpdateSecurityProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateSecurityProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSecurityProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalMetricsToRetain = output.additionalMetricsToRetain self.additionalMetricsToRetainV2 = output.additionalMetricsToRetainV2 @@ -50637,9 +50451,8 @@ public enum UpdateStreamOutputError: Swift.Error, Swift.Equatable { extension UpdateStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.streamArn = output.streamArn @@ -50806,9 +50619,8 @@ public enum UpdateThingGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateThingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateThingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.version = output.version } else { @@ -51363,9 +51175,8 @@ public enum ValidateSecurityProfileBehaviorsOutputError: Swift.Error, Swift.Equa extension ValidateSecurityProfileBehaviorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateSecurityProfileBehaviorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.valid = output.valid self.validationErrors = output.validationErrors @@ -51496,9 +51307,8 @@ extension IoTClientTypes { extension VersionConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VersionConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -51512,7 +51322,7 @@ extension VersionConflictException { } /// An exception thrown when the version of an entity specified with the expectedVersion parameter does not match the latest version in the system. -public struct VersionConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VersionConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -51549,9 +51359,8 @@ extension VersionConflictExceptionBody: Swift.Decodable { extension VersionsLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VersionsLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -51565,7 +51374,7 @@ extension VersionsLimitExceededException { } /// The number of policy versions exceeds the limit. -public struct VersionsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VersionsLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoT1ClickDevicesService/IoT1ClickDevicesClient.swift b/Sources/Services/AWSIoT1ClickDevicesService/IoT1ClickDevicesClient.swift index dc333250fc5..c386f9514c6 100644 --- a/Sources/Services/AWSIoT1ClickDevicesService/IoT1ClickDevicesClient.swift +++ b/Sources/Services/AWSIoT1ClickDevicesService/IoT1ClickDevicesClient.swift @@ -208,6 +208,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "claimDevicesByClaimCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "finalizeDeviceClaim") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeviceMethods") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -319,7 +323,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +343,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initiateDeviceClaim") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -351,7 +356,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -371,6 +376,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "invokeDeviceMethod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -386,7 +392,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -406,6 +412,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -419,7 +426,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -439,6 +446,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -452,7 +460,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -472,6 +480,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +493,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +513,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +529,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +549,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unclaimDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -551,7 +562,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +582,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +596,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +616,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeviceState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -619,7 +632,7 @@ extension IoT1ClickDevicesClient: IoT1ClickDevicesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoT1ClickDevicesService/models/Models.swift b/Sources/Services/AWSIoT1ClickDevicesService/models/Models.swift index cac6f7d846d..a7bf1829a33 100644 --- a/Sources/Services/AWSIoT1ClickDevicesService/models/Models.swift +++ b/Sources/Services/AWSIoT1ClickDevicesService/models/Models.swift @@ -80,9 +80,8 @@ public enum ClaimDevicesByClaimCodeOutputError: Swift.Error, Swift.Equatable { extension ClaimDevicesByClaimCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClaimDevicesByClaimCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.claimCode = output.claimCode self.total = output.total @@ -188,9 +187,8 @@ public enum DescribeDeviceOutputError: Swift.Error, Swift.Equatable { extension DescribeDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceDescription = output.deviceDescription } else { @@ -586,9 +584,8 @@ public enum FinalizeDeviceClaimOutputError: Swift.Error, Swift.Equatable { extension FinalizeDeviceClaimOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FinalizeDeviceClaimOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -627,9 +624,8 @@ extension FinalizeDeviceClaimOutputResponseBody: Swift.Decodable { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -644,7 +640,7 @@ extension ForbiddenException { } } -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -746,9 +742,8 @@ public enum GetDeviceMethodsOutputError: Swift.Error, Swift.Equatable { extension GetDeviceMethodsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceMethodsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceMethods = output.deviceMethods } else { @@ -855,9 +850,8 @@ public enum InitiateDeviceClaimOutputError: Swift.Error, Swift.Equatable { extension InitiateDeviceClaimOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InitiateDeviceClaimOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -896,9 +890,8 @@ extension InitiateDeviceClaimOutputResponseBody: Swift.Decodable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -913,7 +906,7 @@ extension InternalFailureException { } } -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -958,9 +951,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -975,7 +967,7 @@ extension InvalidRequestException { } } -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1119,9 +1111,8 @@ public enum InvokeDeviceMethodOutputError: Swift.Error, Swift.Equatable { extension InvokeDeviceMethodOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvokeDeviceMethodOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceMethodResponse = output.deviceMethodResponse } else { @@ -1266,9 +1257,8 @@ public enum ListDeviceEventsOutputError: Swift.Error, Swift.Equatable { extension ListDeviceEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -1408,9 +1398,8 @@ public enum ListDevicesOutputError: Swift.Error, Swift.Equatable { extension ListDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.nextToken = output.nextToken @@ -1523,9 +1512,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1573,9 +1561,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension PreconditionFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1590,7 +1577,7 @@ extension PreconditionFailedException { } } -public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1635,9 +1622,8 @@ extension PreconditionFailedExceptionBody: Swift.Decodable { extension RangeNotSatisfiableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RangeNotSatisfiableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1652,7 +1638,7 @@ extension RangeNotSatisfiableException { } } -public struct RangeNotSatisfiableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RangeNotSatisfiableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1697,9 +1683,8 @@ extension RangeNotSatisfiableExceptionBody: Swift.Decodable { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1714,7 +1699,7 @@ extension ResourceConflictException { } } -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1759,9 +1744,8 @@ extension ResourceConflictExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1776,7 +1760,7 @@ extension ResourceNotFoundException { } } -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1982,9 +1966,8 @@ public enum UnclaimDeviceOutputError: Swift.Error, Swift.Equatable { extension UnclaimDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnclaimDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { diff --git a/Sources/Services/AWSIoT1ClickProjects/IoT1ClickProjectsClient.swift b/Sources/Services/AWSIoT1ClickProjects/IoT1ClickProjectsClient.swift index 247b936a2e0..8fd0702d248 100644 --- a/Sources/Services/AWSIoT1ClickProjects/IoT1ClickProjectsClient.swift +++ b/Sources/Services/AWSIoT1ClickProjects/IoT1ClickProjectsClient.swift @@ -208,6 +208,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDeviceWithPlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -421,7 +428,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -441,6 +448,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDeviceFromPlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -453,7 +461,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -473,6 +481,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevicesInPlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +494,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +514,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPlacements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -518,7 +528,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -538,6 +548,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -551,7 +562,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +582,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -583,7 +595,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -603,6 +615,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -618,7 +631,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -638,6 +651,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -651,7 +665,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +685,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePlacement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -686,7 +701,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -706,6 +721,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot1click") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -721,7 +737,7 @@ extension IoT1ClickProjectsClient: IoT1ClickProjectsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoT1ClickProjects/models/Models.swift b/Sources/Services/AWSIoT1ClickProjects/models/Models.swift index ad50515c143..5e9d32647bb 100644 --- a/Sources/Services/AWSIoT1ClickProjects/models/Models.swift +++ b/Sources/Services/AWSIoT1ClickProjects/models/Models.swift @@ -575,9 +575,8 @@ public enum DescribePlacementOutputError: Swift.Error, Swift.Equatable { extension DescribePlacementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePlacementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.placement = output.placement } else { @@ -674,9 +673,8 @@ public enum DescribeProjectOutputError: Swift.Error, Swift.Equatable { extension DescribeProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.project = output.project } else { @@ -923,9 +921,8 @@ public enum GetDevicesInPlacementOutputError: Swift.Error, Swift.Equatable { extension GetDevicesInPlacementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevicesInPlacementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices } else { @@ -974,9 +971,8 @@ extension GetDevicesInPlacementOutputResponseBody: Swift.Decodable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -992,7 +988,7 @@ extension InternalFailureException { } /// -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1037,9 +1033,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1055,7 +1050,7 @@ extension InvalidRequestException { } /// -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1182,9 +1177,8 @@ public enum ListPlacementsOutputError: Swift.Error, Swift.Equatable { extension ListPlacementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPlacementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.placements = output.placements @@ -1315,9 +1309,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -1433,9 +1426,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1913,9 +1905,8 @@ extension IoT1ClickProjectsClientTypes { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1931,7 +1922,7 @@ extension ResourceConflictException { } /// -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1976,9 +1967,8 @@ extension ResourceConflictExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1994,7 +1984,7 @@ extension ResourceNotFoundException { } /// -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2143,9 +2133,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2161,7 +2150,7 @@ extension TooManyRequestsException { } /// -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoTAnalytics/IoTAnalyticsClient.swift b/Sources/Services/AWSIoTAnalytics/IoTAnalyticsClient.swift index 61da21f3883..919df9f36f4 100644 --- a/Sources/Services/AWSIoTAnalytics/IoTAnalyticsClient.swift +++ b/Sources/Services/AWSIoTAnalytics/IoTAnalyticsClient.swift @@ -208,6 +208,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelPipelineReprocessing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatasetContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatastore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +401,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +421,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +470,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -482,6 +490,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -494,7 +503,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -514,6 +523,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatasetContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -527,7 +537,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -547,6 +557,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatastore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -559,7 +570,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -579,6 +590,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -591,7 +603,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -611,6 +623,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -624,7 +637,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -644,6 +657,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +670,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +690,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDatastore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -689,7 +704,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -709,6 +724,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -721,7 +737,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -741,6 +757,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -753,7 +770,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -773,6 +790,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatasetContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -786,7 +804,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -806,6 +824,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -819,7 +838,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -839,6 +858,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetContents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +872,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +892,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -885,7 +906,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -905,6 +926,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatastores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -918,7 +940,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -938,6 +960,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -951,7 +974,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -971,6 +994,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1008,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1028,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1019,7 +1044,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1039,6 +1064,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "runPipelineActivity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1054,7 +1080,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1074,6 +1100,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sampleChannelData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1087,7 +1114,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1107,6 +1134,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startPipelineReprocessing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1122,7 +1150,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1142,6 +1170,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1158,7 +1187,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1178,6 +1207,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1191,7 +1221,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1211,6 +1241,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1226,7 +1257,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1246,6 +1277,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1261,7 +1293,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1281,6 +1313,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatastore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1296,7 +1329,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1316,6 +1349,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1331,7 +1365,7 @@ extension IoTAnalyticsClient: IoTAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTAnalytics/models/Models.swift b/Sources/Services/AWSIoTAnalytics/models/Models.swift index 882010a79a2..dbb28c5c788 100644 --- a/Sources/Services/AWSIoTAnalytics/models/Models.swift +++ b/Sources/Services/AWSIoTAnalytics/models/Models.swift @@ -246,9 +246,8 @@ public enum BatchPutMessageOutputError: Swift.Error, Swift.Equatable { extension BatchPutMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchPutMessageErrorEntries = output.batchPutMessageErrorEntries } else { @@ -1116,9 +1115,8 @@ public enum CreateChannelOutputError: Swift.Error, Swift.Equatable { extension CreateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelArn = output.channelArn self.channelName = output.channelName @@ -1262,9 +1260,8 @@ public enum CreateDatasetContentOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.versionId = output.versionId } else { @@ -1528,9 +1525,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetArn = output.datasetArn self.datasetName = output.datasetName @@ -1741,9 +1737,8 @@ public enum CreateDatastoreOutputError: Swift.Error, Swift.Equatable { extension CreateDatastoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatastoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastoreArn = output.datastoreArn self.datastoreName = output.datastoreName @@ -1931,9 +1926,8 @@ public enum CreatePipelineOutputError: Swift.Error, Swift.Equatable { extension CreatePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineArn = output.pipelineArn self.pipelineName = output.pipelineName @@ -4192,9 +4186,8 @@ public enum DescribeChannelOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel self.statistics = output.statistics @@ -4304,9 +4297,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataset = output.dataset } else { @@ -4423,9 +4415,8 @@ public enum DescribeDatastoreOutputError: Swift.Error, Swift.Equatable { extension DescribeDatastoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatastoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastore = output.datastore self.statistics = output.statistics @@ -4524,9 +4515,8 @@ public enum DescribeLoggingOptionsOutputError: Swift.Error, Swift.Equatable { extension DescribeLoggingOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoggingOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingOptions = output.loggingOptions } else { @@ -4626,9 +4616,8 @@ public enum DescribePipelineOutputError: Swift.Error, Swift.Equatable { extension DescribePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline } else { @@ -5082,9 +5071,8 @@ public enum GetDatasetContentOutputError: Swift.Error, Swift.Equatable { extension GetDatasetContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatasetContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.status = output.status @@ -5199,9 +5187,8 @@ extension IoTAnalyticsClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5215,7 +5202,7 @@ extension InternalFailureException { } /// There was an internal failure. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5251,9 +5238,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5267,7 +5253,7 @@ extension InvalidRequestException { } /// The request was not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5610,9 +5596,8 @@ extension IoTAnalyticsClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5626,7 +5611,7 @@ extension LimitExceededException { } /// The command caused an internal limit to be exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5738,9 +5723,8 @@ public enum ListChannelsOutputError: Swift.Error, Swift.Equatable { extension ListChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelSummaries = output.channelSummaries self.nextToken = output.nextToken @@ -5900,9 +5884,8 @@ public enum ListDatasetContentsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetContentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetContentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetContentSummaries = output.datasetContentSummaries self.nextToken = output.nextToken @@ -6036,9 +6019,8 @@ public enum ListDatasetsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetSummaries = output.datasetSummaries self.nextToken = output.nextToken @@ -6172,9 +6154,8 @@ public enum ListDatastoresOutputError: Swift.Error, Swift.Equatable { extension ListDatastoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatastoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datastoreSummaries = output.datastoreSummaries self.nextToken = output.nextToken @@ -6308,9 +6289,8 @@ public enum ListPipelinesOutputError: Swift.Error, Swift.Equatable { extension ListPipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pipelineSummaries = output.pipelineSummaries @@ -6443,9 +6423,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7396,9 +7375,8 @@ extension IoTAnalyticsClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceArn = output.resourceArn @@ -7416,7 +7394,7 @@ extension ResourceAlreadyExistsException { } /// A resource with the same name already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7515,9 +7493,8 @@ extension IoTAnalyticsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7531,7 +7508,7 @@ extension ResourceNotFoundException { } /// A resource with the specified name could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7713,9 +7690,8 @@ public enum RunPipelineActivityOutputError: Swift.Error, Swift.Equatable { extension RunPipelineActivityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RunPipelineActivityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logResult = output.logResult self.payloads = output.payloads @@ -7944,9 +7920,8 @@ public enum SampleChannelDataOutputError: Swift.Error, Swift.Equatable { extension SampleChannelDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SampleChannelDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.payloads = output.payloads } else { @@ -8225,9 +8200,8 @@ extension IoTAnalyticsClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8241,7 +8215,7 @@ extension ServiceUnavailableException { } /// The service is temporarily unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8446,9 +8420,8 @@ public enum StartPipelineReprocessingOutputError: Swift.Error, Swift.Equatable { extension StartPipelineReprocessingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartPipelineReprocessingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reprocessingId = output.reprocessingId } else { @@ -8656,9 +8629,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8672,7 +8644,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoTDataPlane/IoTDataPlaneClient.swift b/Sources/Services/AWSIoTDataPlane/IoTDataPlaneClient.swift index 334add30d9d..fa9e6a9d1a9 100644 --- a/Sources/Services/AWSIoTDataPlane/IoTDataPlaneClient.swift +++ b/Sources/Services/AWSIoTDataPlane/IoTDataPlaneClient.swift @@ -208,6 +208,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteThingShadow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRetainedMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -253,7 +255,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -273,6 +275,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getThingShadow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -286,7 +289,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -306,6 +309,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNamedShadowsForThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -319,7 +323,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +343,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRetainedMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +357,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +377,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publish") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThingShadow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -425,7 +432,7 @@ extension IoTDataPlaneClient: IoTDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTDataPlane/models/Models.swift b/Sources/Services/AWSIoTDataPlane/models/Models.swift index 9165b83d4bd..b7212673f51 100644 --- a/Sources/Services/AWSIoTDataPlane/models/Models.swift +++ b/Sources/Services/AWSIoTDataPlane/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ConflictException { } /// The specified version does not match the version of the document. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -142,9 +141,12 @@ public enum DeleteThingShadowOutputError: Swift.Error, Swift.Equatable { extension DeleteThingShadowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.payload = data - } else { + case .stream(let stream): + self.payload = try stream.readToEnd() + case .none: self.payload = nil } } @@ -248,9 +250,8 @@ public enum GetRetainedMessageOutputError: Swift.Error, Swift.Equatable { extension GetRetainedMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRetainedMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastModifiedTime = output.lastModifiedTime self.payload = output.payload @@ -415,9 +416,12 @@ public enum GetThingShadowOutputError: Swift.Error, Swift.Equatable { extension GetThingShadowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.payload = data - } else { + case .stream(let stream): + self.payload = try stream.readToEnd() + case .none: self.payload = nil } } @@ -454,9 +458,8 @@ extension GetThingShadowOutputResponseBody: Swift.Decodable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -470,7 +473,7 @@ extension InternalFailureException { } /// An unexpected error has occurred. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -507,9 +510,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -523,7 +525,7 @@ extension InvalidRequestException { } /// The request is not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -650,9 +652,8 @@ public enum ListNamedShadowsForThingOutputError: Swift.Error, Swift.Equatable { extension ListNamedShadowsForThingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNamedShadowsForThingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -800,9 +801,8 @@ public enum ListRetainedMessagesOutputError: Swift.Error, Swift.Equatable { extension ListRetainedMessagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRetainedMessagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.retainedTopics = output.retainedTopics @@ -860,9 +860,8 @@ extension ListRetainedMessagesOutputResponseBody: Swift.Decodable { extension MethodNotAllowedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MethodNotAllowedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -876,7 +875,7 @@ extension MethodNotAllowedException { } /// The specified combination of HTTP verb and URI is not supported. -public struct MethodNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MethodNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -957,9 +956,9 @@ public struct PublishInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let payload = input.operationInput.payload { - let payloaddata = payload - let payloadbody = ClientRuntime.HttpBody.data(payloaddata) - input.builder.withBody(payloadbody) + let payloadData = payload + let payloadBody = ClientRuntime.HttpBody.data(payloadData) + input.builder.withBody(payloadBody) } return try await next.handle(context: context, input: input) } @@ -1148,9 +1147,8 @@ public struct PublishOutputResponse: Swift.Equatable { extension RequestEntityTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestEntityTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1164,7 +1162,7 @@ extension RequestEntityTooLargeException { } /// The payload exceeds the maximum size allowed. -public struct RequestEntityTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestEntityTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1201,9 +1199,8 @@ extension RequestEntityTooLargeExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1217,7 +1214,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1319,9 +1316,8 @@ extension IoTDataPlaneClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1335,7 +1331,7 @@ extension ServiceUnavailableException { } /// The service is temporarily unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1372,9 +1368,8 @@ extension ServiceUnavailableExceptionBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1388,7 +1383,7 @@ extension ThrottlingException { } /// The rate exceeds the limit. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1425,9 +1420,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1441,7 +1435,7 @@ extension UnauthorizedException { } /// You are not authorized to perform this operation. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1478,9 +1472,8 @@ extension UnauthorizedExceptionBody: Swift.Decodable { extension UnsupportedDocumentEncodingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedDocumentEncodingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1494,7 +1487,7 @@ extension UnsupportedDocumentEncodingException { } /// The document encoding is not supported. -public struct UnsupportedDocumentEncodingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedDocumentEncodingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1543,9 +1536,9 @@ public struct UpdateThingShadowInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let payload = input.operationInput.payload { - let payloaddata = payload - let payloadbody = ClientRuntime.HttpBody.data(payloaddata) - input.builder.withBody(payloadbody) + let payloadData = payload + let payloadBody = ClientRuntime.HttpBody.data(payloadData) + input.builder.withBody(payloadBody) } return try await next.handle(context: context, input: input) } @@ -1669,9 +1662,12 @@ public enum UpdateThingShadowOutputError: Swift.Error, Swift.Equatable { extension UpdateThingShadowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.payload = data - } else { + case .stream(let stream): + self.payload = try stream.readToEnd() + case .none: self.payload = nil } } diff --git a/Sources/Services/AWSIoTEvents/IoTEventsClient.swift b/Sources/Services/AWSIoTEvents/IoTEventsClient.swift index b49bc38293e..fcade079dce 100644 --- a/Sources/Services/AWSIoTEvents/IoTEventsClient.swift +++ b/Sources/Services/AWSIoTEvents/IoTEventsClient.swift @@ -208,6 +208,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlarmModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDetectorModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlarmModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDetectorModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlarmModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -422,7 +429,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +449,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDetectorModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +463,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +483,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDetectorModelAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +496,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +516,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +529,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +549,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -551,7 +562,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +582,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDetectorModelAnalysisResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +596,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +616,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAlarmModelVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -617,7 +630,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -637,6 +650,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAlarmModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -650,7 +664,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -670,6 +684,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDetectorModelVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -683,7 +698,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -703,6 +718,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDetectorModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -716,7 +732,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -736,6 +752,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInputRoutings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -751,7 +768,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -771,6 +788,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -784,7 +802,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -804,6 +822,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -817,7 +836,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -837,6 +856,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +872,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +892,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDetectorModelAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -887,7 +908,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -907,6 +928,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -923,7 +945,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +965,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -956,7 +979,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -976,6 +999,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAlarmModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -991,7 +1015,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1011,6 +1035,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDetectorModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1026,7 +1051,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1046,6 +1071,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotevents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1061,7 +1087,7 @@ extension IoTEventsClient: IoTEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTEvents/models/Models.swift b/Sources/Services/AWSIoTEvents/models/Models.swift index 6d9059214e7..81e4b94e833 100644 --- a/Sources/Services/AWSIoTEvents/models/Models.swift +++ b/Sources/Services/AWSIoTEvents/models/Models.swift @@ -1437,9 +1437,8 @@ public enum CreateAlarmModelOutputError: Swift.Error, Swift.Equatable { extension CreateAlarmModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAlarmModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmModelArn = output.alarmModelArn self.alarmModelVersion = output.alarmModelVersion @@ -1694,9 +1693,8 @@ public enum CreateDetectorModelOutputError: Swift.Error, Swift.Equatable { extension CreateDetectorModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDetectorModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorModelConfiguration = output.detectorModelConfiguration } else { @@ -1862,9 +1860,8 @@ public enum CreateInputOutputError: Swift.Error, Swift.Equatable { extension CreateInputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputConfiguration = output.inputConfiguration } else { @@ -2200,9 +2197,8 @@ public enum DescribeAlarmModelOutputError: Swift.Error, Swift.Equatable { extension DescribeAlarmModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlarmModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmCapabilities = output.alarmCapabilities self.alarmEventActions = output.alarmEventActions @@ -2450,9 +2446,8 @@ public enum DescribeDetectorModelAnalysisOutputError: Swift.Error, Swift.Equatab extension DescribeDetectorModelAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDetectorModelAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -2575,9 +2570,8 @@ public enum DescribeDetectorModelOutputError: Swift.Error, Swift.Equatable { extension DescribeDetectorModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDetectorModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorModel = output.detectorModel } else { @@ -2677,9 +2671,8 @@ public enum DescribeInputOutputError: Swift.Error, Swift.Equatable { extension DescribeInputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.input = output.input } else { @@ -2770,9 +2763,8 @@ public enum DescribeLoggingOptionsOutputError: Swift.Error, Swift.Equatable { extension DescribeLoggingOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoggingOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingOptions = output.loggingOptions } else { @@ -3903,9 +3895,8 @@ public enum GetDetectorModelAnalysisResultsOutputError: Swift.Error, Swift.Equat extension GetDetectorModelAnalysisResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDetectorModelAnalysisResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisResults = output.analysisResults self.nextToken = output.nextToken @@ -4350,9 +4341,8 @@ extension IoTEventsClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4366,7 +4356,7 @@ extension InternalFailureException { } /// An internal failure occurred. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4403,9 +4393,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4419,7 +4408,7 @@ extension InvalidRequestException { } /// The request was invalid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4796,9 +4785,8 @@ extension IoTEventsClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4812,7 +4800,7 @@ extension LimitExceededException { } /// A limit was exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4935,9 +4923,8 @@ public enum ListAlarmModelVersionsOutputError: Swift.Error, Swift.Equatable { extension ListAlarmModelVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAlarmModelVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmModelVersionSummaries = output.alarmModelVersionSummaries self.nextToken = output.nextToken @@ -5071,9 +5058,8 @@ public enum ListAlarmModelsOutputError: Swift.Error, Swift.Equatable { extension ListAlarmModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAlarmModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmModelSummaries = output.alarmModelSummaries self.nextToken = output.nextToken @@ -5217,9 +5203,8 @@ public enum ListDetectorModelVersionsOutputError: Swift.Error, Swift.Equatable { extension ListDetectorModelVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDetectorModelVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorModelVersionSummaries = output.detectorModelVersionSummaries self.nextToken = output.nextToken @@ -5353,9 +5338,8 @@ public enum ListDetectorModelsOutputError: Swift.Error, Swift.Equatable { extension ListDetectorModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDetectorModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorModelSummaries = output.detectorModelSummaries self.nextToken = output.nextToken @@ -5515,9 +5499,8 @@ public enum ListInputRoutingsOutputError: Swift.Error, Swift.Equatable { extension ListInputRoutingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInputRoutingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routedResources = output.routedResources @@ -5651,9 +5634,8 @@ public enum ListInputsOutputError: Swift.Error, Swift.Equatable { extension ListInputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputSummaries = output.inputSummaries self.nextToken = output.nextToken @@ -5784,9 +5766,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6467,9 +6448,8 @@ extension IoTEventsClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceArn = output.resourceArn @@ -6487,7 +6467,7 @@ extension ResourceAlreadyExistsException { } /// The resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6540,9 +6520,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6556,7 +6535,7 @@ extension ResourceInUseException { } /// The resource is in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6593,9 +6572,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6609,7 +6587,7 @@ extension ResourceNotFoundException { } /// The resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6851,9 +6829,8 @@ extension IoTEventsClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6867,7 +6844,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7200,9 +7177,8 @@ public enum StartDetectorModelAnalysisOutputError: Swift.Error, Swift.Equatable extension StartDetectorModelAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDetectorModelAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisId = output.analysisId } else { @@ -7476,9 +7452,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7492,7 +7467,7 @@ extension ThrottlingException { } /// The request could not be completed due to throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7609,9 +7584,8 @@ extension IoTEventsClientTypes { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7625,7 +7599,7 @@ extension UnsupportedOperationException { } /// The requested operation is not supported. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7919,9 +7893,8 @@ public enum UpdateAlarmModelOutputError: Swift.Error, Swift.Equatable { extension UpdateAlarmModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAlarmModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmModelArn = output.alarmModelArn self.alarmModelVersion = output.alarmModelVersion @@ -8133,9 +8106,8 @@ public enum UpdateDetectorModelOutputError: Swift.Error, Swift.Equatable { extension UpdateDetectorModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDetectorModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorModelConfiguration = output.detectorModelConfiguration } else { @@ -8274,9 +8246,8 @@ public enum UpdateInputOutputError: Swift.Error, Swift.Equatable { extension UpdateInputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputConfiguration = output.inputConfiguration } else { diff --git a/Sources/Services/AWSIoTEventsData/IoTEventsDataClient.swift b/Sources/Services/AWSIoTEventsData/IoTEventsDataClient.swift index 8909dfa2ebe..dcb59d3b13a 100644 --- a/Sources/Services/AWSIoTEventsData/IoTEventsDataClient.swift +++ b/Sources/Services/AWSIoTEventsData/IoTEventsDataClient.swift @@ -208,6 +208,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAcknowledgeAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisableAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchEnableAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchResetAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchSnoozeAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -501,7 +510,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -521,6 +530,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAlarms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -567,7 +578,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +598,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ioteventsdata") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDetectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -600,7 +612,7 @@ extension IoTEventsDataClient: IoTEventsDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTEventsData/models/Models.swift b/Sources/Services/AWSIoTEventsData/models/Models.swift index 5e3b6d653db..b6d3e014911 100644 --- a/Sources/Services/AWSIoTEventsData/models/Models.swift +++ b/Sources/Services/AWSIoTEventsData/models/Models.swift @@ -507,9 +507,8 @@ public enum BatchAcknowledgeAlarmOutputError: Swift.Error, Swift.Equatable { extension BatchAcknowledgeAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAcknowledgeAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -765,9 +764,8 @@ public enum BatchDeleteDetectorOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchDeleteDetectorErrorEntries = output.batchDeleteDetectorErrorEntries } else { @@ -903,9 +901,8 @@ public enum BatchDisableAlarmOutputError: Swift.Error, Swift.Equatable { extension BatchDisableAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisableAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -1041,9 +1038,8 @@ public enum BatchEnableAlarmOutputError: Swift.Error, Swift.Equatable { extension BatchEnableAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchEnableAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -1234,9 +1230,8 @@ public enum BatchPutMessageOutputError: Swift.Error, Swift.Equatable { extension BatchPutMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchPutMessageErrorEntries = output.batchPutMessageErrorEntries } else { @@ -1372,9 +1367,8 @@ public enum BatchResetAlarmOutputError: Swift.Error, Swift.Equatable { extension BatchResetAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchResetAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -1510,9 +1504,8 @@ public enum BatchSnoozeAlarmOutputError: Swift.Error, Swift.Equatable { extension BatchSnoozeAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchSnoozeAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -1703,9 +1696,8 @@ public enum BatchUpdateDetectorOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchUpdateDetectorErrorEntries = output.batchUpdateDetectorErrorEntries } else { @@ -2071,9 +2063,8 @@ public enum DescribeAlarmOutputError: Swift.Error, Swift.Equatable { extension DescribeAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarm = output.alarm } else { @@ -2190,9 +2181,8 @@ public enum DescribeDetectorOutputError: Swift.Error, Swift.Equatable { extension DescribeDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detector = output.detector } else { @@ -2874,9 +2864,8 @@ extension IoTEventsDataClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2890,7 +2879,7 @@ extension InternalFailureException { } /// An internal failure occurred. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2927,9 +2916,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2943,7 +2931,7 @@ extension InvalidRequestException { } /// The request was invalid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3066,9 +3054,8 @@ public enum ListAlarmsOutputError: Swift.Error, Swift.Equatable { extension ListAlarmsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAlarmsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmSummaries = output.alarmSummaries self.nextToken = output.nextToken @@ -3220,9 +3207,8 @@ public enum ListDetectorsOutputError: Swift.Error, Swift.Equatable { extension ListDetectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDetectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectorSummaries = output.detectorSummaries self.nextToken = output.nextToken @@ -3450,9 +3436,8 @@ extension IoTEventsDataClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3466,7 +3451,7 @@ extension ResourceNotFoundException { } /// The resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3538,9 +3523,8 @@ extension IoTEventsDataClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3554,7 +3538,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3849,9 +3833,8 @@ extension IoTEventsDataClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3865,7 +3848,7 @@ extension ThrottlingException { } /// The request could not be completed due to throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoTFleetHub/IoTFleetHubClient.swift b/Sources/Services/AWSIoTFleetHub/IoTFleetHubClient.swift index 265d4a5ae46..1517fbcd277 100644 --- a/Sources/Services/AWSIoTFleetHub/IoTFleetHubClient.swift +++ b/Sources/Services/AWSIoTFleetHub/IoTFleetHubClient.swift @@ -208,6 +208,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleethub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleethub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -272,7 +274,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -292,6 +294,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleethub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleethub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -337,7 +341,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -357,6 +361,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleethub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -369,7 +374,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -389,6 +394,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleethub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleethub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -437,7 +444,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -457,6 +464,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleethub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -480,7 +488,7 @@ extension IoTFleetHubClient: IoTFleetHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTFleetHub/models/Models.swift b/Sources/Services/AWSIoTFleetHub/models/Models.swift index 0c55f38e65d..8bf80a2bf97 100644 --- a/Sources/Services/AWSIoTFleetHub/models/Models.swift +++ b/Sources/Services/AWSIoTFleetHub/models/Models.swift @@ -143,9 +143,8 @@ extension IoTFleetHubClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -159,7 +158,7 @@ extension ConflictException { } /// The request conflicts with the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -332,9 +331,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationArn = output.applicationArn self.applicationId = output.applicationId @@ -530,9 +528,8 @@ public enum DescribeApplicationOutputError: Swift.Error, Swift.Equatable { extension DescribeApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationArn = output.applicationArn self.applicationCreationDate = output.applicationCreationDate @@ -698,9 +695,8 @@ extension DescribeApplicationOutputResponseBody: Swift.Decodable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -714,7 +710,7 @@ extension InternalFailureException { } /// An unexpected error has occurred. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -750,9 +746,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -766,7 +761,7 @@ extension InvalidRequestException { } /// The request is not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -802,9 +797,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -818,7 +812,7 @@ extension LimitExceededException { } /// A limit has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -920,9 +914,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationSummaries = output.applicationSummaries self.nextToken = output.nextToken @@ -1037,9 +1030,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1087,9 +1079,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1103,7 +1094,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1243,9 +1234,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1259,7 +1249,7 @@ extension ThrottlingException { } /// The rate exceeds the limit. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoTFleetWise/IoTFleetWiseClient.swift b/Sources/Services/AWSIoTFleetWise/IoTFleetWiseClient.swift index 3696a44da18..5789c8171b8 100644 --- a/Sources/Services/AWSIoTFleetWise/IoTFleetWiseClient.swift +++ b/Sources/Services/AWSIoTFleetWise/IoTFleetWiseClient.swift @@ -208,6 +208,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateVehicleFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateVehicle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateVehicle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDecoderManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +438,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSignalCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVehicle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +566,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDecoderManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -592,7 +603,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -612,6 +623,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +640,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +677,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +697,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSignalCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +714,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +734,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVehicle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +751,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +771,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateVehicleFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +788,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +808,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +825,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +845,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDecoderManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +862,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +882,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +899,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +919,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +936,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +956,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModelManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +973,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +993,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegisterAccountStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -988,7 +1010,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1008,6 +1030,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSignalCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1047,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1067,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVehicle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1084,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1104,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVehicleStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1097,7 +1122,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1117,6 +1142,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importDecoderManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1133,7 +1159,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1153,6 +1179,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importSignalCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1169,7 +1196,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1189,6 +1216,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCampaigns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1206,7 +1234,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1226,6 +1254,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDecoderManifestNetworkInterfaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1243,7 +1272,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1263,6 +1292,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDecoderManifestSignals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1310,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1330,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDecoderManifests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1317,7 +1348,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1337,6 +1368,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1354,7 +1386,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1374,6 +1406,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFleetsForVehicle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1391,7 +1424,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1411,6 +1444,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelManifestNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1462,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1482,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelManifests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1465,7 +1500,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1485,6 +1520,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSignalCatalogNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1502,7 +1538,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1522,6 +1558,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSignalCatalogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1539,7 +1576,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1559,6 +1596,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1576,7 +1614,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1596,6 +1634,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVehicles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1613,7 +1652,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1633,6 +1672,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVehiclesInFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1650,7 +1690,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1670,6 +1710,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1686,7 +1727,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1706,6 +1747,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1722,7 +1764,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1742,6 +1784,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1759,7 +1802,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1779,6 +1822,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1796,7 +1840,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1816,6 +1860,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1832,7 +1877,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1852,6 +1897,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDecoderManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1868,7 +1914,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1888,6 +1934,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1904,7 +1951,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1924,6 +1971,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateModelManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1940,7 +1988,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1960,6 +2008,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSignalCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1976,7 +2025,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1996,6 +2045,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotfleetwise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVehicle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2012,7 +2062,7 @@ extension IoTFleetWiseClient: IoTFleetWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTFleetWise/models/Models.swift b/Sources/Services/AWSIoTFleetWise/models/Models.swift index 2799548c676..0847c06a947 100644 --- a/Sources/Services/AWSIoTFleetWise/models/Models.swift +++ b/Sources/Services/AWSIoTFleetWise/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient permission to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -490,9 +489,8 @@ public enum BatchCreateVehicleOutputError: Swift.Error, Swift.Equatable { extension BatchCreateVehicleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateVehicleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.vehicles = output.vehicles @@ -647,9 +645,8 @@ public enum BatchUpdateVehicleOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateVehicleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateVehicleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.vehicles = output.vehicles @@ -1355,9 +1352,8 @@ extension IoTFleetWiseClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resource = output.resource @@ -1375,7 +1371,7 @@ extension ConflictException { } /// The request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1709,9 +1705,8 @@ public enum CreateCampaignOutputError: Swift.Error, Swift.Equatable { extension CreateCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -1931,9 +1926,8 @@ public enum CreateDecoderManifestOutputError: Swift.Error, Swift.Equatable { extension CreateDecoderManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDecoderManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -2107,9 +2101,8 @@ public enum CreateFleetOutputError: Swift.Error, Swift.Equatable { extension CreateFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -2308,9 +2301,8 @@ public enum CreateModelManifestOutputError: Swift.Error, Swift.Equatable { extension CreateModelManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -2495,9 +2487,8 @@ public enum CreateSignalCatalogOutputError: Swift.Error, Swift.Equatable { extension CreateSignalCatalogOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSignalCatalogOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -2763,9 +2754,8 @@ public enum CreateVehicleOutputError: Swift.Error, Swift.Equatable { extension CreateVehicleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVehicleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.thingArn = output.thingArn @@ -3088,9 +3078,8 @@ extension IoTFleetWiseClientTypes { extension DecoderManifestValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DecoderManifestValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidNetworkInterfaces = output.invalidNetworkInterfaces self.invalidSignals = output.invalidSignals @@ -3108,7 +3097,7 @@ extension DecoderManifestValidationException { } /// The request couldn't be completed because it contains signal decoders with one or more validation errors. -public struct DecoderManifestValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DecoderManifestValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3242,9 +3231,8 @@ public enum DeleteCampaignOutputError: Swift.Error, Swift.Equatable { extension DeleteCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -3359,9 +3347,8 @@ public enum DeleteDecoderManifestOutputError: Swift.Error, Swift.Equatable { extension DeleteDecoderManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDecoderManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -3476,9 +3463,8 @@ public enum DeleteFleetOutputError: Swift.Error, Swift.Equatable { extension DeleteFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3593,9 +3579,8 @@ public enum DeleteModelManifestOutputError: Swift.Error, Swift.Equatable { extension DeleteModelManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteModelManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -3712,9 +3697,8 @@ public enum DeleteSignalCatalogOutputError: Swift.Error, Swift.Equatable { extension DeleteSignalCatalogOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSignalCatalogOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -3829,9 +3813,8 @@ public enum DeleteVehicleOutputError: Swift.Error, Swift.Equatable { extension DeleteVehicleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVehicleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.vehicleName = output.vehicleName @@ -4197,9 +4180,8 @@ public enum GetCampaignOutputError: Swift.Error, Swift.Equatable { extension GetCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.collectionScheme = output.collectionScheme @@ -4490,9 +4472,8 @@ public enum GetDecoderManifestOutputError: Swift.Error, Swift.Equatable { extension GetDecoderManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDecoderManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -4661,9 +4642,8 @@ public enum GetFleetOutputError: Swift.Error, Swift.Equatable { extension GetFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -4809,9 +4789,8 @@ public enum GetLoggingOptionsOutputError: Swift.Error, Swift.Equatable { extension GetLoggingOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoggingOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudWatchLogDelivery = output.cloudWatchLogDelivery } else { @@ -4915,9 +4894,8 @@ public enum GetModelManifestOutputError: Swift.Error, Swift.Equatable { extension GetModelManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -5078,9 +5056,8 @@ public enum GetRegisterAccountStatusOutputError: Swift.Error, Swift.Equatable { extension GetRegisterAccountStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegisterAccountStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountStatus = output.accountStatus self.creationTime = output.creationTime @@ -5245,9 +5222,8 @@ public enum GetSignalCatalogOutputError: Swift.Error, Swift.Equatable { extension GetSignalCatalogOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSignalCatalogOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -5406,9 +5382,8 @@ public enum GetVehicleOutputError: Swift.Error, Swift.Equatable { extension GetVehicleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVehicleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.attributes = output.attributes @@ -5597,9 +5572,8 @@ public enum GetVehicleStatusOutputError: Swift.Error, Swift.Equatable { extension GetVehicleStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVehicleStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.campaigns = output.campaigns self.nextToken = output.nextToken @@ -5849,9 +5823,8 @@ public enum ImportDecoderManifestOutputError: Swift.Error, Swift.Equatable { extension ImportDecoderManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportDecoderManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -6026,9 +5999,8 @@ public enum ImportSignalCatalogOutputError: Swift.Error, Swift.Equatable { extension ImportSignalCatalogOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportSignalCatalogOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -6084,9 +6056,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6100,7 +6071,7 @@ extension InternalServerException { } /// The request couldn't be completed because the server temporarily failed. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6186,9 +6157,8 @@ extension IoTFleetWiseClientTypes { extension InvalidNodeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNodeExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidNodes = output.invalidNodes self.message = output.message @@ -6206,7 +6176,7 @@ extension InvalidNodeException { } /// The specified node type doesn't match the expected node type for a node. You can specify the node type as branch, sensor, actuator, or attribute. -public struct InvalidNodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6357,9 +6327,8 @@ extension IoTFleetWiseClientTypes { extension InvalidSignalsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSignalsExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidSignals = output.invalidSignals self.message = output.message @@ -6375,7 +6344,7 @@ extension InvalidSignalsException { } /// The request couldn't be completed because it contains signals that aren't valid. -public struct InvalidSignalsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSignalsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6428,9 +6397,8 @@ extension InvalidSignalsExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -6448,7 +6416,7 @@ extension LimitExceededException { } /// A service quota was exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6581,9 +6549,8 @@ public enum ListCampaignsOutputError: Swift.Error, Swift.Equatable { extension ListCampaignsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCampaignsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.campaignSummaries = output.campaignSummaries self.nextToken = output.nextToken @@ -6724,9 +6691,8 @@ public enum ListDecoderManifestNetworkInterfacesOutputError: Swift.Error, Swift. extension ListDecoderManifestNetworkInterfacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDecoderManifestNetworkInterfacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInterfaces = output.networkInterfaces self.nextToken = output.nextToken @@ -6867,9 +6833,8 @@ public enum ListDecoderManifestSignalsOutputError: Swift.Error, Swift.Equatable extension ListDecoderManifestSignalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDecoderManifestSignalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.signalDecoders = output.signalDecoders @@ -7007,9 +6972,8 @@ public enum ListDecoderManifestsOutputError: Swift.Error, Swift.Equatable { extension ListDecoderManifestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDecoderManifestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -7150,9 +7114,8 @@ public enum ListFleetsForVehicleOutputError: Swift.Error, Swift.Equatable { extension ListFleetsForVehicleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFleetsForVehicleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleets = output.fleets self.nextToken = output.nextToken @@ -7288,9 +7251,8 @@ public enum ListFleetsOutputError: Swift.Error, Swift.Equatable { extension ListFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetSummaries = output.fleetSummaries self.nextToken = output.nextToken @@ -7433,9 +7395,8 @@ public enum ListModelManifestNodesOutputError: Swift.Error, Swift.Equatable { extension ListModelManifestNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelManifestNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nodes = output.nodes @@ -7573,9 +7534,8 @@ public enum ListModelManifestsOutputError: Swift.Error, Swift.Equatable { extension ListModelManifestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelManifestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -7718,9 +7678,8 @@ public enum ListSignalCatalogNodesOutputError: Swift.Error, Swift.Equatable { extension ListSignalCatalogNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSignalCatalogNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nodes = output.nodes @@ -7854,9 +7813,8 @@ public enum ListSignalCatalogsOutputError: Swift.Error, Swift.Equatable { extension ListSignalCatalogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSignalCatalogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -7989,9 +7947,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8122,9 +8079,8 @@ public enum ListVehiclesInFleetOutputError: Swift.Error, Swift.Equatable { extension ListVehiclesInFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVehiclesInFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vehicles = output.vehicles @@ -8262,9 +8218,8 @@ public enum ListVehiclesOutputError: Swift.Error, Swift.Equatable { extension ListVehiclesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVehiclesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vehicleSummaries = output.vehicleSummaries @@ -9312,9 +9267,8 @@ public enum RegisterAccountOutputError: Swift.Error, Swift.Equatable { extension RegisterAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.iamResources = output.iamResources @@ -9433,9 +9387,8 @@ extension IoTFleetWiseClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -9453,7 +9406,7 @@ extension ResourceNotFoundException { } /// The resource wasn't found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10099,9 +10052,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -10119,7 +10071,7 @@ extension ThrottlingException { } /// The request couldn't be completed due to throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10634,9 +10586,8 @@ public enum UpdateCampaignOutputError: Swift.Error, Swift.Equatable { extension UpdateCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -10945,9 +10896,8 @@ public enum UpdateDecoderManifestOutputError: Swift.Error, Swift.Equatable { extension UpdateDecoderManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDecoderManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -11082,9 +11032,8 @@ public enum UpdateFleetOutputError: Swift.Error, Swift.Equatable { extension UpdateFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -11311,9 +11260,8 @@ public enum UpdateModelManifestOutputError: Swift.Error, Swift.Equatable { extension UpdateModelManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateModelManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -11526,9 +11474,8 @@ public enum UpdateSignalCatalogOutputError: Swift.Error, Swift.Equatable { extension UpdateSignalCatalogOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSignalCatalogOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -11766,9 +11713,8 @@ public enum UpdateVehicleOutputError: Swift.Error, Swift.Equatable { extension UpdateVehicleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVehicleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.vehicleName = output.vehicleName @@ -11950,9 +11896,8 @@ extension IoTFleetWiseClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -11970,7 +11915,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoTJobsDataPlane/IoTJobsDataPlaneClient.swift b/Sources/Services/AWSIoTJobsDataPlane/IoTJobsDataPlaneClient.swift index 17b39d6ff11..257f62704c3 100644 --- a/Sources/Services/AWSIoTJobsDataPlane/IoTJobsDataPlaneClient.swift +++ b/Sources/Services/AWSIoTJobsDataPlane/IoTJobsDataPlaneClient.swift @@ -208,6 +208,7 @@ extension IoTJobsDataPlaneClient: IoTJobsDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot-jobs-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension IoTJobsDataPlaneClient: IoTJobsDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension IoTJobsDataPlaneClient: IoTJobsDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot-jobs-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPendingJobExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -253,7 +255,7 @@ extension IoTJobsDataPlaneClient: IoTJobsDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -273,6 +275,7 @@ extension IoTJobsDataPlaneClient: IoTJobsDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot-jobs-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startNextPendingJobExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -288,7 +291,7 @@ extension IoTJobsDataPlaneClient: IoTJobsDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -308,6 +311,7 @@ extension IoTJobsDataPlaneClient: IoTJobsDataPlaneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iot-jobs-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJobExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -323,7 +327,7 @@ extension IoTJobsDataPlaneClient: IoTJobsDataPlaneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTJobsDataPlane/models/Models.swift b/Sources/Services/AWSIoTJobsDataPlane/models/Models.swift index 1d1435edd60..97bee02d93a 100644 --- a/Sources/Services/AWSIoTJobsDataPlane/models/Models.swift +++ b/Sources/Services/AWSIoTJobsDataPlane/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension CertificateValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CertificateValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension CertificateValidationException { } /// The certificate is invalid. -public struct CertificateValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -153,9 +152,8 @@ public enum DescribeJobExecutionOutputError: Swift.Error, Swift.Equatable { extension DescribeJobExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.execution = output.execution } else { @@ -255,9 +253,8 @@ public enum GetPendingJobExecutionsOutputError: Swift.Error, Swift.Equatable { extension GetPendingJobExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPendingJobExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inProgressJobs = output.inProgressJobs self.queuedJobs = output.queuedJobs @@ -324,9 +321,8 @@ extension GetPendingJobExecutionsOutputResponseBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -340,7 +336,7 @@ extension InvalidRequestException { } /// The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -377,9 +373,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidStateTransitionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateTransitionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -393,7 +388,7 @@ extension InvalidStateTransitionException { } /// An update attempted to change the job execution to a state that is invalid because of the job execution's current state (for example, an attempt to change a request in state SUCCESS to state IN_PROGRESS). In this case, the body of the error message also contains the executionState field. -public struct InvalidStateTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -778,9 +773,8 @@ extension IoTJobsDataPlaneClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -794,7 +788,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -831,9 +825,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -847,7 +840,7 @@ extension ServiceUnavailableException { } /// The service is temporarily unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -993,9 +986,8 @@ public enum StartNextPendingJobExecutionOutputError: Swift.Error, Swift.Equatabl extension StartNextPendingJobExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartNextPendingJobExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.execution = output.execution } else { @@ -1034,9 +1026,8 @@ extension StartNextPendingJobExecutionOutputResponseBody: Swift.Decodable { extension TerminalStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminalStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1050,7 +1041,7 @@ extension TerminalStateException { } /// The job is in a terminal state. -public struct TerminalStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TerminalStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1086,9 +1077,8 @@ extension TerminalStateExceptionBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.payload = output.payload @@ -1104,7 +1094,7 @@ extension ThrottlingException { } /// The rate exceeds the limit. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1329,9 +1319,8 @@ public enum UpdateJobExecutionOutputError: Swift.Error, Swift.Equatable { extension UpdateJobExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateJobExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionState = output.executionState self.jobDocument = output.jobDocument diff --git a/Sources/Services/AWSIoTRoboRunner/IoTRoboRunnerClient.swift b/Sources/Services/AWSIoTRoboRunner/IoTRoboRunnerClient.swift index 31490639f8e..2cf849f5053 100644 --- a/Sources/Services/AWSIoTRoboRunner/IoTRoboRunnerClient.swift +++ b/Sources/Services/AWSIoTRoboRunner/IoTRoboRunnerClient.swift @@ -208,6 +208,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDestination") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSite") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorker") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkerFleet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -360,7 +364,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +384,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +400,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +420,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +436,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +456,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +472,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +492,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkerFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +508,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +528,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -533,7 +542,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -553,6 +562,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -566,7 +576,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -586,6 +596,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +610,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -619,6 +630,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkerFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -632,7 +644,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -652,6 +664,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -665,7 +678,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -685,6 +698,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSites") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -698,7 +712,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -718,6 +732,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkerFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -731,7 +746,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -751,6 +766,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -799,7 +816,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -819,6 +836,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -834,7 +852,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -854,6 +872,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -869,7 +888,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -889,6 +908,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotroborunner") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkerFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -904,7 +924,7 @@ extension IoTRoboRunnerClient: IoTRoboRunnerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTRoboRunner/models/Models.swift b/Sources/Services/AWSIoTRoboRunner/models/Models.swift index db737d8338f..9af665da19a 100644 --- a/Sources/Services/AWSIoTRoboRunner/models/Models.swift +++ b/Sources/Services/AWSIoTRoboRunner/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// User does not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -113,9 +112,8 @@ extension IoTRoboRunnerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -129,7 +127,7 @@ extension ConflictException { } /// Exception thrown if a resource in a create request already exists. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -296,9 +294,8 @@ public enum CreateDestinationOutputError: Swift.Error, Swift.Equatable { extension CreateDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -499,9 +496,8 @@ public enum CreateSiteOutputError: Swift.Error, Swift.Equatable { extension CreateSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -693,9 +689,8 @@ public enum CreateWorkerFleetOutputError: Swift.Error, Swift.Equatable { extension CreateWorkerFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkerFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -935,9 +930,8 @@ public enum CreateWorkerOutputError: Swift.Error, Swift.Equatable { extension CreateWorkerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -1602,9 +1596,8 @@ public enum GetDestinationOutputError: Swift.Error, Swift.Equatable { extension GetDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalFixedProperties = output.additionalFixedProperties self.arn = output.arn @@ -1793,9 +1786,8 @@ public enum GetSiteOutputError: Swift.Error, Swift.Equatable { extension GetSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.countryCode = output.countryCode @@ -1973,9 +1965,8 @@ public enum GetWorkerFleetOutputError: Swift.Error, Swift.Equatable { extension GetWorkerFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkerFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalFixedProperties = output.additionalFixedProperties self.arn = output.arn @@ -2153,9 +2144,8 @@ public enum GetWorkerOutputError: Swift.Error, Swift.Equatable { extension GetWorkerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalFixedProperties = output.additionalFixedProperties self.additionalTransientProperties = output.additionalTransientProperties @@ -2311,9 +2301,8 @@ extension GetWorkerOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2327,7 +2316,7 @@ extension InternalServerException { } /// Exception thrown if something goes wrong within the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2460,9 +2449,8 @@ public enum ListDestinationsOutputError: Swift.Error, Swift.Equatable { extension ListDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinations = output.destinations self.nextToken = output.nextToken @@ -2596,9 +2584,8 @@ public enum ListSitesOutputError: Swift.Error, Swift.Equatable { extension ListSitesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSitesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sites = output.sites @@ -2745,9 +2732,8 @@ public enum ListWorkerFleetsOutputError: Swift.Error, Swift.Equatable { extension ListWorkerFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkerFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workerFleets = output.workerFleets @@ -2902,9 +2888,8 @@ public enum ListWorkersOutputError: Swift.Error, Swift.Equatable { extension ListWorkersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workers = output.workers @@ -3036,9 +3021,8 @@ extension IoTRoboRunnerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3052,7 +3036,7 @@ extension ResourceNotFoundException { } /// Exception thrown if a resource referenced in the request doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3088,9 +3072,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3104,7 +3087,7 @@ extension ServiceQuotaExceededException { } /// Exception thrown if the user's AWS account has reached a service limit and the operation cannot proceed. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3209,9 +3192,8 @@ extension IoTRoboRunnerClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3225,7 +3207,7 @@ extension ThrottlingException { } /// Exception thrown if the api has been called too quickly be the client. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3375,9 +3357,8 @@ public enum UpdateDestinationOutputError: Swift.Error, Swift.Equatable { extension UpdateDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalFixedProperties = output.additionalFixedProperties self.arn = output.arn @@ -3585,9 +3566,8 @@ public enum UpdateSiteOutputError: Swift.Error, Swift.Equatable { extension UpdateSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.countryCode = output.countryCode @@ -3782,9 +3762,8 @@ public enum UpdateWorkerFleetOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkerFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkerFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalFixedProperties = output.additionalFixedProperties self.arn = output.arn @@ -4017,9 +3996,8 @@ public enum UpdateWorkerOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalFixedProperties = output.additionalFixedProperties self.additionalTransientProperties = output.additionalTransientProperties @@ -4153,9 +4131,8 @@ extension UpdateWorkerOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4169,7 +4146,7 @@ extension ValidationException { } /// Exception thrown if an invalid parameter is provided to an API. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoTSecureTunneling/IoTSecureTunnelingClient.swift b/Sources/Services/AWSIoTSecureTunneling/IoTSecureTunnelingClient.swift index 838818cacad..bda005d6f96 100644 --- a/Sources/Services/AWSIoTSecureTunneling/IoTSecureTunnelingClient.swift +++ b/Sources/Services/AWSIoTSecureTunneling/IoTSecureTunnelingClient.swift @@ -208,6 +208,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "IoTSecuredTunneling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "closeTunnel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -225,7 +226,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -245,6 +246,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "IoTSecuredTunneling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTunnel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -261,7 +263,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -281,6 +283,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "IoTSecuredTunneling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -298,7 +301,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -318,6 +321,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "IoTSecuredTunneling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTunnels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -335,7 +339,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -355,6 +359,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "IoTSecuredTunneling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "openTunnel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +376,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -391,6 +396,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "IoTSecuredTunneling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rotateTunnelAccessToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -407,7 +413,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -427,6 +433,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "IoTSecuredTunneling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -443,7 +450,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -463,6 +470,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "IoTSecuredTunneling") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -479,7 +487,7 @@ extension IoTSecureTunnelingClient: IoTSecureTunnelingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTSecureTunneling/models/Models.swift b/Sources/Services/AWSIoTSecureTunneling/models/Models.swift index 8dbdc9306bd..990cb2ee535 100644 --- a/Sources/Services/AWSIoTSecureTunneling/models/Models.swift +++ b/Sources/Services/AWSIoTSecureTunneling/models/Models.swift @@ -255,9 +255,8 @@ public enum DescribeTunnelOutputError: Swift.Error, Swift.Equatable { extension DescribeTunnelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTunnelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tunnel = output.tunnel } else { @@ -354,9 +353,8 @@ extension IoTSecureTunnelingClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -370,7 +368,7 @@ extension LimitExceededException { } /// Thrown when a tunnel limit is exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -473,9 +471,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -595,9 +592,8 @@ public enum ListTunnelsOutputError: Swift.Error, Swift.Equatable { extension ListTunnelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTunnelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tunnelSummaries = output.tunnelSummaries @@ -777,9 +773,8 @@ extension OpenTunnelOutputResponse: Swift.CustomDebugStringConvertible { extension OpenTunnelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpenTunnelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationAccessToken = output.destinationAccessToken self.sourceAccessToken = output.sourceAccessToken @@ -848,9 +843,8 @@ extension OpenTunnelOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -864,7 +858,7 @@ extension ResourceNotFoundException { } /// Thrown when an operation is attempted on a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -992,9 +986,8 @@ extension RotateTunnelAccessTokenOutputResponse: Swift.CustomDebugStringConverti extension RotateTunnelAccessTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RotateTunnelAccessTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationAccessToken = output.destinationAccessToken self.sourceAccessToken = output.sourceAccessToken diff --git a/Sources/Services/AWSIoTSiteWise/IoTSiteWiseClient.swift b/Sources/Services/AWSIoTSiteWise/IoTSiteWiseClient.swift index 1ce52ed8896..ed6f16eb850 100644 --- a/Sources/Services/AWSIoTSiteWise/IoTSiteWiseClient.swift +++ b/Sources/Services/AWSIoTSiteWise/IoTSiteWiseClient.swift @@ -208,6 +208,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateAssets") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTimeSeriesToAssetProperty") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -275,7 +277,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -295,6 +297,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateProjectAssets") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -318,7 +321,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -338,6 +341,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateProjectAssets") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -361,7 +365,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -381,6 +385,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetAssetPropertyAggregates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -396,7 +401,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -416,6 +421,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetAssetPropertyValue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -431,7 +437,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -451,6 +457,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetAssetPropertyValueHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -466,7 +473,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -493,6 +500,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutAssetPropertyValue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -508,7 +516,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -528,6 +536,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -551,7 +560,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +580,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAsset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -594,7 +604,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -614,6 +624,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssetModel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -637,7 +648,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +668,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBulkImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -672,7 +684,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +704,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDashboard") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -715,7 +728,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -735,6 +748,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -750,7 +764,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +784,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPortal") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -793,7 +808,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -813,6 +828,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -836,7 +852,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +872,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -877,7 +894,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -897,6 +914,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAsset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -918,7 +936,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -938,6 +956,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssetModel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -959,7 +978,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +998,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDashboard") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1000,7 +1020,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1020,6 +1040,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1032,7 +1053,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1073,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePortal") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1073,7 +1095,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1093,6 +1115,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1114,7 +1137,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1142,6 +1165,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTimeSeries") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1166,7 +1190,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1186,6 +1210,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccessPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -1198,7 +1223,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1218,6 +1243,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1231,7 +1257,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1251,6 +1277,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAssetModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1264,7 +1291,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1284,6 +1311,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAssetProperty") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1296,7 +1324,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1316,6 +1344,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBulkImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -1328,7 +1357,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1348,6 +1377,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDashboard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -1360,7 +1390,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1380,6 +1410,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDefaultEncryptionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1392,7 +1423,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1412,6 +1443,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1424,7 +1456,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1444,6 +1476,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGatewayCapabilityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1456,7 +1489,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1509,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1488,7 +1522,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1508,6 +1542,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePortal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -1520,7 +1555,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1575,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -1552,7 +1588,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1572,6 +1608,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStorageConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1584,7 +1621,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1649,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTimeSeries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1625,7 +1663,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1645,6 +1683,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateAssets") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1668,7 +1707,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1688,6 +1727,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTimeSeriesFromAssetProperty") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1712,7 +1752,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1736,6 +1776,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssetPropertyAggregates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -1749,7 +1790,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1773,6 +1814,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssetPropertyValue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -1786,7 +1828,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1810,6 +1852,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssetPropertyValueHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -1823,7 +1866,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1847,6 +1890,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInterpolatedAssetPropertyValues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -1860,7 +1904,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1880,6 +1924,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -1893,7 +1938,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1913,6 +1958,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssetModelProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1926,7 +1972,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1946,6 +1992,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssetModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1959,7 +2006,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1979,6 +2026,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssetProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1992,7 +2040,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2012,6 +2060,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssetRelationships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2025,7 +2074,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2052,6 +2101,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2065,7 +2115,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2089,6 +2139,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociatedAssets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2102,7 +2153,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2122,6 +2173,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBulkImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -2135,7 +2187,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2155,6 +2207,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDashboards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -2168,7 +2221,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2241,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2201,7 +2255,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2221,6 +2275,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPortals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -2234,7 +2289,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2254,6 +2309,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjectAssets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -2267,7 +2323,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2287,6 +2343,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "monitor.")) @@ -2300,7 +2357,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2320,6 +2377,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2333,7 +2391,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2353,6 +2411,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTimeSeries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2366,7 +2425,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2386,6 +2445,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDefaultEncryptionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2401,7 +2461,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2421,6 +2481,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLoggingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2436,7 +2497,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2456,6 +2517,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putStorageConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2471,7 +2533,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2491,6 +2553,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2507,7 +2570,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2527,6 +2590,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2540,7 +2604,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2560,6 +2624,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccessPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2583,7 +2648,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2603,6 +2668,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAsset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2626,7 +2692,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2646,6 +2712,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssetModel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2669,7 +2736,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2689,6 +2756,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssetProperty") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2712,7 +2780,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2732,6 +2800,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDashboard") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2755,7 +2824,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2775,6 +2844,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2790,7 +2860,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2810,6 +2880,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewayCapabilityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -2825,7 +2896,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2845,6 +2916,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePortal") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2868,7 +2940,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2888,6 +2960,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotsitewise") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2911,7 +2984,7 @@ extension IoTSiteWiseClient: IoTSiteWiseClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTSiteWise/models/Models.swift b/Sources/Services/AWSIoTSiteWise/models/Models.swift index 51534da995f..7916f4a2c69 100644 --- a/Sources/Services/AWSIoTSiteWise/models/Models.swift +++ b/Sources/Services/AWSIoTSiteWise/models/Models.swift @@ -2416,9 +2416,8 @@ public enum BatchAssociateProjectAssetsOutputError: Swift.Error, Swift.Equatable extension BatchAssociateProjectAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateProjectAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -2574,9 +2573,8 @@ public enum BatchDisassociateProjectAssetsOutputError: Swift.Error, Swift.Equata extension BatchDisassociateProjectAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateProjectAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -3070,9 +3068,8 @@ public enum BatchGetAssetPropertyAggregatesOutputError: Swift.Error, Swift.Equat extension BatchGetAssetPropertyAggregatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetAssetPropertyAggregatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries self.nextToken = output.nextToken @@ -3875,9 +3872,8 @@ public enum BatchGetAssetPropertyValueHistoryOutputError: Swift.Error, Swift.Equ extension BatchGetAssetPropertyValueHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetAssetPropertyValueHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries self.nextToken = output.nextToken @@ -4192,9 +4188,8 @@ public enum BatchGetAssetPropertyValueOutputError: Swift.Error, Swift.Equatable extension BatchGetAssetPropertyValueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetAssetPropertyValueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries self.nextToken = output.nextToken @@ -4672,9 +4667,8 @@ public enum BatchPutAssetPropertyValueOutputError: Swift.Error, Swift.Equatable extension BatchPutAssetPropertyValueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutAssetPropertyValueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -5039,9 +5033,8 @@ extension IoTSiteWiseClientTypes { extension ConflictingOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictingOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceArn = output.resourceArn @@ -5059,7 +5052,7 @@ extension ConflictingOperationException { } /// Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time. -public struct ConflictingOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictingOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5254,9 +5247,8 @@ public enum CreateAccessPolicyOutputError: Swift.Error, Swift.Equatable { extension CreateAccessPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicyArn = output.accessPolicyArn self.accessPolicyId = output.accessPolicyId @@ -5618,9 +5610,8 @@ public enum CreateAssetModelOutputError: Swift.Error, Swift.Equatable { extension CreateAssetModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssetModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetModelArn = output.assetModelArn self.assetModelId = output.assetModelId @@ -5716,9 +5707,8 @@ public enum CreateAssetOutputError: Swift.Error, Swift.Equatable { extension CreateAssetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetArn = output.assetArn self.assetId = output.assetId @@ -5926,9 +5916,8 @@ public enum CreateBulkImportJobOutputError: Swift.Error, Swift.Equatable { extension CreateBulkImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBulkImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobName = output.jobName @@ -6154,9 +6143,8 @@ public enum CreateDashboardOutputError: Swift.Error, Swift.Equatable { extension CreateDashboardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDashboardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardArn = output.dashboardArn self.dashboardId = output.dashboardId @@ -6322,9 +6310,8 @@ public enum CreateGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn self.gatewayId = output.gatewayId @@ -6582,9 +6569,8 @@ public enum CreatePortalOutputError: Swift.Error, Swift.Equatable { extension CreatePortalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePortalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalArn = output.portalArn self.portalId = output.portalId @@ -6807,9 +6793,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectArn = output.projectArn self.projectId = output.projectId @@ -7243,9 +7228,8 @@ public enum DeleteAssetModelOutputError: Swift.Error, Swift.Equatable { extension DeleteAssetModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAssetModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetModelStatus = output.assetModelStatus } else { @@ -7315,9 +7299,8 @@ public enum DeleteAssetOutputError: Swift.Error, Swift.Equatable { extension DeleteAssetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAssetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetStatus = output.assetStatus } else { @@ -7590,9 +7573,8 @@ public enum DeletePortalOutputError: Swift.Error, Swift.Equatable { extension DeletePortalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePortalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalStatus = output.portalStatus } else { @@ -7897,9 +7879,8 @@ public enum DescribeAccessPolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeAccessPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccessPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicyArn = output.accessPolicyArn self.accessPolicyCreationDate = output.accessPolicyCreationDate @@ -8144,9 +8125,8 @@ public enum DescribeAssetModelOutputError: Swift.Error, Swift.Equatable { extension DescribeAssetModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssetModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetModelArn = output.assetModelArn self.assetModelCompositeModels = output.assetModelCompositeModels @@ -8354,9 +8334,8 @@ public enum DescribeAssetOutputError: Swift.Error, Swift.Equatable { extension DescribeAssetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetArn = output.assetArn self.assetCompositeModels = output.assetCompositeModels @@ -8598,9 +8577,8 @@ public enum DescribeAssetPropertyOutputError: Swift.Error, Swift.Equatable { extension DescribeAssetPropertyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssetPropertyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetId = output.assetId self.assetModelId = output.assetModelId @@ -8741,9 +8719,8 @@ public enum DescribeBulkImportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeBulkImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBulkImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorReportLocation = output.errorReportLocation self.files = output.files @@ -8951,9 +8928,8 @@ public enum DescribeDashboardOutputError: Swift.Error, Swift.Equatable { extension DescribeDashboardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDashboardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardArn = output.dashboardArn self.dashboardCreationDate = output.dashboardCreationDate @@ -9115,9 +9091,8 @@ public enum DescribeDefaultEncryptionConfigurationOutputError: Swift.Error, Swif extension DescribeDefaultEncryptionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDefaultEncryptionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationStatus = output.configurationStatus self.encryptionType = output.encryptionType @@ -9245,9 +9220,8 @@ public enum DescribeGatewayCapabilityConfigurationOutputError: Swift.Error, Swif extension DescribeGatewayCapabilityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGatewayCapabilityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capabilityConfiguration = output.capabilityConfiguration self.capabilityNamespace = output.capabilityNamespace @@ -9385,9 +9359,8 @@ public enum DescribeGatewayOutputError: Swift.Error, Swift.Equatable { extension DescribeGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.gatewayArn = output.gatewayArn @@ -9549,9 +9522,8 @@ public enum DescribeLoggingOptionsOutputError: Swift.Error, Swift.Equatable { extension DescribeLoggingOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoggingOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingOptions = output.loggingOptions } else { @@ -9665,9 +9637,8 @@ public enum DescribePortalOutputError: Swift.Error, Swift.Equatable { extension DescribePortalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePortalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarms = output.alarms self.notificationSenderEmail = output.notificationSenderEmail @@ -9914,9 +9885,8 @@ public enum DescribeProjectOutputError: Swift.Error, Swift.Equatable { extension DescribeProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalId = output.portalId self.projectArn = output.projectArn @@ -10073,9 +10043,8 @@ public enum DescribeStorageConfigurationOutputError: Swift.Error, Swift.Equatabl extension DescribeStorageConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStorageConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationStatus = output.configurationStatus self.disassociatedDataStorage = output.disassociatedDataStorage @@ -10261,9 +10230,8 @@ public enum DescribeTimeSeriesOutputError: Swift.Error, Swift.Equatable { extension DescribeTimeSeriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTimeSeriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.assetId = output.assetId @@ -11500,9 +11468,8 @@ public enum GetAssetPropertyAggregatesOutputError: Swift.Error, Swift.Equatable extension GetAssetPropertyAggregatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssetPropertyAggregatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregatedValues = output.aggregatedValues self.nextToken = output.nextToken @@ -11697,9 +11664,8 @@ public enum GetAssetPropertyValueHistoryOutputError: Swift.Error, Swift.Equatabl extension GetAssetPropertyValueHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssetPropertyValueHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetPropertyValueHistory = output.assetPropertyValueHistory self.nextToken = output.nextToken @@ -11844,9 +11810,8 @@ public enum GetAssetPropertyValueOutputError: Swift.Error, Swift.Equatable { extension GetAssetPropertyValueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssetPropertyValueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.propertyValue = output.propertyValue } else { @@ -12077,9 +12042,8 @@ public enum GetInterpolatedAssetPropertyValuesOutputError: Swift.Error, Swift.Eq extension GetInterpolatedAssetPropertyValuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInterpolatedAssetPropertyValuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.interpolatedAssetPropertyValues = output.interpolatedAssetPropertyValues self.nextToken = output.nextToken @@ -12590,9 +12554,8 @@ extension IoTSiteWiseClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12606,7 +12569,7 @@ extension InternalFailureException { } /// IoT SiteWise can't process your request right now. Try again later. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12690,9 +12653,8 @@ extension IoTSiteWiseClientTypes { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12706,7 +12668,7 @@ extension InvalidRequestException { } /// The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12893,9 +12855,8 @@ extension IoTSiteWiseClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12909,7 +12870,7 @@ extension LimitExceededException { } /// You've reached the limit for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model. For more information, see [Quotas](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) in the IoT SiteWise User Guide. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13060,9 +13021,8 @@ public enum ListAccessPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListAccessPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicySummaries = output.accessPolicySummaries self.nextToken = output.nextToken @@ -13252,9 +13212,8 @@ public enum ListAssetModelPropertiesOutputError: Swift.Error, Swift.Equatable { extension ListAssetModelPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssetModelPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetModelPropertySummaries = output.assetModelPropertySummaries self.nextToken = output.nextToken @@ -13387,9 +13346,8 @@ public enum ListAssetModelsOutputError: Swift.Error, Swift.Equatable { extension ListAssetModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssetModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetModelSummaries = output.assetModelSummaries self.nextToken = output.nextToken @@ -13579,9 +13537,8 @@ public enum ListAssetPropertiesOutputError: Swift.Error, Swift.Equatable { extension ListAssetPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssetPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetPropertySummaries = output.assetPropertySummaries self.nextToken = output.nextToken @@ -13737,9 +13694,8 @@ public enum ListAssetRelationshipsOutputError: Swift.Error, Swift.Equatable { extension ListAssetRelationshipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssetRelationshipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetRelationshipSummaries = output.assetRelationshipSummaries self.nextToken = output.nextToken @@ -13929,9 +13885,8 @@ public enum ListAssetsOutputError: Swift.Error, Swift.Equatable { extension ListAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetSummaries = output.assetSummaries self.nextToken = output.nextToken @@ -14097,9 +14052,8 @@ public enum ListAssociatedAssetsOutputError: Swift.Error, Swift.Equatable { extension ListAssociatedAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociatedAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetSummaries = output.assetSummaries self.nextToken = output.nextToken @@ -14289,9 +14243,8 @@ public enum ListBulkImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListBulkImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBulkImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummaries = output.jobSummaries self.nextToken = output.nextToken @@ -14435,9 +14388,8 @@ public enum ListDashboardsOutputError: Swift.Error, Swift.Equatable { extension ListDashboardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDashboardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardSummaries = output.dashboardSummaries self.nextToken = output.nextToken @@ -14570,9 +14522,8 @@ public enum ListGatewaysOutputError: Swift.Error, Swift.Equatable { extension ListGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewaySummaries = output.gatewaySummaries self.nextToken = output.nextToken @@ -14705,9 +14656,8 @@ public enum ListPortalsOutputError: Swift.Error, Swift.Equatable { extension ListPortalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPortalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.portalSummaries = output.portalSummaries @@ -14847,9 +14797,8 @@ public enum ListProjectAssetsOutputError: Swift.Error, Swift.Equatable { extension ListProjectAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetIds = output.assetIds self.nextToken = output.nextToken @@ -14993,9 +14942,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projectSummaries = output.projectSummaries @@ -15131,9 +15079,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -15285,9 +15232,8 @@ public enum ListTimeSeriesOutputError: Swift.Error, Swift.Equatable { extension ListTimeSeriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTimeSeriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.timeSeriesSummaries = output.timeSeriesSummaries @@ -16626,9 +16572,8 @@ public enum PutDefaultEncryptionConfigurationOutputError: Swift.Error, Swift.Equ extension PutDefaultEncryptionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutDefaultEncryptionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationStatus = output.configurationStatus self.encryptionType = output.encryptionType @@ -16906,9 +16851,8 @@ public enum PutStorageConfigurationOutputError: Swift.Error, Swift.Equatable { extension PutStorageConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutStorageConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationStatus = output.configurationStatus self.disassociatedDataStorage = output.disassociatedDataStorage @@ -17080,9 +17024,8 @@ extension IoTSiteWiseClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceArn = output.resourceArn @@ -17100,7 +17043,7 @@ extension ResourceAlreadyExistsException { } /// The resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17155,9 +17098,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17171,7 +17113,7 @@ extension ResourceNotFoundException { } /// The requested resource can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17285,9 +17227,8 @@ extension IoTSiteWiseClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17301,7 +17242,7 @@ extension ServiceUnavailableException { } /// The requested service is unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17496,9 +17437,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17512,7 +17452,7 @@ extension ThrottlingException { } /// Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on. For more information, see [Quotas](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) in the IoT SiteWise User Guide. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17747,9 +17687,8 @@ extension IoTSiteWiseClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -17765,7 +17704,7 @@ extension TooManyTagsException { } /// You've reached the limit for the number of tags allowed for a resource. For more information, see [Tag naming limits and requirements](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions) in the Amazon Web Services General Reference. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18057,9 +17996,8 @@ extension IoTSiteWiseClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18073,7 +18011,7 @@ extension UnauthorizedException { } /// You are not authorized. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18608,9 +18546,8 @@ public enum UpdateAssetModelOutputError: Swift.Error, Swift.Equatable { extension UpdateAssetModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssetModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetModelStatus = output.assetModelStatus } else { @@ -18682,9 +18619,8 @@ public enum UpdateAssetOutputError: Swift.Error, Swift.Equatable { extension UpdateAssetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetStatus = output.assetStatus } else { @@ -19095,9 +19031,8 @@ public enum UpdateGatewayCapabilityConfigurationOutputError: Swift.Error, Swift. extension UpdateGatewayCapabilityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGatewayCapabilityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capabilityNamespace = output.capabilityNamespace self.capabilitySyncStatus = output.capabilitySyncStatus @@ -19429,9 +19364,8 @@ public enum UpdatePortalOutputError: Swift.Error, Swift.Equatable { extension UpdatePortalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePortalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalStatus = output.portalStatus } else { diff --git a/Sources/Services/AWSIoTThingsGraph/IoTThingsGraphClient.swift b/Sources/Services/AWSIoTThingsGraph/IoTThingsGraphClient.swift index 14ddd34412b..e318065b9df 100644 --- a/Sources/Services/AWSIoTThingsGraph/IoTThingsGraphClient.swift +++ b/Sources/Services/AWSIoTThingsGraph/IoTThingsGraphClient.swift @@ -209,6 +209,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateEntityToThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -225,7 +226,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -246,6 +247,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFlowTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -262,7 +264,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSystemInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -299,7 +302,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -320,6 +323,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSystemTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -357,6 +361,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFlowTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -373,7 +378,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -394,6 +399,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -410,7 +416,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -431,6 +437,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSystemInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -447,7 +454,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSystemTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +513,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deploySystemInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +530,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -542,6 +551,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprecateFlowTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -558,7 +568,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -579,6 +589,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprecateSystemTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -595,7 +606,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +627,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -632,7 +644,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -653,6 +665,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "dissociateEntityFromThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -669,7 +682,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -711,6 +724,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -727,7 +741,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +762,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFlowTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +779,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -785,6 +800,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFlowTemplateRevisions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -801,7 +817,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -822,6 +838,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNamespaceDeletionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -838,7 +855,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +876,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSystemInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -875,7 +893,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -896,6 +914,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSystemTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +931,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -933,6 +952,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSystemTemplateRevisions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -949,7 +969,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -970,6 +990,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUploadStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -986,7 +1007,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1007,6 +1028,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFlowExecutionMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1023,7 +1045,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1066,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1083,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1081,6 +1104,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1097,7 +1121,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1118,6 +1142,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchFlowExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1134,7 +1159,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1155,6 +1180,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchFlowTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1171,7 +1197,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1192,6 +1218,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchSystemInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1208,7 +1235,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1229,6 +1256,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchSystemTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1245,7 +1273,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1266,6 +1294,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchThings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1282,7 +1311,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1303,6 +1332,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1319,7 +1349,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1370,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "undeploySystemInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1387,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1377,6 +1408,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1393,7 +1425,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1414,6 +1446,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFlowTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1430,7 +1463,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1451,6 +1484,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSystemTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1467,7 +1501,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1488,6 +1522,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotthingsgraph") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadEntityDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1504,7 +1539,7 @@ extension IoTThingsGraphClient: IoTThingsGraphClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTThingsGraph/models/Models.swift b/Sources/Services/AWSIoTThingsGraph/models/Models.swift index 3cb1e67b62f..5a4fe63e14a 100644 --- a/Sources/Services/AWSIoTThingsGraph/models/Models.swift +++ b/Sources/Services/AWSIoTThingsGraph/models/Models.swift @@ -205,9 +205,8 @@ public enum CreateFlowTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateFlowTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFlowTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -409,9 +408,8 @@ public enum CreateSystemInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateSystemInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSystemInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -538,9 +536,8 @@ public enum CreateSystemTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateSystemTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSystemTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -793,9 +790,8 @@ public enum DeleteNamespaceOutputError: Swift.Error, Swift.Equatable { extension DeleteNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespaceArn = output.namespaceArn self.namespaceName = output.namespaceName @@ -1137,9 +1133,8 @@ public enum DeploySystemInstanceOutputError: Swift.Error, Swift.Equatable { extension DeploySystemInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeploySystemInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.greengrassDeploymentId = output.greengrassDeploymentId self.summary = output.summary @@ -1468,9 +1463,8 @@ public enum DescribeNamespaceOutputError: Swift.Error, Swift.Equatable { extension DescribeNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespaceArn = output.namespaceArn self.namespaceName = output.namespaceName @@ -2447,9 +2441,8 @@ public enum GetEntitiesOutputError: Swift.Error, Swift.Equatable { extension GetEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.descriptions = output.descriptions } else { @@ -2585,9 +2578,8 @@ public enum GetFlowTemplateOutputError: Swift.Error, Swift.Equatable { extension GetFlowTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFlowTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description } else { @@ -2726,9 +2718,8 @@ public enum GetFlowTemplateRevisionsOutputError: Swift.Error, Swift.Equatable { extension GetFlowTemplateRevisionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFlowTemplateRevisionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -2840,9 +2831,8 @@ public enum GetNamespaceDeletionStatusOutputError: Swift.Error, Swift.Equatable extension GetNamespaceDeletionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNamespaceDeletionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.errorMessage = output.errorMessage @@ -2997,9 +2987,8 @@ public enum GetSystemInstanceOutputError: Swift.Error, Swift.Equatable { extension GetSystemInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSystemInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description } else { @@ -3126,9 +3115,8 @@ public enum GetSystemTemplateOutputError: Swift.Error, Swift.Equatable { extension GetSystemTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSystemTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description } else { @@ -3267,9 +3255,8 @@ public enum GetSystemTemplateRevisionsOutputError: Swift.Error, Swift.Equatable extension GetSystemTemplateRevisionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSystemTemplateRevisionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -3403,9 +3390,8 @@ public enum GetUploadStatusOutputError: Swift.Error, Swift.Equatable { extension GetUploadStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUploadStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.failureReason = output.failureReason @@ -3516,9 +3502,8 @@ extension GetUploadStatusOutputResponseBody: Swift.Decodable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3532,7 +3517,7 @@ extension InternalFailureException { } /// -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3568,9 +3553,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3584,7 +3568,7 @@ extension InvalidRequestException { } /// -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3620,9 +3604,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3636,7 +3619,7 @@ extension LimitExceededException { } /// -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3772,9 +3755,8 @@ public enum ListFlowExecutionMessagesOutputError: Swift.Error, Swift.Equatable { extension ListFlowExecutionMessagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFlowExecutionMessagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messages = output.messages self.nextToken = output.nextToken @@ -3932,9 +3914,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -4101,9 +4082,8 @@ extension IoTThingsGraphClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4117,7 +4097,7 @@ extension ResourceAlreadyExistsException { } /// -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4153,9 +4133,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4169,7 +4148,7 @@ extension ResourceInUseException { } /// -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4205,9 +4184,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4221,7 +4199,7 @@ extension ResourceNotFoundException { } /// -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4403,9 +4381,8 @@ public enum SearchEntitiesOutputError: Swift.Error, Swift.Equatable { extension SearchEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.descriptions = output.descriptions self.nextToken = output.nextToken @@ -4599,9 +4576,8 @@ public enum SearchFlowExecutionsOutputError: Swift.Error, Swift.Equatable { extension SearchFlowExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchFlowExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -4768,9 +4744,8 @@ public enum SearchFlowTemplatesOutputError: Swift.Error, Swift.Equatable { extension SearchFlowTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchFlowTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -4937,9 +4912,8 @@ public enum SearchSystemInstancesOutputError: Swift.Error, Swift.Equatable { extension SearchSystemInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchSystemInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -5106,9 +5080,8 @@ public enum SearchSystemTemplatesOutputError: Swift.Error, Swift.Equatable { extension SearchSystemTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchSystemTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -5278,9 +5251,8 @@ public enum SearchThingsOutputError: Swift.Error, Swift.Equatable { extension SearchThingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchThingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.things = output.things @@ -6113,9 +6085,8 @@ extension IoTThingsGraphClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6129,7 +6100,7 @@ extension ThrottlingException { } /// -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6242,9 +6213,8 @@ public enum UndeploySystemInstanceOutputError: Swift.Error, Swift.Equatable { extension UndeploySystemInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UndeploySystemInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -6495,9 +6465,8 @@ public enum UpdateFlowTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateFlowTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFlowTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -6637,9 +6606,8 @@ public enum UpdateSystemTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateSystemTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSystemTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -6775,9 +6743,8 @@ public enum UploadEntityDefinitionsOutputError: Swift.Error, Swift.Equatable { extension UploadEntityDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UploadEntityDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.uploadId = output.uploadId } else { diff --git a/Sources/Services/AWSIoTTwinMaker/IoTTwinMakerClient.swift b/Sources/Services/AWSIoTTwinMaker/IoTTwinMakerClient.swift index ab46bfd4537..d5186380ed7 100644 --- a/Sources/Services/AWSIoTTwinMaker/IoTTwinMakerClient.swift +++ b/Sources/Services/AWSIoTTwinMaker/IoTTwinMakerClient.swift @@ -208,6 +208,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutPropertyValues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -223,7 +224,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComponentType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -258,7 +260,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEntity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -293,7 +296,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createScene") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -328,7 +332,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSyncJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -363,7 +368,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -398,7 +404,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteComponentType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -430,7 +437,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEntity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -463,7 +471,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -483,6 +491,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScene") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -495,7 +504,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -515,6 +524,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSyncJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -527,7 +537,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -547,6 +557,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -559,7 +570,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -579,6 +590,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -594,7 +606,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -614,6 +626,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComponentType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -626,7 +639,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -646,6 +659,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEntity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -658,7 +672,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -678,6 +692,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPricingPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -690,7 +705,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -710,6 +725,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPropertyValue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -725,7 +741,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -745,6 +761,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPropertyValueHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data.")) @@ -760,7 +777,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -780,6 +797,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getScene") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -792,7 +810,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -812,6 +830,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSyncJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -825,7 +844,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -845,6 +864,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -857,7 +877,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -877,6 +897,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponentTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -892,7 +913,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -912,6 +933,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -927,7 +949,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -947,6 +969,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listScenes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -962,7 +985,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -982,6 +1005,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSyncJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -997,7 +1021,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1017,6 +1041,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSyncResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1032,7 +1057,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1077,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1067,7 +1093,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1113,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1102,7 +1129,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1149,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1137,7 +1165,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1185,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1170,7 +1199,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1190,6 +1219,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateComponentType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1205,7 +1235,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1225,6 +1255,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEntity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1240,7 +1271,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1291,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePricingPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1275,7 +1307,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1327,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateScene") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1310,7 +1343,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1330,6 +1363,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iottwinmaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -1345,7 +1379,7 @@ extension IoTTwinMakerClient: IoTTwinMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTTwinMaker/models/Models.swift b/Sources/Services/AWSIoTTwinMaker/models/Models.swift index 49e9fe33dfc..fba2d569697 100644 --- a/Sources/Services/AWSIoTTwinMaker/models/Models.swift +++ b/Sources/Services/AWSIoTTwinMaker/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access is denied. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -258,9 +257,8 @@ public enum BatchPutPropertyValuesOutputError: Swift.Error, Swift.Equatable { extension BatchPutPropertyValuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutPropertyValuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorEntries = output.errorEntries } else { @@ -1035,9 +1033,8 @@ extension IoTTwinMakerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1051,7 +1048,7 @@ extension ConflictException { } /// A conflict occurred. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1087,9 +1084,8 @@ extension ConflictExceptionBody: Swift.Decodable { extension ConnectorFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConnectorFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1103,7 +1099,7 @@ extension ConnectorFailureException { } /// The connector failed. -public struct ConnectorFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConnectorFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1139,9 +1135,8 @@ extension ConnectorFailureExceptionBody: Swift.Decodable { extension ConnectorTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConnectorTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1155,7 +1150,7 @@ extension ConnectorTimeoutException { } /// The connector timed out. -public struct ConnectorTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConnectorTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1430,9 +1425,8 @@ public enum CreateComponentTypeOutputError: Swift.Error, Swift.Equatable { extension CreateComponentTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateComponentTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -1666,9 +1660,8 @@ public enum CreateEntityOutputError: Swift.Error, Swift.Equatable { extension CreateEntityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEntityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -1926,9 +1919,8 @@ public enum CreateSceneOutputError: Swift.Error, Swift.Equatable { extension CreateSceneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSceneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -2099,9 +2091,8 @@ public enum CreateSyncJobOutputError: Swift.Error, Swift.Equatable { extension CreateSyncJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSyncJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -2300,9 +2291,8 @@ public enum CreateWorkspaceOutputError: Swift.Error, Swift.Equatable { extension CreateWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -2694,9 +2684,8 @@ public enum DeleteComponentTypeOutputError: Swift.Error, Swift.Equatable { extension DeleteComponentTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteComponentTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -2822,9 +2811,8 @@ public enum DeleteEntityOutputError: Swift.Error, Swift.Equatable { extension DeleteEntityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEntityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -3014,9 +3002,8 @@ public enum DeleteSyncJobOutputError: Swift.Error, Swift.Equatable { extension DeleteSyncJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSyncJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -3529,9 +3516,8 @@ public enum ExecuteQueryOutputError: Swift.Error, Swift.Equatable { extension ExecuteQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnDescriptions = output.columnDescriptions self.nextToken = output.nextToken @@ -3821,9 +3807,8 @@ public enum GetComponentTypeOutputError: Swift.Error, Swift.Equatable { extension GetComponentTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComponentTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.componentTypeId = output.componentTypeId @@ -4122,9 +4107,8 @@ public enum GetEntityOutputError: Swift.Error, Swift.Equatable { extension GetEntityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEntityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.components = output.components @@ -4339,9 +4323,8 @@ public enum GetPricingPlanOutputError: Swift.Error, Swift.Equatable { extension GetPricingPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPricingPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currentPricingPlan = output.currentPricingPlan self.pendingPricingPlan = output.pendingPricingPlan @@ -4651,9 +4634,8 @@ public enum GetPropertyValueHistoryOutputError: Swift.Error, Swift.Equatable { extension GetPropertyValueHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPropertyValueHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.propertyValues = output.propertyValues @@ -4898,9 +4880,8 @@ public enum GetPropertyValueOutputError: Swift.Error, Swift.Equatable { extension GetPropertyValueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPropertyValueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.propertyValues = output.propertyValues @@ -5064,9 +5045,8 @@ public enum GetSceneOutputError: Swift.Error, Swift.Equatable { extension GetSceneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSceneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.capabilities = output.capabilities @@ -5308,9 +5288,8 @@ public enum GetSyncJobOutputError: Swift.Error, Swift.Equatable { extension GetSyncJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSyncJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -5477,9 +5456,8 @@ public enum GetWorkspaceOutputError: Swift.Error, Swift.Equatable { extension GetWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -5613,9 +5591,8 @@ extension IoTTwinMakerClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5629,7 +5606,7 @@ extension InternalServerException { } /// An unexpected error has occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5951,9 +5928,8 @@ public enum ListComponentTypesOutputError: Swift.Error, Swift.Equatable { extension ListComponentTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentTypeSummaries = output.componentTypeSummaries self.maxResults = output.maxResults @@ -6209,9 +6185,8 @@ public enum ListEntitiesOutputError: Swift.Error, Swift.Equatable { extension ListEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitySummaries = output.entitySummaries self.nextToken = output.nextToken @@ -6364,9 +6339,8 @@ public enum ListScenesOutputError: Swift.Error, Swift.Equatable { extension ListScenesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListScenesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sceneSummaries = output.sceneSummaries @@ -6521,9 +6495,8 @@ public enum ListSyncJobsOutputError: Swift.Error, Swift.Equatable { extension ListSyncJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSyncJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.syncJobSummaries = output.syncJobSummaries @@ -6716,9 +6689,8 @@ public enum ListSyncResourcesOutputError: Swift.Error, Swift.Equatable { extension ListSyncResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSyncResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.syncResources = output.syncResources @@ -6872,9 +6844,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -7019,9 +6990,8 @@ public enum ListWorkspacesOutputError: Swift.Error, Swift.Equatable { extension ListWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workspaceSummaries = output.workspaceSummaries @@ -8293,9 +8263,8 @@ extension IoTTwinMakerClientTypes { extension QueryTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8309,7 +8278,7 @@ extension QueryTimeoutException { } /// The query timeout exception. -public struct QueryTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QueryTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8435,9 +8404,8 @@ extension IoTTwinMakerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8451,7 +8419,7 @@ extension ResourceNotFoundException { } /// The resource wasn't found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8656,9 +8624,8 @@ extension IoTTwinMakerClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8672,7 +8639,7 @@ extension ServiceQuotaExceededException { } /// The service quota was exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9403,9 +9370,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9419,7 +9385,7 @@ extension ThrottlingException { } /// The rate exceeds the limit. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9455,9 +9421,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9471,7 +9436,7 @@ extension TooManyTagsException { } /// The number of tags exceeds the limit. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9862,9 +9827,8 @@ public enum UpdateComponentTypeOutputError: Swift.Error, Swift.Equatable { extension UpdateComponentTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateComponentTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.componentTypeId = output.componentTypeId @@ -10082,9 +10046,8 @@ public enum UpdateEntityOutputError: Swift.Error, Swift.Equatable { extension UpdateEntityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEntityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state self.updateDateTime = output.updateDateTime @@ -10235,9 +10198,8 @@ public enum UpdatePricingPlanOutputError: Swift.Error, Swift.Equatable { extension UpdatePricingPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePricingPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currentPricingPlan = output.currentPricingPlan self.pendingPricingPlan = output.pendingPricingPlan @@ -10481,9 +10443,8 @@ public enum UpdateSceneOutputError: Swift.Error, Swift.Equatable { extension UpdateSceneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSceneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.updateDateTime = output.updateDateTime } else { @@ -10622,9 +10583,8 @@ public enum UpdateWorkspaceOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.updateDateTime = output.updateDateTime } else { @@ -10664,9 +10624,8 @@ extension UpdateWorkspaceOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10680,7 +10639,7 @@ extension ValidationException { } /// Failed -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIoTWireless/IoTWirelessClient.swift b/Sources/Services/AWSIoTWireless/IoTWirelessClient.swift index e8d44953458..ffd01396eee 100644 --- a/Sources/Services/AWSIoTWireless/IoTWirelessClient.swift +++ b/Sources/Services/AWSIoTWireless/IoTWirelessClient.swift @@ -208,6 +208,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateAwsAccountWithPartnerAccount") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateMulticastGroupWithFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -266,7 +268,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWirelessDeviceWithFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -301,7 +304,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -321,6 +324,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWirelessDeviceWithMulticastGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +360,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWirelessDeviceWithThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +376,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -391,6 +396,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWirelessGatewayWithCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -406,7 +412,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -426,6 +432,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWirelessGatewayWithThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -441,7 +448,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -461,6 +468,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelMulticastGroupSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -473,7 +481,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -493,6 +501,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDestination") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -516,7 +525,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -536,6 +545,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeviceProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -559,7 +569,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -579,6 +589,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFuotaTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -602,7 +613,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -622,6 +633,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMulticastGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -645,7 +657,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -665,6 +677,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkAnalyzerConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -688,7 +701,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -708,6 +721,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -731,7 +745,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -751,6 +765,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWirelessDevice") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -774,7 +789,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -794,6 +809,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWirelessGateway") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -817,7 +833,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -837,6 +853,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWirelessGatewayTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +869,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +889,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWirelessGatewayTaskDefinition") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -895,7 +913,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -915,6 +933,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -927,7 +946,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -947,6 +966,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeviceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +979,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +999,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -991,7 +1012,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1011,6 +1032,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMulticastGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1023,7 +1045,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1043,6 +1065,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkAnalyzerConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1055,7 +1078,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1075,6 +1098,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQueuedMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1112,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1132,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1120,7 +1145,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1140,6 +1165,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWirelessDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1152,7 +1178,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1172,6 +1198,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWirelessDeviceImportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1184,7 +1211,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1204,6 +1231,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWirelessGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1216,7 +1244,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1236,6 +1264,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWirelessGatewayTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1277,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1297,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWirelessGatewayTaskDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1310,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1330,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterWirelessDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1313,7 +1344,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1333,6 +1364,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateAwsAccountFromPartnerAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1346,7 +1378,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1366,6 +1398,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMulticastGroupFromFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1378,7 +1411,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1398,6 +1431,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWirelessDeviceFromFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1410,7 +1444,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1430,6 +1464,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWirelessDeviceFromMulticastGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1442,7 +1477,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1462,6 +1497,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWirelessDeviceFromThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1474,7 +1510,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1494,6 +1530,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWirelessGatewayFromCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1506,7 +1543,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1526,6 +1563,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWirelessGatewayFromThing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1538,7 +1576,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1558,6 +1596,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1570,7 +1609,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1590,6 +1629,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeviceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1602,7 +1642,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1622,6 +1662,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventConfigurationByResourceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1634,7 +1675,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1654,6 +1695,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1666,7 +1708,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1686,6 +1728,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLogLevelsByResourceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1698,7 +1741,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1718,6 +1761,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMulticastGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1730,7 +1774,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1750,6 +1794,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMulticastGroupSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1762,7 +1807,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1782,6 +1827,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkAnalyzerConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1794,7 +1840,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1814,6 +1860,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPartnerAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1827,7 +1874,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1848,6 +1895,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1861,7 +1909,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1882,6 +1930,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPositionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1895,7 +1944,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1915,6 +1964,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPositionEstimate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1930,7 +1980,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1950,6 +2000,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceEventConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1963,7 +2014,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1983,6 +2034,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceLogLevel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1996,7 +2048,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2016,6 +2068,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2029,7 +2082,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2049,6 +2102,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2062,7 +2116,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2082,6 +2136,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2094,7 +2149,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2114,6 +2169,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2127,7 +2183,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2147,6 +2203,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessDeviceImportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2159,7 +2216,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2179,6 +2236,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessDeviceStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2191,7 +2249,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2211,6 +2269,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2224,7 +2283,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2244,6 +2303,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessGatewayCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2256,7 +2316,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2276,6 +2336,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessGatewayFirmwareInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2288,7 +2349,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2308,6 +2369,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessGatewayStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2320,7 +2382,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2340,6 +2402,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessGatewayTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2352,7 +2415,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2372,6 +2435,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWirelessGatewayTaskDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2384,7 +2448,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2404,6 +2468,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2417,7 +2482,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2437,6 +2502,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2450,7 +2516,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2470,6 +2536,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevicesForWirelessDeviceImportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2483,7 +2550,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2503,6 +2570,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2516,7 +2584,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2536,6 +2604,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFuotaTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2549,7 +2618,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2569,6 +2638,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMulticastGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2582,7 +2652,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2602,6 +2672,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMulticastGroupsByFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2615,7 +2686,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2635,6 +2706,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNetworkAnalyzerConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2648,7 +2720,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2668,6 +2740,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPartnerAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2681,7 +2754,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2702,6 +2775,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPositionConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2715,7 +2789,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2735,6 +2809,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueuedMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2748,7 +2823,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2768,6 +2843,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2781,7 +2857,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2801,6 +2877,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2814,7 +2891,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2834,6 +2911,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWirelessDeviceImportTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2847,7 +2925,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2867,6 +2945,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWirelessDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2880,7 +2959,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2900,6 +2979,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWirelessGatewayTaskDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2913,7 +2993,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2933,6 +3013,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWirelessGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2946,7 +3027,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2967,6 +3048,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPositionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2983,7 +3065,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3003,6 +3085,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourceLogLevel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3019,7 +3102,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3039,6 +3122,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetAllResourceLogLevels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3051,7 +3135,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3071,6 +3155,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetResourceLogLevel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3084,7 +3169,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3104,6 +3189,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendDataToMulticastGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3119,7 +3205,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3139,6 +3225,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendDataToWirelessDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3154,7 +3241,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3174,6 +3261,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBulkAssociateWirelessDeviceWithMulticastGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3189,7 +3277,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3209,6 +3297,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBulkDisassociateWirelessDeviceFromMulticastGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3224,7 +3313,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3244,6 +3333,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3259,7 +3349,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3279,6 +3369,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMulticastGroupSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3294,7 +3385,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3314,6 +3405,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSingleWirelessDeviceImportTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3337,7 +3429,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3357,6 +3449,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startWirelessDeviceImportTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3380,7 +3473,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3400,6 +3493,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3416,7 +3510,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3436,6 +3530,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testWirelessDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3448,7 +3543,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3468,6 +3563,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3481,7 +3577,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3501,6 +3597,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3516,7 +3613,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3536,6 +3633,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventConfigurationByResourceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3551,7 +3649,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3571,6 +3669,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFuotaTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3586,7 +3685,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3606,6 +3705,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLogLevelsByResourceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3621,7 +3721,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3641,6 +3741,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMulticastGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3656,7 +3757,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3676,6 +3777,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNetworkAnalyzerConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3691,7 +3793,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3711,6 +3813,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePartnerAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3727,7 +3830,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3748,6 +3851,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3764,7 +3868,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3784,6 +3888,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceEventConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3800,7 +3905,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3820,6 +3925,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourcePosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3836,7 +3942,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3856,6 +3962,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWirelessDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3871,7 +3978,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3891,6 +3998,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWirelessDeviceImportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3906,7 +4014,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3926,6 +4034,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotwireless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWirelessGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3941,7 +4050,7 @@ extension IoTWirelessClient: IoTWirelessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIoTWireless/models/Models.swift b/Sources/Services/AWSIoTWireless/models/Models.swift index d88f11b420d..2b06a5da691 100644 --- a/Sources/Services/AWSIoTWireless/models/Models.swift +++ b/Sources/Services/AWSIoTWireless/models/Models.swift @@ -114,9 +114,8 @@ extension IoTWirelessClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -130,7 +129,7 @@ extension AccessDeniedException { } /// User does not have permission to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -411,9 +410,8 @@ public enum AssociateAwsAccountWithPartnerAccountOutputError: Swift.Error, Swift extension AssociateAwsAccountWithPartnerAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateAwsAccountWithPartnerAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.sidewalk = output.sidewalk @@ -942,9 +940,8 @@ public enum AssociateWirelessGatewayWithCertificateOutputError: Swift.Error, Swi extension AssociateWirelessGatewayWithCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateWirelessGatewayWithCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iotCertificateId = output.iotCertificateId } else { @@ -1673,9 +1670,8 @@ extension IoTWirelessClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1693,7 +1689,7 @@ extension ConflictException { } /// Adding, updating, or deleting the resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2024,9 +2020,8 @@ public enum CreateDestinationOutputError: Swift.Error, Swift.Equatable { extension CreateDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -2212,9 +2207,8 @@ public enum CreateDeviceProfileOutputError: Swift.Error, Swift.Equatable { extension CreateDeviceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeviceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -2464,9 +2458,8 @@ public enum CreateFuotaTaskOutputError: Swift.Error, Swift.Equatable { extension CreateFuotaTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFuotaTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -2655,9 +2648,8 @@ public enum CreateMulticastGroupOutputError: Swift.Error, Swift.Equatable { extension CreateMulticastGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMulticastGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -2894,9 +2886,8 @@ public enum CreateNetworkAnalyzerConfigurationOutputError: Swift.Error, Swift.Eq extension CreateNetworkAnalyzerConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkAnalyzerConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -3070,9 +3061,8 @@ public enum CreateServiceProfileOutputError: Swift.Error, Swift.Equatable { extension CreateServiceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3310,9 +3300,8 @@ public enum CreateWirelessDeviceOutputError: Swift.Error, Swift.Equatable { extension CreateWirelessDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWirelessDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3499,9 +3488,8 @@ public enum CreateWirelessGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateWirelessGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWirelessGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3690,9 +3678,8 @@ public enum CreateWirelessGatewayTaskDefinitionOutputError: Swift.Error, Swift.E extension CreateWirelessGatewayTaskDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWirelessGatewayTaskDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3829,9 +3816,8 @@ public enum CreateWirelessGatewayTaskOutputError: Swift.Error, Swift.Equatable { extension CreateWirelessGatewayTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWirelessGatewayTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status self.wirelessGatewayTaskDefinitionId = output.wirelessGatewayTaskDefinitionId @@ -6565,9 +6551,8 @@ public enum GetDestinationOutputError: Swift.Error, Swift.Equatable { extension GetDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.description = output.description @@ -6717,9 +6702,8 @@ public enum GetDeviceProfileOutputError: Swift.Error, Swift.Equatable { extension GetDeviceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -6844,9 +6828,8 @@ public enum GetEventConfigurationByResourceTypesOutputError: Swift.Error, Swift. extension GetEventConfigurationByResourceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventConfigurationByResourceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionStatus = output.connectionStatus self.deviceRegistrationState = output.deviceRegistrationState @@ -6986,9 +6969,8 @@ public enum GetFuotaTaskOutputError: Swift.Error, Swift.Equatable { extension GetFuotaTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFuotaTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -7187,9 +7169,8 @@ public enum GetLogLevelsByResourceTypesOutputError: Swift.Error, Swift.Equatable extension GetLogLevelsByResourceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLogLevelsByResourceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultLogLevel = output.defaultLogLevel self.wirelessDeviceLogOptions = output.wirelessDeviceLogOptions @@ -7327,9 +7308,8 @@ public enum GetMulticastGroupOutputError: Swift.Error, Swift.Equatable { extension GetMulticastGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMulticastGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -7489,9 +7469,8 @@ public enum GetMulticastGroupSessionOutputError: Swift.Error, Swift.Equatable { extension GetMulticastGroupSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMulticastGroupSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loRaWAN = output.loRaWAN } else { @@ -7591,9 +7570,8 @@ public enum GetNetworkAnalyzerConfigurationOutputError: Swift.Error, Swift.Equat extension GetNetworkAnalyzerConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkAnalyzerConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.description = output.description @@ -7779,9 +7757,8 @@ public enum GetPartnerAccountOutputError: Swift.Error, Swift.Equatable { extension GetPartnerAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPartnerAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountLinked = output.accountLinked self.sidewalk = output.sidewalk @@ -7912,9 +7889,8 @@ public enum GetPositionConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetPositionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPositionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destination = output.destination self.solvers = output.solvers @@ -8101,9 +8077,12 @@ public enum GetPositionEstimateOutputError: Swift.Error, Swift.Equatable { extension GetPositionEstimateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.geoJsonPayload = data - } else { + case .stream(let stream): + self.geoJsonPayload = try stream.readToEnd() + case .none: self.geoJsonPayload = nil } } @@ -8221,9 +8200,8 @@ public enum GetPositionOutputError: Swift.Error, Swift.Equatable { extension GetPositionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPositionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accuracy = output.accuracy self.position = output.position @@ -8411,9 +8389,8 @@ public enum GetResourceEventConfigurationOutputError: Swift.Error, Swift.Equatab extension GetResourceEventConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceEventConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionStatus = output.connectionStatus self.deviceRegistrationState = output.deviceRegistrationState @@ -8573,9 +8550,8 @@ public enum GetResourceLogLevelOutputError: Swift.Error, Swift.Equatable { extension GetResourceLogLevelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceLogLevelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logLevel = output.logLevel } else { @@ -8695,9 +8671,12 @@ public enum GetResourcePositionOutputError: Swift.Error, Swift.Equatable { extension GetResourcePositionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.geoJsonPayload = data - } else { + case .stream(let stream): + self.geoJsonPayload = try stream.readToEnd() + case .none: self.geoJsonPayload = nil } } @@ -8801,9 +8780,8 @@ public enum GetServiceEndpointOutputError: Swift.Error, Swift.Equatable { extension GetServiceEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverTrust = output.serverTrust self.serviceEndpoint = output.serviceEndpoint @@ -8923,9 +8901,8 @@ public enum GetServiceProfileOutputError: Swift.Error, Swift.Equatable { extension GetServiceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -9057,9 +9034,8 @@ public enum GetWirelessDeviceImportTaskOutputError: Swift.Error, Swift.Equatable extension GetWirelessDeviceImportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessDeviceImportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -9279,9 +9255,8 @@ public enum GetWirelessDeviceOutputError: Swift.Error, Swift.Equatable { extension GetWirelessDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.description = output.description @@ -9481,9 +9456,8 @@ public enum GetWirelessDeviceStatisticsOutputError: Swift.Error, Swift.Equatable extension GetWirelessDeviceStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessDeviceStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastUplinkReceivedAt = output.lastUplinkReceivedAt self.loRaWAN = output.loRaWAN @@ -9613,9 +9587,8 @@ public enum GetWirelessGatewayCertificateOutputError: Swift.Error, Swift.Equatab extension GetWirelessGatewayCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessGatewayCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iotCertificateId = output.iotCertificateId self.loRaWANNetworkServerCertificateId = output.loRaWANNetworkServerCertificateId @@ -9725,9 +9698,8 @@ public enum GetWirelessGatewayFirmwareInformationOutputError: Swift.Error, Swift extension GetWirelessGatewayFirmwareInformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessGatewayFirmwareInformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loRaWAN = output.loRaWAN } else { @@ -9847,9 +9819,8 @@ public enum GetWirelessGatewayOutputError: Swift.Error, Swift.Equatable { extension GetWirelessGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.description = output.description @@ -10009,9 +9980,8 @@ public enum GetWirelessGatewayStatisticsOutputError: Swift.Error, Swift.Equatabl extension GetWirelessGatewayStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessGatewayStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionStatus = output.connectionStatus self.lastUplinkReceivedAt = output.lastUplinkReceivedAt @@ -10131,9 +10101,8 @@ public enum GetWirelessGatewayTaskDefinitionOutputError: Swift.Error, Swift.Equa extension GetWirelessGatewayTaskDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessGatewayTaskDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.autoCreateTasks = output.autoCreateTasks @@ -10263,9 +10232,8 @@ public enum GetWirelessGatewayTaskOutputError: Swift.Error, Swift.Equatable { extension GetWirelessGatewayTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWirelessGatewayTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastUplinkReceivedAt = output.lastUplinkReceivedAt self.status = output.status @@ -10909,9 +10877,8 @@ extension IoTWirelessClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10925,7 +10892,7 @@ extension InternalServerException { } /// An unexpected error occurred while processing a request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11153,9 +11120,8 @@ public enum ListDestinationsOutputError: Swift.Error, Swift.Equatable { extension ListDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationList = output.destinationList self.nextToken = output.nextToken @@ -11297,9 +11263,8 @@ public enum ListDeviceProfilesOutputError: Swift.Error, Swift.Equatable { extension ListDeviceProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceProfileList = output.deviceProfileList self.nextToken = output.nextToken @@ -11456,9 +11421,8 @@ public enum ListDevicesForWirelessDeviceImportTaskOutputError: Swift.Error, Swif extension ListDevicesForWirelessDeviceImportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesForWirelessDeviceImportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationName = output.destinationName self.importedWirelessDeviceList = output.importedWirelessDeviceList @@ -11613,9 +11577,8 @@ public enum ListEventConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListEventConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventConfigurationsList = output.eventConfigurationsList self.nextToken = output.nextToken @@ -11749,9 +11712,8 @@ public enum ListFuotaTasksOutputError: Swift.Error, Swift.Equatable { extension ListFuotaTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFuotaTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fuotaTaskList = output.fuotaTaskList self.nextToken = output.nextToken @@ -11895,9 +11857,8 @@ public enum ListMulticastGroupsByFuotaTaskOutputError: Swift.Error, Swift.Equata extension ListMulticastGroupsByFuotaTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMulticastGroupsByFuotaTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multicastGroupList = output.multicastGroupList self.nextToken = output.nextToken @@ -12031,9 +11992,8 @@ public enum ListMulticastGroupsOutputError: Swift.Error, Swift.Equatable { extension ListMulticastGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMulticastGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multicastGroupList = output.multicastGroupList self.nextToken = output.nextToken @@ -12167,9 +12127,8 @@ public enum ListNetworkAnalyzerConfigurationsOutputError: Swift.Error, Swift.Equ extension ListNetworkAnalyzerConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNetworkAnalyzerConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkAnalyzerConfigurationList = output.networkAnalyzerConfigurationList self.nextToken = output.nextToken @@ -12303,9 +12262,8 @@ public enum ListPartnerAccountsOutputError: Swift.Error, Swift.Equatable { extension ListPartnerAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPartnerAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sidewalk = output.sidewalk @@ -12448,9 +12406,8 @@ public enum ListPositionConfigurationsOutputError: Swift.Error, Swift.Equatable extension ListPositionConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPositionConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.positionConfigurationList = output.positionConfigurationList @@ -12603,9 +12560,8 @@ public enum ListQueuedMessagesOutputError: Swift.Error, Swift.Equatable { extension ListQueuedMessagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueuedMessagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.downlinkQueueMessagesList = output.downlinkQueueMessagesList self.nextToken = output.nextToken @@ -12739,9 +12695,8 @@ public enum ListServiceProfilesOutputError: Swift.Error, Swift.Equatable { extension ListServiceProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceProfileList = output.serviceProfileList @@ -12872,9 +12827,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -13002,9 +12956,8 @@ public enum ListWirelessDeviceImportTasksOutputError: Swift.Error, Swift.Equatab extension ListWirelessDeviceImportTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWirelessDeviceImportTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.wirelessDeviceImportTaskList = output.wirelessDeviceImportTaskList @@ -13186,9 +13139,8 @@ public enum ListWirelessDevicesOutputError: Swift.Error, Swift.Equatable { extension ListWirelessDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWirelessDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.wirelessDeviceList = output.wirelessDeviceList @@ -13330,9 +13282,8 @@ public enum ListWirelessGatewayTaskDefinitionsOutputError: Swift.Error, Swift.Eq extension ListWirelessGatewayTaskDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWirelessGatewayTaskDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.taskDefinitions = output.taskDefinitions @@ -13466,9 +13417,8 @@ public enum ListWirelessGatewaysOutputError: Swift.Error, Swift.Equatable { extension ListWirelessGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWirelessGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.wirelessGatewayList = output.wirelessGatewayList @@ -16962,9 +16912,8 @@ public struct ResetResourceLogLevelOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -16982,7 +16931,7 @@ extension ResourceNotFoundException { } /// Resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17247,9 +17196,8 @@ public enum SendDataToMulticastGroupOutputError: Swift.Error, Swift.Equatable { extension SendDataToMulticastGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendDataToMulticastGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -17397,9 +17345,8 @@ public enum SendDataToWirelessDeviceOutputError: Swift.Error, Swift.Equatable { extension SendDataToWirelessDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendDataToWirelessDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -19075,9 +19022,8 @@ public enum StartSingleWirelessDeviceImportTaskOutputError: Swift.Error, Swift.E extension StartSingleWirelessDeviceImportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSingleWirelessDeviceImportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -19255,9 +19201,8 @@ public enum StartWirelessDeviceImportTaskOutputError: Swift.Error, Swift.Equatab extension StartWirelessDeviceImportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartWirelessDeviceImportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -19854,9 +19799,8 @@ public enum TestWirelessDeviceOutputError: Swift.Error, Swift.Equatable { extension TestWirelessDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestWirelessDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.result = output.result } else { @@ -19895,9 +19839,8 @@ extension TestWirelessDeviceOutputResponseBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19911,7 +19854,7 @@ extension ThrottlingException { } /// The request was denied because it exceeded the allowed API request rate. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19947,9 +19890,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -19965,7 +19907,7 @@ extension TooManyTagsException { } /// The request was denied because the resource can't have any more tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21612,9 +21554,9 @@ public struct UpdateResourcePositionInputBodyMiddleware: ClientRuntime.Middlewar Self.Context == H.Context { if let geoJsonPayload = input.operationInput.geoJsonPayload { - let geoJsonPayloaddata = geoJsonPayload - let geoJsonPayloadbody = ClientRuntime.HttpBody.data(geoJsonPayloaddata) - input.builder.withBody(geoJsonPayloadbody) + let geoJsonPayloadData = geoJsonPayload + let geoJsonPayloadBody = ClientRuntime.HttpBody.data(geoJsonPayloadData) + input.builder.withBody(geoJsonPayloadBody) } return try await next.handle(context: context, input: input) } @@ -22271,9 +22213,8 @@ extension IoTWirelessClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22287,7 +22228,7 @@ extension ValidationException { } /// The input did not meet the specified constraints. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIotDeviceAdvisor/IotDeviceAdvisorClient.swift b/Sources/Services/AWSIotDeviceAdvisor/IotDeviceAdvisorClient.swift index 06eea593d09..39cec14dc6a 100644 --- a/Sources/Services/AWSIotDeviceAdvisor/IotDeviceAdvisorClient.swift +++ b/Sources/Services/AWSIotDeviceAdvisor/IotDeviceAdvisorClient.swift @@ -208,6 +208,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSuiteDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSuiteDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -288,7 +291,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -308,6 +311,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSuiteDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -321,7 +325,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -341,6 +345,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSuiteRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -353,7 +358,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -373,6 +378,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSuiteRunReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -385,7 +391,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -405,6 +411,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSuiteDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +425,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -438,6 +445,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSuiteRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -451,7 +459,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +479,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -483,7 +492,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -503,6 +512,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSuiteRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -518,7 +528,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -538,6 +548,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopSuiteRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -550,7 +561,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -570,6 +581,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +597,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +617,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -618,7 +631,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -638,6 +651,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "iotdeviceadvisor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSuiteDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -653,7 +667,7 @@ extension IotDeviceAdvisorClient: IotDeviceAdvisorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIotDeviceAdvisor/models/Models.swift b/Sources/Services/AWSIotDeviceAdvisor/models/Models.swift index b2280fe8133..288201293a8 100644 --- a/Sources/Services/AWSIotDeviceAdvisor/models/Models.swift +++ b/Sources/Services/AWSIotDeviceAdvisor/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ConflictException { } /// Sends a Conflict Exception. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -153,9 +152,8 @@ public enum CreateSuiteDefinitionOutputError: Swift.Error, Swift.Equatable { extension CreateSuiteDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSuiteDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.suiteDefinitionArn = output.suiteDefinitionArn @@ -408,9 +406,8 @@ public enum GetEndpointOutputError: Swift.Error, Swift.Equatable { extension GetEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -523,9 +520,8 @@ public enum GetSuiteDefinitionOutputError: Swift.Error, Swift.Equatable { extension GetSuiteDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSuiteDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.lastModifiedAt = output.lastModifiedAt @@ -708,9 +704,8 @@ public enum GetSuiteRunOutputError: Swift.Error, Swift.Equatable { extension GetSuiteRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSuiteRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endTime = output.endTime self.errorReason = output.errorReason @@ -923,9 +918,8 @@ public enum GetSuiteRunReportOutputError: Swift.Error, Swift.Equatable { extension GetSuiteRunReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSuiteRunReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.qualificationReportDownloadUrl = output.qualificationReportDownloadUrl } else { @@ -1031,9 +1025,8 @@ extension IotDeviceAdvisorClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1047,7 +1040,7 @@ extension InternalServerException { } /// Sends an Internal Failure exception. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1156,9 +1149,8 @@ public enum ListSuiteDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListSuiteDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSuiteDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.suiteDefinitionInformationList = output.suiteDefinitionInformationList @@ -1304,9 +1296,8 @@ public enum ListSuiteRunsOutputError: Swift.Error, Swift.Equatable { extension ListSuiteRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSuiteRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.suiteRunsList = output.suiteRunsList @@ -1421,9 +1412,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1503,9 +1493,8 @@ extension IotDeviceAdvisorClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1519,7 +1508,7 @@ extension ResourceNotFoundException { } /// Sends a Resource Not Found exception. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1674,9 +1663,8 @@ public enum StartSuiteRunOutputError: Swift.Error, Swift.Equatable { extension StartSuiteRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSuiteRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.endpoint = output.endpoint @@ -2989,9 +2977,8 @@ public enum UpdateSuiteDefinitionOutputError: Swift.Error, Swift.Equatable { extension UpdateSuiteDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSuiteDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.lastUpdatedAt = output.lastUpdatedAt @@ -3080,9 +3067,8 @@ extension UpdateSuiteDefinitionOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3096,7 +3082,7 @@ extension ValidationException { } /// Sends a validation exception. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIvs/IvsClient.swift b/Sources/Services/AWSIvs/IvsClient.swift index 690fa7071fe..f3ce59a5b9b 100644 --- a/Sources/Services/AWSIvs/IvsClient.swift +++ b/Sources/Services/AWSIvs/IvsClient.swift @@ -208,6 +208,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetStreamKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRecordingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStreamKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePlaybackKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecordingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStreamKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPlaybackKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecordingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -643,7 +656,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -663,6 +676,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStreamKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +692,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +712,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStreamSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +728,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +748,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importPlaybackKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +764,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +784,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +800,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +820,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPlaybackKeyPairs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecordingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +872,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +892,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreamKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +908,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +928,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreamSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -923,7 +944,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +964,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -958,7 +980,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -978,6 +1000,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -990,7 +1013,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1010,6 +1033,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1025,7 +1049,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1069,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1085,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1105,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1095,7 +1121,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1115,6 +1141,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1128,7 +1155,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1175,7 @@ extension IvsClient: IvsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1163,7 +1191,7 @@ extension IvsClient: IvsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIvs/models/Models.swift b/Sources/Services/AWSIvs/models/Models.swift index ec3d176fdd5..c9ca6dc0513 100644 --- a/Sources/Services/AWSIvs/models/Models.swift +++ b/Sources/Services/AWSIvs/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -257,9 +256,8 @@ public enum BatchGetChannelOutputError: Swift.Error, Swift.Equatable { extension BatchGetChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.errors = output.errors @@ -406,9 +404,8 @@ public enum BatchGetStreamKeyOutputError: Swift.Error, Swift.Equatable { extension BatchGetStreamKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetStreamKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.streamKeys = output.streamKeys @@ -648,9 +645,8 @@ extension IvsClientTypes { extension ChannelNotBroadcasting { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChannelNotBroadcastingBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -664,7 +660,7 @@ extension ChannelNotBroadcasting { } /// -public struct ChannelNotBroadcasting: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChannelNotBroadcasting: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -840,9 +836,8 @@ extension IvsClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -856,7 +851,7 @@ extension ConflictException { } /// -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1058,9 +1053,8 @@ public enum CreateChannelOutputError: Swift.Error, Swift.Equatable { extension CreateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel self.streamKey = output.streamKey @@ -1249,9 +1243,8 @@ public enum CreateRecordingConfigurationOutputError: Swift.Error, Swift.Equatabl extension CreateRecordingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRecordingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordingConfiguration = output.recordingConfiguration } else { @@ -1392,9 +1385,8 @@ public enum CreateStreamKeyOutputError: Swift.Error, Swift.Equatable { extension CreateStreamKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStreamKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamKey = output.streamKey } else { @@ -1890,9 +1882,8 @@ public enum GetChannelOutputError: Swift.Error, Swift.Equatable { extension GetChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -2005,9 +1996,8 @@ public enum GetPlaybackKeyPairOutputError: Swift.Error, Swift.Equatable { extension GetPlaybackKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPlaybackKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPair = output.keyPair } else { @@ -2122,9 +2112,8 @@ public enum GetRecordingConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetRecordingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecordingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordingConfiguration = output.recordingConfiguration } else { @@ -2285,9 +2274,8 @@ public enum GetStreamKeyOutputError: Swift.Error, Swift.Equatable { extension GetStreamKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStreamKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamKey = output.streamKey } else { @@ -2354,9 +2342,8 @@ public enum GetStreamOutputError: Swift.Error, Swift.Equatable { extension GetStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stream = output.stream } else { @@ -2481,9 +2468,8 @@ public enum GetStreamSessionOutputError: Swift.Error, Swift.Equatable { extension GetStreamSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStreamSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamSession = output.streamSession } else { @@ -2636,9 +2622,8 @@ public enum ImportPlaybackKeyPairOutputError: Swift.Error, Swift.Equatable { extension ImportPlaybackKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportPlaybackKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPair = output.keyPair } else { @@ -2722,9 +2707,8 @@ extension IvsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -2738,7 +2722,7 @@ extension InternalServerException { } /// -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2884,9 +2868,8 @@ public enum ListChannelsOutputError: Swift.Error, Swift.Equatable { extension ListChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -3028,9 +3011,8 @@ public enum ListPlaybackKeyPairsOutputError: Swift.Error, Swift.Equatable { extension ListPlaybackKeyPairsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPlaybackKeyPairsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPairs = output.keyPairs self.nextToken = output.nextToken @@ -3174,9 +3156,8 @@ public enum ListRecordingConfigurationsOutputError: Swift.Error, Swift.Equatable extension ListRecordingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecordingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recordingConfigurations = output.recordingConfigurations @@ -3333,9 +3314,8 @@ public enum ListStreamKeysOutputError: Swift.Error, Swift.Equatable { extension ListStreamKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streamKeys = output.streamKeys @@ -3492,9 +3472,8 @@ public enum ListStreamSessionsOutputError: Swift.Error, Swift.Equatable { extension ListStreamSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streamSessions = output.streamSessions @@ -3648,9 +3627,8 @@ public enum ListStreamsOutputError: Swift.Error, Swift.Equatable { extension ListStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streams = output.streams @@ -3766,9 +3744,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3817,9 +3794,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension PendingVerification { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PendingVerificationBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -3833,7 +3809,7 @@ extension PendingVerification { } /// -public struct PendingVerification: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PendingVerification: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4387,9 +4363,8 @@ extension IvsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -4403,7 +4378,7 @@ extension ResourceNotFoundException { } /// -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4476,9 +4451,8 @@ extension IvsClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -4492,7 +4466,7 @@ extension ServiceQuotaExceededException { } /// -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5275,9 +5249,8 @@ extension IvsClientTypes { extension StreamUnavailable { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StreamUnavailableBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -5291,7 +5264,7 @@ extension StreamUnavailable { } /// -public struct StreamUnavailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StreamUnavailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5432,9 +5405,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -5448,7 +5420,7 @@ extension ThrottlingException { } /// -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5773,9 +5745,8 @@ public enum UpdateChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -5814,9 +5785,8 @@ extension UpdateChannelOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.exceptionMessage = output.exceptionMessage } else { @@ -5830,7 +5800,7 @@ extension ValidationException { } /// -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSIvschat/IvschatClient.swift b/Sources/Services/AWSIvschat/IvschatClient.swift index c5f3ec84b71..db74b7f8145 100644 --- a/Sources/Services/AWSIvschat/IvschatClient.swift +++ b/Sources/Services/AWSIvschat/IvschatClient.swift @@ -208,6 +208,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChatToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disconnectUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLoggingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRooms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -605,7 +617,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -625,6 +637,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -640,7 +653,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -660,6 +673,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -675,7 +689,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -695,6 +709,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +723,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +743,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -743,7 +759,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -763,6 +779,7 @@ extension IvschatClient: IvschatClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ivschat") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -778,7 +795,7 @@ extension IvschatClient: IvschatClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSIvschat/models/Models.swift b/Sources/Services/AWSIvschat/models/Models.swift index 9040f4f1168..7281ade2b00 100644 --- a/Sources/Services/AWSIvschat/models/Models.swift +++ b/Sources/Services/AWSIvschat/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -128,9 +127,8 @@ extension IvschatClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -148,7 +146,7 @@ extension ConflictException { } /// -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -352,9 +350,8 @@ public enum CreateChatTokenOutputError: Swift.Error, Swift.Equatable { extension CreateChatTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChatTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionExpirationTime = output.sessionExpirationTime self.token = output.token @@ -529,9 +526,8 @@ public enum CreateLoggingConfigurationOutputError: Swift.Error, Swift.Equatable extension CreateLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createTime = output.createTime @@ -841,9 +837,8 @@ public enum CreateRoomOutputError: Swift.Error, Swift.Equatable { extension CreateRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createTime = output.createTime @@ -1181,9 +1176,8 @@ public enum DeleteMessageOutputError: Swift.Error, Swift.Equatable { extension DeleteMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -1620,9 +1614,8 @@ public enum GetLoggingConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createTime = output.createTime @@ -1814,9 +1807,8 @@ public enum GetRoomOutputError: Swift.Error, Swift.Equatable { extension GetRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createTime = output.createTime @@ -1963,9 +1955,8 @@ extension GetRoomOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1979,7 +1970,7 @@ extension InternalServerException { } /// -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2099,9 +2090,8 @@ public enum ListLoggingConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListLoggingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLoggingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfigurations = output.loggingConfigurations self.nextToken = output.nextToken @@ -2281,9 +2271,8 @@ public enum ListRoomsOutputError: Swift.Error, Swift.Equatable { extension ListRoomsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoomsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rooms = output.rooms @@ -2399,9 +2388,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2659,9 +2647,8 @@ extension IvschatClientTypes { extension PendingVerification { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PendingVerificationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2675,7 +2662,7 @@ extension PendingVerification { } /// -public struct PendingVerification: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PendingVerification: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2712,9 +2699,8 @@ extension PendingVerificationBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -2732,7 +2718,7 @@ extension ResourceNotFoundException { } /// -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3096,9 +3082,8 @@ public enum SendEventOutputError: Swift.Error, Swift.Equatable { extension SendEventOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendEventOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -3137,9 +3122,8 @@ extension SendEventOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.limit = output.limit self.message = output.message @@ -3159,7 +3143,7 @@ extension ServiceQuotaExceededException { } /// -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3327,9 +3311,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.limit = output.limit self.message = output.message @@ -3349,7 +3332,7 @@ extension ThrottlingException { } /// -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3604,9 +3587,8 @@ public enum UpdateLoggingConfigurationOutputError: Swift.Error, Swift.Equatable extension UpdateLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createTime = output.createTime @@ -3901,9 +3883,8 @@ public enum UpdateRoomOutputError: Swift.Error, Swift.Equatable { extension UpdateRoomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRoomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createTime = output.createTime @@ -4050,9 +4031,8 @@ extension UpdateRoomOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -4070,7 +4050,7 @@ extension ValidationException { } /// -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKMS/KMSClient.swift b/Sources/Services/AWSKMS/KMSClient.swift index e50642f14ca..21d082c7bde 100644 --- a/Sources/Services/AWSKMS/KMSClient.swift +++ b/Sources/Services/AWSKMS/KMSClient.swift @@ -208,6 +208,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelKeyDeletion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -254,6 +255,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "connectCustomKeyStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -270,7 +272,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -303,6 +305,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -319,7 +322,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +359,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomKeyStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -372,7 +376,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +411,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -423,7 +428,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +454,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +471,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -506,6 +512,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "decrypt") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -522,7 +529,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +562,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -571,7 +579,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -601,6 +609,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomKeyStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -617,7 +626,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -641,6 +650,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImportedKeyMaterial") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -657,7 +667,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -687,6 +697,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomKeyStores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -703,7 +714,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +759,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +776,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +796,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +813,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +837,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableKeyRotation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -840,7 +854,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -870,6 +884,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disconnectCustomKeyStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -886,7 +901,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -906,6 +921,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -922,7 +938,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -946,6 +962,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableKeyRotation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -962,7 +979,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1027,6 +1044,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "encrypt") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1043,7 +1061,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1089,6 +1107,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateDataKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1105,7 +1124,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1135,6 +1154,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateDataKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1151,7 +1171,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1181,6 +1201,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateDataKeyPairWithoutPlaintext") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1197,7 +1218,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1227,6 +1248,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateDataKeyWithoutPlaintext") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1243,7 +1265,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1263,6 +1285,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateMac") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1279,7 +1302,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1299,6 +1322,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateRandom") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1315,7 +1339,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1335,6 +1359,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKeyPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1351,7 +1376,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1382,6 +1407,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKeyRotationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1398,7 +1424,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1422,6 +1448,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getParametersForImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1438,7 +1465,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1467,6 +1494,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1483,7 +1511,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1518,6 +1546,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importKeyMaterial") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1534,7 +1563,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1560,6 +1589,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1576,7 +1606,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1604,6 +1634,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGrants") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1620,7 +1651,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1644,6 +1675,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKeyPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1660,7 +1692,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1688,6 +1720,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1704,7 +1737,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1732,6 +1765,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1748,7 +1782,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1776,6 +1810,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRetirableGrants") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1792,7 +1827,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1812,6 +1847,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putKeyPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1828,7 +1864,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1908,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reEncrypt") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1888,7 +1925,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1921,6 +1958,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replicateKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1937,7 +1975,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1965,6 +2003,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retireGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1981,7 +2020,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2009,6 +2048,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2025,7 +2065,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2049,6 +2089,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "scheduleKeyDeletion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2065,7 +2106,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2094,6 +2135,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2110,7 +2152,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2138,6 +2180,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2154,7 +2197,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2182,6 +2225,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2198,7 +2242,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2233,6 +2277,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2249,7 +2294,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2279,6 +2324,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCustomKeyStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2295,7 +2341,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2319,6 +2365,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateKeyDescription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2335,7 +2382,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2366,6 +2413,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePrimaryRegion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2382,7 +2430,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2402,6 +2450,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verify") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2418,7 +2467,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2438,6 +2487,7 @@ extension KMSClient: KMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verifyMac") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2454,7 +2504,7 @@ extension KMSClient: KMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKMS/models/Models.swift b/Sources/Services/AWSKMS/models/Models.swift index a225d1470d7..6bebdc48f0c 100644 --- a/Sources/Services/AWSKMS/models/Models.swift +++ b/Sources/Services/AWSKMS/models/Models.swift @@ -114,9 +114,8 @@ extension KMSClientTypes { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -130,7 +129,7 @@ extension AlreadyExistsException { } /// The request was rejected because it attempted to create a resource that already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -251,9 +250,8 @@ public enum CancelKeyDeletionOutputError: Swift.Error, Swift.Equatable { extension CancelKeyDeletionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelKeyDeletionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyId = output.keyId } else { @@ -292,9 +290,8 @@ extension CancelKeyDeletionOutputResponseBody: Swift.Decodable { extension CloudHsmClusterInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmClusterInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -308,7 +305,7 @@ extension CloudHsmClusterInUseException { } /// The request was rejected because the specified CloudHSM cluster is already associated with an CloudHSM key store in the account, or it shares a backup history with an CloudHSM key store in the account. Each CloudHSM key store in the account must be associated with a different CloudHSM cluster. CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster certificate of an CloudHSM cluster, use the [DescribeClusters](https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) operation. -public struct CloudHsmClusterInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmClusterInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -344,9 +341,8 @@ extension CloudHsmClusterInUseExceptionBody: Swift.Decodable { extension CloudHsmClusterInvalidConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmClusterInvalidConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -369,7 +365,7 @@ extension CloudHsmClusterInvalidConfigurationException { /// /// /// For information about the requirements for an CloudHSM cluster that is associated with an CloudHSM key store, see [Assemble the Prerequisites](https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore) in the Key Management Service Developer Guide. For information about creating a private subnet for an CloudHSM cluster, see [Create a Private Subnet](https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html) in the CloudHSM User Guide. For information about cluster security groups, see [Configure a Default Security Group](https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html) in the CloudHSM User Guide . -public struct CloudHsmClusterInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmClusterInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -405,9 +401,8 @@ extension CloudHsmClusterInvalidConfigurationExceptionBody: Swift.Decodable { extension CloudHsmClusterNotActiveException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmClusterNotActiveExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -421,7 +416,7 @@ extension CloudHsmClusterNotActiveException { } /// The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not active. Initialize and activate the cluster and try the command again. For detailed instructions, see [Getting Started](https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) in the CloudHSM User Guide. -public struct CloudHsmClusterNotActiveException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmClusterNotActiveException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -457,9 +452,8 @@ extension CloudHsmClusterNotActiveExceptionBody: Swift.Decodable { extension CloudHsmClusterNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmClusterNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -473,7 +467,7 @@ extension CloudHsmClusterNotFoundException { } /// The request was rejected because KMS cannot find the CloudHSM cluster with the specified cluster ID. Retry the request with a different cluster ID. -public struct CloudHsmClusterNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmClusterNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -509,9 +503,8 @@ extension CloudHsmClusterNotFoundExceptionBody: Swift.Decodable { extension CloudHsmClusterNotRelatedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloudHsmClusterNotRelatedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -525,7 +518,7 @@ extension CloudHsmClusterNotRelatedException { } /// The request was rejected because the specified CloudHSM cluster has a different cluster certificate than the original cluster. You cannot use the operation to specify an unrelated cluster for an CloudHSM key store. Specify an CloudHSM cluster that shares a backup history with the original cluster. This includes clusters that were created from a backup of the current cluster, and clusters that were created from the same backup that produced the current cluster. CloudHSM clusters that share a backup history have the same cluster certificate. To view the cluster certificate of an CloudHSM cluster, use the [DescribeClusters](https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) operation. -public struct CloudHsmClusterNotRelatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CloudHsmClusterNotRelatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1107,9 +1100,8 @@ public enum CreateCustomKeyStoreOutputError: Swift.Error, Swift.Equatable { extension CreateCustomKeyStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomKeyStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customKeyStoreId = output.customKeyStoreId } else { @@ -1337,9 +1329,8 @@ public enum CreateGrantOutputError: Swift.Error, Swift.Equatable { extension CreateGrantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGrantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grantId = output.grantId self.grantToken = output.grantToken @@ -1684,9 +1675,8 @@ public enum CreateKeyOutputError: Swift.Error, Swift.Equatable { extension CreateKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyMetadata = output.keyMetadata } else { @@ -1725,9 +1715,8 @@ extension CreateKeyOutputResponseBody: Swift.Decodable { extension CustomKeyStoreHasCMKsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CustomKeyStoreHasCMKsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1741,7 +1730,7 @@ extension CustomKeyStoreHasCMKsException { } /// The request was rejected because the custom key store contains KMS keys. After verifying that you do not need to use the KMS keys, use the [ScheduleKeyDeletion] operation to delete the KMS keys. After they are deleted, you can delete the custom key store. -public struct CustomKeyStoreHasCMKsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomKeyStoreHasCMKsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1777,9 +1766,8 @@ extension CustomKeyStoreHasCMKsExceptionBody: Swift.Decodable { extension CustomKeyStoreInvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CustomKeyStoreInvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1803,7 +1791,7 @@ extension CustomKeyStoreInvalidStateException { /// * You requested the [UpdateCustomKeyStore] or [DeleteCustomKeyStore] operation on a custom key store that is not disconnected. This operation is valid only when the custom key store ConnectionState is DISCONNECTED. /// /// * You requested the [GenerateRandom] operation in an CloudHSM key store that is not connected. This operation is valid only when the CloudHSM key store ConnectionState is CONNECTED. -public struct CustomKeyStoreInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomKeyStoreInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1839,9 +1827,8 @@ extension CustomKeyStoreInvalidStateExceptionBody: Swift.Decodable { extension CustomKeyStoreNameInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CustomKeyStoreNameInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1855,7 +1842,7 @@ extension CustomKeyStoreNameInUseException { } /// The request was rejected because the specified custom key store name is already assigned to another custom key store in the account. Try again with a custom key store name that is unique in the account. -public struct CustomKeyStoreNameInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomKeyStoreNameInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1891,9 +1878,8 @@ extension CustomKeyStoreNameInUseExceptionBody: Swift.Decodable { extension CustomKeyStoreNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CustomKeyStoreNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1907,7 +1893,7 @@ extension CustomKeyStoreNotFoundException { } /// The request was rejected because KMS cannot find a custom key store with the specified key store name or ID. -public struct CustomKeyStoreNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomKeyStoreNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2475,9 +2461,8 @@ extension DecryptOutputResponse: Swift.CustomDebugStringConvertible { extension DecryptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DecryptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.encryptionAlgorithm = output.encryptionAlgorithm self.keyId = output.keyId @@ -2805,9 +2790,8 @@ public struct DeleteImportedKeyMaterialOutputResponse: Swift.Equatable { extension DependencyTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependencyTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2821,7 +2805,7 @@ extension DependencyTimeoutException { } /// The system timed out while trying to fulfill the request. You can retry the request. -public struct DependencyTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2966,9 +2950,8 @@ public enum DescribeCustomKeyStoresOutputError: Swift.Error, Swift.Equatable { extension DescribeCustomKeyStoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomKeyStoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customKeyStores = output.customKeyStores self.nextMarker = output.nextMarker @@ -3147,9 +3130,8 @@ public enum DescribeKeyOutputError: Swift.Error, Swift.Equatable { extension DescribeKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyMetadata = output.keyMetadata } else { @@ -3382,9 +3364,8 @@ public struct DisableKeyRotationOutputResponse: Swift.Equatable { extension DisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3398,7 +3379,7 @@ extension DisabledException { } /// The request was rejected because the specified KMS key is not enabled. -public struct DisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3887,9 +3868,8 @@ public enum EncryptOutputError: Swift.Error, Swift.Equatable { extension EncryptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EncryptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ciphertextBlob = output.ciphertextBlob self.encryptionAlgorithm = output.encryptionAlgorithm @@ -4018,9 +3998,8 @@ extension KMSClientTypes { extension ExpiredImportTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredImportTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4034,7 +4013,7 @@ extension ExpiredImportTokenException { } /// The request was rejected because the specified import token is expired. Use [GetParametersForImport] to get a new import token and public key, use the new public key to encrypt the key material, and then try the request again. -public struct ExpiredImportTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredImportTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4242,9 +4221,8 @@ extension GenerateDataKeyOutputResponse: Swift.CustomDebugStringConvertible { extension GenerateDataKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateDataKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ciphertextBlob = output.ciphertextBlob self.keyId = output.keyId @@ -4466,9 +4444,8 @@ extension GenerateDataKeyPairOutputResponse: Swift.CustomDebugStringConvertible extension GenerateDataKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateDataKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyId = output.keyId self.keyPairSpec = output.keyPairSpec @@ -4705,9 +4682,8 @@ public enum GenerateDataKeyPairWithoutPlaintextOutputError: Swift.Error, Swift.E extension GenerateDataKeyPairWithoutPlaintextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateDataKeyPairWithoutPlaintextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyId = output.keyId self.keyPairSpec = output.keyPairSpec @@ -4943,9 +4919,8 @@ public enum GenerateDataKeyWithoutPlaintextOutputError: Swift.Error, Swift.Equat extension GenerateDataKeyWithoutPlaintextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateDataKeyWithoutPlaintextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ciphertextBlob = output.ciphertextBlob self.keyId = output.keyId @@ -5131,9 +5106,8 @@ public enum GenerateMacOutputError: Swift.Error, Swift.Equatable { extension GenerateMacOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateMacOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyId = output.keyId self.mac = output.mac @@ -5286,9 +5260,8 @@ extension GenerateRandomOutputResponse: Swift.CustomDebugStringConvertible { extension GenerateRandomOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateRandomOutputResponseBody = try responseDecoder.decode(responseBody: data) self.plaintext = output.plaintext } else { @@ -5425,9 +5398,8 @@ public enum GetKeyPolicyOutputError: Swift.Error, Swift.Equatable { extension GetKeyPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetKeyPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -5553,9 +5525,8 @@ public enum GetKeyRotationStatusOutputError: Swift.Error, Swift.Equatable { extension GetKeyRotationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetKeyRotationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyRotationEnabled = output.keyRotationEnabled } else { @@ -5712,9 +5683,8 @@ extension GetParametersForImportOutputResponse: Swift.CustomDebugStringConvertib extension GetParametersForImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetParametersForImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importToken = output.importToken self.keyId = output.keyId @@ -5906,9 +5876,8 @@ public enum GetPublicKeyOutputError: Swift.Error, Swift.Equatable { extension GetPublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPublicKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerMasterKeySpec = output.customerMasterKeySpec self.encryptionAlgorithms = output.encryptionAlgorithms @@ -6451,9 +6420,8 @@ public struct ImportKeyMaterialOutputResponse: Swift.Equatable { extension IncorrectKeyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncorrectKeyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6467,7 +6435,7 @@ extension IncorrectKeyException { } /// The request was rejected because the specified KMS key cannot decrypt the data. The KeyId in a [Decrypt] request and the SourceKeyId in a [ReEncrypt] request must identify the same KMS key that was used to encrypt the ciphertext. -public struct IncorrectKeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncorrectKeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6503,9 +6471,8 @@ extension IncorrectKeyExceptionBody: Swift.Decodable { extension IncorrectKeyMaterialException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncorrectKeyMaterialExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6519,7 +6486,7 @@ extension IncorrectKeyMaterialException { } /// The request was rejected because the key material in the request is, expired, invalid, or is not the same key material that was previously imported into this KMS key. -public struct IncorrectKeyMaterialException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncorrectKeyMaterialException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6555,9 +6522,8 @@ extension IncorrectKeyMaterialExceptionBody: Swift.Decodable { extension IncorrectTrustAnchorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncorrectTrustAnchorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6571,7 +6537,7 @@ extension IncorrectTrustAnchorException { } /// The request was rejected because the trust anchor certificate in the request to create an CloudHSM key store is not the trust anchor certificate for the specified CloudHSM cluster. When you [initialize the CloudHSM cluster](https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), you create the trust anchor certificate and save it in the customerCA.crt file. -public struct IncorrectTrustAnchorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncorrectTrustAnchorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6607,9 +6573,8 @@ extension IncorrectTrustAnchorExceptionBody: Swift.Decodable { extension InvalidAliasNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAliasNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6623,7 +6588,7 @@ extension InvalidAliasNameException { } /// The request was rejected because the specified alias name is not valid. -public struct InvalidAliasNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAliasNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6659,9 +6624,8 @@ extension InvalidAliasNameExceptionBody: Swift.Decodable { extension InvalidArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6675,7 +6639,7 @@ extension InvalidArnException { } /// The request was rejected because a specified ARN, or an ARN in a key policy, is not valid. -public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6711,9 +6675,8 @@ extension InvalidArnExceptionBody: Swift.Decodable { extension InvalidCiphertextException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCiphertextExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6727,7 +6690,7 @@ extension InvalidCiphertextException { } /// From the [Decrypt] or [ReEncrypt] operation, the request was rejected because the specified ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid. From the [ImportKeyMaterial] operation, the request was rejected because KMS could not decrypt the encrypted (wrapped) key material. -public struct InvalidCiphertextException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCiphertextException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6763,9 +6726,8 @@ extension InvalidCiphertextExceptionBody: Swift.Decodable { extension InvalidGrantIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidGrantIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6779,7 +6741,7 @@ extension InvalidGrantIdException { } /// The request was rejected because the specified GrantId is not valid. -public struct InvalidGrantIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGrantIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6815,9 +6777,8 @@ extension InvalidGrantIdExceptionBody: Swift.Decodable { extension InvalidGrantTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidGrantTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6831,7 +6792,7 @@ extension InvalidGrantTokenException { } /// The request was rejected because the specified grant token is not valid. -public struct InvalidGrantTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGrantTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6867,9 +6828,8 @@ extension InvalidGrantTokenExceptionBody: Swift.Decodable { extension InvalidImportTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidImportTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6883,7 +6843,7 @@ extension InvalidImportTokenException { } /// The request was rejected because the provided import token is invalid or is associated with a different KMS key. -public struct InvalidImportTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidImportTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6919,9 +6879,8 @@ extension InvalidImportTokenExceptionBody: Swift.Decodable { extension InvalidKeyUsageException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidKeyUsageExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6942,7 +6901,7 @@ extension InvalidKeyUsageException { /// /// /// For encrypting, decrypting, re-encrypting, and generating data keys, the KeyUsage must be ENCRYPT_DECRYPT. For signing and verifying messages, the KeyUsage must be SIGN_VERIFY. For generating and verifying message authentication codes (MACs), the KeyUsage must be GENERATE_VERIFY_MAC. To find the KeyUsage of a KMS key, use the [DescribeKey] operation. To find the encryption or signing algorithms supported for a particular KMS key, use the [DescribeKey] operation. -public struct InvalidKeyUsageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKeyUsageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6978,9 +6937,8 @@ extension InvalidKeyUsageExceptionBody: Swift.Decodable { extension InvalidMarkerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMarkerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6994,7 +6952,7 @@ extension InvalidMarkerException { } /// The request was rejected because the marker that specifies where pagination should next begin is not valid. -public struct InvalidMarkerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMarkerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7030,9 +6988,8 @@ extension InvalidMarkerExceptionBody: Swift.Decodable { extension KMSInternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSInternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7046,7 +7003,7 @@ extension KMSInternalException { } /// The request was rejected because an internal exception occurred. The request can be retried. -public struct KMSInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7082,9 +7039,8 @@ extension KMSInternalExceptionBody: Swift.Decodable { extension KMSInvalidMacException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSInvalidMacExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7098,7 +7054,7 @@ extension KMSInvalidMacException { } /// The request was rejected because the HMAC verification failed. HMAC verification fails when the HMAC computed by using the specified message, HMAC KMS key, and MAC algorithm does not match the HMAC specified in the request. -public struct KMSInvalidMacException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInvalidMacException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7134,9 +7090,8 @@ extension KMSInvalidMacExceptionBody: Swift.Decodable { extension KMSInvalidSignatureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSInvalidSignatureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7150,7 +7105,7 @@ extension KMSInvalidSignatureException { } /// The request was rejected because the signature verification failed. Signature verification fails when it cannot confirm that signature was produced by signing the specified message with the specified KMS key and signing algorithm. -public struct KMSInvalidSignatureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInvalidSignatureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7186,9 +7141,8 @@ extension KMSInvalidSignatureExceptionBody: Swift.Decodable { extension KMSInvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSInvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7206,7 +7160,7 @@ extension KMSInvalidStateException { /// * The key state of the KMS key is not compatible with the operation. To find the key state, use the [DescribeKey] operation. For more information about which key states are compatible with each KMS operation, see [Key states of KMS keys](https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the Key Management Service Developer Guide . /// /// * For cryptographic operations on KMS keys in custom key stores, this exception represents a general failure with many possible causes. To identify the cause, see the error message that accompanies the exception. -public struct KMSInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7743,9 +7697,8 @@ extension KMSClientTypes { extension KeyUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KeyUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7759,7 +7712,7 @@ extension KeyUnavailableException { } /// The request was rejected because the specified KMS key was not available. You can retry the request. -public struct KeyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KeyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7830,9 +7783,8 @@ extension KMSClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7846,7 +7798,7 @@ extension LimitExceededException { } /// The request was rejected because a quota was exceeded. For more information, see [Quotas](https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) in the Key Management Service Developer Guide. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7990,9 +7942,8 @@ public enum ListAliasesOutputError: Swift.Error, Swift.Equatable { extension ListAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliases = output.aliases self.nextMarker = output.nextMarker @@ -8197,9 +8148,8 @@ public enum ListGrantsOutputError: Swift.Error, Swift.Equatable { extension ListGrantsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGrantsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grants = output.grants self.nextMarker = output.nextMarker @@ -8376,9 +8326,8 @@ public enum ListKeyPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListKeyPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListKeyPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.policyNames = output.policyNames @@ -8531,9 +8480,8 @@ public enum ListKeysOutputError: Swift.Error, Swift.Equatable { extension ListKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keys = output.keys self.nextMarker = output.nextMarker @@ -8708,9 +8656,8 @@ public enum ListResourceTagsOutputError: Swift.Error, Swift.Equatable { extension ListResourceTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.tags = output.tags @@ -8880,9 +8827,8 @@ public enum ListRetirableGrantsOutputError: Swift.Error, Swift.Equatable { extension ListRetirableGrantsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRetirableGrantsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grants = output.grants self.nextMarker = output.nextMarker @@ -8988,9 +8934,8 @@ extension KMSClientTypes { extension MalformedPolicyDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedPolicyDocumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9004,7 +8949,7 @@ extension MalformedPolicyDocumentException { } /// The request was rejected because the specified policy is not syntactically or semantically correct. -public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9216,9 +9161,8 @@ extension KMSClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9232,7 +9176,7 @@ extension NotFoundException { } /// The request was rejected because the specified entity or resource could not be found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9692,9 +9636,8 @@ public enum ReEncryptOutputError: Swift.Error, Swift.Equatable { extension ReEncryptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReEncryptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ciphertextBlob = output.ciphertextBlob self.destinationEncryptionAlgorithm = output.destinationEncryptionAlgorithm @@ -9957,9 +9900,8 @@ public enum ReplicateKeyOutputError: Swift.Error, Swift.Equatable { extension ReplicateKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicateKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicaKeyMetadata = output.replicaKeyMetadata self.replicaPolicy = output.replicaPolicy @@ -10351,9 +10293,8 @@ public enum ScheduleKeyDeletionOutputError: Swift.Error, Swift.Equatable { extension ScheduleKeyDeletionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ScheduleKeyDeletionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletionDate = output.deletionDate self.keyId = output.keyId @@ -10592,9 +10533,8 @@ public enum SignOutputError: Swift.Error, Swift.Equatable { extension SignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyId = output.keyId self.signature = output.signature @@ -10763,9 +10703,8 @@ extension KMSClientTypes { extension TagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10779,7 +10718,7 @@ extension TagException { } /// The request was rejected because one or more tags are not valid. -public struct TagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10937,9 +10876,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10953,7 +10891,7 @@ extension UnsupportedOperationException { } /// The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11947,9 +11885,8 @@ public enum VerifyMacOutputError: Swift.Error, Swift.Equatable { extension VerifyMacOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VerifyMacOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyId = output.keyId self.macAlgorithm = output.macAlgorithm @@ -12046,9 +11983,8 @@ public enum VerifyOutputError: Swift.Error, Swift.Equatable { extension VerifyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VerifyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyId = output.keyId self.signatureValid = output.signatureValid @@ -12136,9 +12072,8 @@ extension KMSClientTypes { extension XksKeyAlreadyInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksKeyAlreadyInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12152,7 +12087,7 @@ extension XksKeyAlreadyInUseException { } /// The request was rejected because the (XksKeyId) is already associated with a KMS key in this external key store. Each KMS key in an external key store must be associated with a different external key. -public struct XksKeyAlreadyInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksKeyAlreadyInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12223,9 +12158,8 @@ extension KMSClientTypes { extension XksKeyInvalidConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksKeyInvalidConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12239,7 +12173,7 @@ extension XksKeyInvalidConfigurationException { } /// The request was rejected because the external key specified by the XksKeyId parameter did not meet the configuration requirements for an external key store. The external key must be an AES-256 symmetric key that is enabled and performs encryption and decryption. -public struct XksKeyInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksKeyInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12275,9 +12209,8 @@ extension XksKeyInvalidConfigurationExceptionBody: Swift.Decodable { extension XksKeyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksKeyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12291,7 +12224,7 @@ extension XksKeyNotFoundException { } /// The request was rejected because the external key store proxy could not find the external key. This exception is thrown when the value of the XksKeyId parameter doesn't identify a key in the external key manager associated with the external key proxy. Verify that the XksKeyId represents an existing key in the external key manager. Use the key identifier that the external key store proxy uses to identify the key. For details, see the documentation provided with your external key store proxy or key manager. -public struct XksKeyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksKeyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12491,9 +12424,8 @@ extension KMSClientTypes { extension XksProxyIncorrectAuthenticationCredentialException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyIncorrectAuthenticationCredentialExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12507,7 +12439,7 @@ extension XksProxyIncorrectAuthenticationCredentialException { } /// The request was rejected because the proxy credentials failed to authenticate to the specified external key store proxy. The specified external key store proxy rejected a status request from KMS due to invalid credentials. This can indicate an error in the credentials or in the identification of the external key store proxy. -public struct XksProxyIncorrectAuthenticationCredentialException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyIncorrectAuthenticationCredentialException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12543,9 +12475,8 @@ extension XksProxyIncorrectAuthenticationCredentialExceptionBody: Swift.Decodabl extension XksProxyInvalidConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyInvalidConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12559,7 +12490,7 @@ extension XksProxyInvalidConfigurationException { } /// The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the requirements for an external key store proxy. For details, see the exception message. -public struct XksProxyInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12595,9 +12526,8 @@ extension XksProxyInvalidConfigurationExceptionBody: Swift.Decodable { extension XksProxyInvalidResponseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyInvalidResponseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12611,7 +12541,7 @@ extension XksProxyInvalidResponseException { } /// KMS cannot interpret the response it received from the external key store proxy. The problem might be a poorly constructed response, but it could also be a transient network issue. If you see this error repeatedly, report it to the proxy vendor. -public struct XksProxyInvalidResponseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyInvalidResponseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12647,9 +12577,8 @@ extension XksProxyInvalidResponseExceptionBody: Swift.Decodable { extension XksProxyUriEndpointInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyUriEndpointInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12663,7 +12592,7 @@ extension XksProxyUriEndpointInUseException { } /// The request was rejected because the concatenation of the XksProxyUriEndpoint is already associated with an external key store in the Amazon Web Services account and Region. Each external key store in an account and Region must use a unique external key store proxy address. -public struct XksProxyUriEndpointInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyUriEndpointInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12699,9 +12628,8 @@ extension XksProxyUriEndpointInUseExceptionBody: Swift.Decodable { extension XksProxyUriInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyUriInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12715,7 +12643,7 @@ extension XksProxyUriInUseException { } /// The request was rejected because the concatenation of the XksProxyUriEndpoint and XksProxyUriPath is already associated with an external key store in the Amazon Web Services account and Region. Each external key store in an account and Region must use a unique external key store proxy API address. -public struct XksProxyUriInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyUriInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12751,9 +12679,8 @@ extension XksProxyUriInUseExceptionBody: Swift.Decodable { extension XksProxyUriUnreachableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyUriUnreachableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12767,7 +12694,7 @@ extension XksProxyUriUnreachableException { } /// KMS was unable to reach the specified XksProxyUriPath. The path must be reachable before you create the external key store or update its settings. This exception is also thrown when the external key store proxy response to a GetHealthStatus request indicates that all external key manager instances are unavailable. -public struct XksProxyUriUnreachableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyUriUnreachableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12803,9 +12730,8 @@ extension XksProxyUriUnreachableExceptionBody: Swift.Decodable { extension XksProxyVpcEndpointServiceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyVpcEndpointServiceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12819,7 +12745,7 @@ extension XksProxyVpcEndpointServiceInUseException { } /// The request was rejected because the specified Amazon VPC endpoint service is already associated with an external key store in the Amazon Web Services account and Region. Each external key store in an Amazon Web Services account and Region must use a different Amazon VPC endpoint service. -public struct XksProxyVpcEndpointServiceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyVpcEndpointServiceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12855,9 +12781,8 @@ extension XksProxyVpcEndpointServiceInUseExceptionBody: Swift.Decodable { extension XksProxyVpcEndpointServiceInvalidConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyVpcEndpointServiceInvalidConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12871,7 +12796,7 @@ extension XksProxyVpcEndpointServiceInvalidConfigurationException { } /// The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the requirements for an external key store proxy. For details, see the exception message and [review the requirements] for Amazon VPC endpoint service connectivity for an external key store. -public struct XksProxyVpcEndpointServiceInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyVpcEndpointServiceInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12907,9 +12832,8 @@ extension XksProxyVpcEndpointServiceInvalidConfigurationExceptionBody: Swift.Dec extension XksProxyVpcEndpointServiceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: XksProxyVpcEndpointServiceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12923,7 +12847,7 @@ extension XksProxyVpcEndpointServiceNotFoundException { } /// The request was rejected because KMS could not find the specified VPC endpoint service. Use [DescribeCustomKeyStores] to verify the VPC endpoint service name for the external key store. Also, confirm that the Allow principals list for the VPC endpoint service includes the KMS service principal for the Region, such as cks.kms.us-east-1.amazonaws.com. -public struct XksProxyVpcEndpointServiceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct XksProxyVpcEndpointServiceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKafka/KafkaClient.swift b/Sources/Services/AWSKafka/KafkaClient.swift index 2b739d18d0e..5f8b4634568 100644 --- a/Sources/Services/AWSKafka/KafkaClient.swift +++ b/Sources/Services/AWSKafka/KafkaClient.swift @@ -208,6 +208,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateScramSecret") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateScramSecret") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClusterV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -396,7 +402,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -416,6 +422,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -428,7 +435,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -448,6 +455,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -460,7 +468,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -480,6 +488,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -492,7 +501,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -512,6 +521,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -524,7 +534,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -544,6 +554,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +567,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +587,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +600,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +620,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBootstrapBrokers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +633,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +653,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCompatibleKafkaVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -653,7 +667,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -673,6 +687,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusterOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -686,7 +701,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -706,6 +721,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -719,7 +735,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -739,6 +755,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClustersV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -752,7 +769,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -772,6 +789,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurationRevisions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -785,7 +803,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -805,6 +823,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +837,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +857,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKafkaVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -851,7 +871,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -871,6 +891,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +905,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +925,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listScramSecrets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -917,7 +939,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -937,6 +959,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -949,7 +972,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -969,6 +992,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootBroker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1008,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1028,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1019,7 +1044,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1039,6 +1064,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1078,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1098,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBrokerCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1087,7 +1114,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1107,6 +1134,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBrokerStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1122,7 +1150,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1142,6 +1170,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBrokerType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1186,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1177,6 +1206,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClusterConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1192,7 +1222,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1212,6 +1242,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClusterKafkaVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1227,7 +1258,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1247,6 +1278,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1262,7 +1294,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1282,6 +1314,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnectivity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1297,7 +1330,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1317,6 +1350,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMonitoring") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1332,7 +1366,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1352,6 +1386,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecurity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1367,7 +1402,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1387,6 +1422,7 @@ extension KafkaClient: KafkaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafka") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1402,7 +1438,7 @@ extension KafkaClient: KafkaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKafka/models/Models.swift b/Sources/Services/AWSKafka/models/Models.swift index 6e8258bb3e4..7931885142b 100644 --- a/Sources/Services/AWSKafka/models/Models.swift +++ b/Sources/Services/AWSKafka/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidParameter = output.invalidParameter self.message = output.message @@ -22,7 +21,7 @@ extension BadRequestException { } /// Returns information about an error. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -170,9 +169,8 @@ public enum BatchAssociateScramSecretOutputError: Swift.Error, Swift.Equatable { extension BatchAssociateScramSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateScramSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.unprocessedScramSecrets = output.unprocessedScramSecrets @@ -333,9 +331,8 @@ public enum BatchDisassociateScramSecretOutputError: Swift.Error, Swift.Equatabl extension BatchDisassociateScramSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateScramSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.unprocessedScramSecrets = output.unprocessedScramSecrets @@ -1921,9 +1918,8 @@ extension KafkaClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidParameter = output.invalidParameter self.message = output.message @@ -1939,7 +1935,7 @@ extension ConflictException { } /// Returns information about an error. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2247,9 +2243,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterName = output.clusterName @@ -2438,9 +2433,8 @@ public enum CreateClusterV2OutputError: Swift.Error, Swift.Equatable { extension CreateClusterV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterName = output.clusterName @@ -2640,9 +2634,8 @@ public enum CreateConfigurationOutputError: Swift.Error, Swift.Equatable { extension CreateConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -2797,9 +2790,8 @@ public enum DeleteClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.state = output.state @@ -2907,9 +2899,8 @@ public enum DeleteConfigurationOutputError: Swift.Error, Swift.Equatable { extension DeleteConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.state = output.state @@ -3050,9 +3041,8 @@ public enum DescribeClusterOperationOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterOperationInfo = output.clusterOperationInfo } else { @@ -3121,9 +3111,8 @@ public enum DescribeClusterOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterInfo = output.clusterInfo } else { @@ -3223,9 +3212,8 @@ public enum DescribeClusterV2OutputError: Swift.Error, Swift.Equatable { extension DescribeClusterV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterInfo = output.clusterInfo } else { @@ -3327,9 +3315,8 @@ public enum DescribeConfigurationOutputError: Swift.Error, Swift.Equatable { extension DescribeConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -3508,9 +3495,8 @@ public enum DescribeConfigurationRevisionOutputError: Swift.Error, Swift.Equatab extension DescribeConfigurationRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -3887,9 +3873,8 @@ extension KafkaClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidParameter = output.invalidParameter self.message = output.message @@ -3905,7 +3890,7 @@ extension ForbiddenException { } /// Returns information about an error. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4011,9 +3996,8 @@ public enum GetBootstrapBrokersOutputError: Swift.Error, Swift.Equatable { extension GetBootstrapBrokersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBootstrapBrokersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bootstrapBrokerString = output.bootstrapBrokerString self.bootstrapBrokerStringPublicSaslIam = output.bootstrapBrokerStringPublicSaslIam @@ -4186,9 +4170,8 @@ public enum GetCompatibleKafkaVersionsOutputError: Swift.Error, Swift.Equatable extension GetCompatibleKafkaVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCompatibleKafkaVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibleKafkaVersions = output.compatibleKafkaVersions } else { @@ -4271,9 +4254,8 @@ extension KafkaClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidParameter = output.invalidParameter self.message = output.message @@ -4289,7 +4271,7 @@ extension InternalServerErrorException { } /// Returns information about an error. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4564,9 +4546,8 @@ public enum ListClusterOperationsOutputError: Swift.Error, Swift.Equatable { extension ListClusterOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClusterOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterOperationInfoList = output.clusterOperationInfoList self.nextToken = output.nextToken @@ -4708,9 +4689,8 @@ public enum ListClustersOutputError: Swift.Error, Swift.Equatable { extension ListClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterInfoList = output.clusterInfoList self.nextToken = output.nextToken @@ -4860,9 +4840,8 @@ public enum ListClustersV2OutputError: Swift.Error, Swift.Equatable { extension ListClustersV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClustersV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterInfoList = output.clusterInfoList self.nextToken = output.nextToken @@ -5008,9 +4987,8 @@ public enum ListConfigurationRevisionsOutputError: Swift.Error, Swift.Equatable extension ListConfigurationRevisionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationRevisionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.revisions = output.revisions @@ -5146,9 +5124,8 @@ public enum ListConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurations = output.configurations self.nextToken = output.nextToken @@ -5282,9 +5259,8 @@ public enum ListKafkaVersionsOutputError: Swift.Error, Swift.Equatable { extension ListKafkaVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListKafkaVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.kafkaVersions = output.kafkaVersions self.nextToken = output.nextToken @@ -5424,9 +5400,8 @@ public enum ListNodesOutputError: Swift.Error, Swift.Equatable { extension ListNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nodeInfoList = output.nodeInfoList @@ -5574,9 +5549,8 @@ public enum ListScramSecretsOutputError: Swift.Error, Swift.Equatable { extension ListScramSecretsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListScramSecretsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.secretArnList = output.secretArnList @@ -5691,9 +5665,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6119,9 +6092,8 @@ extension KafkaClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidParameter = output.invalidParameter self.message = output.message @@ -6137,7 +6109,7 @@ extension NotFoundException { } /// Returns information about an error. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6792,9 +6764,8 @@ public enum RebootBrokerOutputError: Swift.Error, Swift.Equatable { extension RebootBrokerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootBrokerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -7161,9 +7132,8 @@ extension KafkaClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidParameter = output.invalidParameter self.message = output.message @@ -7179,7 +7149,7 @@ extension ServiceUnavailableException { } /// Returns information about an error. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7495,9 +7465,8 @@ extension KafkaClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidParameter = output.invalidParameter self.message = output.message @@ -7513,7 +7482,7 @@ extension TooManyRequestsException { } /// Returns information about an error. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7592,9 +7561,8 @@ extension KafkaClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.invalidParameter = output.invalidParameter self.message = output.message @@ -7610,7 +7578,7 @@ extension UnauthorizedException { } /// Returns information about an error. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7906,9 +7874,8 @@ public enum UpdateBrokerCountOutputError: Swift.Error, Swift.Equatable { extension UpdateBrokerCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBrokerCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -8068,9 +8035,8 @@ public enum UpdateBrokerStorageOutputError: Swift.Error, Swift.Equatable { extension UpdateBrokerStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBrokerStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -8222,9 +8188,8 @@ public enum UpdateBrokerTypeOutputError: Swift.Error, Swift.Equatable { extension UpdateBrokerTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBrokerTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -8374,9 +8339,8 @@ public enum UpdateClusterConfigurationOutputError: Swift.Error, Swift.Equatable extension UpdateClusterConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -8540,9 +8504,8 @@ public enum UpdateClusterKafkaVersionOutputError: Swift.Error, Swift.Equatable { extension UpdateClusterKafkaVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterKafkaVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -8691,9 +8654,8 @@ public enum UpdateConfigurationOutputError: Swift.Error, Swift.Equatable { extension UpdateConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.latestRevision = output.latestRevision @@ -8844,9 +8806,8 @@ public enum UpdateConnectivityOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectivityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectivityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -9017,9 +8978,8 @@ public enum UpdateMonitoringOutputError: Swift.Error, Swift.Equatable { extension UpdateMonitoringOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMonitoringOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -9182,9 +9142,8 @@ public enum UpdateSecurityOutputError: Swift.Error, Swift.Equatable { extension UpdateSecurityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSecurityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn @@ -9360,9 +9319,8 @@ public enum UpdateStorageOutputError: Swift.Error, Swift.Equatable { extension UpdateStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterArn = output.clusterArn self.clusterOperationArn = output.clusterOperationArn diff --git a/Sources/Services/AWSKafkaConnect/KafkaConnectClient.swift b/Sources/Services/AWSKafkaConnect/KafkaConnectClient.swift index 4d7f9028492..459b5276a34 100644 --- a/Sources/Services/AWSKafkaConnect/KafkaConnectClient.swift +++ b/Sources/Services/AWSKafkaConnect/KafkaConnectClient.swift @@ -208,6 +208,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomPlugin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkerConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -326,7 +330,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -346,6 +350,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomPlugin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -358,7 +363,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -378,6 +383,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -390,7 +396,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -410,6 +416,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomPlugin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -422,7 +429,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +449,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkerConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -454,7 +462,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -474,6 +482,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +496,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +516,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomPlugins") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +530,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +550,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkerConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -553,7 +564,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -573,6 +584,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kafkaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -589,7 +601,7 @@ extension KafkaConnectClient: KafkaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKafkaConnect/models/Models.swift b/Sources/Services/AWSKafkaConnect/models/Models.swift index 5ef14320a29..0d56d472ad6 100644 --- a/Sources/Services/AWSKafkaConnect/models/Models.swift +++ b/Sources/Services/AWSKafkaConnect/models/Models.swift @@ -329,9 +329,8 @@ extension KafkaConnectClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -345,7 +344,7 @@ extension BadRequestException { } /// HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -607,9 +606,8 @@ extension KafkaConnectClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -623,7 +621,7 @@ extension ConflictException { } /// HTTP Status Code 409: Conflict. A resource with this name already exists. Retry your request with another name. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1140,9 +1138,8 @@ public enum CreateConnectorOutputError: Swift.Error, Swift.Equatable { extension CreateConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorArn = output.connectorArn self.connectorName = output.connectorName @@ -1323,9 +1320,8 @@ public enum CreateCustomPluginOutputError: Swift.Error, Swift.Equatable { extension CreateCustomPluginOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomPluginOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customPluginArn = output.customPluginArn self.customPluginState = output.customPluginState @@ -1508,9 +1504,8 @@ public enum CreateWorkerConfigurationOutputError: Swift.Error, Swift.Equatable { extension CreateWorkerConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkerConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.latestRevision = output.latestRevision @@ -2115,9 +2110,8 @@ public enum DeleteConnectorOutputError: Swift.Error, Swift.Equatable { extension DeleteConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorArn = output.connectorArn self.connectorState = output.connectorState @@ -2231,9 +2225,8 @@ public enum DeleteCustomPluginOutputError: Swift.Error, Swift.Equatable { extension DeleteCustomPluginOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCustomPluginOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customPluginArn = output.customPluginArn self.customPluginState = output.customPluginState @@ -2352,9 +2345,8 @@ extension DescribeConnectorOutputResponse: Swift.CustomDebugStringConvertible { extension DescribeConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacity = output.capacity self.connectorArn = output.connectorArn @@ -2636,9 +2628,8 @@ public enum DescribeCustomPluginOutputError: Swift.Error, Swift.Equatable { extension DescribeCustomPluginOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomPluginOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.customPluginArn = output.customPluginArn @@ -2802,9 +2793,8 @@ public enum DescribeWorkerConfigurationOutputError: Swift.Error, Swift.Equatable extension DescribeWorkerConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkerConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -2974,9 +2964,8 @@ extension KafkaConnectClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2990,7 +2979,7 @@ extension ForbiddenException { } /// HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3026,9 +3015,8 @@ extension ForbiddenExceptionBody: Swift.Decodable { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3042,7 +3030,7 @@ extension InternalServerErrorException { } /// HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3445,9 +3433,8 @@ public enum ListConnectorsOutputError: Swift.Error, Swift.Equatable { extension ListConnectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectors = output.connectors self.nextToken = output.nextToken @@ -3587,9 +3574,8 @@ public enum ListCustomPluginsOutputError: Swift.Error, Swift.Equatable { extension ListCustomPluginsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomPluginsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customPlugins = output.customPlugins self.nextToken = output.nextToken @@ -3729,9 +3715,8 @@ public enum ListWorkerConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListWorkerConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkerConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workerConfigurations = output.workerConfigurations @@ -3860,9 +3845,8 @@ extension KafkaConnectClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3876,7 +3860,7 @@ extension NotFoundException { } /// HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4559,9 +4543,8 @@ extension KafkaConnectClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4575,7 +4558,7 @@ extension ServiceUnavailableException { } /// HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4656,9 +4639,8 @@ extension KafkaConnectClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4672,7 +4654,7 @@ extension TooManyRequestsException { } /// HTTP Status Code 429: Limit exceeded. Resource limit reached. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4708,9 +4690,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4724,7 +4705,7 @@ extension UnauthorizedException { } /// HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4870,9 +4851,8 @@ public enum UpdateConnectorOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorArn = output.connectorArn self.connectorState = output.connectorState diff --git a/Sources/Services/AWSKendra/KendraClient.swift b/Sources/Services/AWSKendra/KendraClient.swift index 901b89ced9e..e1041b747fb 100644 --- a/Sources/Services/AWSKendra/KendraClient.swift +++ b/Sources/Services/AWSKendra/KendraClient.swift @@ -208,6 +208,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateEntitiesToExperience") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePersonasToEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteFeaturedResultsSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetDocumentStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "clearQuerySuggestions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessControlConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -484,7 +492,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSource") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -528,7 +537,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +557,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExperience") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -572,7 +582,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -592,6 +602,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFaq") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -616,7 +627,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +647,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFeaturedResultsSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -652,7 +664,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -672,6 +684,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIndex") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -696,7 +709,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -716,6 +729,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createQuerySuggestionsBlockList") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -740,7 +754,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -760,6 +774,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createThesaurus") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -784,7 +799,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -804,6 +819,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessControlConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -820,7 +836,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -840,6 +856,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -856,7 +873,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -876,6 +893,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExperience") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -892,7 +910,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -912,6 +930,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFaq") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -928,7 +947,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -948,6 +967,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -964,7 +984,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -984,6 +1004,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePrincipalMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1000,7 +1021,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1020,6 +1041,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQuerySuggestionsBlockList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1036,7 +1058,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1056,6 +1078,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteThesaurus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1072,7 +1095,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1092,6 +1115,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccessControlConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1108,7 +1132,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1128,6 +1152,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1144,7 +1169,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1164,6 +1189,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExperience") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1180,7 +1206,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1200,6 +1226,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFaq") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1216,7 +1243,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1236,6 +1263,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFeaturedResultsSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1252,7 +1280,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1272,6 +1300,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1288,7 +1317,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1308,6 +1337,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePrincipalMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1324,7 +1354,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1344,6 +1374,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeQuerySuggestionsBlockList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1360,7 +1391,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1380,6 +1411,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeQuerySuggestionsConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1396,7 +1428,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1416,6 +1448,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeThesaurus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1432,7 +1465,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1452,6 +1485,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateEntitiesFromExperience") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1468,7 +1502,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1488,6 +1522,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePersonasFromEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1504,7 +1539,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1524,6 +1559,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQuerySuggestions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1540,7 +1576,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1560,6 +1596,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1576,7 +1613,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1596,6 +1633,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessControlConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1612,7 +1650,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1632,6 +1670,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSourceSyncJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1648,7 +1687,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1668,6 +1707,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1684,7 +1724,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1704,6 +1744,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntityPersonas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1720,7 +1761,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1740,6 +1781,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExperienceEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1756,7 +1798,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1776,6 +1818,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExperiences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1792,7 +1835,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1812,6 +1855,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFaqs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1828,7 +1872,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1848,6 +1892,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFeaturedResultsSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1864,7 +1909,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1884,6 +1929,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupsOlderThanOrderingId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1900,7 +1946,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1920,6 +1966,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIndices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1936,7 +1983,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1956,6 +2003,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQuerySuggestionsBlockLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1972,7 +2020,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1992,6 +2040,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2008,7 +2057,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2028,6 +2077,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThesauri") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2044,7 +2094,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2064,6 +2114,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPrincipalMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2080,7 +2131,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2109,6 +2160,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "query") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2125,7 +2177,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2145,6 +2197,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDataSourceSyncJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2161,7 +2214,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2181,6 +2234,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDataSourceSyncJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2197,7 +2251,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2217,6 +2271,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "submitFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2233,7 +2288,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2253,6 +2308,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2269,7 +2325,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2289,6 +2345,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2305,7 +2362,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2325,6 +2382,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccessControlConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2341,7 +2399,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2361,6 +2419,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2377,7 +2436,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2397,6 +2456,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateExperience") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2413,7 +2473,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2433,6 +2493,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFeaturedResultsSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2449,7 +2510,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2469,6 +2530,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2485,7 +2547,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2505,6 +2567,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQuerySuggestionsBlockList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2521,7 +2584,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2541,6 +2604,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQuerySuggestionsConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2557,7 +2621,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2577,6 +2641,7 @@ extension KendraClient: KendraClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThesaurus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2593,7 +2658,7 @@ extension KendraClient: KendraClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKendra/models/Models.swift b/Sources/Services/AWSKendra/models/Models.swift index dd185412b4e..b671f0b27b6 100644 --- a/Sources/Services/AWSKendra/models/Models.swift +++ b/Sources/Services/AWSKendra/models/Models.swift @@ -75,9 +75,8 @@ extension KendraClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -91,7 +90,7 @@ extension AccessDeniedException { } /// You don't have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -673,9 +672,8 @@ public enum AssociateEntitiesToExperienceOutputError: Swift.Error, Swift.Equatab extension AssociateEntitiesToExperienceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateEntitiesToExperienceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEntityList = output.failedEntityList } else { @@ -841,9 +839,8 @@ public enum AssociatePersonasToEntitiesOutputError: Swift.Error, Swift.Equatable extension AssociatePersonasToEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatePersonasToEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEntityList = output.failedEntityList } else { @@ -1267,9 +1264,8 @@ public enum BatchDeleteDocumentOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedDocuments = output.failedDocuments } else { @@ -1533,9 +1529,8 @@ public enum BatchDeleteFeaturedResultsSetOutputError: Swift.Error, Swift.Equatab extension BatchDeleteFeaturedResultsSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteFeaturedResultsSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1689,9 +1684,8 @@ public enum BatchGetDocumentStatusOutputError: Swift.Error, Swift.Equatable { extension BatchGetDocumentStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetDocumentStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentStatusList = output.documentStatusList self.errors = output.errors @@ -1951,9 +1945,8 @@ public enum BatchPutDocumentOutputError: Swift.Error, Swift.Equatable { extension BatchPutDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedDocuments = output.failedDocuments } else { @@ -2643,9 +2636,8 @@ extension KendraClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2659,7 +2651,7 @@ extension ConflictException { } /// A conflict occurred with the request. Please fix any inconsistences with your resources and try again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4133,9 +4125,8 @@ public enum CreateAccessControlConfigurationOutputError: Swift.Error, Swift.Equa extension CreateAccessControlConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessControlConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -4405,9 +4396,8 @@ public enum CreateDataSourceOutputError: Swift.Error, Swift.Equatable { extension CreateDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -4590,9 +4580,8 @@ public enum CreateExperienceOutputError: Swift.Error, Swift.Equatable { extension CreateExperienceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExperienceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -4825,9 +4814,8 @@ public enum CreateFaqOutputError: Swift.Error, Swift.Equatable { extension CreateFaqOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFaqOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -5069,9 +5057,8 @@ public enum CreateFeaturedResultsSetOutputError: Swift.Error, Swift.Equatable { extension CreateFeaturedResultsSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFeaturedResultsSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.featuredResultsSet = output.featuredResultsSet } else { @@ -5325,9 +5312,8 @@ public enum CreateIndexOutputError: Swift.Error, Swift.Equatable { extension CreateIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -5535,9 +5521,8 @@ public enum CreateQuerySuggestionsBlockListOutputError: Swift.Error, Swift.Equat extension CreateQuerySuggestionsBlockListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateQuerySuggestionsBlockListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -5745,9 +5730,8 @@ public enum CreateThesaurusOutputError: Swift.Error, Swift.Equatable { extension CreateThesaurusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateThesaurusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -7787,9 +7771,8 @@ public enum DescribeAccessControlConfigurationOutputError: Swift.Error, Swift.Eq extension DescribeAccessControlConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccessControlConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessControlList = output.accessControlList self.description = output.description @@ -7978,9 +7961,8 @@ public enum DescribeDataSourceOutputError: Swift.Error, Swift.Equatable { extension DescribeDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration self.createdAt = output.createdAt @@ -8250,9 +8232,8 @@ public enum DescribeExperienceOutputError: Swift.Error, Swift.Equatable { extension DescribeExperienceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExperienceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration self.createdAt = output.createdAt @@ -8491,9 +8472,8 @@ public enum DescribeFaqOutputError: Swift.Error, Swift.Equatable { extension DescribeFaqOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFaqOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.description = output.description @@ -8733,9 +8713,8 @@ public enum DescribeFeaturedResultsSetOutputError: Swift.Error, Swift.Equatable extension DescribeFeaturedResultsSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFeaturedResultsSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTimestamp = output.creationTimestamp self.description = output.description @@ -8959,9 +8938,8 @@ public enum DescribeIndexOutputError: Swift.Error, Swift.Equatable { extension DescribeIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacityUnits = output.capacityUnits self.createdAt = output.createdAt @@ -9271,9 +9249,8 @@ public enum DescribePrincipalMappingOutputError: Swift.Error, Swift.Equatable { extension DescribePrincipalMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePrincipalMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceId = output.dataSourceId self.groupId = output.groupId @@ -9452,9 +9429,8 @@ public enum DescribeQuerySuggestionsBlockListOutputError: Swift.Error, Swift.Equ extension DescribeQuerySuggestionsBlockListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeQuerySuggestionsBlockListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.description = output.description @@ -9681,9 +9657,8 @@ public enum DescribeQuerySuggestionsConfigOutputError: Swift.Error, Swift.Equata extension DescribeQuerySuggestionsConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeQuerySuggestionsConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.includeQueriesWithoutUserInformation = output.includeQueriesWithoutUserInformation self.lastClearTime = output.lastClearTime @@ -9893,9 +9868,8 @@ public enum DescribeThesaurusOutputError: Swift.Error, Swift.Equatable { extension DescribeThesaurusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeThesaurusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.description = output.description @@ -10170,9 +10144,8 @@ public enum DisassociateEntitiesFromExperienceOutputError: Swift.Error, Swift.Eq extension DisassociateEntitiesFromExperienceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateEntitiesFromExperienceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEntityList = output.failedEntityList } else { @@ -10336,9 +10309,8 @@ public enum DisassociatePersonasFromEntitiesOutputError: Swift.Error, Swift.Equa extension DisassociatePersonasFromEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociatePersonasFromEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedEntityList = output.failedEntityList } else { @@ -12193,9 +12165,8 @@ extension KendraClientTypes { extension FeaturedResultsConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FeaturedResultsConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.conflictingItems = output.conflictingItems self.message = output.message @@ -12211,7 +12182,7 @@ extension FeaturedResultsConflictException { } /// An error message with a list of conflicting queries used across different sets of featured results. This occurred with the request for a new featured results set. Check that the queries you specified for featured results are unique per featured results set for each index. -public struct FeaturedResultsConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FeaturedResultsConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12914,9 +12885,8 @@ public enum GetQuerySuggestionsOutputError: Swift.Error, Swift.Equatable { extension GetQuerySuggestionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQuerySuggestionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.querySuggestionsId = output.querySuggestionsId self.suggestions = output.suggestions @@ -13112,9 +13082,8 @@ public enum GetSnapshotsOutputError: Swift.Error, Swift.Equatable { extension GetSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapShotTimeFilter = output.snapShotTimeFilter @@ -14570,9 +14539,8 @@ extension KendraClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14586,7 +14554,7 @@ extension InternalServerException { } /// An issue occurred with the internal server used for your Amazon Kendra service. Please wait a few minutes and try again, or contact [Support](http://aws.amazon.com/contact-us/) for help. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14666,9 +14634,8 @@ extension KendraClientTypes { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14682,7 +14649,7 @@ extension InvalidRequestException { } /// The input to the request is not valid. Please provide the correct input and try again. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15343,9 +15310,8 @@ public enum ListAccessControlConfigurationsOutputError: Swift.Error, Swift.Equat extension ListAccessControlConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessControlConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessControlConfigurations = output.accessControlConfigurations self.nextToken = output.nextToken @@ -15545,9 +15511,8 @@ public enum ListDataSourceSyncJobsOutputError: Swift.Error, Swift.Equatable { extension ListDataSourceSyncJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSourceSyncJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.history = output.history self.nextToken = output.nextToken @@ -15707,9 +15672,8 @@ public enum ListDataSourcesOutputError: Swift.Error, Swift.Equatable { extension ListDataSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaryItems = output.summaryItems @@ -15882,9 +15846,8 @@ public enum ListEntityPersonasOutputError: Swift.Error, Swift.Equatable { extension ListEntityPersonasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntityPersonasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaryItems = output.summaryItems @@ -16045,9 +16008,8 @@ public enum ListExperienceEntitiesOutputError: Swift.Error, Swift.Equatable { extension ListExperienceEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExperienceEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaryItems = output.summaryItems @@ -16207,9 +16169,8 @@ public enum ListExperiencesOutputError: Swift.Error, Swift.Equatable { extension ListExperiencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExperiencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaryItems = output.summaryItems @@ -16369,9 +16330,8 @@ public enum ListFaqsOutputError: Swift.Error, Swift.Equatable { extension ListFaqsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFaqsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.faqSummaryItems = output.faqSummaryItems self.nextToken = output.nextToken @@ -16531,9 +16491,8 @@ public enum ListFeaturedResultsSetsOutputError: Swift.Error, Swift.Equatable { extension ListFeaturedResultsSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFeaturedResultsSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.featuredResultsSetSummaryItems = output.featuredResultsSetSummaryItems self.nextToken = output.nextToken @@ -16720,9 +16679,8 @@ public enum ListGroupsOlderThanOrderingIdOutputError: Swift.Error, Swift.Equatab extension ListGroupsOlderThanOrderingIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOlderThanOrderingIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupsSummaries = output.groupsSummaries self.nextToken = output.nextToken @@ -16867,9 +16825,8 @@ public enum ListIndicesOutputError: Swift.Error, Swift.Equatable { extension ListIndicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIndicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexConfigurationSummaryItems = output.indexConfigurationSummaryItems self.nextToken = output.nextToken @@ -17029,9 +16986,8 @@ public enum ListQuerySuggestionsBlockListsOutputError: Swift.Error, Swift.Equata extension ListQuerySuggestionsBlockListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQuerySuggestionsBlockListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blockListSummaryItems = output.blockListSummaryItems self.nextToken = output.nextToken @@ -17167,9 +17123,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -17319,9 +17274,8 @@ public enum ListThesauriOutputError: Swift.Error, Swift.Equatable { extension ListThesauriOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThesauriOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.thesaurusSummaryItems = output.thesaurusSummaryItems @@ -18561,9 +18515,8 @@ public enum QueryOutputError: Swift.Error, Swift.Equatable { extension QueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.facetResults = output.facetResults self.featuredResultsItems = output.featuredResultsItems @@ -19523,9 +19476,8 @@ extension KendraClientTypes { extension ResourceAlreadyExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19539,7 +19491,7 @@ extension ResourceAlreadyExistException { } /// The resource you want to use already exists. Please check you have provided the correct resource and try again. -public struct ResourceAlreadyExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19575,9 +19527,8 @@ extension ResourceAlreadyExistExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19591,7 +19542,7 @@ extension ResourceInUseException { } /// The resource you want to use is currently in use. Please check you have provided the correct resource and try again. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19627,9 +19578,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19643,7 +19593,7 @@ extension ResourceNotFoundException { } /// The resource you want to use doesn’t exist. Please check you have provided the correct resource and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19679,9 +19629,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19695,7 +19644,7 @@ extension ResourceUnavailableException { } /// The resource you want to use isn't available. Please check you have provided the correct resource and try again. -public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21376,9 +21325,8 @@ extension KendraClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21392,7 +21340,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded the set limits for your Amazon Kendra service. Please see [Quotas](https://docs.aws.amazon.com/kendra/latest/dg/quotas.html) for more information, or contact [Support](http://aws.amazon.com/contact-us/) to inquire about an increase of limits. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22366,9 +22314,8 @@ public enum StartDataSourceSyncJobOutputError: Swift.Error, Swift.Equatable { extension StartDataSourceSyncJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDataSourceSyncJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionId = output.executionId } else { @@ -23493,9 +23440,8 @@ extension KendraClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -23509,7 +23455,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. Please reduce the number of requests and try again. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24439,9 +24385,8 @@ public enum UpdateFeaturedResultsSetOutputError: Swift.Error, Swift.Equatable { extension UpdateFeaturedResultsSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFeaturedResultsSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.featuredResultsSet = output.featuredResultsSet } else { @@ -25465,9 +25410,8 @@ extension KendraClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25481,7 +25425,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints set by the Amazon Kendra service. Please provide the correct input and try again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKendraRanking/KendraRankingClient.swift b/Sources/Services/AWSKendraRanking/KendraRankingClient.swift index fb56633816a..c215b97c911 100644 --- a/Sources/Services/AWSKendraRanking/KendraRankingClient.swift +++ b/Sources/Services/AWSKendraRanking/KendraRankingClient.swift @@ -208,6 +208,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRescoreExecutionPlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRescoreExecutionPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRescoreExecutionPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRescoreExecutionPlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -341,7 +345,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -361,6 +365,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -377,7 +382,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -397,6 +402,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rescore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -413,7 +419,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -433,6 +439,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -449,7 +456,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -469,6 +476,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +493,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +513,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kendra-ranking") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRescoreExecutionPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +530,7 @@ extension KendraRankingClient: KendraRankingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKendraRanking/models/Models.swift b/Sources/Services/AWSKendraRanking/models/Models.swift index 00ace058ce7..fc229be65b9 100644 --- a/Sources/Services/AWSKendraRanking/models/Models.swift +++ b/Sources/Services/AWSKendraRanking/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don’t have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -92,9 +91,8 @@ extension KendraRankingClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -108,7 +106,7 @@ extension ConflictException { } /// A conflict occurred with the request. Please fix any inconsistencies with your resources and try again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -284,9 +282,8 @@ public enum CreateRescoreExecutionPlanOutputError: Swift.Error, Swift.Equatable extension CreateRescoreExecutionPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRescoreExecutionPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -481,9 +478,8 @@ public enum DescribeRescoreExecutionPlanOutputError: Swift.Error, Swift.Equatabl extension DescribeRescoreExecutionPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRescoreExecutionPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.capacityUnits = output.capacityUnits @@ -723,9 +719,8 @@ extension KendraRankingClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -739,7 +734,7 @@ extension InternalServerException { } /// An issue occurred with the internal server used for your Amazon Kendra Intelligent Ranking service. Please wait a few minutes and try again, or contact [Support](http://aws.amazon.com/contact-us/) for help. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -851,9 +846,8 @@ public enum ListRescoreExecutionPlansOutputError: Swift.Error, Swift.Equatable { extension ListRescoreExecutionPlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRescoreExecutionPlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaryItems = output.summaryItems @@ -990,9 +984,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1267,9 +1260,8 @@ public enum RescoreOutputError: Swift.Error, Swift.Equatable { extension RescoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RescoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rescoreId = output.rescoreId self.resultItems = output.resultItems @@ -1372,9 +1364,8 @@ extension KendraRankingClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1388,7 +1379,7 @@ extension ResourceNotFoundException { } /// The resource you want to use doesn't exist. Please check you have provided the correct resource and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1424,9 +1415,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1440,7 +1430,7 @@ extension ResourceUnavailableException { } /// The resource you want to use is unavailable. Please check you have provided the correct resource information and try again. -public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1476,9 +1466,8 @@ extension ResourceUnavailableExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1492,7 +1481,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded the set limits for your Amazon Kendra Intelligent Ranking service. Please see [Quotas](https://docs.aws.amazon.com/kendra/latest/dg/quotas.html) for more information, or contact [Support](http://aws.amazon.com/contact-us/) to inquire about an increase of limits. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1690,9 +1679,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1706,7 +1694,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. Please reduce the number of requests and try again. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1977,9 +1965,8 @@ public struct UpdateRescoreExecutionPlanOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1993,7 +1980,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints set by the Amazon Kendra Intelligent Ranking service. Please provide the correct input and try again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKeyspaces/KeyspacesClient.swift b/Sources/Services/AWSKeyspaces/KeyspacesClient.swift index b298a93a640..23afe65ef21 100644 --- a/Sources/Services/AWSKeyspaces/KeyspacesClient.swift +++ b/Sources/Services/AWSKeyspaces/KeyspacesClient.swift @@ -208,6 +208,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKeyspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKeyspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKeyspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKeyspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -549,6 +558,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -565,7 +575,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -585,6 +595,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -601,7 +612,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -621,6 +632,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -637,7 +649,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +669,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "cassandra") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -673,7 +686,7 @@ extension KeyspacesClient: KeyspacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKeyspaces/models/Models.swift b/Sources/Services/AWSKeyspaces/models/Models.swift index 8ea53726d06..634c092c485 100644 --- a/Sources/Services/AWSKeyspaces/models/Models.swift +++ b/Sources/Services/AWSKeyspaces/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -401,9 +400,8 @@ extension KeyspacesClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -417,7 +415,7 @@ extension ConflictException { } /// Amazon Keyspaces could not complete the requested action. This error may occur if you try to perform an action and the same or a different action is already in progress, or if you try to create a resource that already exists. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -555,9 +553,8 @@ public enum CreateKeyspaceOutputError: Swift.Error, Swift.Equatable { extension CreateKeyspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateKeyspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn } else { @@ -865,9 +862,8 @@ public enum CreateTableOutputError: Swift.Error, Swift.Equatable { extension CreateTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn } else { @@ -1270,9 +1266,8 @@ public enum GetKeyspaceOutputError: Swift.Error, Swift.Equatable { extension GetKeyspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetKeyspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyspaceName = output.keyspaceName self.resourceArn = output.resourceArn @@ -1414,9 +1409,8 @@ public enum GetTableOutputError: Swift.Error, Swift.Equatable { extension GetTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacitySpecification = output.capacitySpecification self.clientSideTimestamps = output.clientSideTimestamps @@ -1582,9 +1576,8 @@ extension GetTableOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1598,7 +1591,7 @@ extension InternalServerException { } /// Amazon Keyspaces was unable to fully process this request because of an internal server error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1770,9 +1763,8 @@ public enum ListKeyspacesOutputError: Swift.Error, Swift.Equatable { extension ListKeyspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListKeyspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyspaces = output.keyspaces self.nextToken = output.nextToken @@ -1933,9 +1925,8 @@ public enum ListTablesOutputError: Swift.Error, Swift.Equatable { extension ListTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tables = output.tables @@ -2095,9 +2086,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -2309,9 +2299,8 @@ extension KeyspacesClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceArn = output.resourceArn @@ -2327,7 +2316,7 @@ extension ResourceNotFoundException { } /// The operation tried to access a keyspace or table that doesn't exist. The resource might not be specified correctly, or its status might not be ACTIVE. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2583,9 +2572,8 @@ public enum RestoreTableOutputError: Swift.Error, Swift.Equatable { extension RestoreTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.restoredTableARN = output.restoredTableARN } else { @@ -2740,9 +2728,8 @@ extension KeyspacesClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2756,7 +2743,7 @@ extension ServiceQuotaExceededException { } /// The operation exceeded the service quota for this resource. For more information on service quotas, see [Quotas](https://docs.aws.amazon.com/keyspaces/latest/devguide/quotas.html) in the Amazon Keyspaces Developer Guide. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3563,9 +3550,8 @@ public enum UpdateTableOutputError: Swift.Error, Swift.Equatable { extension UpdateTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn } else { @@ -3605,9 +3591,8 @@ extension UpdateTableOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3621,7 +3606,7 @@ extension ValidationException { } /// The operation failed due to an invalid or malformed request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKinesis/KinesisClient.swift b/Sources/Services/AWSKinesis/KinesisClient.swift index 89ba467836d..4c5d4bebcf0 100644 --- a/Sources/Services/AWSKinesis/KinesisClient.swift +++ b/Sources/Services/AWSKinesis/KinesisClient.swift @@ -208,6 +208,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -267,7 +269,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -287,6 +289,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "decreaseStreamRetentionPeriod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -303,7 +306,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -323,6 +326,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -339,7 +343,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -359,6 +363,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterStreamConsumer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -375,7 +380,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -395,6 +400,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -411,7 +417,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -431,6 +437,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -447,7 +454,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -467,6 +474,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStreamConsumer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -483,7 +491,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -503,6 +511,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStreamSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +528,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +548,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableEnhancedMonitoring") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -555,7 +565,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -575,6 +585,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableEnhancedMonitoring") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -591,7 +602,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -611,6 +622,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -627,7 +639,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -647,6 +659,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getShardIterator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -663,7 +676,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -683,6 +696,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "increaseStreamRetentionPeriod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -699,7 +713,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -719,6 +733,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listShards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -735,7 +750,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -755,6 +770,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreamConsumers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -771,7 +787,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -791,6 +807,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -807,7 +824,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -827,6 +844,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -843,7 +861,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -863,6 +881,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "mergeShards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +898,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +918,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +935,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +955,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -951,7 +972,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -971,6 +992,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerStreamConsumer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -987,7 +1009,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1007,6 +1029,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1023,7 +1046,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1043,6 +1066,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "splitShard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1083,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1103,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startStreamEncryption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1095,7 +1120,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1115,6 +1140,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopStreamEncryption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1131,7 +1157,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1151,6 +1177,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "subscribeToShard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1167,7 +1194,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1202,6 +1229,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateShardCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1218,7 +1246,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1238,6 +1266,7 @@ extension KinesisClient: KinesisClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesis") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStreamMode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1254,7 +1283,7 @@ extension KinesisClient: KinesisClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKinesis/models/Models.swift b/Sources/Services/AWSKinesis/models/Models.swift index f4f8235aef3..2255f50477d 100644 --- a/Sources/Services/AWSKinesis/models/Models.swift +++ b/Sources/Services/AWSKinesis/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Specifies that you do not have the permissions required to perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -926,9 +925,8 @@ public enum DescribeLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.onDemandStreamCount = output.onDemandStreamCount self.onDemandStreamCountLimit = output.onDemandStreamCountLimit @@ -1098,9 +1096,8 @@ public enum DescribeStreamConsumerOutputError: Swift.Error, Swift.Equatable { extension DescribeStreamConsumerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStreamConsumerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumerDescription = output.consumerDescription } else { @@ -1267,9 +1264,8 @@ public enum DescribeStreamOutputError: Swift.Error, Swift.Equatable { extension DescribeStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamDescription = output.streamDescription } else { @@ -1397,9 +1393,8 @@ public enum DescribeStreamSummaryOutputError: Swift.Error, Swift.Equatable { extension DescribeStreamSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStreamSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamDescriptionSummary = output.streamDescriptionSummary } else { @@ -1573,9 +1568,8 @@ public enum DisableEnhancedMonitoringOutputError: Swift.Error, Swift.Equatable { extension DisableEnhancedMonitoringOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableEnhancedMonitoringOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currentShardLevelMetrics = output.currentShardLevelMetrics self.desiredShardLevelMetrics = output.desiredShardLevelMetrics @@ -1797,9 +1791,8 @@ public enum EnableEnhancedMonitoringOutputError: Swift.Error, Swift.Equatable { extension EnableEnhancedMonitoringOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableEnhancedMonitoringOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currentShardLevelMetrics = output.currentShardLevelMetrics self.desiredShardLevelMetrics = output.desiredShardLevelMetrics @@ -1985,9 +1978,8 @@ extension KinesisClientTypes { extension ExpiredIteratorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredIteratorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2001,7 +1993,7 @@ extension ExpiredIteratorException { } /// The provided iterator exceeds the maximum age allowed. -public struct ExpiredIteratorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredIteratorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2038,9 +2030,8 @@ extension ExpiredIteratorExceptionBody: Swift.Decodable { extension ExpiredNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2054,7 +2045,7 @@ extension ExpiredNextTokenException { } /// The pagination token passed to the operation is expired. -public struct ExpiredNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2205,9 +2196,8 @@ public enum GetRecordsOutputError: Swift.Error, Swift.Equatable { extension GetRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.childShards = output.childShards self.millisBehindLatest = output.millisBehindLatest @@ -2444,9 +2434,8 @@ public enum GetShardIteratorOutputError: Swift.Error, Swift.Equatable { extension GetShardIteratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetShardIteratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.shardIterator = output.shardIterator } else { @@ -2664,7 +2653,7 @@ extension InternalFailureException: Swift.Codable { } /// The processing of the request failed because of an unknown error, exception, or failure. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2684,9 +2673,8 @@ public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Sw extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2700,7 +2688,7 @@ extension InvalidArgumentException { } /// A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2756,9 +2744,8 @@ extension KMSAccessDeniedException: Swift.Codable { extension KMSAccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSAccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2772,7 +2759,7 @@ extension KMSAccessDeniedException { } /// The ciphertext references a key that doesn't exist or that you don't have access to. -public struct KMSAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2828,9 +2815,8 @@ extension KMSDisabledException: Swift.Codable { extension KMSDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2844,7 +2830,7 @@ extension KMSDisabledException { } /// The request was rejected because the specified customer master key (CMK) isn't enabled. -public struct KMSDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2900,9 +2886,8 @@ extension KMSInvalidStateException: Swift.Codable { extension KMSInvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSInvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2916,7 +2901,7 @@ extension KMSInvalidStateException { } /// The request was rejected because the state of the specified resource isn't valid for this request. For more information, see [How Key State Affects Use of a Customer Master Key](https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the Amazon Web Services Key Management Service Developer Guide. -public struct KMSInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2972,9 +2957,8 @@ extension KMSNotFoundException: Swift.Codable { extension KMSNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2988,7 +2972,7 @@ extension KMSNotFoundException { } /// The request was rejected because the specified entity or resource can't be found. -public struct KMSNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3044,9 +3028,8 @@ extension KMSOptInRequired: Swift.Codable { extension KMSOptInRequired { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSOptInRequiredBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3060,7 +3043,7 @@ extension KMSOptInRequired { } /// The Amazon Web Services access key ID needs a subscription for the service. -public struct KMSOptInRequired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSOptInRequired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3116,9 +3099,8 @@ extension KMSThrottlingException: Swift.Codable { extension KMSThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3132,7 +3114,7 @@ extension KMSThrottlingException { } /// The request was denied due to request throttling. For more information about throttling, see [Limits](https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) in the Amazon Web Services Key Management Service Developer Guide. -public struct KMSThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3169,9 +3151,8 @@ extension KMSThrottlingExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3185,7 +3166,7 @@ extension LimitExceededException { } /// The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3373,9 +3354,8 @@ public enum ListShardsOutputError: Swift.Error, Swift.Equatable { extension ListShardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListShardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.shards = output.shards @@ -3547,9 +3527,8 @@ public enum ListStreamConsumersOutputError: Swift.Error, Swift.Equatable { extension ListStreamConsumersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamConsumersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumers = output.consumers self.nextToken = output.nextToken @@ -3705,9 +3684,8 @@ public enum ListStreamsOutputError: Swift.Error, Swift.Equatable { extension ListStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hasMoreStreams = output.hasMoreStreams self.nextToken = output.nextToken @@ -3909,9 +3887,8 @@ public enum ListTagsForStreamOutputError: Swift.Error, Swift.Equatable { extension ListTagsForStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hasMoreTags = output.hasMoreTags self.tags = output.tags @@ -4150,9 +4127,8 @@ extension KinesisClientTypes { extension ProvisionedThroughputExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionedThroughputExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4166,7 +4142,7 @@ extension ProvisionedThroughputExceededException { } /// The request rate for the stream is too high, or the requested data is too large for the available throughput. Reduce the frequency or size of your requests. For more information, see [Streams Limits](https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) in the Amazon Kinesis Data Streams Developer Guide, and [Error Retries and Exponential Backoff in Amazon Web Services](https://docs.aws.amazon.com/general/latest/gr/api-retries.html) in the Amazon Web Services General Reference. -public struct ProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4353,9 +4329,8 @@ public enum PutRecordOutputError: Swift.Error, Swift.Equatable { extension PutRecordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRecordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.encryptionType = output.encryptionType self.sequenceNumber = output.sequenceNumber @@ -4546,9 +4521,8 @@ public enum PutRecordsOutputError: Swift.Error, Swift.Equatable { extension PutRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.encryptionType = output.encryptionType self.failedRecordCount = output.failedRecordCount @@ -4915,9 +4889,8 @@ public enum RegisterStreamConsumerOutputError: Swift.Error, Swift.Equatable { extension RegisterStreamConsumerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterStreamConsumerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumer = output.consumer } else { @@ -5101,9 +5074,8 @@ extension ResourceInUseException: Swift.Codable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5117,7 +5089,7 @@ extension ResourceInUseException { } /// The resource is not available for this operation. For successful operation, the resource must be in the ACTIVE state. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5173,9 +5145,8 @@ extension ResourceNotFoundException: Swift.Codable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5189,7 +5160,7 @@ extension ResourceNotFoundException { } /// The requested resource could not be found. The stream might not be specified correctly. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6637,102 +6608,9 @@ extension KinesisClientTypes { } -extension KinesisClientTypes.SubscribeToShardEventStream: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case internalfailureexception = "InternalFailureException" - case kmsaccessdeniedexception = "KMSAccessDeniedException" - case kmsdisabledexception = "KMSDisabledException" - case kmsinvalidstateexception = "KMSInvalidStateException" - case kmsnotfoundexception = "KMSNotFoundException" - case kmsoptinrequired = "KMSOptInRequired" - case kmsthrottlingexception = "KMSThrottlingException" - case resourceinuseexception = "ResourceInUseException" - case resourcenotfoundexception = "ResourceNotFoundException" - case subscribetoshardevent = "SubscribeToShardEvent" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - switch self { - case let .internalfailureexception(internalfailureexception): - try container.encode(internalfailureexception, forKey: .internalfailureexception) - case let .kmsaccessdeniedexception(kmsaccessdeniedexception): - try container.encode(kmsaccessdeniedexception, forKey: .kmsaccessdeniedexception) - case let .kmsdisabledexception(kmsdisabledexception): - try container.encode(kmsdisabledexception, forKey: .kmsdisabledexception) - case let .kmsinvalidstateexception(kmsinvalidstateexception): - try container.encode(kmsinvalidstateexception, forKey: .kmsinvalidstateexception) - case let .kmsnotfoundexception(kmsnotfoundexception): - try container.encode(kmsnotfoundexception, forKey: .kmsnotfoundexception) - case let .kmsoptinrequired(kmsoptinrequired): - try container.encode(kmsoptinrequired, forKey: .kmsoptinrequired) - case let .kmsthrottlingexception(kmsthrottlingexception): - try container.encode(kmsthrottlingexception, forKey: .kmsthrottlingexception) - case let .resourceinuseexception(resourceinuseexception): - try container.encode(resourceinuseexception, forKey: .resourceinuseexception) - case let .resourcenotfoundexception(resourcenotfoundexception): - try container.encode(resourcenotfoundexception, forKey: .resourcenotfoundexception) - case let .subscribetoshardevent(subscribetoshardevent): - try container.encode(subscribetoshardevent, forKey: .subscribetoshardevent) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: .sdkUnknown) - } - } - - public init (from decoder: Swift.Decoder) throws { - let values = try decoder.container(keyedBy: CodingKeys.self) - let subscribetoshardeventDecoded = try values.decodeIfPresent(KinesisClientTypes.SubscribeToShardEvent.self, forKey: .subscribetoshardevent) - if let subscribetoshardevent = subscribetoshardeventDecoded { - self = .subscribetoshardevent(subscribetoshardevent) - return - } - let resourcenotfoundexceptionDecoded = try values.decodeIfPresent(ResourceNotFoundException.self, forKey: .resourcenotfoundexception) - if let resourcenotfoundexception = resourcenotfoundexceptionDecoded { - self = .resourcenotfoundexception(resourcenotfoundexception) - return - } - let resourceinuseexceptionDecoded = try values.decodeIfPresent(ResourceInUseException.self, forKey: .resourceinuseexception) - if let resourceinuseexception = resourceinuseexceptionDecoded { - self = .resourceinuseexception(resourceinuseexception) - return - } - let kmsdisabledexceptionDecoded = try values.decodeIfPresent(KMSDisabledException.self, forKey: .kmsdisabledexception) - if let kmsdisabledexception = kmsdisabledexceptionDecoded { - self = .kmsdisabledexception(kmsdisabledexception) - return - } - let kmsinvalidstateexceptionDecoded = try values.decodeIfPresent(KMSInvalidStateException.self, forKey: .kmsinvalidstateexception) - if let kmsinvalidstateexception = kmsinvalidstateexceptionDecoded { - self = .kmsinvalidstateexception(kmsinvalidstateexception) - return - } - let kmsaccessdeniedexceptionDecoded = try values.decodeIfPresent(KMSAccessDeniedException.self, forKey: .kmsaccessdeniedexception) - if let kmsaccessdeniedexception = kmsaccessdeniedexceptionDecoded { - self = .kmsaccessdeniedexception(kmsaccessdeniedexception) - return - } - let kmsnotfoundexceptionDecoded = try values.decodeIfPresent(KMSNotFoundException.self, forKey: .kmsnotfoundexception) - if let kmsnotfoundexception = kmsnotfoundexceptionDecoded { - self = .kmsnotfoundexception(kmsnotfoundexception) - return - } - let kmsoptinrequiredDecoded = try values.decodeIfPresent(KMSOptInRequired.self, forKey: .kmsoptinrequired) - if let kmsoptinrequired = kmsoptinrequiredDecoded { - self = .kmsoptinrequired(kmsoptinrequired) - return - } - let kmsthrottlingexceptionDecoded = try values.decodeIfPresent(KMSThrottlingException.self, forKey: .kmsthrottlingexception) - if let kmsthrottlingexception = kmsthrottlingexceptionDecoded { - self = .kmsthrottlingexception(kmsthrottlingexception) - return - } - let internalfailureexceptionDecoded = try values.decodeIfPresent(InternalFailureException.self, forKey: .internalfailureexception) - if let internalfailureexception = internalfailureexceptionDecoded { - self = .internalfailureexception(internalfailureexception) - return - } - self = .sdkUnknown("") +extension KinesisClientTypes.SubscribeToShardEventStream: ClientRuntime.MessageUnmarshallable { + public init(message: ClientRuntime.EventStream.Message, decoder: ClientRuntime.ResponseDecoder) throws { + fatalError("Not implemented") } } @@ -6741,24 +6619,6 @@ extension KinesisClientTypes { public enum SubscribeToShardEventStream: Swift.Equatable { /// After you call [SubscribeToShard], Kinesis Data Streams sends events of this type to your consumer. For an example of how to handle these events, see [Enhanced Fan-Out Using the Kinesis Data Streams API]. case subscribetoshardevent(KinesisClientTypes.SubscribeToShardEvent) - /// The requested resource could not be found. The stream might not be specified correctly. - case resourcenotfoundexception(ResourceNotFoundException) - /// The resource is not available for this operation. For successful operation, the resource must be in the ACTIVE state. - case resourceinuseexception(ResourceInUseException) - /// The request was rejected because the specified customer master key (CMK) isn't enabled. - case kmsdisabledexception(KMSDisabledException) - /// The request was rejected because the state of the specified resource isn't valid for this request. For more information, see [How Key State Affects Use of a Customer Master Key](https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the Amazon Web Services Key Management Service Developer Guide. - case kmsinvalidstateexception(KMSInvalidStateException) - /// The ciphertext references a key that doesn't exist or that you don't have access to. - case kmsaccessdeniedexception(KMSAccessDeniedException) - /// The request was rejected because the specified entity or resource can't be found. - case kmsnotfoundexception(KMSNotFoundException) - /// The Amazon Web Services access key ID needs a subscription for the service. - case kmsoptinrequired(KMSOptInRequired) - /// The request was denied due to request throttling. For more information about throttling, see [Limits](https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) in the Amazon Web Services Key Management Service Developer Guide. - case kmsthrottlingexception(KMSThrottlingException) - /// The processing of the request failed because of an unknown error, exception, or failure. - case internalfailureexception(InternalFailureException) case sdkUnknown(Swift.String) } @@ -6870,9 +6730,8 @@ public enum SubscribeToShardOutputError: Swift.Error, Swift.Equatable { extension SubscribeToShardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubscribeToShardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventStream = output.eventStream } else { @@ -6884,32 +6743,16 @@ extension SubscribeToShardOutputResponse: ClientRuntime.HttpResponseBinding { public struct SubscribeToShardOutputResponse: Swift.Equatable { /// The event stream that your consumer can use to read records from the shard. /// This member is required. - public var eventStream: KinesisClientTypes.SubscribeToShardEventStream? + public var eventStream: AsyncThrowingStream? public init ( - eventStream: KinesisClientTypes.SubscribeToShardEventStream? = nil + eventStream: AsyncThrowingStream? = nil ) { self.eventStream = eventStream } } -struct SubscribeToShardOutputResponseBody: Swift.Equatable { - let eventStream: KinesisClientTypes.SubscribeToShardEventStream? -} - -extension SubscribeToShardOutputResponseBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case eventStream = "EventStream" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let eventStreamDecoded = try containerValues.decodeIfPresent(KinesisClientTypes.SubscribeToShardEventStream.self, forKey: .eventStream) - eventStream = eventStreamDecoded - } -} - extension KinesisClientTypes.Tag: Swift.Codable { enum CodingKeys: Swift.String, Swift.CodingKey { case key = "Key" @@ -7083,9 +6926,8 @@ public enum UpdateShardCountOutputError: Swift.Error, Swift.Equatable { extension UpdateShardCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateShardCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currentShardCount = output.currentShardCount self.streamARN = output.streamARN @@ -7253,9 +7095,8 @@ public struct UpdateStreamModeOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7269,7 +7110,7 @@ extension ValidationException { } /// Specifies that you tried to invoke this API for a data stream with the on-demand capacity mode. This API is only supported for data streams with the provisioned capacity mode. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKinesisAnalytics/KinesisAnalyticsClient.swift b/Sources/Services/AWSKinesisAnalytics/KinesisAnalyticsClient.swift index 475ef848c69..679a22b0171 100644 --- a/Sources/Services/AWSKinesisAnalytics/KinesisAnalyticsClient.swift +++ b/Sources/Services/AWSKinesisAnalytics/KinesisAnalyticsClient.swift @@ -208,6 +208,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationCloudWatchLoggingOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationInputProcessingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationReferenceDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationCloudWatchLoggingOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationInputProcessingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationReferenceDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "discoverInputSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -679,6 +692,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -695,7 +709,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -715,6 +729,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -731,7 +746,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -751,6 +766,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -767,7 +783,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -787,6 +803,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -803,7 +820,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -823,6 +840,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -839,7 +857,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +877,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -875,7 +894,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -895,6 +914,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -911,7 +931,7 @@ extension KinesisAnalyticsClient: KinesisAnalyticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKinesisAnalytics/models/Models.swift b/Sources/Services/AWSKinesisAnalytics/models/Models.swift index 4f94431604b..9dc75552c7f 100644 --- a/Sources/Services/AWSKinesisAnalytics/models/Models.swift +++ b/Sources/Services/AWSKinesisAnalytics/models/Models.swift @@ -1225,9 +1225,8 @@ extension KinesisAnalyticsClientTypes { extension CodeValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CodeValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1241,7 +1240,7 @@ extension CodeValidationException { } /// User-provided application code (query) is invalid. This can be a simple syntax error. -public struct CodeValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CodeValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1278,9 +1277,8 @@ extension CodeValidationExceptionBody: Swift.Decodable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1294,7 +1292,7 @@ extension ConcurrentModificationException { } /// Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1532,9 +1530,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationSummary = output.applicationSummary } else { @@ -2207,9 +2204,8 @@ public enum DescribeApplicationOutputError: Swift.Error, Swift.Equatable { extension DescribeApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationDetail = output.applicationDetail } else { @@ -2409,9 +2405,8 @@ public enum DiscoverInputSchemaOutputError: Swift.Error, Swift.Equatable { extension DiscoverInputSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DiscoverInputSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputSchema = output.inputSchema self.parsedInputRecords = output.parsedInputRecords @@ -3331,9 +3326,8 @@ extension KinesisAnalyticsClientTypes { extension InvalidApplicationConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApplicationConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3347,7 +3341,7 @@ extension InvalidApplicationConfigurationException { } /// User-provided application configuration is not valid. -public struct InvalidApplicationConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApplicationConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3384,9 +3378,8 @@ extension InvalidApplicationConfigurationExceptionBody: Swift.Decodable { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3400,7 +3393,7 @@ extension InvalidArgumentException { } /// Specified input parameter value is invalid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4158,9 +4151,8 @@ extension KinesisAnalyticsClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4174,7 +4166,7 @@ extension LimitExceededException { } /// Exceeded the number of applications allowed. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4291,9 +4283,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationSummaries = output.applicationSummaries self.hasMoreApplications = output.hasMoreApplications @@ -4428,9 +4419,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5097,9 +5087,8 @@ extension KinesisAnalyticsClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5113,7 +5102,7 @@ extension ResourceInUseException { } /// Application is not available for this operation. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5150,9 +5139,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5166,7 +5154,7 @@ extension ResourceNotFoundException { } /// Specified application can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5203,9 +5191,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceProvisionedThroughputExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceProvisionedThroughputExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5219,7 +5206,7 @@ extension ResourceProvisionedThroughputExceededException { } /// Discovery failed to get a record from the streaming source because of the Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, see [GetRecords](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) in the Amazon Kinesis Streams API Reference. -public struct ResourceProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5484,9 +5471,8 @@ extension KinesisAnalyticsClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5500,7 +5486,7 @@ extension ServiceUnavailableException { } /// The service is unavailable. Back off and retry the operation. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5965,9 +5951,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5981,7 +5966,7 @@ extension TooManyTagsException { } /// Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6017,9 +6002,8 @@ extension TooManyTagsExceptionBody: Swift.Decodable { extension UnableToDetectSchemaException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnableToDetectSchemaExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.processedInputRecords = output.processedInputRecords @@ -6037,7 +6021,7 @@ extension UnableToDetectSchemaException { } /// Data format is not valid. Amazon Kinesis Analytics is not able to detect schema for the given streaming source. -public struct UnableToDetectSchemaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnableToDetectSchemaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6105,9 +6089,8 @@ extension UnableToDetectSchemaExceptionBody: Swift.Decodable { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6121,7 +6104,7 @@ extension UnsupportedOperationException { } /// The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKinesisAnalyticsV2/KinesisAnalyticsV2Client.swift b/Sources/Services/AWSKinesisAnalyticsV2/KinesisAnalyticsV2Client.swift index 187b7ada18c..8070b067af9 100644 --- a/Sources/Services/AWSKinesisAnalyticsV2/KinesisAnalyticsV2Client.swift +++ b/Sources/Services/AWSKinesisAnalyticsV2/KinesisAnalyticsV2Client.swift @@ -208,6 +208,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationCloudWatchLoggingOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationInputProcessingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationReferenceDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -392,6 +397,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addApplicationVpcConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -408,7 +414,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -428,6 +434,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -444,7 +451,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +471,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplicationPresignedUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -480,7 +488,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -500,6 +508,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplicationSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -516,7 +525,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -536,6 +545,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -552,7 +562,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -572,6 +582,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationCloudWatchLoggingOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +599,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +619,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationInputProcessingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -624,7 +636,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -644,6 +656,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -660,7 +673,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +693,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationReferenceDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -696,7 +710,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -716,6 +730,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -732,7 +747,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -752,6 +767,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationVpcConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +784,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +804,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +821,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +841,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplicationSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -840,7 +858,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -860,6 +878,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplicationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -876,7 +895,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -896,6 +915,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "discoverInputSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +932,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +952,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -948,7 +969,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -968,6 +989,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1006,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1026,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1020,7 +1043,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1040,6 +1063,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1056,7 +1080,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1076,6 +1100,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rollbackApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1092,7 +1117,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1112,6 +1137,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1128,7 +1154,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1174,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1164,7 +1191,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1184,6 +1211,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1200,7 +1228,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1220,6 +1248,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1236,7 +1265,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1256,6 +1285,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1272,7 +1302,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1292,6 +1322,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplicationMaintenanceConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1308,7 +1339,7 @@ extension KinesisAnalyticsV2Client: KinesisAnalyticsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKinesisAnalyticsV2/models/Models.swift b/Sources/Services/AWSKinesisAnalyticsV2/models/Models.swift index 03b7074d5db..586e59ab9dd 100644 --- a/Sources/Services/AWSKinesisAnalyticsV2/models/Models.swift +++ b/Sources/Services/AWSKinesisAnalyticsV2/models/Models.swift @@ -121,9 +121,8 @@ public enum AddApplicationCloudWatchLoggingOptionOutputError: Swift.Error, Swift extension AddApplicationCloudWatchLoggingOptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddApplicationCloudWatchLoggingOptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -297,9 +296,8 @@ public enum AddApplicationInputOutputError: Swift.Error, Swift.Equatable { extension AddApplicationInputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddApplicationInputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -484,9 +482,8 @@ public enum AddApplicationInputProcessingConfigurationOutputError: Swift.Error, extension AddApplicationInputProcessingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddApplicationInputProcessingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -659,9 +656,8 @@ public enum AddApplicationOutputOutputError: Swift.Error, Swift.Equatable { extension AddApplicationOutputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddApplicationOutputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -833,9 +829,8 @@ public enum AddApplicationReferenceDataSourceOutputError: Swift.Error, Swift.Equ extension AddApplicationReferenceDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddApplicationReferenceDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -1018,9 +1013,8 @@ public enum AddApplicationVpcConfigurationOutputError: Swift.Error, Swift.Equata extension AddApplicationVpcConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddApplicationVpcConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -3006,9 +3000,8 @@ extension KinesisAnalyticsV2ClientTypes { extension CodeValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CodeValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3022,7 +3015,7 @@ extension CodeValidationException { } /// The user-provided application code (query) is not valid. This can be a simple syntax error. -public struct CodeValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CodeValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3058,9 +3051,8 @@ extension CodeValidationExceptionBody: Swift.Decodable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3074,7 +3066,7 @@ extension ConcurrentModificationException { } /// Exception thrown as a result of concurrent modifications to an application. This error can be the result of attempting to modify an application without using the current application ID. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3336,9 +3328,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationDetail = output.applicationDetail } else { @@ -3477,9 +3468,8 @@ public enum CreateApplicationPresignedUrlOutputError: Swift.Error, Swift.Equatab extension CreateApplicationPresignedUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationPresignedUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedUrl = output.authorizedUrl } else { @@ -3851,9 +3841,8 @@ public enum DeleteApplicationCloudWatchLoggingOptionOutputError: Swift.Error, Sw extension DeleteApplicationCloudWatchLoggingOptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteApplicationCloudWatchLoggingOptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -4086,9 +4075,8 @@ public enum DeleteApplicationInputProcessingConfigurationOutputError: Swift.Erro extension DeleteApplicationInputProcessingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteApplicationInputProcessingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -4273,9 +4261,8 @@ public enum DeleteApplicationOutputOutputError: Swift.Error, Swift.Equatable { extension DeleteApplicationOutputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteApplicationOutputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -4438,9 +4425,8 @@ public enum DeleteApplicationReferenceDataSourceOutputError: Swift.Error, Swift. extension DeleteApplicationReferenceDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteApplicationReferenceDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -4720,9 +4706,8 @@ public enum DeleteApplicationVpcConfigurationOutputError: Swift.Error, Swift.Equ extension DeleteApplicationVpcConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteApplicationVpcConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationVersionId = output.applicationVersionId @@ -4964,9 +4949,8 @@ public enum DescribeApplicationOutputError: Swift.Error, Swift.Equatable { extension DescribeApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationDetail = output.applicationDetail } else { @@ -5093,9 +5077,8 @@ public enum DescribeApplicationSnapshotOutputError: Swift.Error, Swift.Equatable extension DescribeApplicationSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotDetails = output.snapshotDetails } else { @@ -5222,9 +5205,8 @@ public enum DescribeApplicationVersionOutputError: Swift.Error, Swift.Equatable extension DescribeApplicationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationVersionDetail = output.applicationVersionDetail } else { @@ -5427,9 +5409,8 @@ public enum DiscoverInputSchemaOutputError: Swift.Error, Swift.Equatable { extension DiscoverInputSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DiscoverInputSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputSchema = output.inputSchema self.parsedInputRecords = output.parsedInputRecords @@ -6744,9 +6725,8 @@ extension KinesisAnalyticsV2ClientTypes { extension InvalidApplicationConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidApplicationConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6760,7 +6740,7 @@ extension InvalidApplicationConfigurationException { } /// The user-provided application configuration is not valid. -public struct InvalidApplicationConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidApplicationConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6796,9 +6776,8 @@ extension InvalidApplicationConfigurationExceptionBody: Swift.Decodable { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6812,7 +6791,7 @@ extension InvalidArgumentException { } /// The specified input parameter value is not valid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6848,9 +6827,8 @@ extension InvalidArgumentExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6864,7 +6842,7 @@ extension InvalidRequestException { } /// The request JSON is not valid for the operation. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7526,9 +7504,8 @@ extension KinesisAnalyticsV2ClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7542,7 +7519,7 @@ extension LimitExceededException { } /// The number of allowed resources has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7674,9 +7651,8 @@ public enum ListApplicationSnapshotsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshotSummaries = output.snapshotSummaries @@ -7832,9 +7808,8 @@ public enum ListApplicationVersionsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationVersionSummaries = output.applicationVersionSummaries self.nextToken = output.nextToken @@ -7973,9 +7948,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationSummaries = output.applicationSummaries self.nextToken = output.nextToken @@ -8108,9 +8082,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -9342,9 +9315,8 @@ extension KinesisAnalyticsV2ClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9358,7 +9330,7 @@ extension ResourceInUseException { } /// The application is not available for this operation. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9394,9 +9366,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9410,7 +9381,7 @@ extension ResourceNotFoundException { } /// Specified application can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9446,9 +9417,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceProvisionedThroughputExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceProvisionedThroughputExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9462,7 +9432,7 @@ extension ResourceProvisionedThroughputExceededException { } /// Discovery failed to get a record from the streaming source because of the Kinesis Streams ProvisionedThroughputExceededException. For more information, see [GetRecords](http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) in the Amazon Kinesis Streams API Reference. -public struct ResourceProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9591,9 +9561,8 @@ public enum RollbackApplicationOutputError: Swift.Error, Swift.Equatable { extension RollbackApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RollbackApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationDetail = output.applicationDetail } else { @@ -10340,9 +10309,8 @@ extension KinesisAnalyticsV2ClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10356,7 +10324,7 @@ extension ServiceUnavailableException { } /// The service cannot complete the request. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11248,9 +11216,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11264,7 +11231,7 @@ extension TooManyTagsException { } /// Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11300,9 +11267,8 @@ extension TooManyTagsExceptionBody: Swift.Decodable { extension UnableToDetectSchemaException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnableToDetectSchemaExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.processedInputRecords = output.processedInputRecords @@ -11320,7 +11286,7 @@ extension UnableToDetectSchemaException { } /// The data format is not valid. Kinesis Data Analytics cannot detect the schema for the given streaming source. -public struct UnableToDetectSchemaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnableToDetectSchemaException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11390,9 +11356,8 @@ extension UnableToDetectSchemaExceptionBody: Swift.Decodable { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11406,7 +11371,7 @@ extension UnsupportedOperationException { } /// The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11778,9 +11743,8 @@ public enum UpdateApplicationMaintenanceConfigurationOutputError: Swift.Error, S extension UpdateApplicationMaintenanceConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationMaintenanceConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationARN = output.applicationARN self.applicationMaintenanceConfigurationDescription = output.applicationMaintenanceConfigurationDescription @@ -11865,9 +11829,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationDetail = output.applicationDetail } else { diff --git a/Sources/Services/AWSKinesisVideo/KinesisVideoClient.swift b/Sources/Services/AWSKinesisVideo/KinesisVideoClient.swift index fc5374c8ddd..96b262a6dc6 100644 --- a/Sources/Services/AWSKinesisVideo/KinesisVideoClient.swift +++ b/Sources/Services/AWSKinesisVideo/KinesisVideoClient.swift @@ -208,6 +208,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSignalingChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSignalingChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEdgeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImageGenerationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMappedResourceConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMediaStorageConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSignalingChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSignalingChannelEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -643,7 +656,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -663,6 +676,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSignalingChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +692,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +712,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +728,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +748,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +764,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +784,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +800,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +820,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startEdgeConfigurationUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +872,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +892,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +908,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +928,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -923,7 +944,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +964,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -958,7 +980,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -982,6 +1004,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataRetention") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -997,7 +1020,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1017,6 +1040,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateImageGenerationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1056,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1056,6 +1080,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMediaStorageConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1071,7 +1096,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1091,6 +1116,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1106,7 +1132,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1126,6 +1152,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSignalingChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1141,7 +1168,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1161,6 +1188,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1204,7 @@ extension KinesisVideoClient: KinesisVideoClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKinesisVideo/models/Models.swift b/Sources/Services/AWSKinesisVideo/models/Models.swift index def1862fc12..77a3a913510 100644 --- a/Sources/Services/AWSKinesisVideo/models/Models.swift +++ b/Sources/Services/AWSKinesisVideo/models/Models.swift @@ -54,9 +54,8 @@ extension KinesisVideoClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -70,7 +69,7 @@ extension AccessDeniedException { } /// You do not have required permissions to perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -106,9 +105,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension AccountChannelLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountChannelLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -122,7 +120,7 @@ extension AccountChannelLimitExceededException { } /// You have reached the maximum limit of active signaling channels for this Amazon Web Services account in this region. -public struct AccountChannelLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountChannelLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -158,9 +156,8 @@ extension AccountChannelLimitExceededExceptionBody: Swift.Decodable { extension AccountStreamLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountStreamLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -174,7 +171,7 @@ extension AccountStreamLimitExceededException { } /// The number of streams created for the account is too high. -public struct AccountStreamLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountStreamLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -449,9 +446,8 @@ extension KinesisVideoClientTypes { extension ClientLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -465,7 +461,7 @@ extension ClientLimitExceededException { } /// Kinesis Video Streams has throttled the request because you have exceeded the limit of allowed client calls. Try making the call later. -public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -690,9 +686,8 @@ public enum CreateSignalingChannelOutputError: Swift.Error, Swift.Equatable { extension CreateSignalingChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSignalingChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelARN = output.channelARN } else { @@ -885,9 +880,8 @@ public enum CreateStreamOutputError: Swift.Error, Swift.Equatable { extension CreateStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamARN = output.streamARN } else { @@ -1274,9 +1268,8 @@ public enum DescribeEdgeConfigurationOutputError: Swift.Error, Swift.Equatable { extension DescribeEdgeConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEdgeConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.edgeConfig = output.edgeConfig @@ -1462,9 +1455,8 @@ public enum DescribeImageGenerationConfigurationOutputError: Swift.Error, Swift. extension DescribeImageGenerationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImageGenerationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageGenerationConfiguration = output.imageGenerationConfiguration } else { @@ -1614,9 +1606,8 @@ public enum DescribeMappedResourceConfigurationOutputError: Swift.Error, Swift.E extension DescribeMappedResourceConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMappedResourceConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mappedResourceConfigurationList = output.mappedResourceConfigurationList self.nextToken = output.nextToken @@ -1761,9 +1752,8 @@ public enum DescribeMediaStorageConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeMediaStorageConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMediaStorageConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mediaStorageConfiguration = output.mediaStorageConfiguration } else { @@ -1889,9 +1879,8 @@ public enum DescribeNotificationConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeNotificationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNotificationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notificationConfiguration = output.notificationConfiguration } else { @@ -2017,9 +2006,8 @@ public enum DescribeSignalingChannelOutputError: Swift.Error, Swift.Equatable { extension DescribeSignalingChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSignalingChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelInfo = output.channelInfo } else { @@ -2145,9 +2133,8 @@ public enum DescribeStreamOutputError: Swift.Error, Swift.Equatable { extension DescribeStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamInfo = output.streamInfo } else { @@ -2186,9 +2173,8 @@ extension DescribeStreamOutputResponseBody: Swift.Decodable { extension DeviceStreamLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeviceStreamLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2202,7 +2188,7 @@ extension DeviceStreamLimitExceededException { } /// Not implemented. -public struct DeviceStreamLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeviceStreamLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2466,9 +2452,8 @@ public enum GetDataEndpointOutputError: Swift.Error, Swift.Equatable { extension GetDataEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataEndpoint = output.dataEndpoint } else { @@ -2597,9 +2582,8 @@ public enum GetSignalingChannelEndpointOutputError: Swift.Error, Swift.Equatable extension GetSignalingChannelEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSignalingChannelEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceEndpointList = output.resourceEndpointList } else { @@ -2848,9 +2832,8 @@ extension KinesisVideoClientTypes { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2864,7 +2847,7 @@ extension InvalidArgumentException { } /// The value for this input parameter is invalid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2900,9 +2883,8 @@ extension InvalidArgumentExceptionBody: Swift.Decodable { extension InvalidDeviceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeviceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2916,7 +2898,7 @@ extension InvalidDeviceException { } /// Not implemented. -public struct InvalidDeviceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeviceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2952,9 +2934,8 @@ extension InvalidDeviceExceptionBody: Swift.Decodable { extension InvalidResourceFormatException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceFormatExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2968,7 +2949,7 @@ extension InvalidResourceFormatException { } /// The format of the StreamARN is invalid. -public struct InvalidResourceFormatException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceFormatException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3101,9 +3082,8 @@ public enum ListSignalingChannelsOutputError: Swift.Error, Swift.Equatable { extension ListSignalingChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSignalingChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelInfoList = output.channelInfoList self.nextToken = output.nextToken @@ -3256,9 +3236,8 @@ public enum ListStreamsOutputError: Swift.Error, Swift.Equatable { extension ListStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streamInfoList = output.streamInfoList @@ -3404,9 +3383,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -3565,9 +3543,8 @@ public enum ListTagsForStreamOutputError: Swift.Error, Swift.Equatable { extension ListTagsForStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -3877,9 +3854,8 @@ extension KinesisVideoClientTypes { extension NoDataRetentionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoDataRetentionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3893,7 +3869,7 @@ extension NoDataRetentionException { } /// The Stream data retention in hours is equal to zero. -public struct NoDataRetentionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoDataRetentionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3929,9 +3905,8 @@ extension NoDataRetentionExceptionBody: Swift.Decodable { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAuthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3945,7 +3920,7 @@ extension NotAuthorizedException { } /// The caller is not authorized to perform this operation. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4155,9 +4130,8 @@ extension KinesisVideoClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4177,7 +4151,7 @@ extension ResourceInUseException { /// * The DescribeMappedResourceConfiguration API to determine the channel that the given stream is mapped to. /// /// * The DescribeStream or DescribeSignalingChannel API to determine the status of the resource. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4213,9 +4187,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4229,7 +4202,7 @@ extension ResourceNotFoundException { } /// Amazon Kinesis Video Streams can't find the stream that you specified. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4508,9 +4481,8 @@ public enum StartEdgeConfigurationUpdateOutputError: Swift.Error, Swift.Equatabl extension StartEdgeConfigurationUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartEdgeConfigurationUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.edgeConfig = output.edgeConfig @@ -4679,9 +4651,8 @@ extension KinesisVideoClientTypes { extension StreamEdgeConfigurationNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StreamEdgeConfigurationNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4695,7 +4666,7 @@ extension StreamEdgeConfigurationNotFoundException { } /// The Exception rendered when the Amazon Kinesis Video Stream can't find a stream's edge configuration that you specified. -public struct StreamEdgeConfigurationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StreamEdgeConfigurationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5221,9 +5192,8 @@ public struct TagStreamOutputResponse: Swift.Equatable { extension TagsPerResourceExceededLimitException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagsPerResourceExceededLimitExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5237,7 +5207,7 @@ extension TagsPerResourceExceededLimitException { } /// You have exceeded the limit of tags that you can associate with the resource. A Kinesis video stream can support up to 50 tags. -public struct TagsPerResourceExceededLimitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagsPerResourceExceededLimitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6298,9 +6268,8 @@ extension KinesisVideoClientTypes { extension VersionMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VersionMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6314,7 +6283,7 @@ extension VersionMismatchException { } /// The stream version that you specified is not the latest version. To get the latest version, use the [DescribeStream](https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html) API. -public struct VersionMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VersionMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKinesisVideoArchivedMedia/KinesisVideoArchivedMediaClient.swift b/Sources/Services/AWSKinesisVideoArchivedMedia/KinesisVideoArchivedMediaClient.swift index ce6ef4309ef..ba3cba4e199 100644 --- a/Sources/Services/AWSKinesisVideoArchivedMedia/KinesisVideoArchivedMediaClient.swift +++ b/Sources/Services/AWSKinesisVideoArchivedMedia/KinesisVideoArchivedMediaClient.swift @@ -219,6 +219,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClip") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -234,7 +235,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -292,6 +293,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDASHStreamingSessionURL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -307,7 +309,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -369,6 +371,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHLSStreamingSessionURL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +387,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +407,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -419,7 +423,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -446,6 +450,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMediaForFragmentList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -461,7 +466,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +493,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFragments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +509,7 @@ extension KinesisVideoArchivedMediaClient: KinesisVideoArchivedMediaClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKinesisVideoArchivedMedia/models/Models.swift b/Sources/Services/AWSKinesisVideoArchivedMedia/models/Models.swift index c2226adb6ef..0376b539c6a 100644 --- a/Sources/Services/AWSKinesisVideoArchivedMedia/models/Models.swift +++ b/Sources/Services/AWSKinesisVideoArchivedMedia/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ClientLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ClientLimitExceededException { } /// Kinesis Video Streams has throttled the request because you have exceeded a limit. Try making the call later. For information about limits, see [Kinesis Video Streams Limits](http://docs.aws.amazon.com/kinesisvideostreams/latest/dg/limits.html). -public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -776,9 +775,12 @@ extension GetClipOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.payload = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.payload = .data(data) + case .stream(let stream): + self.payload = .stream(stream) + case .none: self.payload = nil } } @@ -994,9 +996,8 @@ public enum GetDASHStreamingSessionURLOutputError: Swift.Error, Swift.Equatable extension GetDASHStreamingSessionURLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDASHStreamingSessionURLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashStreamingSessionURL = output.dashStreamingSessionURL } else { @@ -1232,9 +1233,8 @@ public enum GetHLSStreamingSessionURLOutputError: Swift.Error, Swift.Equatable { extension GetHLSStreamingSessionURLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHLSStreamingSessionURLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hlsStreamingSessionURL = output.hlsStreamingSessionURL } else { @@ -1497,9 +1497,8 @@ public enum GetImagesOutputError: Swift.Error, Swift.Equatable { extension GetImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.images = output.images self.nextToken = output.nextToken @@ -1674,9 +1673,12 @@ extension GetMediaForFragmentListOutputResponse: ClientRuntime.HttpResponseBindi } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.payload = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.payload = .data(data) + case .stream(let stream): + self.payload = .stream(stream) + case .none: self.payload = nil } } @@ -2081,9 +2083,8 @@ extension KinesisVideoArchivedMediaClientTypes { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2097,7 +2098,7 @@ extension InvalidArgumentException { } /// A specified parameter exceeds its restrictions, is not supported, or can't be used. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2133,9 +2134,8 @@ extension InvalidArgumentExceptionBody: Swift.Decodable { extension InvalidCodecPrivateDataException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCodecPrivateDataExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2149,7 +2149,7 @@ extension InvalidCodecPrivateDataException { } /// The codec private data in at least one of the tracks of the video stream is not valid for this operation. -public struct InvalidCodecPrivateDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCodecPrivateDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2185,9 +2185,8 @@ extension InvalidCodecPrivateDataExceptionBody: Swift.Decodable { extension InvalidMediaFrameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMediaFrameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2201,7 +2200,7 @@ extension InvalidMediaFrameException { } /// One or more frames in the requested clip could not be parsed based on the specified codec. -public struct InvalidMediaFrameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMediaFrameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2360,9 +2359,8 @@ public enum ListFragmentsOutputError: Swift.Error, Swift.Equatable { extension ListFragmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFragmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fragments = output.fragments self.nextToken = output.nextToken @@ -2420,9 +2418,8 @@ extension ListFragmentsOutputResponseBody: Swift.Decodable { extension MissingCodecPrivateDataException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingCodecPrivateDataExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2436,7 +2433,7 @@ extension MissingCodecPrivateDataException { } /// No codec private data was found in at least one of tracks of the video stream. -public struct MissingCodecPrivateDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingCodecPrivateDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2472,9 +2469,8 @@ extension MissingCodecPrivateDataExceptionBody: Swift.Decodable { extension NoDataRetentionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoDataRetentionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2488,7 +2484,7 @@ extension NoDataRetentionException { } /// A streaming session was requested for a stream that does not retain data (that is, has a DataRetentionInHours of 0). -public struct NoDataRetentionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoDataRetentionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2524,9 +2520,8 @@ extension NoDataRetentionExceptionBody: Swift.Decodable { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAuthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2540,7 +2535,7 @@ extension NotAuthorizedException { } /// Status Code: 403, The caller is not authorized to perform an operation on the given stream, or the token has expired. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2576,9 +2571,8 @@ extension NotAuthorizedExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2592,7 +2586,7 @@ extension ResourceNotFoundException { } /// GetMedia throws this error when Kinesis Video Streams can't find the stream that you specified. GetHLSStreamingSessionURL and GetDASHStreamingSessionURL throw this error if a session with a PlaybackMode of ON_DEMAND or LIVE_REPLAYis requested for a stream that has no fragments within the requested time range, or if a session with a PlaybackMode of LIVE is requested for a stream that has no fragments within the last 30 seconds. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2675,9 +2669,8 @@ extension KinesisVideoArchivedMediaClientTypes { extension UnsupportedStreamMediaTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedStreamMediaTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2691,7 +2684,7 @@ extension UnsupportedStreamMediaTypeException { } /// The type of the media (for example, h.264 or h.265 video or ACC or G.711 audio) could not be determined from the codec IDs of the tracks in the first fragment for a playback session. The codec ID for track 1 should be V_MPEG/ISO/AVC and, optionally, the codec ID for track 2 should be A_AAC. -public struct UnsupportedStreamMediaTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedStreamMediaTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKinesisVideoMedia/KinesisVideoMediaClient.swift b/Sources/Services/AWSKinesisVideoMedia/KinesisVideoMediaClient.swift index 26bc7dc3021..da85e2a6429 100644 --- a/Sources/Services/AWSKinesisVideoMedia/KinesisVideoMediaClient.swift +++ b/Sources/Services/AWSKinesisVideoMedia/KinesisVideoMediaClient.swift @@ -222,6 +222,7 @@ extension KinesisVideoMediaClient: KinesisVideoMediaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMedia") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -237,7 +238,7 @@ extension KinesisVideoMediaClient: KinesisVideoMediaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKinesisVideoMedia/models/Models.swift b/Sources/Services/AWSKinesisVideoMedia/models/Models.swift index 0214a44055b..1daaab5ae3a 100644 --- a/Sources/Services/AWSKinesisVideoMedia/models/Models.swift +++ b/Sources/Services/AWSKinesisVideoMedia/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ClientLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ClientLimitExceededException { } /// Kinesis Video Streams has throttled the request because you have exceeded the limit of allowed client calls. Try making the call later. -public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension ClientLimitExceededExceptionBody: Swift.Decodable { extension ConnectionLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConnectionLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension ConnectionLimitExceededException { } /// Kinesis Video Streams has throttled the request because you have exceeded the limit of allowed client connections. -public struct ConnectionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConnectionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -217,9 +215,12 @@ extension GetMediaOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.payload = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.payload = .data(data) + case .stream(let stream): + self.payload = .stream(stream) + case .none: self.payload = nil } } @@ -299,9 +300,8 @@ extension GetMediaOutputResponseBody: Swift.Decodable { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -315,7 +315,7 @@ extension InvalidArgumentException { } /// The value for this input parameter is invalid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -351,9 +351,8 @@ extension InvalidArgumentExceptionBody: Swift.Decodable { extension InvalidEndpointException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEndpointExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -367,7 +366,7 @@ extension InvalidEndpointException { } /// Status Code: 400, Caller used wrong endpoint to write data to a stream. On receiving such an exception, the user must call GetDataEndpoint with AccessMode set to "READ" and use the endpoint Kinesis Video returns in the next GetMedia call. -public struct InvalidEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -403,9 +402,8 @@ extension InvalidEndpointExceptionBody: Swift.Decodable { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAuthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -419,7 +417,7 @@ extension NotAuthorizedException { } /// Status Code: 403, The caller is not authorized to perform an operation on the given stream, or the token has expired. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -455,9 +453,8 @@ extension NotAuthorizedExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -471,7 +468,7 @@ extension ResourceNotFoundException { } /// Status Code: 404, The stream with the given name does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKinesisVideoSignaling/KinesisVideoSignalingClient.swift b/Sources/Services/AWSKinesisVideoSignaling/KinesisVideoSignalingClient.swift index 51dadc5af8d..cc2c5c83617 100644 --- a/Sources/Services/AWSKinesisVideoSignaling/KinesisVideoSignalingClient.swift +++ b/Sources/Services/AWSKinesisVideoSignaling/KinesisVideoSignalingClient.swift @@ -208,6 +208,7 @@ extension KinesisVideoSignalingClient: KinesisVideoSignalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIceServerConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension KinesisVideoSignalingClient: KinesisVideoSignalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension KinesisVideoSignalingClient: KinesisVideoSignalingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendAlexaOfferToMaster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension KinesisVideoSignalingClient: KinesisVideoSignalingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKinesisVideoSignaling/models/Models.swift b/Sources/Services/AWSKinesisVideoSignaling/models/Models.swift index c1e1d51f525..f03ad808c11 100644 --- a/Sources/Services/AWSKinesisVideoSignaling/models/Models.swift +++ b/Sources/Services/AWSKinesisVideoSignaling/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ClientLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ClientLimitExceededException { } /// Your request was throttled because you have exceeded the limit of allowed client calls. Try making the call later. -public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -172,9 +171,8 @@ public enum GetIceServerConfigOutputError: Swift.Error, Swift.Equatable { extension GetIceServerConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIceServerConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iceServerList = output.iceServerList } else { @@ -299,9 +297,8 @@ extension KinesisVideoSignalingClientTypes { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -315,7 +312,7 @@ extension InvalidArgumentException { } /// The value for this input parameter is invalid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -351,9 +348,8 @@ extension InvalidArgumentExceptionBody: Swift.Decodable { extension InvalidClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClientExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -367,7 +363,7 @@ extension InvalidClientException { } /// The specified client is invalid. -public struct InvalidClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -403,9 +399,8 @@ extension InvalidClientExceptionBody: Swift.Decodable { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAuthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -419,7 +414,7 @@ extension NotAuthorizedException { } /// The caller is not authorized to perform this operation. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -455,9 +450,8 @@ extension NotAuthorizedExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -471,7 +465,7 @@ extension ResourceNotFoundException { } /// The specified resource is not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -609,9 +603,8 @@ public enum SendAlexaOfferToMasterOutputError: Swift.Error, Swift.Equatable { extension SendAlexaOfferToMasterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendAlexaOfferToMasterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.answer = output.answer } else { @@ -679,9 +672,8 @@ extension KinesisVideoSignalingClientTypes { extension SessionExpiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SessionExpiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -695,7 +687,7 @@ extension SessionExpiredException { } /// If the client session is expired. Once the client is connected, the session is valid for 45 minutes. Client should reconnect to the channel to continue sending/receiving messages. -public struct SessionExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SessionExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSKinesisVideoWebRTCStorage/KinesisVideoWebRTCStorageClient.swift b/Sources/Services/AWSKinesisVideoWebRTCStorage/KinesisVideoWebRTCStorageClient.swift index c8f8d1b14d4..10a019594a5 100644 --- a/Sources/Services/AWSKinesisVideoWebRTCStorage/KinesisVideoWebRTCStorageClient.swift +++ b/Sources/Services/AWSKinesisVideoWebRTCStorage/KinesisVideoWebRTCStorageClient.swift @@ -208,6 +208,7 @@ extension KinesisVideoWebRTCStorageClient: KinesisVideoWebRTCStorageClientProtoc .withRegion(value: config.region) .withSigningName(value: "kinesisvideo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "joinStorageSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension KinesisVideoWebRTCStorageClient: KinesisVideoWebRTCStorageClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSKinesisVideoWebRTCStorage/models/Models.swift b/Sources/Services/AWSKinesisVideoWebRTCStorage/models/Models.swift index 2a3c96c31b9..b0570e39907 100644 --- a/Sources/Services/AWSKinesisVideoWebRTCStorage/models/Models.swift +++ b/Sources/Services/AWSKinesisVideoWebRTCStorage/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have required permissions to perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension ClientLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClientLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension ClientLimitExceededException { } /// Kinesis Video Streams has throttled the request because you have exceeded the limit of allowed client calls. Try making the call later. -public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClientLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -108,9 +106,8 @@ extension ClientLimitExceededExceptionBody: Swift.Decodable { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -124,7 +121,7 @@ extension InvalidArgumentException { } /// The value for this input parameter is invalid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -246,9 +243,8 @@ public struct JoinStorageSessionOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -262,7 +258,7 @@ extension ResourceNotFoundException { } /// The specified resource is not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLakeFormation/LakeFormationClient.swift b/Sources/Services/AWSLakeFormation/LakeFormationClient.swift index b0abf3259ab..65fde7cafbd 100644 --- a/Sources/Services/AWSLakeFormation/LakeFormationClient.swift +++ b/Sources/Services/AWSLakeFormation/LakeFormationClient.swift @@ -208,6 +208,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addLFTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assumeDecoratedRoleWithSAML") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGrantPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchRevokePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelTransaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "commitTransaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataCellsFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLFTag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataCellsFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLFTag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteObjectsOnCancel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -643,7 +656,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -663,6 +676,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +692,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +712,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "extendTransaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +728,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +748,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataCellsFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +764,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +784,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataLakeSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +800,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +820,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEffectivePermissionsForPath") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLFTag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +872,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +892,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueryState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "query-")) @@ -888,7 +908,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +928,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueryStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "query-")) @@ -923,7 +944,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +964,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceLFTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -958,7 +980,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -978,6 +1000,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTableObjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -993,7 +1016,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1013,6 +1036,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemporaryGluePartitionCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1028,7 +1052,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1048,6 +1072,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemporaryGlueTableCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1063,7 +1088,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1083,6 +1108,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkUnitResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data-")) @@ -1098,7 +1124,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1118,6 +1144,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkUnits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "query-")) @@ -1133,7 +1160,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1153,6 +1180,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "grantPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1196,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1216,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataCellsFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1203,7 +1232,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1223,6 +1252,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLFTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1238,7 +1268,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1258,6 +1288,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1273,7 +1304,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1293,6 +1324,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1308,7 +1340,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1328,6 +1360,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTableStorageOptimizers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1343,7 +1376,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1363,6 +1396,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTransactions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1378,7 +1412,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1398,6 +1432,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDataLakeSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1413,7 +1448,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1433,6 +1468,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1484,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1504,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeLFTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1483,7 +1520,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1503,6 +1540,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1518,7 +1556,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1538,6 +1576,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchDatabasesByLFTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1553,7 +1592,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1573,6 +1612,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchTablesByLFTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1588,7 +1628,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1608,6 +1648,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startQueryPlanning") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "query-")) @@ -1623,7 +1664,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1643,6 +1684,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTransaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1658,7 +1700,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1678,6 +1720,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataCellsFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1693,7 +1736,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1713,6 +1756,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLFTag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1728,7 +1772,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1748,6 +1792,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1763,7 +1808,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1783,6 +1828,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTableObjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1798,7 +1844,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1818,6 +1864,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lakeformation") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTableStorageOptimizer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1833,7 +1880,7 @@ extension LakeFormationClient: LakeFormationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLakeFormation/models/Models.swift b/Sources/Services/AWSLakeFormation/models/Models.swift index 8bf027beaa2..be0f7e1ac4a 100644 --- a/Sources/Services/AWSLakeFormation/models/Models.swift +++ b/Sources/Services/AWSLakeFormation/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access to a resource was denied. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -174,9 +173,8 @@ public enum AddLFTagsToResourceOutputError: Swift.Error, Swift.Equatable { extension AddLFTagsToResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddLFTagsToResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures } else { @@ -324,9 +322,8 @@ extension LakeFormationClientTypes { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -340,7 +337,7 @@ extension AlreadyExistsException { } /// A resource to be created or added already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -493,9 +490,8 @@ public enum AssumeDecoratedRoleWithSAMLOutputError: Swift.Error, Swift.Equatable extension AssumeDecoratedRoleWithSAMLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssumeDecoratedRoleWithSAMLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKeyId = output.accessKeyId self.expiration = output.expiration @@ -695,9 +691,8 @@ public enum BatchGrantPermissionsOutputError: Swift.Error, Swift.Equatable { extension BatchGrantPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGrantPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures } else { @@ -986,9 +981,8 @@ public enum BatchRevokePermissionsOutputError: Swift.Error, Swift.Equatable { extension BatchRevokePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchRevokePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures } else { @@ -1332,9 +1326,8 @@ public enum CommitTransactionOutputError: Swift.Error, Swift.Equatable { extension CommitTransactionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitTransactionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transactionStatus = output.transactionStatus } else { @@ -1432,9 +1425,8 @@ extension LakeFormationClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1448,7 +1440,7 @@ extension ConcurrentModificationException { } /// Two processes are trying to modify a resource simultaneously. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2866,9 +2858,8 @@ public enum DescribeResourceOutputError: Swift.Error, Swift.Equatable { extension DescribeResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceInfo = output.resourceInfo } else { @@ -2983,9 +2974,8 @@ public enum DescribeTransactionOutputError: Swift.Error, Swift.Equatable { extension DescribeTransactionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransactionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transactionDescription = output.transactionDescription } else { @@ -3071,9 +3061,8 @@ extension LakeFormationClientTypes { extension EntityNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3087,7 +3076,7 @@ extension EntityNotFoundException { } /// A specified entity does not exist. -public struct EntityNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3224,9 +3213,8 @@ extension LakeFormationClientTypes { extension ExpiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3240,7 +3228,7 @@ extension ExpiredException { } /// Contains details about an error where the query request expired. -public struct ExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3587,9 +3575,8 @@ public enum GetDataCellsFilterOutputError: Swift.Error, Swift.Equatable { extension GetDataCellsFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataCellsFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataCellsFilter = output.dataCellsFilter } else { @@ -3701,9 +3688,8 @@ public enum GetDataLakeSettingsOutputError: Swift.Error, Swift.Equatable { extension GetDataLakeSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataLakeSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataLakeSettings = output.dataLakeSettings } else { @@ -3854,9 +3840,8 @@ public enum GetEffectivePermissionsForPathOutputError: Swift.Error, Swift.Equata extension GetEffectivePermissionsForPathOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEffectivePermissionsForPathOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -4004,9 +3989,8 @@ public enum GetLFTagOutputError: Swift.Error, Swift.Equatable { extension GetLFTagOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLFTagOutputResponseBody = try responseDecoder.decode(responseBody: data) self.catalogId = output.catalogId self.tagKey = output.tagKey @@ -4148,9 +4132,8 @@ public enum GetQueryStateOutputError: Swift.Error, Swift.Equatable { extension GetQueryStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueryStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.state = output.state @@ -4289,9 +4272,8 @@ public enum GetQueryStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetQueryStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueryStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionStatistics = output.executionStatistics self.planningStatistics = output.planningStatistics @@ -4454,9 +4436,8 @@ public enum GetResourceLFTagsOutputError: Swift.Error, Swift.Equatable { extension GetResourceLFTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceLFTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lfTagOnDatabase = output.lfTagOnDatabase self.lfTagsOnColumns = output.lfTagsOnColumns @@ -4715,9 +4696,8 @@ public enum GetTableObjectsOutputError: Swift.Error, Swift.Equatable { extension GetTableObjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTableObjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.objects = output.objects @@ -4941,9 +4921,8 @@ public enum GetTemporaryGluePartitionCredentialsOutputError: Swift.Error, Swift. extension GetTemporaryGluePartitionCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemporaryGluePartitionCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKeyId = output.accessKeyId self.expiration = output.expiration @@ -5165,9 +5144,8 @@ public enum GetTemporaryGlueTableCredentialsOutputError: Swift.Error, Swift.Equa extension GetTemporaryGlueTableCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemporaryGlueTableCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKeyId = output.accessKeyId self.expiration = output.expiration @@ -5345,9 +5323,12 @@ public enum GetWorkUnitResultsOutputError: Swift.Error, Swift.Equatable { extension GetWorkUnitResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - self.resultStream = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.resultStream = .data(data) + case .stream(let stream): + self.resultStream = .stream(stream) + case .none: self.resultStream = nil } } @@ -5486,9 +5467,8 @@ public enum GetWorkUnitsOutputError: Swift.Error, Swift.Equatable { extension GetWorkUnitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkUnitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queryId = output.queryId @@ -5559,9 +5539,8 @@ extension GetWorkUnitsOutputResponseBody: Swift.Decodable { extension GlueEncryptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GlueEncryptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5575,7 +5554,7 @@ extension GlueEncryptionException { } /// An encryption operation failed. -public struct GlueEncryptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlueEncryptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5770,9 +5749,8 @@ public struct GrantPermissionsOutputResponse: Swift.Equatable { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5786,7 +5764,7 @@ extension InternalServiceException { } /// An internal service error occurred. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5823,9 +5801,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5839,7 +5816,7 @@ extension InvalidInputException { } /// The input provided was not valid. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6286,9 +6263,8 @@ public enum ListDataCellsFilterOutputError: Swift.Error, Swift.Equatable { extension ListDataCellsFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataCellsFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataCellsFilters = output.dataCellsFilters self.nextToken = output.nextToken @@ -6459,9 +6435,8 @@ public enum ListLFTagsOutputError: Swift.Error, Swift.Equatable { extension ListLFTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLFTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lfTags = output.lfTags self.nextToken = output.nextToken @@ -6664,9 +6639,8 @@ public enum ListPermissionsOutputError: Swift.Error, Swift.Equatable { extension ListPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.principalResourcePermissions = output.principalResourcePermissions @@ -6833,9 +6807,8 @@ public enum ListResourcesOutputError: Swift.Error, Swift.Equatable { extension ListResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceInfoList = output.resourceInfoList @@ -7030,9 +7003,8 @@ public enum ListTableStorageOptimizersOutputError: Swift.Error, Swift.Equatable extension ListTableStorageOptimizersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTableStorageOptimizersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.storageOptimizerList = output.storageOptimizerList @@ -7199,9 +7171,8 @@ public enum ListTransactionsOutputError: Swift.Error, Swift.Equatable { extension ListTransactionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTransactionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transactions = output.transactions @@ -7259,9 +7230,8 @@ extension ListTransactionsOutputResponseBody: Swift.Decodable { extension OperationTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7275,7 +7245,7 @@ extension OperationTimeoutException { } /// The operation timed out. -public struct OperationTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7558,9 +7528,8 @@ extension LakeFormationClientTypes { extension PermissionTypeMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PermissionTypeMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7574,7 +7543,7 @@ extension PermissionTypeMismatchException { } /// The engine does not support filtering data based on the enforced permissions. For example, if you call the GetTemporaryGlueTableCredentials operation with SupportedPermissionType equal to ColumnPermission, but cell-level permissions exist on the table, this exception is thrown. -public struct PermissionTypeMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PermissionTypeMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8302,9 +8271,8 @@ public enum RemoveLFTagsFromResourceOutputError: Swift.Error, Swift.Equatable { extension RemoveLFTagsFromResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveLFTagsFromResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failures = output.failures } else { @@ -8522,9 +8490,8 @@ extension LakeFormationClientTypes { extension ResourceNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8538,7 +8505,7 @@ extension ResourceNotReadyException { } /// Contains details about an error related to a resource which is not ready for a transaction. -public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8575,9 +8542,8 @@ extension ResourceNotReadyExceptionBody: Swift.Decodable { extension ResourceNumberLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNumberLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8591,7 +8557,7 @@ extension ResourceNumberLimitExceededException { } /// A resource numerical limit was exceeded. -public struct ResourceNumberLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNumberLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9023,9 +8989,8 @@ public enum SearchDatabasesByLFTagsOutputError: Swift.Error, Swift.Equatable { extension SearchDatabasesByLFTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchDatabasesByLFTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databaseList = output.databaseList self.nextToken = output.nextToken @@ -9211,9 +9176,8 @@ public enum SearchTablesByLFTagsOutputError: Swift.Error, Swift.Equatable { extension SearchTablesByLFTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchTablesByLFTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tableList = output.tableList @@ -9365,9 +9329,8 @@ public enum StartQueryPlanningOutputError: Swift.Error, Swift.Equatable { extension StartQueryPlanningOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartQueryPlanningOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryId = output.queryId } else { @@ -9479,9 +9442,8 @@ public enum StartTransactionOutputError: Swift.Error, Swift.Equatable { extension StartTransactionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTransactionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transactionId = output.transactionId } else { @@ -9520,9 +9482,8 @@ extension StartTransactionOutputResponseBody: Swift.Decodable { extension StatisticsNotReadyYetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StatisticsNotReadyYetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9536,7 +9497,7 @@ extension StatisticsNotReadyYetException { } /// Contains details about an error related to statistics not being ready. -public struct StatisticsNotReadyYetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StatisticsNotReadyYetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10048,9 +10009,8 @@ extension LakeFormationClientTypes { extension ThrottledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10064,7 +10024,7 @@ extension ThrottledException { } /// Contains details about an error where the query request was throttled. -public struct ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10101,9 +10061,8 @@ extension ThrottledExceptionBody: Swift.Decodable { extension TransactionCanceledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactionCanceledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10117,7 +10076,7 @@ extension TransactionCanceledException { } /// Contains details about an error related to a transaction that was cancelled. -public struct TransactionCanceledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransactionCanceledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10154,9 +10113,8 @@ extension TransactionCanceledExceptionBody: Swift.Decodable { extension TransactionCommitInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactionCommitInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10170,7 +10128,7 @@ extension TransactionCommitInProgressException { } /// Contains details about an error related to a transaction commit that was in progress. -public struct TransactionCommitInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransactionCommitInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10207,9 +10165,8 @@ extension TransactionCommitInProgressExceptionBody: Swift.Decodable { extension TransactionCommittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransactionCommittedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10223,7 +10180,7 @@ extension TransactionCommittedException { } /// Contains details about an error where the specified transaction has already been committed and cannot be used for UpdateTableObjects. -public struct TransactionCommittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TransactionCommittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11081,9 +11038,8 @@ public enum UpdateTableStorageOptimizerOutputError: Swift.Error, Swift.Equatable extension UpdateTableStorageOptimizerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTableStorageOptimizerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.result = output.result } else { @@ -11226,9 +11182,8 @@ extension LakeFormationClientTypes { extension WorkUnitsNotReadyYetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WorkUnitsNotReadyYetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11242,7 +11197,7 @@ extension WorkUnitsNotReadyYetException { } /// Contains details about an error related to work units not being ready. -public struct WorkUnitsNotReadyYetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WorkUnitsNotReadyYetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLambda/LambdaClient.swift b/Sources/Services/AWSLambda/LambdaClient.swift index a1a444cd942..3430f14afc0 100644 --- a/Sources/Services/AWSLambda/LambdaClient.swift +++ b/Sources/Services/AWSLambda/LambdaClient.swift @@ -208,6 +208,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addLayerVersionPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -295,7 +298,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -315,6 +318,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCodeSigningConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -330,7 +334,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -394,6 +398,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventSourceMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -409,7 +414,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -429,6 +434,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -444,7 +450,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +470,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFunctionUrlConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -480,7 +487,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -500,6 +507,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +520,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +540,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCodeSigningConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -544,7 +553,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -564,6 +573,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventSourceMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -576,7 +586,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -596,6 +606,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -609,7 +620,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -629,6 +640,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFunctionCodeSigningConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -641,7 +653,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -661,6 +673,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFunctionConcurrency") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -673,7 +686,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -693,6 +706,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFunctionEventInvokeConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -706,7 +720,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -726,6 +740,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFunctionUrlConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -739,7 +754,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -759,6 +774,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLayerVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -771,7 +787,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -791,6 +807,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProvisionedConcurrencyConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +821,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +841,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -868,7 +887,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -888,6 +907,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCodeSigningConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -900,7 +920,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -920,6 +940,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventSourceMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -932,7 +953,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -952,6 +973,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -965,7 +987,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -985,6 +1007,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunctionCodeSigningConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -997,7 +1020,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1017,6 +1040,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunctionConcurrency") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1029,7 +1053,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1049,6 +1073,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunctionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1062,7 +1087,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1082,6 +1107,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunctionEventInvokeConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1095,7 +1121,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1115,6 +1141,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFunctionUrlConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1128,7 +1155,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1175,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLayerVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1188,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1208,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLayerVersionByArn") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1193,7 +1222,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1213,6 +1242,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLayerVersionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1225,7 +1255,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1245,6 +1275,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1258,7 +1289,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1278,6 +1309,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProvisionedConcurrencyConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1291,7 +1323,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1311,6 +1343,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRuntimeManagementConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1324,7 +1357,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1344,6 +1377,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "invoke") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1361,7 +1395,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1382,6 +1416,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "invokeAsync") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1397,7 +1432,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1417,6 +1452,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "invokeWithResponseStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1434,7 +1470,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1454,6 +1490,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1467,7 +1504,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1487,6 +1524,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCodeSigningConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1500,7 +1538,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1520,6 +1558,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventSourceMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1533,7 +1572,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1553,6 +1592,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFunctionEventInvokeConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1566,7 +1606,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1586,6 +1626,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFunctionUrlConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1599,7 +1640,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1619,6 +1660,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFunctions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1632,7 +1674,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1652,6 +1694,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFunctionsByCodeSigningConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1665,7 +1708,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1685,6 +1728,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLayerVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1698,7 +1742,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1718,6 +1762,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLayers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1731,7 +1776,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1751,6 +1796,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProvisionedConcurrencyConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1764,7 +1810,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1784,6 +1830,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1796,7 +1843,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1816,6 +1863,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVersionsByFunction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1829,7 +1877,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1849,6 +1897,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishLayerVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1864,7 +1913,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1884,6 +1933,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1899,7 +1949,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1919,6 +1969,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFunctionCodeSigningConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1934,7 +1985,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1954,6 +2005,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFunctionConcurrency") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1969,7 +2021,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1989,6 +2041,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFunctionEventInvokeConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2005,7 +2058,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2025,6 +2078,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putProvisionedConcurrencyConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2041,7 +2095,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2061,6 +2115,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRuntimeManagementConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2077,7 +2132,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2097,6 +2152,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeLayerVersionPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2110,7 +2166,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2130,6 +2186,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2143,7 +2200,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2163,6 +2220,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2178,7 +2236,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2198,6 +2256,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2211,7 +2270,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2231,6 +2290,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2246,7 +2306,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2266,6 +2326,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCodeSigningConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2281,7 +2342,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2345,6 +2406,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventSourceMapping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2360,7 +2422,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2380,6 +2442,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFunctionCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2395,7 +2458,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2415,6 +2478,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFunctionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2430,7 +2494,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2450,6 +2514,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFunctionEventInvokeConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2466,7 +2531,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2486,6 +2551,7 @@ extension LambdaClient: LambdaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lambda") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFunctionUrlConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2502,7 +2568,7 @@ extension LambdaClient: LambdaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLambda/models/Models.swift b/Sources/Services/AWSLambda/models/Models.swift index d92df7ee045..7548be64494 100644 --- a/Sources/Services/AWSLambda/models/Models.swift +++ b/Sources/Services/AWSLambda/models/Models.swift @@ -277,9 +277,8 @@ public enum AddLayerVersionPermissionOutputError: Swift.Error, Swift.Equatable { extension AddLayerVersionPermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddLayerVersionPermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.revisionId = output.revisionId self.statement = output.statement @@ -542,9 +541,8 @@ public enum AddPermissionOutputError: Swift.Error, Swift.Equatable { extension AddPermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddPermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statement = output.statement } else { @@ -920,9 +918,8 @@ extension LambdaClientTypes { extension CodeSigningConfigNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CodeSigningConfigNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -938,7 +935,7 @@ extension CodeSigningConfigNotFoundException { } /// The specified code signing configuration does not exist. -public struct CodeSigningConfigNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CodeSigningConfigNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1048,9 +1045,8 @@ extension LambdaClientTypes { extension CodeStorageExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CodeStorageExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -1066,7 +1062,7 @@ extension CodeStorageExceededException { } /// Your Amazon Web Services account has exceeded its maximum total code size. For more information, see [Lambda quotas](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html). -public struct CodeStorageExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CodeStorageExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1110,9 +1106,8 @@ extension CodeStorageExceededExceptionBody: Swift.Decodable { extension CodeVerificationFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CodeVerificationFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -1128,7 +1123,7 @@ extension CodeVerificationFailedException { } /// The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment. -public struct CodeVerificationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CodeVerificationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1470,9 +1465,8 @@ public enum CreateAliasOutputError: Swift.Error, Swift.Equatable { extension CreateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliasArn = output.aliasArn self.description = output.description @@ -1658,9 +1652,8 @@ public enum CreateCodeSigningConfigOutputError: Swift.Error, Swift.Equatable { extension CreateCodeSigningConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCodeSigningConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeSigningConfig = output.codeSigningConfig } else { @@ -2127,9 +2120,8 @@ public enum CreateEventSourceMappingOutputError: Swift.Error, Swift.Equatable { extension CreateEventSourceMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventSourceMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.amazonManagedKafkaEventSourceConfig = output.amazonManagedKafkaEventSourceConfig self.batchSize = output.batchSize @@ -2874,9 +2866,8 @@ public enum CreateFunctionOutputError: Swift.Error, Swift.Equatable { extension CreateFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFunctionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architectures = output.architectures self.codeSha256 = output.codeSha256 @@ -3423,9 +3414,8 @@ public enum CreateFunctionUrlConfigOutputError: Swift.Error, Swift.Equatable { extension CreateFunctionUrlConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFunctionUrlConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authType = output.authType self.cors = output.cors @@ -3773,9 +3763,8 @@ public enum DeleteEventSourceMappingOutputError: Swift.Error, Swift.Equatable { extension DeleteEventSourceMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEventSourceMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.amazonManagedKafkaEventSourceConfig = output.amazonManagedKafkaEventSourceConfig self.batchSize = output.batchSize @@ -4835,9 +4824,8 @@ extension LambdaClientTypes { extension EC2AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EC2AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -4853,7 +4841,7 @@ extension EC2AccessDeniedException { } /// Need additional permissions to configure VPC settings. -public struct EC2AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EC2AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4896,9 +4884,8 @@ extension EC2AccessDeniedExceptionBody: Swift.Decodable { extension EC2ThrottledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EC2ThrottledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -4914,7 +4901,7 @@ extension EC2ThrottledException { } /// Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function. -public struct EC2ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EC2ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4957,9 +4944,8 @@ extension EC2ThrottledExceptionBody: Swift.Decodable { extension EC2UnexpectedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EC2UnexpectedExceptionBody = try responseDecoder.decode(responseBody: data) self.ec2ErrorCode = output.ec2ErrorCode self.message = output.message @@ -4977,7 +4963,7 @@ extension EC2UnexpectedException { } /// Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function. -public struct EC2UnexpectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EC2UnexpectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5027,9 +5013,8 @@ extension EC2UnexpectedExceptionBody: Swift.Decodable { extension EFSIOException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EFSIOExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -5045,7 +5030,7 @@ extension EFSIOException { } /// An error occurred when reading from or writing to a connected file system. -public struct EFSIOException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EFSIOException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5088,9 +5073,8 @@ extension EFSIOExceptionBody: Swift.Decodable { extension EFSMountConnectivityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EFSMountConnectivityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -5106,7 +5090,7 @@ extension EFSMountConnectivityException { } /// The Lambda function couldn't make a network connection to the configured file system. -public struct EFSMountConnectivityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EFSMountConnectivityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5149,9 +5133,8 @@ extension EFSMountConnectivityExceptionBody: Swift.Decodable { extension EFSMountFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EFSMountFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -5167,7 +5150,7 @@ extension EFSMountFailureException { } /// The Lambda function couldn't mount the configured file system due to a permission or configuration issue. -public struct EFSMountFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EFSMountFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5210,9 +5193,8 @@ extension EFSMountFailureExceptionBody: Swift.Decodable { extension EFSMountTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EFSMountTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -5228,7 +5210,7 @@ extension EFSMountTimeoutException { } /// The Lambda function made a network connection to the configured file system, but the mount operation timed out. -public struct EFSMountTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EFSMountTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5271,9 +5253,8 @@ extension EFSMountTimeoutExceptionBody: Swift.Decodable { extension ENILimitReachedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ENILimitReachedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -5289,7 +5270,7 @@ extension ENILimitReachedException { } /// Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see [Lambda quotas](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html). -public struct ENILimitReachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ENILimitReachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6976,9 +6957,8 @@ public enum GetAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension GetAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountLimit = output.accountLimit self.accountUsage = output.accountUsage @@ -7103,9 +7083,8 @@ public enum GetAliasOutputError: Swift.Error, Swift.Equatable { extension GetAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliasArn = output.aliasArn self.description = output.description @@ -7252,9 +7231,8 @@ public enum GetCodeSigningConfigOutputError: Swift.Error, Swift.Equatable { extension GetCodeSigningConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCodeSigningConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeSigningConfig = output.codeSigningConfig } else { @@ -7353,9 +7331,8 @@ public enum GetEventSourceMappingOutputError: Swift.Error, Swift.Equatable { extension GetEventSourceMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEventSourceMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.amazonManagedKafkaEventSourceConfig = output.amazonManagedKafkaEventSourceConfig self.batchSize = output.batchSize @@ -7759,9 +7736,8 @@ public enum GetFunctionCodeSigningConfigOutputError: Swift.Error, Swift.Equatabl extension GetFunctionCodeSigningConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionCodeSigningConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeSigningConfigArn = output.codeSigningConfigArn self.functionName = output.functionName @@ -7889,9 +7865,8 @@ public enum GetFunctionConcurrencyOutputError: Swift.Error, Swift.Equatable { extension GetFunctionConcurrencyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionConcurrencyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedConcurrentExecutions = output.reservedConcurrentExecutions } else { @@ -8015,9 +7990,8 @@ public enum GetFunctionConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetFunctionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architectures = output.architectures self.codeSha256 = output.codeSha256 @@ -8509,9 +8483,8 @@ public enum GetFunctionEventInvokeConfigOutputError: Swift.Error, Swift.Equatabl extension GetFunctionEventInvokeConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionEventInvokeConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationConfig = output.destinationConfig self.functionArn = output.functionArn @@ -8698,9 +8671,8 @@ public enum GetFunctionOutputError: Swift.Error, Swift.Equatable { extension GetFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.concurrency = output.concurrency @@ -8863,9 +8835,8 @@ public enum GetFunctionUrlConfigOutputError: Swift.Error, Swift.Equatable { extension GetFunctionUrlConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFunctionUrlConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authType = output.authType self.cors = output.cors @@ -9045,9 +9016,8 @@ public enum GetLayerVersionByArnOutputError: Swift.Error, Swift.Equatable { extension GetLayerVersionByArnOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLayerVersionByArnOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibleArchitectures = output.compatibleArchitectures self.compatibleRuntimes = output.compatibleRuntimes @@ -9251,9 +9221,8 @@ public enum GetLayerVersionOutputError: Swift.Error, Swift.Equatable { extension GetLayerVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLayerVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibleArchitectures = output.compatibleArchitectures self.compatibleRuntimes = output.compatibleRuntimes @@ -9457,9 +9426,8 @@ public enum GetLayerVersionPolicyOutputError: Swift.Error, Swift.Equatable { extension GetLayerVersionPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLayerVersionPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.revisionId = output.revisionId @@ -9593,9 +9561,8 @@ public enum GetPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.revisionId = output.revisionId @@ -9734,9 +9701,8 @@ public enum GetProvisionedConcurrencyConfigOutputError: Swift.Error, Swift.Equat extension GetProvisionedConcurrencyConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProvisionedConcurrencyConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allocatedProvisionedConcurrentExecutions = output.allocatedProvisionedConcurrentExecutions self.availableProvisionedConcurrentExecutions = output.availableProvisionedConcurrentExecutions @@ -9910,9 +9876,8 @@ public enum GetRuntimeManagementConfigOutputError: Swift.Error, Swift.Equatable extension GetRuntimeManagementConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRuntimeManagementConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionArn = output.functionArn self.runtimeVersionArn = output.runtimeVersionArn @@ -10145,9 +10110,8 @@ extension LambdaClientTypes { extension InvalidCodeSignatureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCodeSignatureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -10163,7 +10127,7 @@ extension InvalidCodeSignatureException { } /// The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN. -public struct InvalidCodeSignatureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCodeSignatureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10206,9 +10170,8 @@ extension InvalidCodeSignatureExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -10224,7 +10187,7 @@ extension InvalidParameterValueException { } /// One of the parameters in the request is not valid. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10269,9 +10232,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidRequestContentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestContentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -10287,7 +10249,7 @@ extension InvalidRequestContentException { } /// The request body could not be parsed as JSON. -public struct InvalidRequestContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10332,9 +10294,8 @@ extension InvalidRequestContentExceptionBody: Swift.Decodable { extension InvalidRuntimeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRuntimeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -10350,7 +10311,7 @@ extension InvalidRuntimeException { } /// The runtime or runtime version specified is not supported. -public struct InvalidRuntimeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRuntimeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10393,9 +10354,8 @@ extension InvalidRuntimeExceptionBody: Swift.Decodable { extension InvalidSecurityGroupIDException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSecurityGroupIDExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -10411,7 +10371,7 @@ extension InvalidSecurityGroupIDException { } /// The security group ID provided in the Lambda function VPC configuration is not valid. -public struct InvalidSecurityGroupIDException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSecurityGroupIDException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10454,9 +10414,8 @@ extension InvalidSecurityGroupIDExceptionBody: Swift.Decodable { extension InvalidSubnetIDException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSubnetIDExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -10472,7 +10431,7 @@ extension InvalidSubnetIDException { } /// The subnet ID provided in the Lambda function VPC configuration is not valid. -public struct InvalidSubnetIDException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnetIDException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10515,9 +10474,8 @@ extension InvalidSubnetIDExceptionBody: Swift.Decodable { extension InvalidZipFileException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidZipFileExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -10533,7 +10491,7 @@ extension InvalidZipFileException { } /// Lambda could not unzip the deployment package. -public struct InvalidZipFileException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidZipFileException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10623,9 +10581,8 @@ public struct InvokeAsyncInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let invokeArgs = input.operationInput.invokeArgs { - let invokeArgsdata = invokeArgs - let invokeArgsbody = ClientRuntime.HttpBody.stream(invokeArgsdata) - input.builder.withBody(invokeArgsbody) + let invokeArgsBody = ClientRuntime.HttpBody(byteStream: invokeArgs) + input.builder.withBody(invokeArgsBody) } return try await next.handle(context: context, input: input) } @@ -10643,7 +10600,7 @@ extension InvokeAsyncInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let invokeArgs = self.invokeArgs { - try encodeContainer.encode(invokeArgs.toBytes().getData(), forKey: .invokeArgs) + try encodeContainer.encode(invokeArgs, forKey: .invokeArgs) } } } @@ -10781,9 +10738,9 @@ public struct InvokeInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let payload = input.operationInput.payload { - let payloaddata = payload - let payloadbody = ClientRuntime.HttpBody.data(payloaddata) - input.builder.withBody(payloadbody) + let payloadData = payload + let payloadBody = ClientRuntime.HttpBody.data(payloadData) + input.builder.withBody(payloadBody) } return try await next.handle(context: context, input: input) } @@ -11045,9 +11002,12 @@ extension InvokeOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.logResult = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.payload = data - } else { + case .stream(let stream): + self.payload = try stream.readToEnd() + case .none: self.payload = nil } self.statusCode = httpResponse.statusCode.rawValue @@ -11211,9 +11171,9 @@ public struct InvokeWithResponseStreamInputBodyMiddleware: ClientRuntime.Middlew Self.Context == H.Context { if let payload = input.operationInput.payload { - let payloaddata = payload - let payloadbody = ClientRuntime.HttpBody.data(payloaddata) - input.builder.withBody(payloadbody) + let payloadData = payload + let payloadBody = ClientRuntime.HttpBody.data(payloadData) + input.builder.withBody(payloadBody) } return try await next.handle(context: context, input: input) } @@ -11431,13 +11391,10 @@ extension InvokeWithResponseStreamOutputResponse: ClientRuntime.HttpResponseBind } else { self.responseStreamContentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: LambdaClientTypes.InvokeWithResponseStreamResponseEvent = try responseDecoder.decode(responseBody: data) - self.eventStream = output - } else { - self.eventStream = nil - } + if case let .stream(stream) = httpResponse.body, let responseDecoder = decoder { + let messageDecoder = AWSClientRuntime.AWSEventStream.AWSMessageDecoder() + let decoderStream = ClientRuntime.EventStream.DefaultMessageDecoderStream(stream: stream, messageDecoder: messageDecoder, responseDecoder: responseDecoder) + self.eventStream = decoderStream.toAsyncStream() } else { self.eventStream = nil } @@ -11447,7 +11404,7 @@ extension InvokeWithResponseStreamOutputResponse: ClientRuntime.HttpResponseBind public struct InvokeWithResponseStreamOutputResponse: Swift.Equatable { /// The stream of response payloads. - public var eventStream: LambdaClientTypes.InvokeWithResponseStreamResponseEvent? + public var eventStream: AsyncThrowingStream? /// The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to. public var executedVersion: Swift.String? /// The type of data the stream is returning. @@ -11456,7 +11413,7 @@ public struct InvokeWithResponseStreamOutputResponse: Swift.Equatable { public var statusCode: Swift.Int public init ( - eventStream: LambdaClientTypes.InvokeWithResponseStreamResponseEvent? = nil, + eventStream: AsyncThrowingStream? = nil, executedVersion: Swift.String? = nil, responseStreamContentType: Swift.String? = nil, statusCode: Swift.Int = 0 @@ -11469,58 +11426,36 @@ public struct InvokeWithResponseStreamOutputResponse: Swift.Equatable { } } -struct InvokeWithResponseStreamOutputResponseBody: Swift.Equatable { - let statusCode: Swift.Int - let eventStream: LambdaClientTypes.InvokeWithResponseStreamResponseEvent? -} - -extension InvokeWithResponseStreamOutputResponseBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case eventStream = "EventStream" - case statusCode = "StatusCode" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let statusCodeDecoded = try containerValues.decodeIfPresent(Swift.Int.self, forKey: .statusCode) ?? 0 - statusCode = statusCodeDecoded - let eventStreamDecoded = try containerValues.decodeIfPresent(LambdaClientTypes.InvokeWithResponseStreamResponseEvent.self, forKey: .eventStream) - eventStream = eventStreamDecoded - } -} - -extension LambdaClientTypes.InvokeWithResponseStreamResponseEvent: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case invokecomplete = "InvokeComplete" - case payloadchunk = "PayloadChunk" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - switch self { - case let .invokecomplete(invokecomplete): - try container.encode(invokecomplete, forKey: .invokecomplete) - case let .payloadchunk(payloadchunk): - try container.encode(payloadchunk, forKey: .payloadchunk) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: .sdkUnknown) - } - } - - public init (from decoder: Swift.Decoder) throws { - let values = try decoder.container(keyedBy: CodingKeys.self) - let payloadchunkDecoded = try values.decodeIfPresent(LambdaClientTypes.InvokeResponseStreamUpdate.self, forKey: .payloadchunk) - if let payloadchunk = payloadchunkDecoded { - self = .payloadchunk(payloadchunk) - return - } - let invokecompleteDecoded = try values.decodeIfPresent(LambdaClientTypes.InvokeWithResponseStreamCompleteEvent.self, forKey: .invokecomplete) - if let invokecomplete = invokecompleteDecoded { - self = .invokecomplete(invokecomplete) - return +extension LambdaClientTypes.InvokeWithResponseStreamResponseEvent: ClientRuntime.MessageUnmarshallable { + public init(message: ClientRuntime.EventStream.Message, decoder: ClientRuntime.ResponseDecoder) throws { + switch try message.type() { + case .event(let params): + switch params.eventType { + case "PayloadChunk": + var event = LambdaClientTypes.InvokeResponseStreamUpdate() + event.payload = message.payload + self = .payloadchunk(event) + case "InvokeComplete": + self = .invokecomplete(try decoder.decode(responseBody: message.payload)) + default: + self = .sdkUnknown("error processing event stream, unrecognized event: \(params.eventType)") + } + case .exception(let params): + let makeError: (ClientRuntime.EventStream.Message, ClientRuntime.EventStream.MessageType.ExceptionParams) throws -> Swift.Error = { message, params in + switch params.exceptionType { + default: + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + return AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':exceptionType': \(params.exceptionType); contentType: \(params.contentType ?? "nil")") + } + } + let error = try makeError(message, params) + throw error + case .error(let params): + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + throw AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':errorType': \(params.errorCode); message: \(params.message ?? "nil")") + case .unknown(messageType: let messageType): + throw ClientRuntime.ClientError.unknownError("unrecognized event stream message ':message-type': \(messageType)") } - self = .sdkUnknown("") } } @@ -11538,9 +11473,8 @@ extension LambdaClientTypes { extension KMSAccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSAccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -11556,7 +11490,7 @@ extension KMSAccessDeniedException { } /// Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions. -public struct KMSAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11599,9 +11533,8 @@ extension KMSAccessDeniedExceptionBody: Swift.Decodable { extension KMSDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSDisabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -11617,7 +11550,7 @@ extension KMSDisabledException { } /// Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings. -public struct KMSDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11660,9 +11593,8 @@ extension KMSDisabledExceptionBody: Swift.Decodable { extension KMSInvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSInvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -11678,7 +11610,7 @@ extension KMSInvalidStateException { } /// Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings. -public struct KMSInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11721,9 +11653,8 @@ extension KMSInvalidStateExceptionBody: Swift.Decodable { extension KMSNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -11739,7 +11670,7 @@ extension KMSNotFoundException { } /// Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings. -public struct KMSNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12391,9 +12322,8 @@ public enum ListAliasesOutputError: Swift.Error, Swift.Equatable { extension ListAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliases = output.aliases self.nextMarker = output.nextMarker @@ -12523,9 +12453,8 @@ public enum ListCodeSigningConfigsOutputError: Swift.Error, Swift.Equatable { extension ListCodeSigningConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCodeSigningConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeSigningConfigs = output.codeSigningConfigs self.nextMarker = output.nextMarker @@ -12698,9 +12627,8 @@ public enum ListEventSourceMappingsOutputError: Swift.Error, Swift.Equatable { extension ListEventSourceMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventSourceMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSourceMappings = output.eventSourceMappings self.nextMarker = output.nextMarker @@ -12851,9 +12779,8 @@ public enum ListFunctionEventInvokeConfigsOutputError: Swift.Error, Swift.Equata extension ListFunctionEventInvokeConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFunctionEventInvokeConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionEventInvokeConfigs = output.functionEventInvokeConfigs self.nextMarker = output.nextMarker @@ -13004,9 +12931,8 @@ public enum ListFunctionUrlConfigsOutputError: Swift.Error, Swift.Equatable { extension ListFunctionUrlConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFunctionUrlConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionUrlConfigs = output.functionUrlConfigs self.nextMarker = output.nextMarker @@ -13147,9 +13073,8 @@ public enum ListFunctionsByCodeSigningConfigOutputError: Swift.Error, Swift.Equa extension ListFunctionsByCodeSigningConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFunctionsByCodeSigningConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionArns = output.functionArns self.nextMarker = output.nextMarker @@ -13297,9 +13222,8 @@ public enum ListFunctionsOutputError: Swift.Error, Swift.Equatable { extension ListFunctionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFunctionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functions = output.functions self.nextMarker = output.nextMarker @@ -13458,9 +13382,8 @@ public enum ListLayerVersionsOutputError: Swift.Error, Swift.Equatable { extension ListLayerVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLayerVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.layerVersions = output.layerVersions self.nextMarker = output.nextMarker @@ -13608,9 +13531,8 @@ public enum ListLayersOutputError: Swift.Error, Swift.Equatable { extension ListLayersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLayersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.layers = output.layers self.nextMarker = output.nextMarker @@ -13762,9 +13684,8 @@ public enum ListProvisionedConcurrencyConfigsOutputError: Swift.Error, Swift.Equ extension ListProvisionedConcurrencyConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProvisionedConcurrencyConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.provisionedConcurrencyConfigs = output.provisionedConcurrencyConfigs @@ -13881,9 +13802,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -14024,9 +13944,8 @@ public enum ListVersionsByFunctionOutputError: Swift.Error, Swift.Equatable { extension ListVersionsByFunctionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVersionsByFunctionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.versions = output.versions @@ -14218,9 +14137,8 @@ extension LambdaClientTypes { extension PolicyLengthExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyLengthExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -14236,7 +14154,7 @@ extension PolicyLengthExceededException { } /// The permissions policy for the resource is too large. For more information, see [Lambda quotas](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html). -public struct PolicyLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14279,9 +14197,8 @@ extension PolicyLengthExceededExceptionBody: Swift.Decodable { extension PreconditionFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -14297,7 +14214,7 @@ extension PreconditionFailedException { } /// The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API operation to retrieve the latest RevisionId for your resource. -public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14437,9 +14354,8 @@ extension LambdaClientTypes { extension ProvisionedConcurrencyConfigNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionedConcurrencyConfigNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -14455,7 +14371,7 @@ extension ProvisionedConcurrencyConfigNotFoundException { } /// The specified configuration does not exist. -public struct ProvisionedConcurrencyConfigNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProvisionedConcurrencyConfigNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14697,9 +14613,8 @@ public enum PublishLayerVersionOutputError: Swift.Error, Swift.Equatable { extension PublishLayerVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishLayerVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibleArchitectures = output.compatibleArchitectures self.compatibleRuntimes = output.compatibleRuntimes @@ -14958,9 +14873,8 @@ public enum PublishVersionOutputError: Swift.Error, Swift.Equatable { extension PublishVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architectures = output.architectures self.codeSha256 = output.codeSha256 @@ -15464,9 +15378,8 @@ public enum PutFunctionCodeSigningConfigOutputError: Swift.Error, Swift.Equatabl extension PutFunctionCodeSigningConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutFunctionCodeSigningConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeSigningConfigArn = output.codeSigningConfigArn self.functionName = output.functionName @@ -15621,9 +15534,8 @@ public enum PutFunctionConcurrencyOutputError: Swift.Error, Swift.Equatable { extension PutFunctionConcurrencyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutFunctionConcurrencyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedConcurrentExecutions = output.reservedConcurrentExecutions } else { @@ -15805,9 +15717,8 @@ public enum PutFunctionEventInvokeConfigOutputError: Swift.Error, Swift.Equatabl extension PutFunctionEventInvokeConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutFunctionEventInvokeConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationConfig = output.destinationConfig self.functionArn = output.functionArn @@ -16009,9 +15920,8 @@ public enum PutProvisionedConcurrencyConfigOutputError: Swift.Error, Swift.Equat extension PutProvisionedConcurrencyConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutProvisionedConcurrencyConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allocatedProvisionedConcurrentExecutions = output.allocatedProvisionedConcurrentExecutions self.availableProvisionedConcurrentExecutions = output.availableProvisionedConcurrentExecutions @@ -16230,9 +16140,8 @@ public enum PutRuntimeManagementConfigOutputError: Swift.Error, Swift.Equatable extension PutRuntimeManagementConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutRuntimeManagementConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionArn = output.functionArn self.runtimeVersionArn = output.runtimeVersionArn @@ -16510,9 +16419,8 @@ public struct RemovePermissionOutputResponse: Swift.Equatable { extension RequestTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -16528,7 +16436,7 @@ extension RequestTooLargeException { } /// The request payload exceeded the Invoke request body JSON input quota. For more information, see [Lambda quotas](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html). -public struct RequestTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16571,9 +16479,8 @@ extension RequestTooLargeExceptionBody: Swift.Decodable { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -16589,7 +16496,7 @@ extension ResourceConflictException { } /// The resource already exists, or another operation is in progress. -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16634,9 +16541,8 @@ extension ResourceConflictExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -16652,7 +16558,7 @@ extension ResourceInUseException { } /// The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16695,9 +16601,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -16713,7 +16618,7 @@ extension ResourceNotFoundException { } /// The resource specified in the request does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16756,9 +16661,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -16774,7 +16678,7 @@ extension ResourceNotReadyException { } /// The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again. -public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17186,9 +17090,8 @@ extension LambdaClientTypes { extension ServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -17204,7 +17107,7 @@ extension ServiceException { } /// The Lambda service encountered an internal error. -public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17314,9 +17217,8 @@ extension LambdaClientTypes { extension SnapStartException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SnapStartExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -17332,7 +17234,7 @@ extension SnapStartException { } /// The afterRestore()[runtime hook](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html) encountered an error. For more information, check the Amazon CloudWatch logs. -public struct SnapStartException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapStartException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17375,9 +17277,8 @@ extension SnapStartExceptionBody: Swift.Decodable { extension SnapStartNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SnapStartNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -17393,7 +17294,7 @@ extension SnapStartNotReadyException { } /// Lambda is initializing your function. You can invoke the function when the [function state](https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html) becomes Active. -public struct SnapStartNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapStartNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17513,9 +17414,8 @@ extension LambdaClientTypes { extension SnapStartTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SnapStartTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -17531,7 +17431,7 @@ extension SnapStartTimeoutException { } /// Lambda couldn't restore the snapshot within the timeout limit. -public struct SnapStartTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapStartTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17823,9 +17723,8 @@ extension LambdaClientTypes { extension SubnetIPAddressLimitReachedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetIPAddressLimitReachedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -17841,7 +17740,7 @@ extension SubnetIPAddressLimitReachedException { } /// Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses. -public struct SubnetIPAddressLimitReachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetIPAddressLimitReachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18041,9 +17940,8 @@ extension TooManyRequestsException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -18061,7 +17959,7 @@ extension TooManyRequestsException { } /// The request throughput limit was exceeded. For more information, see [Lambda quotas](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests). -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18217,9 +18115,8 @@ extension LambdaClientTypes { extension UnsupportedMediaTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedMediaTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -18235,7 +18132,7 @@ extension UnsupportedMediaTypeException { } /// The content type of the Invoke request body is not JSON. -public struct UnsupportedMediaTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedMediaTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18511,9 +18408,8 @@ public enum UpdateAliasOutputError: Swift.Error, Swift.Equatable { extension UpdateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliasArn = output.aliasArn self.description = output.description @@ -18708,9 +18604,8 @@ public enum UpdateCodeSigningConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateCodeSigningConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCodeSigningConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeSigningConfig = output.codeSigningConfig } else { @@ -19054,9 +18949,8 @@ public enum UpdateEventSourceMappingOutputError: Swift.Error, Swift.Equatable { extension UpdateEventSourceMappingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEventSourceMappingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.amazonManagedKafkaEventSourceConfig = output.amazonManagedKafkaEventSourceConfig self.batchSize = output.batchSize @@ -19609,9 +19503,8 @@ public enum UpdateFunctionCodeOutputError: Swift.Error, Swift.Equatable { extension UpdateFunctionCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFunctionCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architectures = output.architectures self.codeSha256 = output.codeSha256 @@ -20336,9 +20229,8 @@ public enum UpdateFunctionConfigurationOutputError: Swift.Error, Swift.Equatable extension UpdateFunctionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFunctionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architectures = output.architectures self.codeSha256 = output.codeSha256 @@ -20888,9 +20780,8 @@ public enum UpdateFunctionEventInvokeConfigOutputError: Swift.Error, Swift.Equat extension UpdateFunctionEventInvokeConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFunctionEventInvokeConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationConfig = output.destinationConfig self.functionArn = output.functionArn @@ -21116,9 +21007,8 @@ public enum UpdateFunctionUrlConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateFunctionUrlConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFunctionUrlConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authType = output.authType self.cors = output.cors diff --git a/Sources/Services/AWSLexModelBuildingService/LexModelBuildingClient.swift b/Sources/Services/AWSLexModelBuildingService/LexModelBuildingClient.swift index b45a5a99048..ac3813296b9 100644 --- a/Sources/Services/AWSLexModelBuildingService/LexModelBuildingClient.swift +++ b/Sources/Services/AWSLexModelBuildingService/LexModelBuildingClient.swift @@ -208,6 +208,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBotVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIntentVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSlotTypeVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBotAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBotChannelAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBotVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -421,7 +428,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -441,6 +448,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -453,7 +461,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -473,6 +481,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntentVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +494,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +514,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSlotType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -517,7 +527,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -537,6 +547,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSlotTypeVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +560,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +580,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUtterances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -581,7 +593,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -601,6 +613,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -613,7 +626,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -633,6 +646,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBotAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -645,7 +659,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -665,6 +679,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBotAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +693,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +713,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBotChannelAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -710,7 +726,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -730,6 +746,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBotChannelAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -743,7 +760,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -763,6 +780,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBotVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -776,7 +794,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +821,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +835,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +855,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBuiltinIntent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -848,7 +868,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -868,6 +888,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBuiltinIntents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -881,7 +902,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -901,6 +922,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBuiltinSlotTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -914,7 +936,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -934,6 +956,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -947,7 +970,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +990,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -979,7 +1003,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -999,6 +1023,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1011,7 +1036,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1031,6 +1056,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntentVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1044,7 +1070,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1071,6 +1097,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIntents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1084,7 +1111,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1104,6 +1131,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMigration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1116,7 +1144,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1136,6 +1164,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMigrations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1149,7 +1178,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1169,6 +1198,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSlotType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1181,7 +1211,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1201,6 +1231,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSlotTypeVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1214,7 +1245,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1241,6 +1272,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSlotTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1254,7 +1286,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1274,6 +1306,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUtterancesView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1287,7 +1320,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1307,6 +1340,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1319,7 +1353,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1339,6 +1373,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1354,7 +1389,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1374,6 +1409,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBotAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1389,7 +1425,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1429,6 +1465,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putIntent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1444,7 +1481,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1464,6 +1501,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSlotType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1479,7 +1517,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1499,6 +1537,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1514,7 +1553,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1534,6 +1573,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMigration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1549,7 +1589,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1569,6 +1609,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1584,7 +1625,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1604,6 +1645,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1617,7 +1659,7 @@ extension LexModelBuildingClient: LexModelBuildingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLexModelBuildingService/models/Models.swift b/Sources/Services/AWSLexModelBuildingService/models/Models.swift index 4d57b5d7953..fdfe1802d3e 100644 --- a/Sources/Services/AWSLexModelBuildingService/models/Models.swift +++ b/Sources/Services/AWSLexModelBuildingService/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Your IAM user or role does not have permission to call the Amazon Lex V2 APIs required to migrate your bot. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension BadRequestException { } /// The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and try again. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -705,9 +703,8 @@ extension LexModelBuildingClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -721,7 +718,7 @@ extension ConflictException { } /// There was a conflict processing the request. Try your request again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -995,9 +992,8 @@ public enum CreateBotVersionOutputError: Swift.Error, Swift.Equatable { extension CreateBotVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBotVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abortStatement = output.abortStatement self.checksum = output.checksum @@ -1292,9 +1288,8 @@ public enum CreateIntentVersionOutputError: Swift.Error, Swift.Equatable { extension CreateIntentVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIntentVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checksum = output.checksum self.conclusionStatement = output.conclusionStatement @@ -1626,9 +1621,8 @@ public enum CreateSlotTypeVersionOutputError: Swift.Error, Swift.Equatable { extension CreateSlotTypeVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSlotTypeVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checksum = output.checksum self.createdDate = output.createdDate @@ -2841,9 +2835,8 @@ public enum GetBotAliasOutputError: Swift.Error, Swift.Equatable { extension GetBotAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBotAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botName = output.botName self.botVersion = output.botVersion @@ -3042,9 +3035,8 @@ public enum GetBotAliasesOutputError: Swift.Error, Swift.Equatable { extension GetBotAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBotAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAliases = output.botAliases self.nextToken = output.nextToken @@ -3182,9 +3174,8 @@ extension GetBotChannelAssociationOutputResponse: Swift.CustomDebugStringConvert extension GetBotChannelAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBotChannelAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAlias = output.botAlias self.botConfiguration = output.botConfiguration @@ -3416,9 +3407,8 @@ public enum GetBotChannelAssociationsOutputError: Swift.Error, Swift.Equatable { extension GetBotChannelAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBotChannelAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botChannelAssociations = output.botChannelAssociations self.nextToken = output.nextToken @@ -3543,9 +3533,8 @@ public enum GetBotOutputError: Swift.Error, Swift.Equatable { extension GetBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abortStatement = output.abortStatement self.checksum = output.checksum @@ -3847,9 +3836,8 @@ public enum GetBotVersionsOutputError: Swift.Error, Swift.Equatable { extension GetBotVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBotVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bots = output.bots self.nextToken = output.nextToken @@ -3991,9 +3979,8 @@ public enum GetBotsOutputError: Swift.Error, Swift.Equatable { extension GetBotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bots = output.bots self.nextToken = output.nextToken @@ -4110,9 +4097,8 @@ public enum GetBuiltinIntentOutputError: Swift.Error, Swift.Equatable { extension GetBuiltinIntentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBuiltinIntentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.signature = output.signature self.slots = output.slots @@ -4279,9 +4265,8 @@ public enum GetBuiltinIntentsOutputError: Swift.Error, Swift.Equatable { extension GetBuiltinIntentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBuiltinIntentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.intents = output.intents self.nextToken = output.nextToken @@ -4429,9 +4414,8 @@ public enum GetBuiltinSlotTypesOutputError: Swift.Error, Swift.Equatable { extension GetBuiltinSlotTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBuiltinSlotTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.slotTypes = output.slotTypes @@ -4593,9 +4577,8 @@ public enum GetExportOutputError: Swift.Error, Swift.Equatable { extension GetExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportStatus = output.exportStatus self.exportType = output.exportType @@ -4759,9 +4742,8 @@ public enum GetImportOutputError: Swift.Error, Swift.Equatable { extension GetImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.failureReason = output.failureReason @@ -4936,9 +4918,8 @@ public enum GetIntentOutputError: Swift.Error, Swift.Equatable { extension GetIntentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checksum = output.checksum self.conclusionStatement = output.conclusionStatement @@ -5267,9 +5248,8 @@ public enum GetIntentVersionsOutputError: Swift.Error, Swift.Equatable { extension GetIntentVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntentVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.intents = output.intents self.nextToken = output.nextToken @@ -5411,9 +5391,8 @@ public enum GetIntentsOutputError: Swift.Error, Swift.Equatable { extension GetIntentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIntentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.intents = output.intents self.nextToken = output.nextToken @@ -5530,9 +5509,8 @@ public enum GetMigrationOutputError: Swift.Error, Swift.Equatable { extension GetMigrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMigrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alerts = output.alerts self.migrationId = output.migrationId @@ -5780,9 +5758,8 @@ public enum GetMigrationsOutputError: Swift.Error, Swift.Equatable { extension GetMigrationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMigrationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.migrationSummaries = output.migrationSummaries self.nextToken = output.nextToken @@ -5907,9 +5884,8 @@ public enum GetSlotTypeOutputError: Swift.Error, Swift.Equatable { extension GetSlotTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSlotTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checksum = output.checksum self.createdDate = output.createdDate @@ -6140,9 +6116,8 @@ public enum GetSlotTypeVersionsOutputError: Swift.Error, Swift.Equatable { extension GetSlotTypeVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSlotTypeVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.slotTypes = output.slotTypes @@ -6284,9 +6259,8 @@ public enum GetSlotTypesOutputError: Swift.Error, Swift.Equatable { extension GetSlotTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSlotTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.slotTypes = output.slotTypes @@ -6435,9 +6409,8 @@ public enum GetUtterancesViewOutputError: Swift.Error, Swift.Equatable { extension GetUtterancesViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUtterancesViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botName = output.botName self.utterances = output.utterances @@ -6688,9 +6661,8 @@ extension LexModelBuildingClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6704,7 +6676,7 @@ extension InternalFailureException { } /// An internal Amazon Lex error occurred. Try your request again. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6802,9 +6774,8 @@ extension LimitExceededException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6818,7 +6789,7 @@ extension LimitExceededException { } /// The request exceeded a limit. Try your request again. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6916,9 +6887,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7634,9 +7604,8 @@ extension LexModelBuildingClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7650,7 +7619,7 @@ extension NotFoundException { } /// The resource specified in the request was not found. Check the resource and try again. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7776,9 +7745,8 @@ extension LexModelBuildingClientTypes { extension PreconditionFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7792,7 +7760,7 @@ extension PreconditionFailedException { } /// The checksum of the resource that you are trying to change does not match the checksum in the request. Check the resource's checksum and try again. -public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8083,9 +8051,8 @@ public enum PutBotAliasOutputError: Swift.Error, Swift.Equatable { extension PutBotAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutBotAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botName = output.botName self.botVersion = output.botVersion @@ -8528,9 +8495,8 @@ public enum PutBotOutputError: Swift.Error, Swift.Equatable { extension PutBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abortStatement = output.abortStatement self.checksum = output.checksum @@ -9089,9 +9055,8 @@ public enum PutIntentOutputError: Swift.Error, Swift.Equatable { extension PutIntentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutIntentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checksum = output.checksum self.conclusionStatement = output.conclusionStatement @@ -9534,9 +9499,8 @@ public enum PutSlotTypeOutputError: Swift.Error, Swift.Equatable { extension PutSlotTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSlotTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checksum = output.checksum self.createVersion = output.createVersion @@ -9731,9 +9695,8 @@ extension LexModelBuildingClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.exampleReference = output.exampleReference self.referenceType = output.referenceType @@ -9753,7 +9716,7 @@ extension ResourceInUseException { /// /// /// "name": string, "version": string } } -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10501,9 +10464,8 @@ public enum StartImportOutputError: Swift.Error, Swift.Equatable { extension StartImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdDate = output.createdDate self.importId = output.importId @@ -10749,9 +10711,8 @@ public enum StartMigrationOutputError: Swift.Error, Swift.Equatable { extension StartMigrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMigrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.migrationId = output.migrationId self.migrationStrategy = output.migrationStrategy diff --git a/Sources/Services/AWSLexModelsV2/LexModelsV2Client.swift b/Sources/Services/AWSLexModelsV2/LexModelsV2Client.swift index 303f719b9af..80488a9e92b 100644 --- a/Sources/Services/AWSLexModelsV2/LexModelsV2Client.swift +++ b/Sources/Services/AWSLexModelsV2/LexModelsV2Client.swift @@ -208,6 +208,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateCustomVocabularyItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteCustomVocabularyItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateCustomVocabularyItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "buildBotLocale") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBotAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +401,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +421,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBotLocale") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBotVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +473,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +493,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +509,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIntent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -547,7 +557,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -567,6 +577,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +593,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +613,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourcePolicyStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -618,7 +630,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -638,6 +650,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSlot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -653,7 +666,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -673,6 +686,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSlotType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -688,7 +702,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -708,6 +722,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUploadUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -720,7 +735,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -740,6 +755,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -753,7 +769,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -773,6 +789,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBotAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -786,7 +803,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -806,6 +823,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBotLocale") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBotVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -851,7 +870,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -871,6 +890,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -883,7 +903,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -903,6 +923,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +936,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +956,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -947,7 +969,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +989,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIntent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -979,7 +1002,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -999,6 +1022,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1012,7 +1036,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1032,6 +1056,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicyStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1045,7 +1070,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1065,6 +1090,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSlot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1077,7 +1103,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1097,6 +1123,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSlotType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1110,7 +1137,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1130,6 +1157,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUtterances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1143,7 +1171,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1163,6 +1191,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1175,7 +1204,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1195,6 +1224,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBotAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1207,7 +1237,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1227,6 +1257,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBotLocale") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1239,7 +1270,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1259,6 +1290,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBotRecommendation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1271,7 +1303,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1291,6 +1323,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBotVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1303,7 +1336,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1323,6 +1356,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCustomVocabularyMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1335,7 +1369,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1355,6 +1389,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1367,7 +1402,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1387,6 +1422,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1399,7 +1435,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1419,6 +1455,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIntent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1431,7 +1468,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1451,6 +1488,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1463,7 +1501,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1483,6 +1521,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSlot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1495,7 +1534,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1515,6 +1554,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSlotType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1527,7 +1567,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1553,6 +1593,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAggregatedUtterances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1568,7 +1609,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1588,6 +1629,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBotAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1603,7 +1645,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1623,6 +1665,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBotLocales") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1638,7 +1681,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1658,6 +1701,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBotRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1673,7 +1717,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1693,6 +1737,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBotVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1708,7 +1753,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1728,6 +1773,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1743,7 +1789,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1763,6 +1809,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBuiltInIntents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1778,7 +1825,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1798,6 +1845,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBuiltInSlotTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1813,7 +1861,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1833,6 +1881,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomVocabularyItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1848,7 +1897,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1868,6 +1917,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1883,7 +1933,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1903,6 +1953,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1918,7 +1969,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1938,6 +1989,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIntents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1953,7 +2005,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1973,6 +2025,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecommendedIntents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2041,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2008,6 +2061,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSlotTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2023,7 +2077,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2043,6 +2097,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSlots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2058,7 +2113,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2078,6 +2133,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2090,7 +2146,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2110,6 +2166,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchAssociatedTranscripts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2125,7 +2182,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2145,6 +2202,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBotRecommendation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2160,7 +2218,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2180,6 +2238,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2195,7 +2254,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2215,6 +2274,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopBotRecommendation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2227,7 +2287,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2247,6 +2307,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2262,7 +2323,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2282,6 +2343,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2295,7 +2357,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2315,6 +2377,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2330,7 +2393,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2350,6 +2413,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBotAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2365,7 +2429,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2385,6 +2449,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBotLocale") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2400,7 +2465,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2420,6 +2485,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBotRecommendation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2435,7 +2501,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2455,6 +2521,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2470,7 +2537,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2490,6 +2557,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIntent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2505,7 +2573,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2525,6 +2593,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2541,7 +2610,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2561,6 +2630,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSlot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2576,7 +2646,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2596,6 +2666,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSlotType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2611,7 +2682,7 @@ extension LexModelsV2Client: LexModelsV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLexModelsV2/models/Models.swift b/Sources/Services/AWSLexModelsV2/models/Models.swift index e9e19d06ba3..8f1c9205cd7 100644 --- a/Sources/Services/AWSLexModelsV2/models/Models.swift +++ b/Sources/Services/AWSLexModelsV2/models/Models.swift @@ -836,9 +836,8 @@ public enum BatchCreateCustomVocabularyItemOutputError: Swift.Error, Swift.Equat extension BatchCreateCustomVocabularyItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateCustomVocabularyItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -1049,9 +1048,8 @@ public enum BatchDeleteCustomVocabularyItemOutputError: Swift.Error, Swift.Equat extension BatchDeleteCustomVocabularyItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteCustomVocabularyItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -1262,9 +1260,8 @@ public enum BatchUpdateCustomVocabularyItemOutputError: Swift.Error, Swift.Equat extension BatchUpdateCustomVocabularyItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateCustomVocabularyItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -3246,9 +3243,8 @@ public enum BuildBotLocaleOutputError: Swift.Error, Swift.Equatable { extension BuildBotLocaleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BuildBotLocaleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botLocaleStatus = output.botLocaleStatus @@ -3920,9 +3916,8 @@ extension LexModelsV2ClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3936,7 +3931,7 @@ extension ConflictException { } /// The action that you tried to perform couldn't be completed because the resource is in a conflicting state. For example, deleting a bot that is in the CREATING state. Try your request again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4225,9 +4220,8 @@ public enum CreateBotAliasOutputError: Swift.Error, Swift.Equatable { extension CreateBotAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBotAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAliasId = output.botAliasId self.botAliasLocaleSettings = output.botAliasLocaleSettings @@ -4708,9 +4702,8 @@ public enum CreateBotLocaleOutputError: Swift.Error, Swift.Equatable { extension CreateBotLocaleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBotLocaleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botLocaleStatus = output.botLocaleStatus @@ -4861,9 +4854,8 @@ public enum CreateBotOutputError: Swift.Error, Swift.Equatable { extension CreateBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botMembers = output.botMembers @@ -5151,9 +5143,8 @@ public enum CreateBotVersionOutputError: Swift.Error, Swift.Equatable { extension CreateBotVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBotVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botStatus = output.botStatus @@ -5361,9 +5352,8 @@ public enum CreateExportOutputError: Swift.Error, Swift.Equatable { extension CreateExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDateTime = output.creationDateTime self.exportId = output.exportId @@ -5714,9 +5704,8 @@ public enum CreateIntentOutputError: Swift.Error, Swift.Equatable { extension CreateIntentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIntentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -6030,9 +6019,8 @@ public enum CreateResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension CreateResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.revisionId = output.revisionId @@ -6285,9 +6273,8 @@ public enum CreateResourcePolicyStatementOutputError: Swift.Error, Swift.Equatab extension CreateResourcePolicyStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourcePolicyStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.revisionId = output.revisionId @@ -6521,9 +6508,8 @@ public enum CreateSlotOutputError: Swift.Error, Swift.Equatable { extension CreateSlotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSlotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -6877,9 +6863,8 @@ public enum CreateSlotTypeOutputError: Swift.Error, Swift.Equatable { extension CreateSlotTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSlotTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -7087,9 +7072,8 @@ public enum CreateUploadUrlOutputError: Swift.Error, Swift.Equatable { extension CreateUploadUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUploadUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importId = output.importId self.uploadUrl = output.uploadUrl @@ -7719,9 +7703,8 @@ public enum DeleteBotAliasOutputError: Swift.Error, Swift.Equatable { extension DeleteBotAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBotAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAliasId = output.botAliasId self.botAliasStatus = output.botAliasStatus @@ -7907,9 +7890,8 @@ public enum DeleteBotLocaleOutputError: Swift.Error, Swift.Equatable { extension DeleteBotLocaleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBotLocaleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botLocaleStatus = output.botLocaleStatus @@ -8010,9 +7992,8 @@ public enum DeleteBotOutputError: Swift.Error, Swift.Equatable { extension DeleteBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botStatus = output.botStatus @@ -8149,9 +8130,8 @@ public enum DeleteBotVersionOutputError: Swift.Error, Swift.Equatable { extension DeleteBotVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBotVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botStatus = output.botStatus @@ -8289,9 +8269,8 @@ public enum DeleteCustomVocabularyOutputError: Swift.Error, Swift.Equatable { extension DeleteCustomVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCustomVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -8421,9 +8400,8 @@ public enum DeleteExportOutputError: Swift.Error, Swift.Equatable { extension DeleteExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportId = output.exportId self.exportStatus = output.exportStatus @@ -8533,9 +8511,8 @@ public enum DeleteImportOutputError: Swift.Error, Swift.Equatable { extension DeleteImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importId = output.importId self.importStatus = output.importStatus @@ -8757,9 +8734,8 @@ public enum DeleteResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension DeleteResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.revisionId = output.revisionId @@ -8892,9 +8868,8 @@ public enum DeleteResourcePolicyStatementOutputError: Swift.Error, Swift.Equatab extension DeleteResourcePolicyStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResourcePolicyStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.revisionId = output.revisionId @@ -9323,9 +9298,8 @@ public enum DescribeBotAliasOutputError: Swift.Error, Swift.Equatable { extension DescribeBotAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBotAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAliasHistoryEvents = output.botAliasHistoryEvents self.botAliasId = output.botAliasId @@ -9619,9 +9593,8 @@ public enum DescribeBotLocaleOutputError: Swift.Error, Swift.Equatable { extension DescribeBotLocaleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBotLocaleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botLocaleHistoryEvents = output.botLocaleHistoryEvents @@ -9867,9 +9840,8 @@ public enum DescribeBotOutputError: Swift.Error, Swift.Equatable { extension DescribeBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botMembers = output.botMembers @@ -10119,9 +10091,8 @@ public enum DescribeBotRecommendationOutputError: Swift.Error, Swift.Equatable { extension DescribeBotRecommendationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBotRecommendationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botRecommendationId = output.botRecommendationId @@ -10354,9 +10325,8 @@ public enum DescribeBotVersionOutputError: Swift.Error, Swift.Equatable { extension DescribeBotVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBotVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botMembers = output.botMembers @@ -10619,9 +10589,8 @@ public enum DescribeCustomVocabularyMetadataOutputError: Swift.Error, Swift.Equa extension DescribeCustomVocabularyMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCustomVocabularyMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -10769,9 +10738,8 @@ public enum DescribeExportOutputError: Swift.Error, Swift.Equatable { extension DescribeExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDateTime = output.creationDateTime self.downloadUrl = output.downloadUrl @@ -10948,9 +10916,8 @@ public enum DescribeImportOutputError: Swift.Error, Swift.Equatable { extension DescribeImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDateTime = output.creationDateTime self.failureReasons = output.failureReasons @@ -11163,9 +11130,8 @@ public enum DescribeIntentOutputError: Swift.Error, Swift.Equatable { extension DescribeIntentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIntentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -11477,9 +11443,8 @@ public enum DescribeResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.resourceArn = output.resourceArn @@ -11631,9 +11596,8 @@ public enum DescribeSlotOutputError: Swift.Error, Swift.Equatable { extension DescribeSlotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSlotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -11887,9 +11851,8 @@ public enum DescribeSlotTypeOutputError: Swift.Error, Swift.Equatable { extension DescribeSlotTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSlotTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -14643,9 +14606,8 @@ extension LexModelsV2ClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14659,7 +14621,7 @@ extension InternalServerException { } /// The service encountered an unexpected condition. Try your request again. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15014,9 +14976,8 @@ public enum ListAggregatedUtterancesOutputError: Swift.Error, Swift.Equatable { extension ListAggregatedUtterancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAggregatedUtterancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aggregatedUtterancesSummaries = output.aggregatedUtterancesSummaries self.aggregationDuration = output.aggregationDuration @@ -15255,9 +15216,8 @@ public enum ListBotAliasesOutputError: Swift.Error, Swift.Equatable { extension ListBotAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBotAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAliasSummaries = output.botAliasSummaries self.botId = output.botId @@ -15464,9 +15424,8 @@ public enum ListBotLocalesOutputError: Swift.Error, Swift.Equatable { extension ListBotLocalesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBotLocalesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botLocaleSummaries = output.botLocaleSummaries @@ -15655,9 +15614,8 @@ public enum ListBotRecommendationsOutputError: Swift.Error, Swift.Equatable { extension ListBotRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBotRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botRecommendationSummaries = output.botRecommendationSummaries @@ -15852,9 +15810,8 @@ public enum ListBotVersionsOutputError: Swift.Error, Swift.Equatable { extension ListBotVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBotVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersionSummaries = output.botVersionSummaries @@ -16045,9 +16002,8 @@ public enum ListBotsOutputError: Swift.Error, Swift.Equatable { extension ListBotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botSummaries = output.botSummaries self.nextToken = output.nextToken @@ -16212,9 +16168,8 @@ public enum ListBuiltInIntentsOutputError: Swift.Error, Swift.Equatable { extension ListBuiltInIntentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBuiltInIntentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.builtInIntentSummaries = output.builtInIntentSummaries self.localeId = output.localeId @@ -16389,9 +16344,8 @@ public enum ListBuiltInSlotTypesOutputError: Swift.Error, Swift.Equatable { extension ListBuiltInSlotTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBuiltInSlotTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.builtInSlotTypeSummaries = output.builtInSlotTypeSummaries self.localeId = output.localeId @@ -16572,9 +16526,8 @@ public enum ListCustomVocabularyItemsOutputError: Swift.Error, Swift.Equatable { extension ListCustomVocabularyItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomVocabularyItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -16819,9 +16772,8 @@ public enum ListExportsOutputError: Swift.Error, Swift.Equatable { extension ListExportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -17066,9 +17018,8 @@ public enum ListImportsOutputError: Swift.Error, Swift.Equatable { extension ListImportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -17303,9 +17254,8 @@ public enum ListIntentsOutputError: Swift.Error, Swift.Equatable { extension ListIntentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIntentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -17514,9 +17464,8 @@ public enum ListRecommendedIntentsOutputError: Swift.Error, Swift.Equatable { extension ListRecommendedIntentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecommendedIntentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botRecommendationId = output.botRecommendationId @@ -17761,9 +17710,8 @@ public enum ListSlotTypesOutputError: Swift.Error, Swift.Equatable { extension ListSlotTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSlotTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -18006,9 +17954,8 @@ public enum ListSlotsOutputError: Swift.Error, Swift.Equatable { extension ListSlotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSlotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -18165,9 +18112,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -18982,9 +18928,8 @@ extension LexModelsV2ClientTypes { extension PreconditionFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18998,7 +18943,7 @@ extension PreconditionFailedException { } /// Your request couldn't be completed because one or more request fields aren't valid. Check the fields in your request and try again. -public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19405,9 +19350,8 @@ extension LexModelsV2ClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19421,7 +19365,7 @@ extension ResourceNotFoundException { } /// You asked to describe a resource that doesn't exist. Check the resource that you are requesting and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19915,9 +19859,8 @@ public enum SearchAssociatedTranscriptsOutputError: Swift.Error, Swift.Equatable extension SearchAssociatedTranscriptsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchAssociatedTranscriptsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedTranscripts = output.associatedTranscripts self.botId = output.botId @@ -20093,9 +20036,8 @@ extension LexModelsV2ClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20109,7 +20051,7 @@ extension ServiceQuotaExceededException { } /// You have reached a quota for your bot. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21728,9 +21670,8 @@ public enum StartBotRecommendationOutputError: Swift.Error, Swift.Equatable { extension StartBotRecommendationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartBotRecommendationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botRecommendationId = output.botRecommendationId @@ -21962,9 +21903,8 @@ public enum StartImportOutputError: Swift.Error, Swift.Equatable { extension StartImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDateTime = output.creationDateTime self.importId = output.importId @@ -22212,9 +22152,8 @@ public enum StopBotRecommendationOutputError: Swift.Error, Swift.Equatable { extension StopBotRecommendationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopBotRecommendationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botRecommendationId = output.botRecommendationId @@ -22705,9 +22644,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22721,7 +22659,7 @@ extension ThrottlingException { } /// Your request rate is too high. Reduce the frequency of requests. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23154,9 +23092,8 @@ public enum UpdateBotAliasOutputError: Swift.Error, Swift.Equatable { extension UpdateBotAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBotAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAliasId = output.botAliasId self.botAliasLocaleSettings = output.botAliasLocaleSettings @@ -23575,9 +23512,8 @@ public enum UpdateBotLocaleOutputError: Swift.Error, Swift.Equatable { extension UpdateBotLocaleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBotLocaleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botLocaleStatus = output.botLocaleStatus @@ -23776,9 +23712,8 @@ public enum UpdateBotOutputError: Swift.Error, Swift.Equatable { extension UpdateBotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botMembers = output.botMembers @@ -24040,9 +23975,8 @@ public enum UpdateBotRecommendationOutputError: Swift.Error, Swift.Equatable { extension UpdateBotRecommendationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBotRecommendationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botRecommendationId = output.botRecommendationId @@ -24253,9 +24187,8 @@ public enum UpdateExportOutputError: Swift.Error, Swift.Equatable { extension UpdateExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDateTime = output.creationDateTime self.exportId = output.exportId @@ -24648,9 +24581,8 @@ public enum UpdateIntentOutputError: Swift.Error, Swift.Equatable { extension UpdateIntentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIntentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -25010,9 +24942,8 @@ public enum UpdateResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension UpdateResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.revisionId = output.revisionId @@ -25254,9 +25185,8 @@ public enum UpdateSlotOutputError: Swift.Error, Swift.Equatable { extension UpdateSlotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSlotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -25621,9 +25551,8 @@ public enum UpdateSlotTypeOutputError: Swift.Error, Swift.Equatable { extension UpdateSlotTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSlotTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botId = output.botId self.botVersion = output.botVersion @@ -25827,9 +25756,8 @@ extension LexModelsV2ClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25843,7 +25771,7 @@ extension ValidationException { } /// One of the input parameters in your request isn't valid. Check the parameters and try your request again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLexRuntimeService/LexRuntimeClient.swift b/Sources/Services/AWSLexRuntimeService/LexRuntimeClient.swift index 888f9cb4ab0..e2d279c6059 100644 --- a/Sources/Services/AWSLexRuntimeService/LexRuntimeClient.swift +++ b/Sources/Services/AWSLexRuntimeService/LexRuntimeClient.swift @@ -208,6 +208,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -253,7 +255,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -302,6 +304,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "postContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -318,7 +321,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -367,6 +370,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "postText") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -382,7 +386,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -402,6 +406,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +423,7 @@ extension LexRuntimeClient: LexRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLexRuntimeService/models/Models.swift b/Sources/Services/AWSLexRuntimeService/models/Models.swift index 7eabf2d9887..6fa27de7586 100644 --- a/Sources/Services/AWSLexRuntimeService/models/Models.swift +++ b/Sources/Services/AWSLexRuntimeService/models/Models.swift @@ -119,9 +119,8 @@ extension LexRuntimeClientTypes { extension BadGatewayException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadGatewayExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -135,7 +134,7 @@ extension BadGatewayException { } /// Either the Amazon Lex bot is still building, or one of the dependent services (Amazon Polly, AWS Lambda) failed with an internal service error. -public struct BadGatewayException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadGatewayException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -171,9 +170,8 @@ extension BadGatewayExceptionBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -187,7 +185,7 @@ extension BadRequestException { } /// Request validation failed, there is no usable message in the context, or the bot build failed, is still in progress, or contains unbuilt changes. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -305,9 +303,8 @@ extension LexRuntimeClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -321,7 +318,7 @@ extension ConflictException { } /// Two clients are using the same AWS account, Amazon Lex bot, and user ID. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -463,9 +460,8 @@ public enum DeleteSessionOutputError: Swift.Error, Swift.Equatable { extension DeleteSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAlias = output.botAlias self.botName = output.botName @@ -534,9 +530,8 @@ extension DeleteSessionOutputResponseBody: Swift.Decodable { extension DependencyFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependencyFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -556,7 +551,7 @@ extension DependencyFailedException { /// * If a Lambda function takes longer than 30 seconds to execute. /// /// * If a fulfillment Lambda function returns a Delegate dialog action without removing any slot values. -public struct DependencyFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1031,9 +1026,8 @@ extension GetSessionOutputResponse: Swift.CustomDebugStringConvertible { extension GetSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeContexts = output.activeContexts self.dialogAction = output.dialogAction @@ -1307,9 +1301,8 @@ extension LexRuntimeClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1323,7 +1316,7 @@ extension InternalFailureException { } /// Internal service error. Retry the call. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1364,9 +1357,8 @@ extension LimitExceededException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1380,7 +1372,7 @@ extension LimitExceededException { } /// Exceeded a limit. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1419,9 +1411,8 @@ extension LimitExceededExceptionBody: Swift.Decodable { extension LoopDetectedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LoopDetectedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1435,7 +1426,7 @@ extension LoopDetectedException { } /// This exception is not used. -public struct LoopDetectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LoopDetectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1509,9 +1500,8 @@ extension LexRuntimeClientTypes { extension NotAcceptableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAcceptableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1525,7 +1515,7 @@ extension NotAcceptableException { } /// The accept header in the request does not have a valid value. -public struct NotAcceptableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAcceptableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1561,9 +1551,8 @@ extension NotAcceptableExceptionBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1577,7 +1566,7 @@ extension NotFoundException { } /// The resource (such as the Amazon Lex bot or an alias) that is referred to is not found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1625,9 +1614,8 @@ public struct PostContentInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let inputStream = input.operationInput.inputStream { - let inputStreamdata = inputStream - let inputStreambody = ClientRuntime.HttpBody.stream(inputStreamdata) - input.builder.withBody(inputStreambody) + let inputStreamBody = ClientRuntime.HttpBody(byteStream: inputStream) + input.builder.withBody(inputStreamBody) } return try await next.handle(context: context, input: input) } @@ -1650,7 +1638,7 @@ extension PostContentInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let inputStream = self.inputStream { - try encodeContainer.encode(inputStream.toBytes().getData(), forKey: .inputStream) + try encodeContainer.encode(inputStream, forKey: .inputStream) } } } @@ -1951,9 +1939,12 @@ extension PostContentOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.slots = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.audioStream = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.audioStream = .data(data) + case .stream(let stream): + self.audioStream = .stream(stream) + case .none: self.audioStream = nil } } @@ -2277,9 +2268,8 @@ extension PostTextOutputResponse: Swift.CustomDebugStringConvertible { extension PostTextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PostTextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeContexts = output.activeContexts self.alternativeIntents = output.alternativeIntents @@ -2861,9 +2851,12 @@ extension PutSessionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.slots = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.audioStream = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.audioStream = .data(data) + case .stream(let stream): + self.audioStream = .stream(stream) + case .none: self.audioStream = nil } } @@ -2962,9 +2955,8 @@ extension PutSessionOutputResponseBody: Swift.Decodable { extension RequestTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2978,7 +2970,7 @@ extension RequestTimeoutException { } /// The input speech is too long. -public struct RequestTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3126,9 +3118,8 @@ extension LexRuntimeClientTypes { extension UnsupportedMediaTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedMediaTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3142,7 +3133,7 @@ extension UnsupportedMediaTypeException { } /// The Content-Type header (PostContent API) has an invalid value. -public struct UnsupportedMediaTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedMediaTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLexRuntimeV2/LexRuntimeV2Client.swift b/Sources/Services/AWSLexRuntimeV2/LexRuntimeV2Client.swift index 5cdc1798441..08f0f266cc9 100644 --- a/Sources/Services/AWSLexRuntimeV2/LexRuntimeV2Client.swift +++ b/Sources/Services/AWSLexRuntimeV2/LexRuntimeV2Client.swift @@ -208,6 +208,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -288,7 +291,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -317,6 +320,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "recognizeText") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -381,6 +385,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "recognizeUtterance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -397,7 +402,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +437,8 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lex") .withSigningRegion(value: config.signingRegion) + .build() + try context.setupBidirectionalStreaming() var operation = ClientRuntime.OperationStack(id: "startConversation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension LexRuntimeV2Client: LexRuntimeV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLexRuntimeV2/models/Models.swift b/Sources/Services/AWSLexRuntimeV2/models/Models.swift index a3037d76bed..20d2fbe4a22 100644 --- a/Sources/Services/AWSLexRuntimeV2/models/Models.swift +++ b/Sources/Services/AWSLexRuntimeV2/models/Models.swift @@ -23,9 +23,8 @@ extension AccessDeniedException: Swift.Codable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -39,7 +38,7 @@ extension AccessDeniedException { } /// -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -333,9 +332,8 @@ extension BadGatewayException: Swift.Codable { extension BadGatewayException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadGatewayExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -349,7 +347,7 @@ extension BadGatewayException { } /// -public struct BadGatewayException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadGatewayException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -660,9 +658,8 @@ extension ConflictException: Swift.Codable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -676,7 +673,7 @@ extension ConflictException { } /// -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -893,9 +890,8 @@ public enum DeleteSessionOutputError: Swift.Error, Swift.Equatable { extension DeleteSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.botAliasId = output.botAliasId self.botId = output.botId @@ -983,9 +979,8 @@ extension DependencyFailedException: Swift.Codable { extension DependencyFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependencyFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -999,7 +994,7 @@ extension DependencyFailedException { } /// -public struct DependencyFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1339,9 +1334,8 @@ public enum GetSessionOutputError: Swift.Error, Swift.Equatable { extension GetSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.interpretations = output.interpretations self.messages = output.messages @@ -1836,9 +1830,8 @@ extension InternalServerException: Swift.Codable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1852,7 +1845,7 @@ extension InternalServerException { } /// -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2383,9 +2376,12 @@ extension PutSessionOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.sessionState = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.audioStream = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.audioStream = .data(data) + case .stream(let stream): + self.audioStream = .stream(stream) + case .none: self.audioStream = nil } } @@ -2598,9 +2594,8 @@ public enum RecognizeTextOutputError: Swift.Error, Swift.Equatable { extension RecognizeTextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RecognizeTextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.interpretations = output.interpretations self.messages = output.messages @@ -2728,9 +2723,8 @@ public struct RecognizeUtteranceInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let inputStream = input.operationInput.inputStream { - let inputStreamdata = inputStream - let inputStreambody = ClientRuntime.HttpBody.stream(inputStreamdata) - input.builder.withBody(inputStreambody) + let inputStreamBody = ClientRuntime.HttpBody(byteStream: inputStream) + input.builder.withBody(inputStreamBody) } return try await next.handle(context: context, input: input) } @@ -2753,7 +2747,7 @@ extension RecognizeUtteranceInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let inputStream = self.inputStream { - try encodeContainer.encode(inputStream.toBytes().getData(), forKey: .inputStream) + try encodeContainer.encode(inputStream, forKey: .inputStream) } } } @@ -2983,9 +2977,12 @@ extension RecognizeUtteranceOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.sessionState = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.audioStream = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.audioStream = .data(data) + case .stream(let stream): + self.audioStream = .stream(stream) + case .none: self.audioStream = nil } } @@ -3122,9 +3119,8 @@ extension ResourceNotFoundException: Swift.Codable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3138,7 +3134,7 @@ extension ResourceNotFoundException { } /// -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3732,15 +3728,20 @@ public struct StartConversationInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let requestEventStream = input.operationInput.requestEventStream { - let requestEventStreamdata = try encoder.encode(requestEventStream) - let requestEventStreambody = ClientRuntime.HttpBody.data(requestEventStreamdata) - input.builder.withBody(requestEventStreambody) + guard let messageEncoder = context.getMessageEncoder() else { + fatalError("Message encoder is required for streaming payload") + } + guard let messageSigner = context.getMessageSigner() else { + fatalError("Message signer is required for streaming payload") + } + let encoderStream = ClientRuntime.EventStream.DefaultMessageEncoderStream(stream: requestEventStream, messageEncoder: messageEncoder, requestEncoder: encoder, messageSinger: messageSigner) + input.builder.withBody(.stream(encoderStream)) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let requestEventStreamdata = "{}".data(using: .utf8)! - let requestEventStreambody = ClientRuntime.HttpBody.data(requestEventStreamdata) - input.builder.withBody(requestEventStreambody) + let requestEventStreamData = "{}".data(using: .utf8)! + let requestEventStreamBody = ClientRuntime.HttpBody.data(requestEventStreamData) + input.builder.withBody(requestEventStreamBody) } } } catch let err { @@ -3754,19 +3755,6 @@ public struct StartConversationInputBodyMiddleware: ClientRuntime.Middleware { public typealias Context = ClientRuntime.HttpContext } -extension StartConversationInput: Swift.Encodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case requestEventStream - } - - public func encode(to encoder: Swift.Encoder) throws { - var encodeContainer = encoder.container(keyedBy: CodingKeys.self) - if let requestEventStream = self.requestEventStream { - try encodeContainer.encode(requestEventStream, forKey: .requestEventStream) - } - } -} - extension StartConversationInput: ClientRuntime.HeaderProvider { public var headers: ClientRuntime.Headers { var items = ClientRuntime.Headers() @@ -3809,7 +3797,7 @@ public struct StartConversationInput: Swift.Equatable { public var localeId: Swift.String? /// Represents the stream of events to Amazon Lex V2 from your application. The events are encoded as HTTP/2 data frames. /// This member is required. - public var requestEventStream: LexRuntimeV2ClientTypes.StartConversationRequestEventStream? + public var requestEventStream: AsyncThrowingStream? /// The identifier of the user session that is having the conversation. /// This member is required. public var sessionId: Swift.String? @@ -3819,7 +3807,7 @@ public struct StartConversationInput: Swift.Equatable { botId: Swift.String? = nil, conversationMode: LexRuntimeV2ClientTypes.ConversationMode? = nil, localeId: Swift.String? = nil, - requestEventStream: LexRuntimeV2ClientTypes.StartConversationRequestEventStream? = nil, + requestEventStream: AsyncThrowingStream? = nil, sessionId: Swift.String? = nil ) { @@ -3832,22 +3820,6 @@ public struct StartConversationInput: Swift.Equatable { } } -struct StartConversationInputBody: Swift.Equatable { - let requestEventStream: LexRuntimeV2ClientTypes.StartConversationRequestEventStream? -} - -extension StartConversationInputBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case requestEventStream - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let requestEventStreamDecoded = try containerValues.decodeIfPresent(LexRuntimeV2ClientTypes.StartConversationRequestEventStream.self, forKey: .requestEventStream) - requestEventStream = requestEventStreamDecoded - } -} - extension StartConversationOutputError: ClientRuntime.HttpResponseBinding { public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { let errorDetails = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse) @@ -3878,13 +3850,10 @@ public enum StartConversationOutputError: Swift.Error, Swift.Equatable { extension StartConversationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: LexRuntimeV2ClientTypes.StartConversationResponseEventStream = try responseDecoder.decode(responseBody: data) - self.responseEventStream = output - } else { - self.responseEventStream = nil - } + if case let .stream(stream) = httpResponse.body, let responseDecoder = decoder { + let messageDecoder = AWSClientRuntime.AWSEventStream.AWSMessageDecoder() + let decoderStream = ClientRuntime.EventStream.DefaultMessageDecoderStream(stream: stream, messageDecoder: messageDecoder, responseDecoder: responseDecoder) + self.responseEventStream = decoderStream.toAsyncStream() } else { self.responseEventStream = nil } @@ -3893,96 +3862,49 @@ extension StartConversationOutputResponse: ClientRuntime.HttpResponseBinding { public struct StartConversationOutputResponse: Swift.Equatable { /// Represents the stream of events from Amazon Lex V2 to your application. The events are encoded as HTTP/2 data frames. - public var responseEventStream: LexRuntimeV2ClientTypes.StartConversationResponseEventStream? + public var responseEventStream: AsyncThrowingStream? public init ( - responseEventStream: LexRuntimeV2ClientTypes.StartConversationResponseEventStream? = nil + responseEventStream: AsyncThrowingStream? = nil ) { self.responseEventStream = responseEventStream } } -struct StartConversationOutputResponseBody: Swift.Equatable { - let responseEventStream: LexRuntimeV2ClientTypes.StartConversationResponseEventStream? -} - -extension StartConversationOutputResponseBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case responseEventStream - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let responseEventStreamDecoded = try containerValues.decodeIfPresent(LexRuntimeV2ClientTypes.StartConversationResponseEventStream.self, forKey: .responseEventStream) - responseEventStream = responseEventStreamDecoded - } -} - -extension LexRuntimeV2ClientTypes.StartConversationRequestEventStream: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case audioinputevent = "AudioInputEvent" - case configurationevent = "ConfigurationEvent" - case dtmfinputevent = "DTMFInputEvent" - case disconnectionevent = "DisconnectionEvent" - case playbackcompletionevent = "PlaybackCompletionEvent" - case textinputevent = "TextInputEvent" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) +extension LexRuntimeV2ClientTypes.StartConversationRequestEventStream: ClientRuntime.MessageMarshallable { + public func marshall(encoder: ClientRuntime.RequestEncoder) throws -> ClientRuntime.EventStream.Message { + var headers: [ClientRuntime.EventStream.Header] = [.init(name: ":message-type", value: .string("event"))] + var payload: ClientRuntime.Data? = nil switch self { - case let .audioinputevent(audioinputevent): - try container.encode(audioinputevent, forKey: .audioinputevent) - case let .configurationevent(configurationevent): - try container.encode(configurationevent, forKey: .configurationevent) - case let .dtmfinputevent(dtmfinputevent): - try container.encode(dtmfinputevent, forKey: .dtmfinputevent) - case let .disconnectionevent(disconnectionevent): - try container.encode(disconnectionevent, forKey: .disconnectionevent) - case let .playbackcompletionevent(playbackcompletionevent): - try container.encode(playbackcompletionevent, forKey: .playbackcompletionevent) - case let .textinputevent(textinputevent): - try container.encode(textinputevent, forKey: .textinputevent) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: .sdkUnknown) - } - } - - public init (from decoder: Swift.Decoder) throws { - let values = try decoder.container(keyedBy: CodingKeys.self) - let configurationeventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.ConfigurationEvent.self, forKey: .configurationevent) - if let configurationevent = configurationeventDecoded { - self = .configurationevent(configurationevent) - return - } - let audioinputeventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.AudioInputEvent.self, forKey: .audioinputevent) - if let audioinputevent = audioinputeventDecoded { - self = .audioinputevent(audioinputevent) - return - } - let dtmfinputeventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.DTMFInputEvent.self, forKey: .dtmfinputevent) - if let dtmfinputevent = dtmfinputeventDecoded { - self = .dtmfinputevent(dtmfinputevent) - return - } - let textinputeventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.TextInputEvent.self, forKey: .textinputevent) - if let textinputevent = textinputeventDecoded { - self = .textinputevent(textinputevent) - return - } - let playbackcompletioneventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.PlaybackCompletionEvent.self, forKey: .playbackcompletionevent) - if let playbackcompletionevent = playbackcompletioneventDecoded { - self = .playbackcompletionevent(playbackcompletionevent) - return - } - let disconnectioneventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.DisconnectionEvent.self, forKey: .disconnectionevent) - if let disconnectionevent = disconnectioneventDecoded { - self = .disconnectionevent(disconnectionevent) - return - } - self = .sdkUnknown("") + case .configurationevent(let value): + headers.append(.init(name: ":event-type", value: .string("ConfigurationEvent"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .audioinputevent(let value): + headers.append(.init(name: ":event-type", value: .string("AudioInputEvent"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .dtmfinputevent(let value): + headers.append(.init(name: ":event-type", value: .string("DTMFInputEvent"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .textinputevent(let value): + headers.append(.init(name: ":event-type", value: .string("TextInputEvent"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .playbackcompletionevent(let value): + headers.append(.init(name: ":event-type", value: .string("PlaybackCompletionEvent"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .disconnectionevent(let value): + headers.append(.init(name: ":event-type", value: .string("DisconnectionEvent"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .sdkUnknown(_): + throw ClientRuntime.ClientError.serializationFailed("cannot serialize the unknown event type!") + } + return ClientRuntime.EventStream.Message(headers: headers, payload: payload ?? .init()) } } @@ -4012,135 +3934,59 @@ extension LexRuntimeV2ClientTypes { } -extension LexRuntimeV2ClientTypes.StartConversationResponseEventStream: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case accessdeniedexception = "AccessDeniedException" - case audioresponseevent = "AudioResponseEvent" - case badgatewayexception = "BadGatewayException" - case conflictexception = "ConflictException" - case dependencyfailedexception = "DependencyFailedException" - case heartbeatevent = "HeartbeatEvent" - case intentresultevent = "IntentResultEvent" - case internalserverexception = "InternalServerException" - case playbackinterruptionevent = "PlaybackInterruptionEvent" - case resourcenotfoundexception = "ResourceNotFoundException" - case textresponseevent = "TextResponseEvent" - case throttlingexception = "ThrottlingException" - case transcriptevent = "TranscriptEvent" - case validationexception = "ValidationException" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - switch self { - case let .accessdeniedexception(accessdeniedexception): - try container.encode(accessdeniedexception, forKey: .accessdeniedexception) - case let .audioresponseevent(audioresponseevent): - try container.encode(audioresponseevent, forKey: .audioresponseevent) - case let .badgatewayexception(badgatewayexception): - try container.encode(badgatewayexception, forKey: .badgatewayexception) - case let .conflictexception(conflictexception): - try container.encode(conflictexception, forKey: .conflictexception) - case let .dependencyfailedexception(dependencyfailedexception): - try container.encode(dependencyfailedexception, forKey: .dependencyfailedexception) - case let .heartbeatevent(heartbeatevent): - try container.encode(heartbeatevent, forKey: .heartbeatevent) - case let .intentresultevent(intentresultevent): - try container.encode(intentresultevent, forKey: .intentresultevent) - case let .internalserverexception(internalserverexception): - try container.encode(internalserverexception, forKey: .internalserverexception) - case let .playbackinterruptionevent(playbackinterruptionevent): - try container.encode(playbackinterruptionevent, forKey: .playbackinterruptionevent) - case let .resourcenotfoundexception(resourcenotfoundexception): - try container.encode(resourcenotfoundexception, forKey: .resourcenotfoundexception) - case let .textresponseevent(textresponseevent): - try container.encode(textresponseevent, forKey: .textresponseevent) - case let .throttlingexception(throttlingexception): - try container.encode(throttlingexception, forKey: .throttlingexception) - case let .transcriptevent(transcriptevent): - try container.encode(transcriptevent, forKey: .transcriptevent) - case let .validationexception(validationexception): - try container.encode(validationexception, forKey: .validationexception) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: .sdkUnknown) +extension LexRuntimeV2ClientTypes.StartConversationResponseEventStream: ClientRuntime.MessageUnmarshallable { + public init(message: ClientRuntime.EventStream.Message, decoder: ClientRuntime.ResponseDecoder) throws { + switch try message.type() { + case .event(let params): + switch params.eventType { + case "PlaybackInterruptionEvent": + self = .playbackinterruptionevent(try decoder.decode(responseBody: message.payload)) + case "TranscriptEvent": + self = .transcriptevent(try decoder.decode(responseBody: message.payload)) + case "IntentResultEvent": + self = .intentresultevent(try decoder.decode(responseBody: message.payload)) + case "TextResponseEvent": + self = .textresponseevent(try decoder.decode(responseBody: message.payload)) + case "AudioResponseEvent": + self = .audioresponseevent(try decoder.decode(responseBody: message.payload)) + case "HeartbeatEvent": + self = .heartbeatevent(try decoder.decode(responseBody: message.payload)) + default: + self = .sdkUnknown("error processing event stream, unrecognized event: \(params.eventType)") + } + case .exception(let params): + let makeError: (ClientRuntime.EventStream.Message, ClientRuntime.EventStream.MessageType.ExceptionParams) throws -> Swift.Error = { message, params in + switch params.exceptionType { + case "AccessDeniedException": + return try decoder.decode(responseBody: message.payload) as AccessDeniedException + case "ResourceNotFoundException": + return try decoder.decode(responseBody: message.payload) as ResourceNotFoundException + case "ValidationException": + return try decoder.decode(responseBody: message.payload) as ValidationException + case "ThrottlingException": + return try decoder.decode(responseBody: message.payload) as ThrottlingException + case "InternalServerException": + return try decoder.decode(responseBody: message.payload) as InternalServerException + case "ConflictException": + return try decoder.decode(responseBody: message.payload) as ConflictException + case "DependencyFailedException": + return try decoder.decode(responseBody: message.payload) as DependencyFailedException + case "BadGatewayException": + return try decoder.decode(responseBody: message.payload) as BadGatewayException + default: + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + return AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':exceptionType': \(params.exceptionType); contentType: \(params.contentType ?? "nil")") + } + } + let error = try makeError(message, params) + throw error + case .error(let params): + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + throw AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':errorType': \(params.errorCode); message: \(params.message ?? "nil")") + case .unknown(messageType: let messageType): + throw ClientRuntime.ClientError.unknownError("unrecognized event stream message ':message-type': \(messageType)") } } - - public init (from decoder: Swift.Decoder) throws { - let values = try decoder.container(keyedBy: CodingKeys.self) - let playbackinterruptioneventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.PlaybackInterruptionEvent.self, forKey: .playbackinterruptionevent) - if let playbackinterruptionevent = playbackinterruptioneventDecoded { - self = .playbackinterruptionevent(playbackinterruptionevent) - return - } - let transcripteventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.TranscriptEvent.self, forKey: .transcriptevent) - if let transcriptevent = transcripteventDecoded { - self = .transcriptevent(transcriptevent) - return - } - let intentresulteventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.IntentResultEvent.self, forKey: .intentresultevent) - if let intentresultevent = intentresulteventDecoded { - self = .intentresultevent(intentresultevent) - return - } - let textresponseeventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.TextResponseEvent.self, forKey: .textresponseevent) - if let textresponseevent = textresponseeventDecoded { - self = .textresponseevent(textresponseevent) - return - } - let audioresponseeventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.AudioResponseEvent.self, forKey: .audioresponseevent) - if let audioresponseevent = audioresponseeventDecoded { - self = .audioresponseevent(audioresponseevent) - return - } - let heartbeateventDecoded = try values.decodeIfPresent(LexRuntimeV2ClientTypes.HeartbeatEvent.self, forKey: .heartbeatevent) - if let heartbeatevent = heartbeateventDecoded { - self = .heartbeatevent(heartbeatevent) - return - } - let accessdeniedexceptionDecoded = try values.decodeIfPresent(AccessDeniedException.self, forKey: .accessdeniedexception) - if let accessdeniedexception = accessdeniedexceptionDecoded { - self = .accessdeniedexception(accessdeniedexception) - return - } - let resourcenotfoundexceptionDecoded = try values.decodeIfPresent(ResourceNotFoundException.self, forKey: .resourcenotfoundexception) - if let resourcenotfoundexception = resourcenotfoundexceptionDecoded { - self = .resourcenotfoundexception(resourcenotfoundexception) - return - } - let validationexceptionDecoded = try values.decodeIfPresent(ValidationException.self, forKey: .validationexception) - if let validationexception = validationexceptionDecoded { - self = .validationexception(validationexception) - return - } - let throttlingexceptionDecoded = try values.decodeIfPresent(ThrottlingException.self, forKey: .throttlingexception) - if let throttlingexception = throttlingexceptionDecoded { - self = .throttlingexception(throttlingexception) - return - } - let internalserverexceptionDecoded = try values.decodeIfPresent(InternalServerException.self, forKey: .internalserverexception) - if let internalserverexception = internalserverexceptionDecoded { - self = .internalserverexception(internalserverexception) - return - } - let conflictexceptionDecoded = try values.decodeIfPresent(ConflictException.self, forKey: .conflictexception) - if let conflictexception = conflictexceptionDecoded { - self = .conflictexception(conflictexception) - return - } - let dependencyfailedexceptionDecoded = try values.decodeIfPresent(DependencyFailedException.self, forKey: .dependencyfailedexception) - if let dependencyfailedexception = dependencyfailedexceptionDecoded { - self = .dependencyfailedexception(dependencyfailedexception) - return - } - let badgatewayexceptionDecoded = try values.decodeIfPresent(BadGatewayException.self, forKey: .badgatewayexception) - if let badgatewayexception = badgatewayexceptionDecoded { - self = .badgatewayexception(badgatewayexception) - return - } - self = .sdkUnknown("") - } } extension LexRuntimeV2ClientTypes { @@ -4158,22 +4004,6 @@ extension LexRuntimeV2ClientTypes { case audioresponseevent(LexRuntimeV2ClientTypes.AudioResponseEvent) /// Event that Amazon Lex V2 sends to indicate that the stream is still open between the client application and Amazon Lex V2 case heartbeatevent(LexRuntimeV2ClientTypes.HeartbeatEvent) - /// Exception thrown when the credentials passed with the request are invalid or expired. Also thrown when the credentials in the request do not have permission to access the StartConversation operation. - case accessdeniedexception(AccessDeniedException) - /// Exception thrown if one of the input parameters points to a resource that does not exist. For example, if the bot ID specified does not exist. - case resourcenotfoundexception(ResourceNotFoundException) - /// Exception thrown when one or more parameters could not be validated. The message contains the name of the field that isn't valid. - case validationexception(ValidationException) - /// Exception thrown when your application exceeds the maximum number of concurrent requests. - case throttlingexception(ThrottlingException) - /// An error occurred with Amazon Lex V2. - case internalserverexception(InternalServerException) - /// Exception thrown when two clients are using the same AWS account, Amazon Lex V2 bot, and session ID. - case conflictexception(ConflictException) - /// - case dependencyfailedexception(DependencyFailedException) - /// - case badgatewayexception(BadGatewayException) case sdkUnknown(Swift.String) } @@ -4353,9 +4183,8 @@ extension ThrottlingException: Swift.Codable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4369,7 +4198,7 @@ extension ThrottlingException { } /// -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4470,9 +4299,8 @@ extension ValidationException: Swift.Codable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4486,7 +4314,7 @@ extension ValidationException { } /// -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLicenseManager/LicenseManagerClient.swift b/Sources/Services/AWSLicenseManager/LicenseManagerClient.swift index 31bf1566bf0..c17deb78f5c 100644 --- a/Sources/Services/AWSLicenseManager/LicenseManagerClient.swift +++ b/Sources/Services/AWSLicenseManager/LicenseManagerClient.swift @@ -208,6 +208,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkInLicense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkoutBorrowLicense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkoutLicense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGrantVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLicense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLicenseConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLicenseConversionTaskForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLicenseManagerReportGenerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLicenseVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLicense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLicenseConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLicenseManagerReportGenerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "extendLicenseConsumption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLicense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLicenseConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLicenseConversionTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLicenseManagerReportGenerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLicenseUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociationsForLicenseConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDistributedGrants") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFailuresForLicenseConfigurationOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLicenseConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLicenseConversionTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLicenseManagerReportGenerators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLicenseSpecificationsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLicenseVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLicenses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReceivedGrants") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReceivedGrantsForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReceivedLicenses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReceivedLicensesForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceInventory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTokens") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsageForLicenseConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1836,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1873,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1890,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1864,6 +1910,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLicenseConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1880,7 +1927,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1900,6 +1947,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLicenseManagerReportGenerator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1916,7 +1964,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1936,6 +1984,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLicenseSpecificationsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +2001,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2021,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "license-manager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2038,7 @@ extension LicenseManagerClient: LicenseManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLicenseManager/models/Models.swift b/Sources/Services/AWSLicenseManager/models/Models.swift index dd591a06cd1..85d8fe53171 100644 --- a/Sources/Services/AWSLicenseManager/models/Models.swift +++ b/Sources/Services/AWSLicenseManager/models/Models.swift @@ -86,9 +86,8 @@ public enum AcceptGrantOutputError: Swift.Error, Swift.Equatable { extension AcceptGrantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptGrantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grantArn = output.grantArn self.status = output.status @@ -147,9 +146,8 @@ extension AcceptGrantOutputResponseBody: Swift.Decodable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -163,7 +161,7 @@ extension AccessDeniedException { } /// Access to resource denied. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -278,9 +276,8 @@ extension LicenseManagerClientTypes { extension AuthorizationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -294,7 +291,7 @@ extension AuthorizationException { } /// The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account. -public struct AuthorizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -695,9 +692,8 @@ public enum CheckoutBorrowLicenseOutputError: Swift.Error, Swift.Equatable { extension CheckoutBorrowLicenseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CheckoutBorrowLicenseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checkoutMetadata = output.checkoutMetadata self.entitlementsAllowed = output.entitlementsAllowed @@ -1000,9 +996,8 @@ public enum CheckoutLicenseOutputError: Swift.Error, Swift.Equatable { extension CheckoutLicenseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CheckoutLicenseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checkoutType = output.checkoutType self.entitlementsAllowed = output.entitlementsAllowed @@ -1152,9 +1147,8 @@ extension LicenseManagerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1168,7 +1162,7 @@ extension ConflictException { } /// There was a conflict processing the request. Try your request again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1487,9 +1481,8 @@ public enum CreateGrantOutputError: Swift.Error, Swift.Equatable { extension CreateGrantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGrantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grantArn = output.grantArn self.status = output.status @@ -1727,9 +1720,8 @@ public enum CreateGrantVersionOutputError: Swift.Error, Swift.Equatable { extension CreateGrantVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGrantVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grantArn = output.grantArn self.status = output.status @@ -2012,9 +2004,8 @@ public enum CreateLicenseConfigurationOutputError: Swift.Error, Swift.Equatable extension CreateLicenseConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLicenseConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseConfigurationArn = output.licenseConfigurationArn } else { @@ -2159,9 +2150,8 @@ public enum CreateLicenseConversionTaskForResourceOutputError: Swift.Error, Swif extension CreateLicenseConversionTaskForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLicenseConversionTaskForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseConversionTaskId = output.licenseConversionTaskId } else { @@ -2589,9 +2579,8 @@ public enum CreateLicenseManagerReportGeneratorOutputError: Swift.Error, Swift.E extension CreateLicenseManagerReportGeneratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLicenseManagerReportGeneratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseManagerReportGeneratorArn = output.licenseManagerReportGeneratorArn } else { @@ -2664,9 +2653,8 @@ public enum CreateLicenseOutputError: Swift.Error, Swift.Equatable { extension CreateLicenseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLicenseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseArn = output.licenseArn self.status = output.status @@ -2974,9 +2962,8 @@ public enum CreateLicenseVersionOutputError: Swift.Error, Swift.Equatable { extension CreateLicenseVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLicenseVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseArn = output.licenseArn self.status = output.status @@ -3192,9 +3179,8 @@ public enum CreateTokenOutputError: Swift.Error, Swift.Equatable { extension CreateTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.token = output.token self.tokenId = output.tokenId @@ -3406,9 +3392,8 @@ public enum DeleteGrantOutputError: Swift.Error, Swift.Equatable { extension DeleteGrantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGrantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grantArn = output.grantArn self.status = output.status @@ -3746,9 +3731,8 @@ public enum DeleteLicenseOutputError: Swift.Error, Swift.Equatable { extension DeleteLicenseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLicenseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletionDate = output.deletionDate self.status = output.status @@ -4169,9 +4153,8 @@ extension LicenseManagerClientTypes { extension EntitlementNotAllowedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntitlementNotAllowedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4185,7 +4168,7 @@ extension EntitlementNotAllowedException { } /// The entitlement is not allowed. -public struct EntitlementNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntitlementNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4490,9 +4473,8 @@ public enum ExtendLicenseConsumptionOutputError: Swift.Error, Swift.Equatable { extension ExtendLicenseConsumptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExtendLicenseConsumptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expiration = output.expiration self.licenseConsumptionToken = output.licenseConsumptionToken @@ -4541,9 +4523,8 @@ extension ExtendLicenseConsumptionOutputResponseBody: Swift.Decodable { extension FailedDependencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailedDependencyExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -4559,7 +4540,7 @@ extension FailedDependencyException { } /// A dependency required to run the API is missing. -public struct FailedDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FailedDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4659,9 +4640,8 @@ extension LicenseManagerClientTypes { extension FilterLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FilterLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4675,7 +4655,7 @@ extension FilterLimitExceededException { } /// The request uses too many filters or too many filter values. -public struct FilterLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FilterLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4813,9 +4793,8 @@ public enum GetAccessTokenOutputError: Swift.Error, Swift.Equatable { extension GetAccessTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessToken = output.accessToken } else { @@ -4948,9 +4927,8 @@ public enum GetGrantOutputError: Swift.Error, Swift.Equatable { extension GetGrantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGrantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grant = output.grant } else { @@ -5067,9 +5045,8 @@ public enum GetLicenseConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetLicenseConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLicenseConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.automatedDiscoveryInformation = output.automatedDiscoveryInformation self.consumedLicenseSummaryList = output.consumedLicenseSummaryList @@ -5391,9 +5368,8 @@ public enum GetLicenseConversionTaskOutputError: Swift.Error, Swift.Equatable { extension GetLicenseConversionTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLicenseConversionTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationLicenseContext = output.destinationLicenseContext self.endTime = output.endTime @@ -5656,9 +5632,8 @@ public enum GetLicenseManagerReportGeneratorOutputError: Swift.Error, Swift.Equa extension GetLicenseManagerReportGeneratorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLicenseManagerReportGeneratorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reportGenerator = output.reportGenerator } else { @@ -5729,9 +5704,8 @@ public enum GetLicenseOutputError: Swift.Error, Swift.Equatable { extension GetLicenseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLicenseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.license = output.license } else { @@ -5850,9 +5824,8 @@ public enum GetLicenseUsageOutputError: Swift.Error, Swift.Equatable { extension GetLicenseUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLicenseUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseUsage = output.licenseUsage } else { @@ -5947,9 +5920,8 @@ public enum GetServiceSettingsOutputError: Swift.Error, Swift.Equatable { extension GetServiceSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.enableCrossAccountsDiscovery = output.enableCrossAccountsDiscovery self.licenseManagerResourceShareArn = output.licenseManagerResourceShareArn @@ -6436,9 +6408,8 @@ extension LicenseManagerClientTypes { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6452,7 +6423,7 @@ extension InvalidParameterValueException { } /// One or more parameter values are not valid. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6488,9 +6459,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidResourceStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6504,7 +6474,7 @@ extension InvalidResourceStateException { } /// License Manager cannot allocate a license to a resource because of its state. For example, you cannot allocate a license to an instance in the process of shutting down. -public struct InvalidResourceStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7862,9 +7832,8 @@ extension LicenseManagerClientTypes { extension LicenseUsageException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LicenseUsageExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7878,7 +7847,7 @@ extension LicenseUsageException { } /// You do not have enough licenses available to support a new resource launch. -public struct LicenseUsageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LicenseUsageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8018,9 +7987,8 @@ public enum ListAssociationsForLicenseConfigurationOutputError: Swift.Error, Swi extension ListAssociationsForLicenseConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociationsForLicenseConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseConfigurationAssociations = output.licenseConfigurationAssociations self.nextToken = output.nextToken @@ -8229,9 +8197,8 @@ public enum ListDistributedGrantsOutputError: Swift.Error, Swift.Equatable { extension ListDistributedGrantsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDistributedGrantsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grants = output.grants self.nextToken = output.nextToken @@ -8391,9 +8358,8 @@ public enum ListFailuresForLicenseConfigurationOperationsOutputError: Swift.Erro extension ListFailuresForLicenseConfigurationOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFailuresForLicenseConfigurationOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseOperationFailureList = output.licenseOperationFailureList self.nextToken = output.nextToken @@ -8596,9 +8562,8 @@ public enum ListLicenseConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListLicenseConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLicenseConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseConfigurations = output.licenseConfigurations self.nextToken = output.nextToken @@ -8769,9 +8734,8 @@ public enum ListLicenseConversionTasksOutputError: Swift.Error, Swift.Equatable extension ListLicenseConversionTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLicenseConversionTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseConversionTasks = output.licenseConversionTasks self.nextToken = output.nextToken @@ -8950,9 +8914,8 @@ public enum ListLicenseManagerReportGeneratorsOutputError: Swift.Error, Swift.Eq extension ListLicenseManagerReportGeneratorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLicenseManagerReportGeneratorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reportGenerators = output.reportGenerators @@ -9112,9 +9075,8 @@ public enum ListLicenseSpecificationsForResourceOutputError: Swift.Error, Swift. extension ListLicenseSpecificationsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLicenseSpecificationsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseSpecifications = output.licenseSpecifications self.nextToken = output.nextToken @@ -9274,9 +9236,8 @@ public enum ListLicenseVersionsOutputError: Swift.Error, Swift.Equatable { extension ListLicenseVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLicenseVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenses = output.licenses self.nextToken = output.nextToken @@ -9481,9 +9442,8 @@ public enum ListLicensesOutputError: Swift.Error, Swift.Equatable { extension ListLicensesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLicensesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenses = output.licenses self.nextToken = output.nextToken @@ -9675,9 +9635,8 @@ public enum ListReceivedGrantsForOrganizationOutputError: Swift.Error, Swift.Equ extension ListReceivedGrantsForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReceivedGrantsForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grants = output.grants self.nextToken = output.nextToken @@ -9886,9 +9845,8 @@ public enum ListReceivedGrantsOutputError: Swift.Error, Swift.Equatable { extension ListReceivedGrantsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReceivedGrantsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grants = output.grants self.nextToken = output.nextToken @@ -10067,9 +10025,8 @@ public enum ListReceivedLicensesForOrganizationOutputError: Swift.Error, Swift.E extension ListReceivedLicensesForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReceivedLicensesForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenses = output.licenses self.nextToken = output.nextToken @@ -10278,9 +10235,8 @@ public enum ListReceivedLicensesOutputError: Swift.Error, Swift.Equatable { extension ListReceivedLicensesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReceivedLicensesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenses = output.licenses self.nextToken = output.nextToken @@ -10467,9 +10423,8 @@ public enum ListResourceInventoryOutputError: Swift.Error, Swift.Equatable { extension ListResourceInventoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceInventoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceInventoryList = output.resourceInventoryList @@ -10605,9 +10560,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10794,9 +10748,8 @@ public enum ListTokensOutputError: Swift.Error, Swift.Equatable { extension ListTokensOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTokensOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tokens = output.tokens @@ -10988,9 +10941,8 @@ public enum ListUsageForLicenseConfigurationOutputError: Swift.Error, Swift.Equa extension ListUsageForLicenseConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsageForLicenseConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.licenseConfigurationUsageList = output.licenseConfigurationUsageList self.nextToken = output.nextToken @@ -11138,9 +11090,8 @@ extension LicenseManagerClientTypes { extension NoEntitlementsAllowedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoEntitlementsAllowedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11154,7 +11105,7 @@ extension NoEntitlementsAllowedException { } /// There are no entitlements found for this license, or the entitlement maximum count is reached. -public struct NoEntitlementsAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoEntitlementsAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11457,9 +11408,8 @@ extension LicenseManagerClientTypes { extension RateLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RateLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11473,7 +11423,7 @@ extension RateLimitExceededException { } /// Too many requests have been submitted. Try again after a brief wait. -public struct RateLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RateLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11631,9 +11581,8 @@ extension RedirectException { } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RedirectExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11647,7 +11596,7 @@ extension RedirectException { } /// This is not the correct Region for the resource. Try again. -public struct RedirectException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RedirectException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11768,9 +11717,8 @@ public enum RejectGrantOutputError: Swift.Error, Swift.Equatable { extension RejectGrantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectGrantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grantArn = output.grantArn self.status = output.status @@ -12288,9 +12236,8 @@ extension LicenseManagerClientTypes { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12304,7 +12251,7 @@ extension ResourceLimitExceededException { } /// Your resource limits have been exceeded. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12340,9 +12287,8 @@ extension ResourceLimitExceededExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12356,7 +12302,7 @@ extension ResourceNotFoundException { } /// The resource cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12478,9 +12424,8 @@ extension LicenseManagerClientTypes { extension ServerInternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerInternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12494,7 +12439,7 @@ extension ServerInternalException { } /// The server experienced an internal error. Try again. -public struct ServerInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12836,9 +12781,8 @@ extension LicenseManagerClientTypes { extension UnsupportedDigitalSignatureMethodException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedDigitalSignatureMethodExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12852,7 +12796,7 @@ extension UnsupportedDigitalSignatureMethodException { } /// The digital signature method is unsupported. Try your request again. -public struct UnsupportedDigitalSignatureMethodException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedDigitalSignatureMethodException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13661,9 +13605,8 @@ public struct UpdateServiceSettingsOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13677,7 +13620,7 @@ extension ValidationException { } /// The provided input is not valid. Try your request again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptionsClient.swift b/Sources/Services/AWSLicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptionsClient.swift index 3e26cb58564..cb3df5a636a 100644 --- a/Sources/Services/AWSLicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptionsClient.swift +++ b/Sources/Services/AWSLicenseManagerLinuxSubscriptions/LicenseManagerLinuxSubscriptionsClient.swift @@ -208,6 +208,7 @@ extension LicenseManagerLinuxSubscriptionsClient: LicenseManagerLinuxSubscriptio .withRegion(value: config.region) .withSigningName(value: "license-manager-linux-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension LicenseManagerLinuxSubscriptionsClient: LicenseManagerLinuxSubscriptio operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension LicenseManagerLinuxSubscriptionsClient: LicenseManagerLinuxSubscriptio .withRegion(value: config.region) .withSigningName(value: "license-manager-linux-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLinuxSubscriptionInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension LicenseManagerLinuxSubscriptionsClient: LicenseManagerLinuxSubscriptio operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension LicenseManagerLinuxSubscriptionsClient: LicenseManagerLinuxSubscriptio .withRegion(value: config.region) .withSigningName(value: "license-manager-linux-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLinuxSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension LicenseManagerLinuxSubscriptionsClient: LicenseManagerLinuxSubscriptio operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension LicenseManagerLinuxSubscriptionsClient: LicenseManagerLinuxSubscriptio .withRegion(value: config.region) .withSigningName(value: "license-manager-linux-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension LicenseManagerLinuxSubscriptionsClient: LicenseManagerLinuxSubscriptio operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLicenseManagerLinuxSubscriptions/models/Models.swift b/Sources/Services/AWSLicenseManagerLinuxSubscriptions/models/Models.swift index 3bf701d71c1..abb9cc8b950 100644 --- a/Sources/Services/AWSLicenseManagerLinuxSubscriptions/models/Models.swift +++ b/Sources/Services/AWSLicenseManagerLinuxSubscriptions/models/Models.swift @@ -117,9 +117,8 @@ public enum GetServiceSettingsOutputError: Swift.Error, Swift.Equatable { extension GetServiceSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.homeRegions = output.homeRegions self.linuxSubscriptionsDiscovery = output.linuxSubscriptionsDiscovery @@ -353,9 +352,8 @@ extension LicenseManagerLinuxSubscriptionsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -369,7 +367,7 @@ extension InternalServerException { } /// An exception occurred with the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -633,9 +631,8 @@ public enum ListLinuxSubscriptionInstancesOutputError: Swift.Error, Swift.Equata extension ListLinuxSubscriptionInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLinuxSubscriptionInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.nextToken = output.nextToken @@ -814,9 +811,8 @@ public enum ListLinuxSubscriptionsOutputError: Swift.Error, Swift.Equatable { extension ListLinuxSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLinuxSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscriptions = output.subscriptions @@ -1043,9 +1039,8 @@ extension LicenseManagerLinuxSubscriptionsClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1059,7 +1054,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1194,9 +1189,8 @@ public enum UpdateServiceSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.homeRegions = output.homeRegions self.linuxSubscriptionsDiscovery = output.linuxSubscriptionsDiscovery @@ -1293,9 +1287,8 @@ extension UpdateServiceSettingsOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1309,7 +1302,7 @@ extension ValidationException { } /// The provided input is not valid. Try your request again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLicenseManagerUserSubscriptions/LicenseManagerUserSubscriptionsClient.swift b/Sources/Services/AWSLicenseManagerUserSubscriptions/LicenseManagerUserSubscriptionsClient.swift index 55924ebc276..88aacdac252 100644 --- a/Sources/Services/AWSLicenseManagerUserSubscriptions/LicenseManagerUserSubscriptionsClient.swift +++ b/Sources/Services/AWSLicenseManagerUserSubscriptions/LicenseManagerUserSubscriptionsClient.swift @@ -208,6 +208,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentityProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProductSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startProductSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopProductSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions .withRegion(value: config.region) .withSigningName(value: "license-manager-user-subscriptions") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIdentityProviderSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension LicenseManagerUserSubscriptionsClient: LicenseManagerUserSubscriptions operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLicenseManagerUserSubscriptions/models/Models.swift b/Sources/Services/AWSLicenseManagerUserSubscriptions/models/Models.swift index 638de3053a8..d8b3ba75fb3 100644 --- a/Sources/Services/AWSLicenseManagerUserSubscriptions/models/Models.swift +++ b/Sources/Services/AWSLicenseManagerUserSubscriptions/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -211,9 +210,8 @@ public enum AssociateUserOutputError: Swift.Error, Swift.Equatable { extension AssociateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceUserSummary = output.instanceUserSummary } else { @@ -253,9 +251,8 @@ extension AssociateUserOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -269,7 +266,7 @@ extension ConflictException { } /// The request couldn't be completed because it conflicted with the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -400,9 +397,8 @@ public enum DeregisterIdentityProviderOutputError: Swift.Error, Swift.Equatable extension DeregisterIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviderSummary = output.identityProviderSummary } else { @@ -562,9 +558,8 @@ public enum DisassociateUserOutputError: Swift.Error, Swift.Equatable { extension DisassociateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceUserSummary = output.instanceUserSummary } else { @@ -974,9 +969,8 @@ extension LicenseManagerUserSubscriptionsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -990,7 +984,7 @@ extension InternalServerException { } /// An exception occurred with the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1119,9 +1113,8 @@ public enum ListIdentityProvidersOutputError: Swift.Error, Swift.Equatable { extension ListIdentityProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentityProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviderSummaries = output.identityProviderSummaries self.nextToken = output.nextToken @@ -1297,9 +1290,8 @@ public enum ListInstancesOutputError: Swift.Error, Swift.Equatable { extension ListInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceSummaries = output.instanceSummaries self.nextToken = output.nextToken @@ -1500,9 +1492,8 @@ public enum ListProductSubscriptionsOutputError: Swift.Error, Swift.Equatable { extension ListProductSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProductSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.productUserSummaries = output.productUserSummaries @@ -1703,9 +1694,8 @@ public enum ListUserAssociationsOutputError: Swift.Error, Swift.Equatable { extension ListUserAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceUserSummaries = output.instanceUserSummaries self.nextToken = output.nextToken @@ -1979,9 +1969,8 @@ public enum RegisterIdentityProviderOutputError: Swift.Error, Swift.Equatable { extension RegisterIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviderSummary = output.identityProviderSummary } else { @@ -2021,9 +2010,8 @@ extension RegisterIdentityProviderOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2037,7 +2025,7 @@ extension ResourceNotFoundException { } /// The resource couldn't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2073,9 +2061,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2089,7 +2076,7 @@ extension ServiceQuotaExceededException { } /// The request failed because a service quota is exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2304,9 +2291,8 @@ public enum StartProductSubscriptionOutputError: Swift.Error, Swift.Equatable { extension StartProductSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartProductSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.productUserSummary = output.productUserSummary } else { @@ -2466,9 +2452,8 @@ public enum StopProductSubscriptionOutputError: Swift.Error, Swift.Equatable { extension StopProductSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopProductSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.productUserSummary = output.productUserSummary } else { @@ -2508,9 +2493,8 @@ extension StopProductSubscriptionOutputResponseBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2524,7 +2508,7 @@ extension ThrottlingException { } /// The request was denied because of request throttling. Retry the request. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2668,9 +2652,8 @@ public enum UpdateIdentityProviderSettingsOutputError: Swift.Error, Swift.Equata extension UpdateIdentityProviderSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIdentityProviderSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviderSummary = output.identityProviderSummary } else { @@ -2791,9 +2774,8 @@ extension LicenseManagerUserSubscriptionsClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2807,7 +2789,7 @@ extension ValidationException { } /// A parameter is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLightsail/LightsailClient.swift b/Sources/Services/AWSLightsail/LightsailClient.swift index 0d04dda3e82..94d2dac618f 100644 --- a/Sources/Services/AWSLightsail/LightsailClient.swift +++ b/Sources/Services/AWSLightsail/LightsailClient.swift @@ -208,6 +208,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "allocateStaticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachCertificateToDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachDisk") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachInstancesToLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachLoadBalancerTlsCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachStaticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "closeInstancePublicPorts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copySnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBucketAccessKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCloudFormationStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContactMethod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContainerService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContainerServiceDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContainerServiceRegistryLogin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDisk") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDiskFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDiskSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomainEntry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGUISessionAccessDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstanceSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstancesFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLoadBalancerTlsCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRelationalDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRelationalDatabaseFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRelationalDatabaseSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAutoSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketAccessKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContactMethod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContainerImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContainerService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDisk") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDiskSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1836,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomainEntry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1873,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1890,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1864,6 +1910,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstanceSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1880,7 +1927,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1900,6 +1947,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1916,7 +1964,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1936,6 +1984,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKnownHostKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +2001,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2021,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2038,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2008,6 +2058,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoadBalancerTlsCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2024,7 +2075,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2044,6 +2095,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRelationalDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2060,7 +2112,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2132,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRelationalDatabaseSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2096,7 +2149,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2116,6 +2169,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachCertificateFromDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2132,7 +2186,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2152,6 +2206,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachDisk") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2223,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2243,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachInstancesFromLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2204,7 +2260,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2224,6 +2280,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachStaticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2240,7 +2297,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2260,6 +2317,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableAddOn") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2276,7 +2334,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2296,6 +2354,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "downloadDefaultKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2312,7 +2371,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2332,6 +2391,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableAddOn") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2348,7 +2408,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2368,6 +2428,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2384,7 +2445,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2404,6 +2465,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getActiveNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2420,7 +2482,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2440,6 +2502,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAlarms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2456,7 +2519,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2476,6 +2539,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAutoSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2492,7 +2556,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2512,6 +2576,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlueprints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2528,7 +2593,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2548,6 +2613,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketAccessKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2564,7 +2630,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2584,6 +2650,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketBundles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2600,7 +2667,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2620,6 +2687,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2636,7 +2704,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2656,6 +2724,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBuckets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2672,7 +2741,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2692,6 +2761,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBundles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2708,7 +2778,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2728,6 +2798,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2744,7 +2815,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2764,6 +2835,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCloudFormationStackRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2780,7 +2852,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2800,6 +2872,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContactMethods") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2816,7 +2889,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2836,6 +2909,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerAPIMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2852,7 +2926,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2872,6 +2946,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2888,7 +2963,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2908,6 +2983,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerLog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2925,7 +3001,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2945,6 +3021,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerServiceDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2961,7 +3038,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2981,6 +3058,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerServiceMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2998,7 +3076,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3018,6 +3096,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerServicePowers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3034,7 +3113,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3054,6 +3133,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3071,7 +3151,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3091,6 +3171,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCostEstimate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3107,7 +3188,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3127,6 +3208,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDisk") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3143,7 +3225,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3163,6 +3245,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDiskSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3179,7 +3262,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3199,6 +3282,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDiskSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3215,7 +3299,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3235,6 +3319,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDisks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3251,7 +3336,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3271,6 +3356,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDistributionBundles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3287,7 +3373,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3307,6 +3393,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDistributionLatestCacheReset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3323,7 +3410,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3343,6 +3430,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDistributionMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3359,7 +3447,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3379,6 +3467,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDistributions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3395,7 +3484,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3415,6 +3504,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3431,7 +3521,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3451,6 +3541,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3467,7 +3558,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3487,6 +3578,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExportSnapshotRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3503,7 +3595,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3523,6 +3615,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3539,7 +3632,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3559,6 +3652,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceAccessDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3575,7 +3669,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3595,6 +3689,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3611,7 +3706,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3631,6 +3726,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstancePortStates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3647,7 +3743,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3667,6 +3763,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3683,7 +3780,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3703,6 +3800,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3719,7 +3817,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3739,6 +3837,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstanceState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3755,7 +3854,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3775,6 +3874,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3791,7 +3891,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3811,6 +3911,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3827,7 +3928,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3847,6 +3948,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKeyPairs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3863,7 +3965,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3883,6 +3985,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3899,7 +4002,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3919,6 +4022,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoadBalancerMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3935,7 +4039,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3955,6 +4059,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoadBalancerTlsCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3971,7 +4076,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3991,6 +4096,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoadBalancerTlsPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4007,7 +4113,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4027,6 +4133,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoadBalancers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4043,7 +4150,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4063,6 +4170,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4079,7 +4187,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4099,6 +4207,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4115,7 +4224,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4135,6 +4244,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOperationsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4151,7 +4261,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4171,6 +4281,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4187,7 +4298,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4207,6 +4318,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4223,7 +4335,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4243,6 +4355,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseBlueprints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4259,7 +4372,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4279,6 +4392,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseBundles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4295,7 +4409,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4315,6 +4429,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4331,7 +4446,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4351,6 +4466,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseLogEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4367,7 +4483,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4387,6 +4503,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseLogStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4403,7 +4520,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4423,6 +4540,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseMasterUserPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4439,7 +4557,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4459,6 +4577,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4475,7 +4594,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4495,6 +4614,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4511,7 +4631,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4531,6 +4651,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4547,7 +4668,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4567,6 +4688,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabaseSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4583,7 +4705,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4603,6 +4725,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRelationalDatabases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4619,7 +4742,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4639,6 +4762,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStaticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4655,7 +4779,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4675,6 +4799,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStaticIps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4691,7 +4816,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4711,6 +4836,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importKeyPair") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4727,7 +4853,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4747,6 +4873,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "isVpcPeered") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4763,7 +4890,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4783,6 +4910,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "openInstancePublicPorts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4799,7 +4927,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4819,6 +4947,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "peerVpc") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4835,7 +4964,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4855,6 +4984,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4871,7 +5001,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4891,6 +5021,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putInstancePublicPorts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4907,7 +5038,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4927,6 +5058,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4943,7 +5075,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4963,6 +5095,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootRelationalDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4979,7 +5112,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4999,6 +5132,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerContainerImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5015,7 +5149,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5035,6 +5169,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "releaseStaticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5051,7 +5186,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5071,6 +5206,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetDistributionCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5087,7 +5223,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5107,6 +5243,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendContactMethodVerification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5123,7 +5260,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5143,6 +5280,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIpAddressType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5159,7 +5297,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5179,6 +5317,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setResourceAccessForBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5195,7 +5334,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5215,6 +5354,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startGUISession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5231,7 +5371,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5251,6 +5391,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5267,7 +5408,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5287,6 +5428,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRelationalDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5303,7 +5445,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5323,6 +5465,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopGUISession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5339,7 +5482,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5359,6 +5502,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5375,7 +5519,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5395,6 +5539,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopRelationalDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5411,7 +5556,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5431,6 +5576,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5447,7 +5593,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5467,6 +5613,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testAlarm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5483,7 +5630,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5503,6 +5650,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unpeerVpc") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5519,7 +5667,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5539,6 +5687,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5555,7 +5704,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5575,6 +5724,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5591,7 +5741,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5611,6 +5761,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBucketBundle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5627,7 +5778,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5647,6 +5798,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContainerService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5663,7 +5815,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5683,6 +5835,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDistribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5699,7 +5852,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5719,6 +5872,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDistributionBundle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5735,7 +5889,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5755,6 +5909,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainEntry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5771,7 +5926,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5791,6 +5946,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInstanceMetadataOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5807,7 +5963,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5827,6 +5983,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLoadBalancerAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5843,7 +6000,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5863,6 +6020,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRelationalDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5879,7 +6037,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5899,6 +6057,7 @@ extension LightsailClient: LightsailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lightsail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRelationalDatabaseParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5915,7 +6074,7 @@ extension LightsailClient: LightsailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLightsail/models/Models.swift b/Sources/Services/AWSLightsail/models/Models.swift index 60ba526bad7..a79d94da7d3 100644 --- a/Sources/Services/AWSLightsail/models/Models.swift +++ b/Sources/Services/AWSLightsail/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.docs = output.docs @@ -26,7 +25,7 @@ extension AccessDeniedException { } /// Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -453,9 +452,8 @@ extension LightsailClientTypes { extension AccountSetupInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountSetupInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.docs = output.docs @@ -475,7 +473,7 @@ extension AccountSetupInProgressException { } /// Lightsail throws this exception when an account is still in the setup in progress state. -public struct AccountSetupInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountSetupInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1095,9 +1093,8 @@ public enum AllocateStaticIpOutputError: Swift.Error, Swift.Equatable { extension AllocateStaticIpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AllocateStaticIpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -1267,9 +1264,8 @@ public enum AttachCertificateToDistributionOutputError: Swift.Error, Swift.Equat extension AttachCertificateToDistributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachCertificateToDistributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -1428,9 +1424,8 @@ public enum AttachDiskOutputError: Swift.Error, Swift.Equatable { extension AttachDiskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachDiskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -1585,9 +1580,8 @@ public enum AttachInstancesToLoadBalancerOutputError: Swift.Error, Swift.Equatab extension AttachInstancesToLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachInstancesToLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -1730,9 +1724,8 @@ public enum AttachLoadBalancerTlsCertificateOutputError: Swift.Error, Swift.Equa extension AttachLoadBalancerTlsCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachLoadBalancerTlsCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -1875,9 +1868,8 @@ public enum AttachStaticIpOutputError: Swift.Error, Swift.Equatable { extension AttachStaticIpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachStaticIpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -3851,9 +3843,8 @@ public enum CloseInstancePublicPortsOutputError: Swift.Error, Swift.Equatable { extension CloseInstancePublicPortsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloseInstancePublicPortsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -5870,9 +5861,8 @@ public enum CopySnapshotOutputError: Swift.Error, Swift.Equatable { extension CopySnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopySnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -6055,9 +6045,8 @@ public enum CreateBucketAccessKeyOutputError: Swift.Error, Swift.Equatable { extension CreateBucketAccessKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBucketAccessKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKey = output.accessKey self.operations = output.operations @@ -6240,9 +6229,8 @@ public enum CreateBucketOutputError: Swift.Error, Swift.Equatable { extension CreateBucketOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBucketOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucket = output.bucket self.operations = output.operations @@ -6439,9 +6427,8 @@ public enum CreateCertificateOutputError: Swift.Error, Swift.Equatable { extension CreateCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate self.operations = output.operations @@ -6593,9 +6580,8 @@ public enum CreateCloudFormationStackOutputError: Swift.Error, Swift.Equatable { extension CreateCloudFormationStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCloudFormationStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -6751,9 +6737,8 @@ public enum CreateContactMethodOutputError: Swift.Error, Swift.Equatable { extension CreateContactMethodOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContactMethodOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -6907,9 +6892,8 @@ public enum CreateContainerServiceDeploymentOutputError: Swift.Error, Swift.Equa extension CreateContainerServiceDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContainerServiceDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerService = output.containerService } else { @@ -7142,9 +7126,8 @@ public enum CreateContainerServiceOutputError: Swift.Error, Swift.Equatable { extension CreateContainerServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContainerServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerService = output.containerService } else { @@ -7241,9 +7224,8 @@ public enum CreateContainerServiceRegistryLoginOutputError: Swift.Error, Swift.E extension CreateContainerServiceRegistryLoginOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContainerServiceRegistryLoginOutputResponseBody = try responseDecoder.decode(responseBody: data) self.registryLogin = output.registryLogin } else { @@ -7502,9 +7484,8 @@ public enum CreateDiskFromSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateDiskFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDiskFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -7708,9 +7689,8 @@ public enum CreateDiskOutputError: Swift.Error, Swift.Equatable { extension CreateDiskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDiskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -7888,9 +7868,8 @@ public enum CreateDiskSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateDiskSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDiskSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -8129,9 +8108,8 @@ public enum CreateDistributionOutputError: Swift.Error, Swift.Equatable { extension CreateDistributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDistributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.distribution = output.distribution self.operation = output.operation @@ -8275,9 +8253,8 @@ public enum CreateDomainEntryOutputError: Swift.Error, Swift.Equatable { extension CreateDomainEntryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainEntryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -8422,9 +8399,8 @@ public enum CreateDomainOutputError: Swift.Error, Swift.Equatable { extension CreateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -8541,9 +8517,8 @@ public enum CreateGUISessionAccessDetailsOutputError: Swift.Error, Swift.Equatab extension CreateGUISessionAccessDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGUISessionAccessDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failureReason = output.failureReason self.percentageComplete = output.percentageComplete @@ -8750,9 +8725,8 @@ public enum CreateInstanceSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateInstanceSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstanceSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -9102,9 +9076,8 @@ public enum CreateInstancesFromSnapshotOutputError: Swift.Error, Swift.Equatable extension CreateInstancesFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstancesFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -9382,9 +9355,8 @@ public enum CreateInstancesOutputError: Swift.Error, Swift.Equatable { extension CreateInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -9538,9 +9510,8 @@ public enum CreateKeyPairOutputError: Swift.Error, Swift.Equatable { extension CreateKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPair = output.keyPair self.operation = output.operation @@ -9812,9 +9783,8 @@ public enum CreateLoadBalancerOutputError: Swift.Error, Swift.Equatable { extension CreateLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -10018,9 +9988,8 @@ public enum CreateLoadBalancerTlsCertificateOutputError: Swift.Error, Swift.Equa extension CreateLoadBalancerTlsCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLoadBalancerTlsCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -10270,9 +10239,8 @@ public enum CreateRelationalDatabaseFromSnapshotOutputError: Swift.Error, Swift. extension CreateRelationalDatabaseFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRelationalDatabaseFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -10599,9 +10567,8 @@ public enum CreateRelationalDatabaseOutputError: Swift.Error, Swift.Equatable { extension CreateRelationalDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRelationalDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -10772,9 +10739,8 @@ public enum CreateRelationalDatabaseSnapshotOutputError: Swift.Error, Swift.Equa extension CreateRelationalDatabaseSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRelationalDatabaseSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -10931,9 +10897,8 @@ public enum DeleteAlarmOutputError: Swift.Error, Swift.Equatable { extension DeleteAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -11074,9 +11039,8 @@ public enum DeleteAutoSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteAutoSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAutoSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -11215,9 +11179,8 @@ public enum DeleteBucketAccessKeyOutputError: Swift.Error, Swift.Equatable { extension DeleteBucketAccessKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBucketAccessKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -11366,9 +11329,8 @@ public enum DeleteBucketOutputError: Swift.Error, Swift.Equatable { extension DeleteBucketOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBucketOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -11494,9 +11456,8 @@ public enum DeleteCertificateOutputError: Swift.Error, Swift.Equatable { extension DeleteCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -11624,9 +11585,8 @@ public enum DeleteContactMethodOutputError: Swift.Error, Swift.Equatable { extension DeleteContactMethodOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteContactMethodOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -11925,9 +11885,8 @@ public enum DeleteDiskOutputError: Swift.Error, Swift.Equatable { extension DeleteDiskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDiskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -12057,9 +12016,8 @@ public enum DeleteDiskSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteDiskSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDiskSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -12186,9 +12144,8 @@ public enum DeleteDistributionOutputError: Swift.Error, Swift.Equatable { extension DeleteDistributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDistributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -12322,9 +12279,8 @@ public enum DeleteDomainEntryOutputError: Swift.Error, Swift.Equatable { extension DeleteDomainEntryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainEntryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -12445,9 +12401,8 @@ public enum DeleteDomainOutputError: Swift.Error, Swift.Equatable { extension DeleteDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -12580,9 +12535,8 @@ public enum DeleteInstanceOutputError: Swift.Error, Swift.Equatable { extension DeleteInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -12712,9 +12666,8 @@ public enum DeleteInstanceSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteInstanceSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInstanceSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -12856,9 +12809,8 @@ public enum DeleteKeyPairOutputError: Swift.Error, Swift.Equatable { extension DeleteKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -12979,9 +12931,8 @@ public enum DeleteKnownHostKeysOutputError: Swift.Error, Swift.Equatable { extension DeleteKnownHostKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteKnownHostKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -13111,9 +13062,8 @@ public enum DeleteLoadBalancerOutputError: Swift.Error, Swift.Equatable { extension DeleteLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -13268,9 +13218,8 @@ public enum DeleteLoadBalancerTlsCertificateOutputError: Swift.Error, Swift.Equa extension DeleteLoadBalancerTlsCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLoadBalancerTlsCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -13428,9 +13377,8 @@ public enum DeleteRelationalDatabaseOutputError: Swift.Error, Swift.Equatable { extension DeleteRelationalDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRelationalDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -13560,9 +13508,8 @@ public enum DeleteRelationalDatabaseSnapshotOutputError: Swift.Error, Swift.Equa extension DeleteRelationalDatabaseSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRelationalDatabaseSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -13735,9 +13682,8 @@ public enum DetachCertificateFromDistributionOutputError: Swift.Error, Swift.Equ extension DetachCertificateFromDistributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachCertificateFromDistributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -13858,9 +13804,8 @@ public enum DetachDiskOutputError: Swift.Error, Swift.Equatable { extension DetachDiskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachDiskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -14015,9 +13960,8 @@ public enum DetachInstancesFromLoadBalancerOutputError: Swift.Error, Swift.Equat extension DetachInstancesFromLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachInstancesFromLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -14147,9 +14091,8 @@ public enum DetachStaticIpOutputError: Swift.Error, Swift.Equatable { extension DetachStaticIpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachStaticIpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -14290,9 +14233,8 @@ public enum DisableAddOnOutputError: Swift.Error, Swift.Equatable { extension DisableAddOnOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableAddOnOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -15567,9 +15509,8 @@ public enum DownloadDefaultKeyPairOutputError: Swift.Error, Swift.Equatable { extension DownloadDefaultKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DownloadDefaultKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.privateKeyBase64 = output.privateKeyBase64 @@ -15721,9 +15662,8 @@ public enum EnableAddOnOutputError: Swift.Error, Swift.Equatable { extension EnableAddOnOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableAddOnOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -15985,9 +15925,8 @@ public enum ExportSnapshotOutputError: Swift.Error, Swift.Equatable { extension ExportSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -16393,9 +16332,8 @@ public enum GetActiveNamesOutputError: Swift.Error, Swift.Equatable { extension GetActiveNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetActiveNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeNames = output.activeNames self.nextPageToken = output.nextPageToken @@ -16556,9 +16494,8 @@ public enum GetAlarmsOutputError: Swift.Error, Swift.Equatable { extension GetAlarmsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAlarmsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarms = output.alarms self.nextPageToken = output.nextPageToken @@ -16696,9 +16633,8 @@ public enum GetAutoSnapshotsOutputError: Swift.Error, Swift.Equatable { extension GetAutoSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAutoSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoSnapshots = output.autoSnapshots self.resourceName = output.resourceName @@ -16871,9 +16807,8 @@ public enum GetBlueprintsOutputError: Swift.Error, Swift.Equatable { extension GetBlueprintsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlueprintsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueprints = output.blueprints self.nextPageToken = output.nextPageToken @@ -17009,9 +16944,8 @@ public enum GetBucketAccessKeysOutputError: Swift.Error, Swift.Equatable { extension GetBucketAccessKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketAccessKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessKeys = output.accessKeys } else { @@ -17134,9 +17068,8 @@ public enum GetBucketBundlesOutputError: Swift.Error, Swift.Equatable { extension GetBucketBundlesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketBundlesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundles = output.bundles } else { @@ -17366,9 +17299,8 @@ public enum GetBucketMetricDataOutputError: Swift.Error, Swift.Equatable { extension GetBucketMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricData = output.metricData self.metricName = output.metricName @@ -17527,9 +17459,8 @@ public enum GetBucketsOutputError: Swift.Error, Swift.Equatable { extension GetBucketsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountLevelBpaSync = output.accountLevelBpaSync self.buckets = output.buckets @@ -17702,9 +17633,8 @@ public enum GetBundlesOutputError: Swift.Error, Swift.Equatable { extension GetBundlesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBundlesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundles = output.bundles self.nextPageToken = output.nextPageToken @@ -17875,9 +17805,8 @@ public enum GetCertificatesOutputError: Swift.Error, Swift.Equatable { extension GetCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates } else { @@ -18006,9 +17935,8 @@ public enum GetCloudFormationStackRecordsOutputError: Swift.Error, Swift.Equatab extension GetCloudFormationStackRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCloudFormationStackRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudFormationStackRecords = output.cloudFormationStackRecords self.nextPageToken = output.nextPageToken @@ -18157,9 +18085,8 @@ public enum GetContactMethodsOutputError: Swift.Error, Swift.Equatable { extension GetContactMethodsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactMethodsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactMethods = output.contactMethods } else { @@ -18261,9 +18188,8 @@ public enum GetContainerAPIMetadataOutputError: Swift.Error, Swift.Equatable { extension GetContainerAPIMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerAPIMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata } else { @@ -18386,9 +18312,8 @@ public enum GetContainerImagesOutputError: Swift.Error, Swift.Equatable { extension GetContainerImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerImages = output.containerImages } else { @@ -18556,9 +18481,8 @@ public enum GetContainerLogOutputError: Swift.Error, Swift.Equatable { extension GetContainerLogOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerLogOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logEvents = output.logEvents self.nextPageToken = output.nextPageToken @@ -18682,9 +18606,8 @@ public enum GetContainerServiceDeploymentsOutputError: Swift.Error, Swift.Equata extension GetContainerServiceDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerServiceDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deployments = output.deployments } else { @@ -18846,9 +18769,8 @@ public enum GetContainerServiceMetricDataOutputError: Swift.Error, Swift.Equatab extension GetContainerServiceMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerServiceMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricData = output.metricData self.metricName = output.metricName @@ -18964,9 +18886,8 @@ public enum GetContainerServicePowersOutputError: Swift.Error, Swift.Equatable { extension GetContainerServicePowersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerServicePowersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.powers = output.powers } else { @@ -19088,9 +19009,8 @@ public enum GetContainerServicesOutputError: Swift.Error, Swift.Equatable { extension GetContainerServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerServices = output.containerServices } else { @@ -19256,9 +19176,8 @@ public enum GetCostEstimateOutputError: Swift.Error, Swift.Equatable { extension GetCostEstimateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCostEstimateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcesBudgetEstimate = output.resourcesBudgetEstimate } else { @@ -19388,9 +19307,8 @@ public enum GetDiskOutputError: Swift.Error, Swift.Equatable { extension GetDiskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDiskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disk = output.disk } else { @@ -19511,9 +19429,8 @@ public enum GetDiskSnapshotOutputError: Swift.Error, Swift.Equatable { extension GetDiskSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDiskSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.diskSnapshot = output.diskSnapshot } else { @@ -19633,9 +19550,8 @@ public enum GetDiskSnapshotsOutputError: Swift.Error, Swift.Equatable { extension GetDiskSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDiskSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.diskSnapshots = output.diskSnapshots self.nextPageToken = output.nextPageToken @@ -19774,9 +19690,8 @@ public enum GetDisksOutputError: Swift.Error, Swift.Equatable { extension GetDisksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDisksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disks = output.disks self.nextPageToken = output.nextPageToken @@ -19894,9 +19809,8 @@ public enum GetDistributionBundlesOutputError: Swift.Error, Swift.Equatable { extension GetDistributionBundlesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDistributionBundlesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundles = output.bundles } else { @@ -20023,9 +19937,8 @@ public enum GetDistributionLatestCacheResetOutputError: Swift.Error, Swift.Equat extension GetDistributionLatestCacheResetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDistributionLatestCacheResetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.status = output.status @@ -20280,9 +20193,8 @@ public enum GetDistributionMetricDataOutputError: Swift.Error, Swift.Equatable { extension GetDistributionMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDistributionMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricData = output.metricData self.metricName = output.metricName @@ -20431,9 +20343,8 @@ public enum GetDistributionsOutputError: Swift.Error, Swift.Equatable { extension GetDistributionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDistributionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.distributions = output.distributions self.nextPageToken = output.nextPageToken @@ -20573,9 +20484,8 @@ public enum GetDomainOutputError: Swift.Error, Swift.Equatable { extension GetDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domain = output.domain } else { @@ -20695,9 +20605,8 @@ public enum GetDomainsOutputError: Swift.Error, Swift.Equatable { extension GetDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domains = output.domains self.nextPageToken = output.nextPageToken @@ -20836,9 +20745,8 @@ public enum GetExportSnapshotRecordsOutputError: Swift.Error, Swift.Equatable { extension GetExportSnapshotRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExportSnapshotRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportSnapshotRecords = output.exportSnapshotRecords self.nextPageToken = output.nextPageToken @@ -20990,9 +20898,8 @@ public enum GetInstanceAccessDetailsOutputError: Swift.Error, Swift.Equatable { extension GetInstanceAccessDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceAccessDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessDetails = output.accessDetails } else { @@ -21279,9 +21186,8 @@ public enum GetInstanceMetricDataOutputError: Swift.Error, Swift.Equatable { extension GetInstanceMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricData = output.metricData self.metricName = output.metricName @@ -21373,9 +21279,8 @@ public enum GetInstanceOutputError: Swift.Error, Swift.Equatable { extension GetInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instance = output.instance } else { @@ -21496,9 +21401,8 @@ public enum GetInstancePortStatesOutputError: Swift.Error, Swift.Equatable { extension GetInstancePortStatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstancePortStatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portStates = output.portStates } else { @@ -21628,9 +21532,8 @@ public enum GetInstanceSnapshotOutputError: Swift.Error, Swift.Equatable { extension GetInstanceSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceSnapshot = output.instanceSnapshot } else { @@ -21750,9 +21653,8 @@ public enum GetInstanceSnapshotsOutputError: Swift.Error, Swift.Equatable { extension GetInstanceSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceSnapshots = output.instanceSnapshots self.nextPageToken = output.nextPageToken @@ -21892,9 +21794,8 @@ public enum GetInstanceStateOutputError: Swift.Error, Swift.Equatable { extension GetInstanceStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.state = output.state } else { @@ -22014,9 +21915,8 @@ public enum GetInstancesOutputError: Swift.Error, Swift.Equatable { extension GetInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.nextPageToken = output.nextPageToken @@ -22156,9 +22056,8 @@ public enum GetKeyPairOutputError: Swift.Error, Swift.Equatable { extension GetKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPair = output.keyPair } else { @@ -22290,9 +22189,8 @@ public enum GetKeyPairsOutputError: Swift.Error, Swift.Equatable { extension GetKeyPairsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetKeyPairsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyPairs = output.keyPairs self.nextPageToken = output.nextPageToken @@ -22604,9 +22502,8 @@ public enum GetLoadBalancerMetricDataOutputError: Swift.Error, Swift.Equatable { extension GetLoadBalancerMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoadBalancerMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricData = output.metricData self.metricName = output.metricName @@ -22698,9 +22595,8 @@ public enum GetLoadBalancerOutputError: Swift.Error, Swift.Equatable { extension GetLoadBalancerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoadBalancerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancer = output.loadBalancer } else { @@ -22821,9 +22717,8 @@ public enum GetLoadBalancerTlsCertificatesOutputError: Swift.Error, Swift.Equata extension GetLoadBalancerTlsCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoadBalancerTlsCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tlsCertificates = output.tlsCertificates } else { @@ -22948,9 +22843,8 @@ public enum GetLoadBalancerTlsPoliciesOutputError: Swift.Error, Swift.Equatable extension GetLoadBalancerTlsPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoadBalancerTlsPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.tlsPolicies = output.tlsPolicies @@ -23089,9 +22983,8 @@ public enum GetLoadBalancersOutputError: Swift.Error, Swift.Equatable { extension GetLoadBalancersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoadBalancersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBalancers = output.loadBalancers self.nextPageToken = output.nextPageToken @@ -23231,9 +23124,8 @@ public enum GetOperationOutputError: Swift.Error, Swift.Equatable { extension GetOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -23366,9 +23258,8 @@ public enum GetOperationsForResourceOutputError: Swift.Error, Swift.Equatable { extension GetOperationsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOperationsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageCount = output.nextPageCount self.nextPageToken = output.nextPageToken @@ -23518,9 +23409,8 @@ public enum GetOperationsOutputError: Swift.Error, Swift.Equatable { extension GetOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.operations = output.operations @@ -23671,9 +23561,8 @@ public enum GetRegionsOutputError: Swift.Error, Swift.Equatable { extension GetRegionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.regions = output.regions } else { @@ -23802,9 +23691,8 @@ public enum GetRelationalDatabaseBlueprintsOutputError: Swift.Error, Swift.Equat extension GetRelationalDatabaseBlueprintsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseBlueprintsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueprints = output.blueprints self.nextPageToken = output.nextPageToken @@ -23955,9 +23843,8 @@ public enum GetRelationalDatabaseBundlesOutputError: Swift.Error, Swift.Equatabl extension GetRelationalDatabaseBundlesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseBundlesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundles = output.bundles self.nextPageToken = output.nextPageToken @@ -24121,9 +24008,8 @@ public enum GetRelationalDatabaseEventsOutputError: Swift.Error, Swift.Equatable extension GetRelationalDatabaseEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.relationalDatabaseEvents = output.relationalDatabaseEvents @@ -24380,9 +24266,8 @@ public enum GetRelationalDatabaseLogEventsOutputError: Swift.Error, Swift.Equata extension GetRelationalDatabaseLogEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseLogEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextBackwardToken = output.nextBackwardToken self.nextForwardToken = output.nextForwardToken @@ -24532,9 +24417,8 @@ public enum GetRelationalDatabaseLogStreamsOutputError: Swift.Error, Swift.Equat extension GetRelationalDatabaseLogStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseLogStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logStreams = output.logStreams } else { @@ -24681,9 +24565,8 @@ extension GetRelationalDatabaseMasterUserPasswordOutputResponse: Swift.CustomDeb extension GetRelationalDatabaseMasterUserPasswordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseMasterUserPasswordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.masterUserPassword = output.masterUserPassword @@ -24934,9 +24817,8 @@ public enum GetRelationalDatabaseMetricDataOutputError: Swift.Error, Swift.Equat extension GetRelationalDatabaseMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricData = output.metricData self.metricName = output.metricName @@ -25028,9 +24910,8 @@ public enum GetRelationalDatabaseOutputError: Swift.Error, Swift.Equatable { extension GetRelationalDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.relationalDatabase = output.relationalDatabase } else { @@ -25163,9 +25044,8 @@ public enum GetRelationalDatabaseParametersOutputError: Swift.Error, Swift.Equat extension GetRelationalDatabaseParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.parameters = output.parameters @@ -25305,9 +25185,8 @@ public enum GetRelationalDatabaseSnapshotOutputError: Swift.Error, Swift.Equatab extension GetRelationalDatabaseSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.relationalDatabaseSnapshot = output.relationalDatabaseSnapshot } else { @@ -25427,9 +25306,8 @@ public enum GetRelationalDatabaseSnapshotsOutputError: Swift.Error, Swift.Equata extension GetRelationalDatabaseSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabaseSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.relationalDatabaseSnapshots = output.relationalDatabaseSnapshots @@ -25568,9 +25446,8 @@ public enum GetRelationalDatabasesOutputError: Swift.Error, Swift.Equatable { extension GetRelationalDatabasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRelationalDatabasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.relationalDatabases = output.relationalDatabases @@ -25710,9 +25587,8 @@ public enum GetStaticIpOutputError: Swift.Error, Swift.Equatable { extension GetStaticIpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStaticIpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.staticIp = output.staticIp } else { @@ -25832,9 +25708,8 @@ public enum GetStaticIpsOutputError: Swift.Error, Swift.Equatable { extension GetStaticIpsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStaticIpsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.staticIps = output.staticIps @@ -26320,9 +26195,8 @@ public enum ImportKeyPairOutputError: Swift.Error, Swift.Equatable { extension ImportKeyPairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportKeyPairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -28153,9 +28027,8 @@ extension LightsailClientTypes { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.docs = output.docs @@ -28175,7 +28048,7 @@ extension InvalidInputException { } /// Lightsail throws this exception when user input does not conform to the validation rules of an input field. Domain and distribution APIs are only available in the N. Virginia (us-east-1) Amazon Web Services Region. Please set your Amazon Web Services Region configuration to us-east-1 to create, view, or edit these resources. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -28326,9 +28199,8 @@ public enum IsVpcPeeredOutputError: Swift.Error, Swift.Equatable { extension IsVpcPeeredOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IsVpcPeeredOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isPeered = output.isPeered } else { @@ -30798,9 +30670,8 @@ extension LightsailClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.docs = output.docs @@ -30820,7 +30691,7 @@ extension NotFoundException { } /// Lightsail throws this exception when it cannot find a resource. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30972,9 +30843,8 @@ public enum OpenInstancePublicPortsOutputError: Swift.Error, Swift.Equatable { extension OpenInstancePublicPortsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpenInstancePublicPortsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -31158,9 +31028,8 @@ extension LightsailClientTypes { extension OperationFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.docs = output.docs @@ -31180,7 +31049,7 @@ extension OperationFailureException { } /// Lightsail throws this exception when an operation fails to execute. -public struct OperationFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31754,9 +31623,8 @@ public enum PeerVpcOutputError: Swift.Error, Swift.Equatable { extension PeerVpcOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PeerVpcOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -32531,9 +32399,8 @@ public enum PutAlarmOutputError: Swift.Error, Swift.Equatable { extension PutAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -32688,9 +32555,8 @@ public enum PutInstancePublicPortsOutputError: Swift.Error, Swift.Equatable { extension PutInstancePublicPortsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutInstancePublicPortsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -32959,9 +32825,8 @@ public enum RebootInstanceOutputError: Swift.Error, Swift.Equatable { extension RebootInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -33091,9 +32956,8 @@ public enum RebootRelationalDatabaseOutputError: Swift.Error, Swift.Equatable { extension RebootRelationalDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootRelationalDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -33457,9 +33321,8 @@ public enum RegisterContainerImageOutputError: Swift.Error, Swift.Equatable { extension RegisterContainerImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterContainerImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerImage = output.containerImage } else { @@ -34720,9 +34583,8 @@ public enum ReleaseStaticIpOutputError: Swift.Error, Swift.Equatable { extension ReleaseStaticIpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReleaseStaticIpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -34972,9 +34834,8 @@ public enum ResetDistributionCacheOutputError: Swift.Error, Swift.Equatable { extension ResetDistributionCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetDistributionCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.operation = output.operation @@ -35463,9 +35324,8 @@ public enum SendContactMethodVerificationOutputError: Swift.Error, Swift.Equatab extension SendContactMethodVerificationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendContactMethodVerificationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -35513,9 +35373,8 @@ extension SendContactMethodVerificationOutputResponseBody: Swift.Decodable { extension ServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.docs = output.docs @@ -35535,7 +35394,7 @@ extension ServiceException { } /// A general service exception. -public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35760,9 +35619,8 @@ public enum SetIpAddressTypeOutputError: Swift.Error, Swift.Equatable { extension SetIpAddressTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetIpAddressTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -35918,9 +35776,8 @@ public enum SetResourceAccessForBucketOutputError: Swift.Error, Swift.Equatable extension SetResourceAccessForBucketOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetResourceAccessForBucketOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -36046,9 +35903,8 @@ public enum StartGUISessionOutputError: Swift.Error, Swift.Equatable { extension StartGUISessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartGUISessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -36178,9 +36034,8 @@ public enum StartInstanceOutputError: Swift.Error, Swift.Equatable { extension StartInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -36310,9 +36165,8 @@ public enum StartRelationalDatabaseOutputError: Swift.Error, Swift.Equatable { extension StartRelationalDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRelationalDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -36641,9 +36495,8 @@ public enum StopGUISessionOutputError: Swift.Error, Swift.Equatable { extension StopGUISessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopGUISessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -36830,9 +36683,8 @@ public enum StopInstanceOutputError: Swift.Error, Swift.Equatable { extension StopInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -36974,9 +36826,8 @@ public enum StopRelationalDatabaseOutputError: Swift.Error, Swift.Equatable { extension StopRelationalDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopRelationalDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -37188,9 +37039,8 @@ public enum TagResourceOutputError: Swift.Error, Swift.Equatable { extension TagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -37337,9 +37187,8 @@ public enum TestAlarmOutputError: Swift.Error, Swift.Equatable { extension TestAlarmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestAlarmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -37470,9 +37319,8 @@ extension LightsailClientTypes { extension UnauthenticatedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthenticatedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.docs = output.docs @@ -37492,7 +37340,7 @@ extension UnauthenticatedException { } /// Lightsail throws this exception when the user has not been authenticated. -public struct UnauthenticatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthenticatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37611,9 +37459,8 @@ public enum UnpeerVpcOutputError: Swift.Error, Swift.Equatable { extension UnpeerVpcOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnpeerVpcOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -37771,9 +37618,8 @@ public enum UntagResourceOutputError: Swift.Error, Swift.Equatable { extension UntagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UntagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -37912,9 +37758,8 @@ public enum UpdateBucketBundleOutputError: Swift.Error, Swift.Equatable { extension UpdateBucketBundleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBucketBundleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -38104,9 +37949,8 @@ public enum UpdateBucketOutputError: Swift.Error, Swift.Equatable { extension UpdateBucketOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBucketOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucket = output.bucket self.operations = output.operations @@ -38316,9 +38160,8 @@ public enum UpdateContainerServiceOutputError: Swift.Error, Swift.Equatable { extension UpdateContainerServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateContainerServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containerService = output.containerService } else { @@ -38448,9 +38291,8 @@ public enum UpdateDistributionBundleOutputError: Swift.Error, Swift.Equatable { extension UpdateDistributionBundleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDistributionBundleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -38641,9 +38483,8 @@ public enum UpdateDistributionOutputError: Swift.Error, Swift.Equatable { extension UpdateDistributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDistributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -38777,9 +38618,8 @@ public enum UpdateDomainEntryOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainEntryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainEntryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -38957,9 +38797,8 @@ public enum UpdateInstanceMetadataOptionsOutputError: Swift.Error, Swift.Equatab extension UpdateInstanceMetadataOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInstanceMetadataOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -39116,9 +38955,8 @@ public enum UpdateLoadBalancerAttributeOutputError: Swift.Error, Swift.Equatable extension UpdateLoadBalancerAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLoadBalancerAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -39379,9 +39217,8 @@ public enum UpdateRelationalDatabaseOutputError: Swift.Error, Swift.Equatable { extension UpdateRelationalDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRelationalDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { @@ -39536,9 +39373,8 @@ public enum UpdateRelationalDatabaseParametersOutputError: Swift.Error, Swift.Eq extension UpdateRelationalDatabaseParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRelationalDatabaseParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operations = output.operations } else { diff --git a/Sources/Services/AWSLocation/LocationClient.swift b/Sources/Services/AWSLocation/LocationClient.swift index ee8b8aa1e44..36196810675 100644 --- a/Sources/Services/AWSLocation/LocationClient.swift +++ b/Sources/Services/AWSLocation/LocationClient.swift @@ -208,6 +208,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTrackerConsumer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -223,7 +224,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteDevicePositionHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -258,7 +260,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteGeofence") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -293,7 +296,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -320,6 +323,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchEvaluateGeofences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -335,7 +339,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -355,6 +359,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetDevicePosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -370,7 +375,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -390,6 +395,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutGeofence") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -405,7 +411,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -425,6 +431,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateDevicePosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -440,7 +447,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +471,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "calculateRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "routes.")) @@ -479,7 +487,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -503,6 +511,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "calculateRouteMatrix") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "routes.")) @@ -518,7 +527,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -538,6 +547,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGeofenceCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -553,7 +563,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -573,6 +583,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "metadata.")) @@ -588,7 +599,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +619,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMap") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -623,7 +635,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -643,6 +655,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPlaceIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -658,7 +671,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -678,6 +691,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRouteCalculator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "routes.")) @@ -693,7 +707,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +727,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTracker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -728,7 +743,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGeofenceCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -760,7 +776,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -780,6 +796,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "metadata.")) @@ -792,7 +809,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -812,6 +829,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMap") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -824,7 +842,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -844,6 +862,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePlaceIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -856,7 +875,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -876,6 +895,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRouteCalculator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "routes.")) @@ -888,7 +908,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +928,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTracker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -920,7 +941,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -940,6 +961,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGeofenceCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -952,7 +974,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +994,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "metadata.")) @@ -984,7 +1007,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1027,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMap") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -1016,7 +1040,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1060,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePlaceIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -1048,7 +1073,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1068,6 +1093,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRouteCalculator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "routes.")) @@ -1080,7 +1106,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1100,6 +1126,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTracker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -1112,7 +1139,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1132,6 +1159,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTrackerConsumer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -1144,7 +1172,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1164,6 +1192,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevicePosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -1176,7 +1205,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1225,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevicePositionHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -1211,7 +1241,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1231,6 +1261,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGeofence") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -1243,7 +1274,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1263,6 +1294,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMapGlyphs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -1276,7 +1308,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1296,6 +1328,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMapSprites") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -1309,7 +1342,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1329,6 +1362,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMapStyleDescriptor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -1342,7 +1376,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1362,6 +1396,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMapTile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -1375,7 +1410,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1401,6 +1436,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPlace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -1414,7 +1450,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1434,6 +1470,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevicePositions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -1449,7 +1486,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1469,6 +1506,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGeofenceCollections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -1484,7 +1522,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1542,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGeofences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -1519,7 +1558,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1539,6 +1578,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "metadata.")) @@ -1554,7 +1594,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1574,6 +1614,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMaps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -1589,7 +1630,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1609,6 +1650,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPlaceIndexes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -1624,7 +1666,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1644,6 +1686,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRouteCalculators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "routes.")) @@ -1659,7 +1702,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1679,6 +1722,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "metadata.")) @@ -1691,7 +1735,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1711,6 +1755,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrackerConsumers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -1726,7 +1771,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1746,6 +1791,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrackers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -1761,7 +1807,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1781,6 +1827,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putGeofence") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -1796,7 +1843,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1816,6 +1863,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchPlaceIndexForPosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -1831,7 +1879,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1851,6 +1899,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchPlaceIndexForSuggestions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -1866,7 +1915,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1886,6 +1935,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchPlaceIndexForText") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -1901,7 +1951,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1921,6 +1971,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "metadata.")) @@ -1936,7 +1987,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1956,6 +2007,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "metadata.")) @@ -1969,7 +2021,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1989,6 +2041,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGeofenceCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "geofencing.")) @@ -2004,7 +2057,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2024,6 +2077,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "metadata.")) @@ -2039,7 +2093,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2059,6 +2113,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMap") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "maps.")) @@ -2074,7 +2129,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2094,6 +2149,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePlaceIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "places.")) @@ -2109,7 +2165,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2129,6 +2185,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRouteCalculator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "routes.")) @@ -2144,7 +2201,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2164,6 +2221,7 @@ extension LocationClient: LocationClientProtocol { .withRegion(value: config.region) .withSigningName(value: "geo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTracker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tracking.")) @@ -2179,7 +2237,7 @@ extension LocationClient: LocationClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLocation/models/Models.swift b/Sources/Services/AWSLocation/models/Models.swift index f75af5e7999..01d29b8b2ad 100644 --- a/Sources/Services/AWSLocation/models/Models.swift +++ b/Sources/Services/AWSLocation/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -454,9 +453,8 @@ public enum BatchDeleteDevicePositionHistoryOutputError: Swift.Error, Swift.Equa extension BatchDeleteDevicePositionHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteDevicePositionHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -650,9 +648,8 @@ public enum BatchDeleteGeofenceOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteGeofenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteGeofenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -857,9 +854,8 @@ public enum BatchEvaluateGeofencesOutputError: Swift.Error, Swift.Equatable { extension BatchEvaluateGeofencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchEvaluateGeofencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1055,9 +1051,8 @@ public enum BatchGetDevicePositionOutputError: Swift.Error, Swift.Equatable { extension BatchGetDevicePositionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetDevicePositionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devicePositions = output.devicePositions self.errors = output.errors @@ -1366,9 +1361,8 @@ public enum BatchPutGeofenceOutputError: Swift.Error, Swift.Equatable { extension BatchPutGeofenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutGeofenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.successes = output.successes @@ -1698,9 +1692,8 @@ public enum BatchUpdateDevicePositionOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateDevicePositionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateDevicePositionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -2264,9 +2257,8 @@ public enum CalculateRouteMatrixOutputError: Swift.Error, Swift.Equatable { extension CalculateRouteMatrixOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CalculateRouteMatrixOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routeMatrix = output.routeMatrix self.snappedDeparturePositions = output.snappedDeparturePositions @@ -2500,9 +2492,8 @@ public enum CalculateRouteOutputError: Swift.Error, Swift.Equatable { extension CalculateRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CalculateRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.legs = output.legs self.summary = output.summary @@ -2821,9 +2812,8 @@ extension LocationClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2837,7 +2827,7 @@ extension ConflictException { } /// The request was unsuccessful because of a conflict. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3046,9 +3036,8 @@ public enum CreateGeofenceCollectionOutputError: Swift.Error, Swift.Equatable { extension CreateGeofenceCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGeofenceCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectionArn = output.collectionArn self.collectionName = output.collectionName @@ -3288,9 +3277,8 @@ extension CreateKeyOutputResponse: Swift.CustomDebugStringConvertible { extension CreateKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.key = output.key @@ -3525,9 +3513,8 @@ public enum CreateMapOutputError: Swift.Error, Swift.Equatable { extension CreateMapOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMapOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.mapArn = output.mapArn @@ -3772,9 +3759,8 @@ public enum CreatePlaceIndexOutputError: Swift.Error, Swift.Equatable { extension CreatePlaceIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePlaceIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.indexArn = output.indexArn @@ -4012,9 +3998,8 @@ public enum CreateRouteCalculatorOutputError: Swift.Error, Swift.Equatable { extension CreateRouteCalculatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRouteCalculatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.calculatorArn = output.calculatorArn self.calculatorName = output.calculatorName @@ -4273,9 +4258,8 @@ public enum CreateTrackerOutputError: Swift.Error, Swift.Equatable { extension CreateTrackerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrackerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.trackerArn = output.trackerArn @@ -4875,9 +4859,8 @@ public enum DescribeGeofenceCollectionOutputError: Swift.Error, Swift.Equatable extension DescribeGeofenceCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGeofenceCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectionArn = output.collectionArn self.collectionName = output.collectionName @@ -5080,9 +5063,8 @@ extension DescribeKeyOutputResponse: Swift.CustomDebugStringConvertible { extension DescribeKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.description = output.description @@ -5280,9 +5262,8 @@ public enum DescribeMapOutputError: Swift.Error, Swift.Equatable { extension DescribeMapOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMapOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration self.createTime = output.createTime @@ -5481,9 +5462,8 @@ public enum DescribePlaceIndexOutputError: Swift.Error, Swift.Equatable { extension DescribePlaceIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePlaceIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.dataSource = output.dataSource @@ -5691,9 +5671,8 @@ public enum DescribeRouteCalculatorOutputError: Swift.Error, Swift.Equatable { extension DescribeRouteCalculatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRouteCalculatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.calculatorArn = output.calculatorArn self.calculatorName = output.calculatorName @@ -5894,9 +5873,8 @@ public enum DescribeTrackerOutputError: Swift.Error, Swift.Equatable { extension DescribeTrackerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrackerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.description = output.description @@ -6631,9 +6609,8 @@ public enum GetDevicePositionHistoryOutputError: Swift.Error, Swift.Equatable { extension GetDevicePositionHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevicePositionHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devicePositions = output.devicePositions self.nextToken = output.nextToken @@ -6766,9 +6743,8 @@ extension GetDevicePositionOutputResponse: Swift.CustomDebugStringConvertible { extension GetDevicePositionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevicePositionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accuracy = output.accuracy self.deviceId = output.deviceId @@ -6947,9 +6923,8 @@ public enum GetGeofenceOutputError: Swift.Error, Swift.Equatable { extension GetGeofenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGeofenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.geofenceId = output.geofenceId @@ -7182,9 +7157,12 @@ extension GetMapGlyphsOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.blob = data - } else { + case .stream(let stream): + self.blob = try stream.readToEnd() + case .none: self.blob = nil } } @@ -7340,9 +7318,12 @@ extension GetMapSpritesOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.blob = data - } else { + case .stream(let stream): + self.blob = try stream.readToEnd() + case .none: self.blob = nil } } @@ -7479,9 +7460,12 @@ extension GetMapStyleDescriptorOutputResponse: ClientRuntime.HttpResponseBinding } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.blob = data - } else { + case .stream(let stream): + self.blob = try stream.readToEnd() + case .none: self.blob = nil } } @@ -7642,9 +7626,12 @@ extension GetMapTileOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.blob = data - } else { + case .stream(let stream): + self.blob = try stream.readToEnd() + case .none: self.blob = nil } } @@ -7774,9 +7761,8 @@ public enum GetPlaceOutputError: Swift.Error, Swift.Equatable { extension GetPlaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPlaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.place = output.place } else { @@ -7850,9 +7836,8 @@ extension LocationClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7866,7 +7851,7 @@ extension InternalServerException { } /// The request has failed to process because of an unknown server error, exception, or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8203,9 +8188,8 @@ public enum ListDevicePositionsOutputError: Swift.Error, Swift.Equatable { extension ListDevicePositionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicePositionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -8458,9 +8442,8 @@ public enum ListGeofenceCollectionsOutputError: Swift.Error, Swift.Equatable { extension ListGeofenceCollectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGeofenceCollectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -8797,9 +8780,8 @@ public enum ListGeofencesOutputError: Swift.Error, Swift.Equatable { extension ListGeofencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGeofencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -8957,9 +8939,8 @@ public enum ListKeysOutputError: Swift.Error, Swift.Equatable { extension ListKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -9195,9 +9176,8 @@ public enum ListMapsOutputError: Swift.Error, Swift.Equatable { extension ListMapsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMapsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -9434,9 +9414,8 @@ public enum ListPlaceIndexesOutputError: Swift.Error, Swift.Equatable { extension ListPlaceIndexesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPlaceIndexesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -9682,9 +9661,8 @@ public enum ListRouteCalculatorsOutputError: Swift.Error, Swift.Equatable { extension ListRouteCalculatorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRouteCalculatorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -9910,9 +9888,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10059,9 +10036,8 @@ public enum ListTrackerConsumersOutputError: Swift.Error, Swift.Equatable { extension ListTrackerConsumersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrackerConsumersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.consumerArns = output.consumerArns self.nextToken = output.nextToken @@ -10207,9 +10183,8 @@ public enum ListTrackersOutputError: Swift.Error, Swift.Equatable { extension ListTrackersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrackersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entries = output.entries self.nextToken = output.nextToken @@ -10868,9 +10843,8 @@ public enum PutGeofenceOutputError: Swift.Error, Swift.Equatable { extension PutGeofenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutGeofenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.geofenceId = output.geofenceId @@ -10932,9 +10906,8 @@ extension PutGeofenceOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10948,7 +10921,7 @@ extension ResourceNotFoundException { } /// The resource that you've entered was not found in your AWS account. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11453,9 +11426,8 @@ public enum SearchPlaceIndexForPositionOutputError: Swift.Error, Swift.Equatable extension SearchPlaceIndexForPositionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchPlaceIndexForPositionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.results = output.results self.summary = output.summary @@ -11797,9 +11769,8 @@ public enum SearchPlaceIndexForSuggestionsOutputError: Swift.Error, Swift.Equata extension SearchPlaceIndexForSuggestionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchPlaceIndexForSuggestionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.results = output.results self.summary = output.summary @@ -12195,9 +12166,8 @@ public enum SearchPlaceIndexForTextOutputError: Swift.Error, Swift.Equatable { extension SearchPlaceIndexForTextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchPlaceIndexForTextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.results = output.results self.summary = output.summary @@ -12426,9 +12396,8 @@ extension LocationClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12442,7 +12411,7 @@ extension ServiceQuotaExceededException { } /// The operation was denied because the request would exceed the maximum [quota](https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html) set for Amazon Location Service. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12744,9 +12713,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12760,7 +12728,7 @@ extension ThrottlingException { } /// The request was denied because of request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13217,9 +13185,8 @@ public enum UpdateGeofenceCollectionOutputError: Swift.Error, Swift.Equatable { extension UpdateGeofenceCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGeofenceCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectionArn = output.collectionArn self.collectionName = output.collectionName @@ -13416,9 +13383,8 @@ public enum UpdateKeyOutputError: Swift.Error, Swift.Equatable { extension UpdateKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyArn = output.keyArn self.keyName = output.keyName @@ -13580,9 +13546,8 @@ public enum UpdateMapOutputError: Swift.Error, Swift.Equatable { extension UpdateMapOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMapOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mapArn = output.mapArn self.mapName = output.mapName @@ -13756,9 +13721,8 @@ public enum UpdatePlaceIndexOutputError: Swift.Error, Swift.Equatable { extension UpdatePlaceIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePlaceIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexArn = output.indexArn self.indexName = output.indexName @@ -13920,9 +13884,8 @@ public enum UpdateRouteCalculatorOutputError: Swift.Error, Swift.Equatable { extension UpdateRouteCalculatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRouteCalculatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.calculatorArn = output.calculatorArn self.calculatorName = output.calculatorName @@ -14115,9 +14078,8 @@ public enum UpdateTrackerOutputError: Swift.Error, Swift.Equatable { extension UpdateTrackerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrackerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trackerArn = output.trackerArn self.trackerName = output.trackerName @@ -14181,9 +14143,8 @@ extension UpdateTrackerOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -14201,7 +14162,7 @@ extension ValidationException { } /// The input failed to meet the constraints specified by the AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLookoutEquipment/LookoutEquipmentClient.swift b/Sources/Services/AWSLookoutEquipment/LookoutEquipmentClient.swift index 382af42a349..53cb7dde4c2 100644 --- a/Sources/Services/AWSLookoutEquipment/LookoutEquipmentClient.swift +++ b/Sources/Services/AWSLookoutEquipment/LookoutEquipmentClient.swift @@ -208,6 +208,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInferenceScheduler") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -276,7 +278,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -296,6 +298,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLabel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -320,7 +323,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +343,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLabelGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -364,7 +368,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +388,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -408,7 +413,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -428,6 +433,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -444,7 +450,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +470,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInferenceScheduler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -480,7 +487,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -500,6 +507,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLabel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -516,7 +524,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -536,6 +544,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLabelGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -552,7 +561,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -572,6 +581,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +598,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +618,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataIngestionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -624,7 +635,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -644,6 +655,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -660,7 +672,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +692,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInferenceScheduler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -696,7 +709,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -716,6 +729,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLabel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -732,7 +746,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -752,6 +766,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLabelGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +783,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +803,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +820,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +840,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataIngestionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -840,7 +857,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -860,6 +877,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -876,7 +894,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -896,6 +914,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInferenceEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +931,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +951,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInferenceExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -948,7 +968,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -968,6 +988,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInferenceSchedulers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1005,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1025,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLabelGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1020,7 +1042,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1040,6 +1062,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1056,7 +1079,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1076,6 +1099,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1092,7 +1116,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1112,6 +1136,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSensorStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1128,7 +1153,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1173,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1164,7 +1190,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1184,6 +1210,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDataIngestionJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1208,7 +1235,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1228,6 +1255,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startInferenceScheduler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1244,7 +1272,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1264,6 +1292,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopInferenceScheduler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1309,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1329,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1316,7 +1346,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1336,6 +1366,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1352,7 +1383,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1372,6 +1403,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInferenceScheduler") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1388,7 +1420,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1408,6 +1440,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutequipment") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLabelGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1424,7 +1457,7 @@ extension LookoutEquipmentClient: LookoutEquipmentClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLookoutEquipment/models/Models.swift b/Sources/Services/AWSLookoutEquipment/models/Models.swift index 858f8f0b9c0..828073f4f7c 100644 --- a/Sources/Services/AWSLookoutEquipment/models/Models.swift +++ b/Sources/Services/AWSLookoutEquipment/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The request could not be completed because you do not have access to the resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -103,9 +102,8 @@ extension LookoutEquipmentClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -119,7 +117,7 @@ extension ConflictException { } /// The request could not be completed due to a conflict with the current state of the target resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -344,9 +342,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetArn = output.datasetArn self.datasetName = output.datasetName @@ -613,9 +610,8 @@ public enum CreateInferenceSchedulerOutputError: Swift.Error, Swift.Equatable { extension CreateInferenceSchedulerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInferenceSchedulerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceSchedulerArn = output.inferenceSchedulerArn self.inferenceSchedulerName = output.inferenceSchedulerName @@ -815,9 +811,8 @@ public enum CreateLabelGroupOutputError: Swift.Error, Swift.Equatable { extension CreateLabelGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLabelGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labelGroupArn = output.labelGroupArn self.labelGroupName = output.labelGroupName @@ -1036,9 +1031,8 @@ public enum CreateLabelOutputError: Swift.Error, Swift.Equatable { extension CreateLabelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLabelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labelId = output.labelId } else { @@ -1329,9 +1323,8 @@ public enum CreateModelOutputError: Swift.Error, Swift.Equatable { extension CreateModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelArn = output.modelArn self.status = output.status @@ -2287,9 +2280,8 @@ public enum DescribeDataIngestionJobOutputError: Swift.Error, Swift.Equatable { extension DescribeDataIngestionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataIngestionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.dataEndTime = output.dataEndTime @@ -2526,9 +2518,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.dataEndTime = output.dataEndTime @@ -2765,9 +2756,8 @@ public enum DescribeInferenceSchedulerOutputError: Swift.Error, Swift.Equatable extension DescribeInferenceSchedulerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInferenceSchedulerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.dataDelayOffsetInMinutes = output.dataDelayOffsetInMinutes @@ -3014,9 +3004,8 @@ public enum DescribeLabelGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeLabelGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLabelGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.faultCodes = output.faultCodes @@ -3195,9 +3184,8 @@ public enum DescribeLabelOutputError: Swift.Error, Swift.Equatable { extension DescribeLabelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLabelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.endTime = output.endTime @@ -3404,9 +3392,8 @@ public enum DescribeModelOutputError: Swift.Error, Swift.Equatable { extension DescribeModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.dataPreProcessingConfiguration = output.dataPreProcessingConfiguration @@ -4570,9 +4557,8 @@ extension LookoutEquipmentClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4586,7 +4572,7 @@ extension InternalServerException { } /// Processing of the request has failed because of an unknown error, exception or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5175,9 +5161,8 @@ public enum ListDataIngestionJobsOutputError: Swift.Error, Swift.Equatable { extension ListDataIngestionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataIngestionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataIngestionJobSummaries = output.dataIngestionJobSummaries self.nextToken = output.nextToken @@ -5334,9 +5319,8 @@ public enum ListDatasetsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetSummaries = output.datasetSummaries self.nextToken = output.nextToken @@ -5522,9 +5506,8 @@ public enum ListInferenceEventsOutputError: Swift.Error, Swift.Equatable { extension ListInferenceEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInferenceEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceEventSummaries = output.inferenceEventSummaries self.nextToken = output.nextToken @@ -5720,9 +5703,8 @@ public enum ListInferenceExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListInferenceExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInferenceExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceExecutionSummaries = output.inferenceExecutionSummaries self.nextToken = output.nextToken @@ -5903,9 +5885,8 @@ public enum ListInferenceSchedulersOutputError: Swift.Error, Swift.Equatable { extension ListInferenceSchedulersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInferenceSchedulersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceSchedulerSummaries = output.inferenceSchedulerSummaries self.nextToken = output.nextToken @@ -6062,9 +6043,8 @@ public enum ListLabelGroupsOutputError: Swift.Error, Swift.Equatable { extension ListLabelGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLabelGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labelGroupSummaries = output.labelGroupSummaries self.nextToken = output.nextToken @@ -6270,9 +6250,8 @@ public enum ListLabelsOutputError: Swift.Error, Swift.Equatable { extension ListLabelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLabelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labelSummaries = output.labelSummaries self.nextToken = output.nextToken @@ -6453,9 +6432,8 @@ public enum ListModelsOutputError: Swift.Error, Swift.Equatable { extension ListModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelSummaries = output.modelSummaries self.nextToken = output.nextToken @@ -6627,9 +6605,8 @@ public enum ListSensorStatisticsOutputError: Swift.Error, Swift.Equatable { extension ListSensorStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSensorStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sensorStatisticsSummaries = output.sensorStatisticsSummaries @@ -6765,9 +6742,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7135,9 +7111,8 @@ extension LookoutEquipmentClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7151,7 +7126,7 @@ extension ResourceNotFoundException { } /// The resource requested could not be found. Verify the resource ID and retry your request. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7426,9 +7401,8 @@ extension LookoutEquipmentClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7442,7 +7416,7 @@ extension ServiceQuotaExceededException { } /// Resource limitations have been exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7600,9 +7574,8 @@ public enum StartDataIngestionJobOutputError: Swift.Error, Swift.Equatable { extension StartDataIngestionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDataIngestionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.status = output.status @@ -7731,9 +7704,8 @@ public enum StartInferenceSchedulerOutputError: Swift.Error, Swift.Equatable { extension StartInferenceSchedulerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartInferenceSchedulerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceSchedulerArn = output.inferenceSchedulerArn self.inferenceSchedulerName = output.inferenceSchedulerName @@ -7924,9 +7896,8 @@ public enum StopInferenceSchedulerOutputError: Swift.Error, Swift.Equatable { extension StopInferenceSchedulerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopInferenceSchedulerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceSchedulerArn = output.inferenceSchedulerArn self.inferenceSchedulerName = output.inferenceSchedulerName @@ -8226,9 +8197,8 @@ extension LookoutEquipmentClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8242,7 +8212,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8692,9 +8662,8 @@ public struct UpdateLabelGroupOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8708,7 +8677,7 @@ extension ValidationException { } /// The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related AWS service that's being utilized. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLookoutMetrics/LookoutMetricsClient.swift b/Sources/Services/AWSLookoutMetrics/LookoutMetricsClient.swift index 137c00cf201..60411df68a7 100644 --- a/Sources/Services/AWSLookoutMetrics/LookoutMetricsClient.swift +++ b/Sources/Services/AWSLookoutMetrics/LookoutMetricsClient.swift @@ -208,6 +208,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "backTestAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlert") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMetricSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlert") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlert") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAnomalyDetectionExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMetricSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectMetricSetConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -643,7 +656,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -663,6 +676,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnomalyGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +692,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +712,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataQualityMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +728,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +748,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +764,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +784,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSampleData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +800,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +820,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAlerts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnomalyDetectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +872,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +892,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnomalyGroupRelatedMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +908,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +928,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnomalyGroupSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -923,7 +944,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +964,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnomalyGroupTimeSeries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -958,7 +980,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -978,6 +1000,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMetricSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -993,7 +1016,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1013,6 +1036,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1025,7 +1049,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1069,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFeedback") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1085,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1105,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1095,7 +1121,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1115,6 +1141,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1128,7 +1155,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1175,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAlert") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1163,7 +1191,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1183,6 +1211,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAnomalyDetector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1198,7 +1227,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1218,6 +1247,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutmetrics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMetricSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1233,7 +1263,7 @@ extension LookoutMetricsClient: LookoutMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLookoutMetrics/models/Models.swift b/Sources/Services/AWSLookoutMetrics/models/Models.swift index 3e990777be2..f294e8acf47 100644 --- a/Sources/Services/AWSLookoutMetrics/models/Models.swift +++ b/Sources/Services/AWSLookoutMetrics/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient permissions to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1935,9 +1934,8 @@ extension LookoutMetricsClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1955,7 +1953,7 @@ extension ConflictException { } /// There was a conflict processing the request. Try your request again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2223,9 +2221,8 @@ public enum CreateAlertOutputError: Swift.Error, Swift.Equatable { extension CreateAlertOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAlertOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alertArn = output.alertArn } else { @@ -2405,9 +2402,8 @@ public enum CreateAnomalyDetectorOutputError: Swift.Error, Swift.Equatable { extension CreateAnomalyDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAnomalyDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyDetectorArn = output.anomalyDetectorArn } else { @@ -2711,9 +2707,8 @@ public enum CreateMetricSetOutputError: Swift.Error, Swift.Equatable { extension CreateMetricSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMetricSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricSetArn = output.metricSetArn } else { @@ -3316,9 +3311,8 @@ public enum DescribeAlertOutputError: Swift.Error, Swift.Equatable { extension DescribeAlertOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlertOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alert = output.alert } else { @@ -3471,9 +3465,8 @@ public enum DescribeAnomalyDetectionExecutionsOutputError: Swift.Error, Swift.Eq extension DescribeAnomalyDetectionExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAnomalyDetectionExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionList = output.executionList self.nextToken = output.nextToken @@ -3609,9 +3602,8 @@ public enum DescribeAnomalyDetectorOutputError: Swift.Error, Swift.Equatable { extension DescribeAnomalyDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAnomalyDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyDetectorArn = output.anomalyDetectorArn self.anomalyDetectorConfig = output.anomalyDetectorConfig @@ -3818,9 +3810,8 @@ public enum DescribeMetricSetOutputError: Swift.Error, Swift.Equatable { extension DescribeMetricSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMetricSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyDetectorArn = output.anomalyDetectorArn self.creationTime = output.creationTime @@ -4107,9 +4098,8 @@ public enum DetectMetricSetConfigOutputError: Swift.Error, Swift.Equatable { extension DetectMetricSetConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectMetricSetConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectedMetricSetConfig = output.detectedMetricSetConfig } else { @@ -5012,9 +5002,8 @@ public enum GetAnomalyGroupOutputError: Swift.Error, Swift.Equatable { extension GetAnomalyGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnomalyGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyGroup = output.anomalyGroup } else { @@ -5143,9 +5132,8 @@ public enum GetDataQualityMetricsOutputError: Swift.Error, Swift.Equatable { extension GetDataQualityMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataQualityMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyDetectorDataQualityMetricList = output.anomalyDetectorDataQualityMetricList } else { @@ -5308,9 +5296,8 @@ public enum GetFeedbackOutputError: Swift.Error, Swift.Equatable { extension GetFeedbackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFeedbackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyGroupTimeSeriesFeedback = output.anomalyGroupTimeSeriesFeedback self.nextToken = output.nextToken @@ -5445,9 +5432,8 @@ public enum GetSampleDataOutputError: Swift.Error, Swift.Equatable { extension GetSampleDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSampleDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.headerValues = output.headerValues self.sampleRows = output.sampleRows @@ -5588,9 +5574,8 @@ extension LookoutMetricsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5604,7 +5589,7 @@ extension InternalServerException { } /// The request processing has failed because of an unknown error, exception, or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5911,9 +5896,8 @@ public enum ListAlertsOutputError: Swift.Error, Swift.Equatable { extension ListAlertsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAlertsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alertSummaryList = output.alertSummaryList self.nextToken = output.nextToken @@ -6060,9 +6044,8 @@ public enum ListAnomalyDetectorsOutputError: Swift.Error, Swift.Equatable { extension ListAnomalyDetectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnomalyDetectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyDetectorSummaryList = output.anomalyDetectorSummaryList self.nextToken = output.nextToken @@ -6247,9 +6230,8 @@ public enum ListAnomalyGroupRelatedMetricsOutputError: Swift.Error, Swift.Equata extension ListAnomalyGroupRelatedMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnomalyGroupRelatedMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.interMetricImpactList = output.interMetricImpactList self.nextToken = output.nextToken @@ -6422,9 +6404,8 @@ public enum ListAnomalyGroupSummariesOutputError: Swift.Error, Swift.Equatable { extension ListAnomalyGroupSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnomalyGroupSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyGroupStatistics = output.anomalyGroupStatistics self.anomalyGroupSummaryList = output.anomalyGroupSummaryList @@ -6620,9 +6601,8 @@ public enum ListAnomalyGroupTimeSeriesOutputError: Swift.Error, Swift.Equatable extension ListAnomalyGroupTimeSeriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnomalyGroupTimeSeriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyGroupId = output.anomalyGroupId self.metricName = output.metricName @@ -6820,9 +6800,8 @@ public enum ListMetricSetsOutputError: Swift.Error, Swift.Equatable { extension ListMetricSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMetricSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricSetSummaryList = output.metricSetSummaryList self.nextToken = output.nextToken @@ -6937,9 +6916,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7748,9 +7726,8 @@ extension LookoutMetricsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -7768,7 +7745,7 @@ extension ResourceNotFoundException { } /// The specified resource cannot be found. Check the ARN of the resource and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8064,9 +8041,8 @@ extension LookoutMetricsClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -8088,7 +8064,7 @@ extension ServiceQuotaExceededException { } /// The request exceeded the service's quotas. Check the service quotas and try again. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8468,9 +8444,8 @@ extension LookoutMetricsClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8484,7 +8459,7 @@ extension TooManyRequestsException { } /// The request was denied due to too many requests being submitted at the same time. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8736,9 +8711,8 @@ public enum UpdateAlertOutputError: Swift.Error, Swift.Equatable { extension UpdateAlertOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAlertOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alertArn = output.alertArn } else { @@ -8891,9 +8865,8 @@ public enum UpdateAnomalyDetectorOutputError: Swift.Error, Swift.Equatable { extension UpdateAnomalyDetectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAnomalyDetectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anomalyDetectorArn = output.anomalyDetectorArn } else { @@ -9144,9 +9117,8 @@ public enum UpdateMetricSetOutputError: Swift.Error, Swift.Equatable { extension UpdateMetricSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMetricSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricSetArn = output.metricSetArn } else { @@ -9185,9 +9157,8 @@ extension UpdateMetricSetOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -9205,7 +9176,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSLookoutVision/LookoutVisionClient.swift b/Sources/Services/AWSLookoutVision/LookoutVisionClient.swift index 62e66e653e9..a771ceefcce 100644 --- a/Sources/Services/AWSLookoutVision/LookoutVisionClient.swift +++ b/Sources/Services/AWSLookoutVision/LookoutVisionClient.swift @@ -208,6 +208,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -276,7 +278,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -296,6 +298,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -320,7 +323,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -347,6 +350,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -368,7 +372,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +392,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -409,7 +414,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -429,6 +434,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -450,7 +456,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -470,6 +476,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -482,7 +489,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -502,6 +509,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -514,7 +522,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -534,6 +542,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelPackagingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -546,7 +555,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -566,6 +575,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -578,7 +588,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -598,6 +608,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectAnomalies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -614,7 +625,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -634,6 +645,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetEntries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -647,7 +659,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -667,6 +679,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelPackagingJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +693,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +713,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +727,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +747,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -746,7 +761,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -766,6 +781,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -778,7 +794,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -798,6 +814,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startModel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -822,7 +839,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +876,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startModelPackagingJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -883,7 +901,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -903,6 +921,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopModel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -924,7 +943,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +963,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +979,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +999,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -992,7 +1013,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1012,6 +1033,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "lookoutvision") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatasetEntries") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1036,7 +1058,7 @@ extension LookoutVisionClient: LookoutVisionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSLookoutVision/models/Models.swift b/Sources/Services/AWSLookoutVision/models/Models.swift index 1575d0134d9..21da092c382 100644 --- a/Sources/Services/AWSLookoutVision/models/Models.swift +++ b/Sources/Services/AWSLookoutVision/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You are not authorized to perform the action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -102,9 +101,8 @@ extension LookoutVisionClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -122,7 +120,7 @@ extension ConflictException { } /// The update or deletion of a resource caused an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -293,9 +291,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetMetadata = output.datasetMetadata } else { @@ -486,9 +483,8 @@ public enum CreateModelOutputError: Swift.Error, Swift.Equatable { extension CreateModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelMetadata = output.modelMetadata } else { @@ -623,9 +619,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectMetadata = output.projectMetadata } else { @@ -1198,9 +1193,8 @@ public enum DeleteModelOutputError: Swift.Error, Swift.Equatable { extension DeleteModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelArn = output.modelArn } else { @@ -1316,9 +1310,8 @@ public enum DeleteProjectOutputError: Swift.Error, Swift.Equatable { extension DeleteProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectArn = output.projectArn } else { @@ -1428,9 +1421,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetDescription = output.datasetDescription } else { @@ -1540,9 +1532,8 @@ public enum DescribeModelOutputError: Swift.Error, Swift.Equatable { extension DescribeModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelDescription = output.modelDescription } else { @@ -1650,9 +1641,8 @@ public enum DescribeModelPackagingJobOutputError: Swift.Error, Swift.Equatable { extension DescribeModelPackagingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelPackagingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelPackagingDescription = output.modelPackagingDescription } else { @@ -1754,9 +1744,8 @@ public enum DescribeProjectOutputError: Swift.Error, Swift.Equatable { extension DescribeProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectDescription = output.projectDescription } else { @@ -1807,9 +1796,8 @@ public struct DetectAnomaliesInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.stream(bodydata) - input.builder.withBody(bodybody) + let bodyBody = ClientRuntime.HttpBody(byteStream: body) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -1827,7 +1815,7 @@ extension DetectAnomaliesInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let body = self.body { - try encodeContainer.encode(body.toBytes().getData(), forKey: .body) + try encodeContainer.encode(body, forKey: .body) } } } @@ -1932,9 +1920,8 @@ public enum DetectAnomaliesOutputError: Swift.Error, Swift.Equatable { extension DetectAnomaliesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectAnomaliesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detectAnomalyResult = output.detectAnomalyResult } else { @@ -2331,9 +2318,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2347,7 +2333,7 @@ extension InternalServerException { } /// Amazon Lookout for Vision experienced a service issue. Try your call again. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2524,9 +2510,8 @@ public enum ListDatasetEntriesOutputError: Swift.Error, Swift.Equatable { extension ListDatasetEntriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetEntriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetEntries = output.datasetEntries self.nextToken = output.nextToken @@ -2670,9 +2655,8 @@ public enum ListModelPackagingJobsOutputError: Swift.Error, Swift.Equatable { extension ListModelPackagingJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelPackagingJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelPackagingJobs = output.modelPackagingJobs self.nextToken = output.nextToken @@ -2818,9 +2802,8 @@ public enum ListModelsOutputError: Swift.Error, Swift.Equatable { extension ListModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.models = output.models self.nextToken = output.nextToken @@ -2958,9 +2941,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -3081,9 +3063,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4159,9 +4140,8 @@ extension LookoutVisionClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -4179,7 +4159,7 @@ extension ResourceNotFoundException { } /// The resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4321,9 +4301,8 @@ extension LookoutVisionClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -4345,7 +4324,7 @@ extension ServiceQuotaExceededException { } /// A service quota was exceeded the allowed limit. For more information, see Limits in Amazon Lookout for Vision in the Amazon Lookout for Vision Developer Guide. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4543,9 +4522,8 @@ public enum StartModelOutputError: Swift.Error, Swift.Equatable { extension StartModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -4725,9 +4703,8 @@ public enum StartModelPackagingJobOutputError: Swift.Error, Swift.Equatable { extension StartModelPackagingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartModelPackagingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobName = output.jobName } else { @@ -4851,9 +4828,8 @@ public enum StopModelOutputError: Swift.Error, Swift.Equatable { extension StopModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -5236,9 +5212,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -5256,7 +5231,7 @@ extension ThrottlingException { } /// Amazon Lookout for Vision is temporarily unable to process the request. Try your call again. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5518,9 +5493,8 @@ public enum UpdateDatasetEntriesOutputError: Swift.Error, Swift.Equatable { extension UpdateDatasetEntriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDatasetEntriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -5559,9 +5533,8 @@ extension UpdateDatasetEntriesOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5575,7 +5548,7 @@ extension ValidationException { } /// An input validation error occured. For example, invalid characters in a project name, or if a pagination token is invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSM2/M2Client.swift b/Sources/Services/AWSM2/M2Client.swift index b5fef3755d8..6a56b0544af 100644 --- a/Sources/Services/AWSM2/M2Client.swift +++ b/Sources/Services/AWSM2/M2Client.swift @@ -208,6 +208,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelBatchJobExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -263,7 +265,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSetImportTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -306,7 +309,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -326,6 +329,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeployment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -349,7 +353,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -369,6 +373,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -392,7 +397,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +417,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +430,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +450,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplicationFromEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +463,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +483,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +496,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +516,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplicationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -552,7 +562,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -572,6 +582,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBatchJobExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataSetDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -616,7 +628,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +648,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataSetImportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +661,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -668,6 +681,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +694,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +714,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -712,7 +727,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -732,6 +747,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -745,7 +761,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -765,6 +781,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -778,7 +795,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -798,6 +815,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBatchJobDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -811,7 +829,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -831,6 +849,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBatchJobExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +863,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +883,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSetImportHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -877,7 +897,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -897,6 +917,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -910,7 +931,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -930,6 +951,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -943,7 +965,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -963,6 +985,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEngineVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -976,7 +999,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -996,6 +1019,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1009,7 +1033,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1029,6 +1053,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1041,7 +1066,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1061,6 +1086,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1073,7 +1099,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1093,6 +1119,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startBatchJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1108,7 +1135,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1128,6 +1155,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1143,7 +1171,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1163,6 +1191,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1178,7 +1207,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1198,6 +1227,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1211,7 +1241,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1231,6 +1261,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1246,7 +1277,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1266,6 +1297,7 @@ extension M2Client: M2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "m2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1281,7 +1313,7 @@ extension M2Client: M2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSM2/models/Models.swift b/Sources/Services/AWSM2/models/Models.swift index b18b6224ea5..ab9b9a7dd89 100644 --- a/Sources/Services/AWSM2/models/Models.swift +++ b/Sources/Services/AWSM2/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The account or role doesn't have the right permissions to make the request. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -862,9 +861,8 @@ public struct CancelBatchJobExecutionOutputResponse: Swift.Equatable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -882,7 +880,7 @@ extension ConflictException { } /// The parameters provided in the request conflict with existing resources. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1101,9 +1099,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationArn = output.applicationArn self.applicationId = output.applicationId @@ -1267,9 +1264,8 @@ public enum CreateDataSetImportTaskOutputError: Swift.Error, Swift.Equatable { extension CreateDataSetImportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSetImportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskId = output.taskId } else { @@ -1424,9 +1420,8 @@ public enum CreateDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentId = output.deploymentId } else { @@ -1752,9 +1747,8 @@ public enum CreateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentId = output.environmentId } else { @@ -3401,9 +3395,8 @@ public enum GetApplicationOutputError: Swift.Error, Swift.Equatable { extension GetApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationArn = output.applicationArn self.applicationId = output.applicationId @@ -3743,9 +3736,8 @@ public enum GetApplicationVersionOutputError: Swift.Error, Swift.Equatable { extension GetApplicationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationVersion = output.applicationVersion self.creationTime = output.creationTime @@ -3918,9 +3910,8 @@ public enum GetBatchJobExecutionOutputError: Swift.Error, Swift.Equatable { extension GetBatchJobExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBatchJobExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.batchJobIdentifier = output.batchJobIdentifier @@ -4142,9 +4133,8 @@ public enum GetDataSetDetailsOutputError: Swift.Error, Swift.Equatable { extension GetDataSetDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataSetDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blocksize = output.blocksize self.creationTime = output.creationTime @@ -4323,9 +4313,8 @@ public enum GetDataSetImportTaskOutputError: Swift.Error, Swift.Equatable { extension GetDataSetImportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataSetImportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status self.summary = output.summary @@ -4455,9 +4444,8 @@ public enum GetDeploymentOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.applicationVersion = output.applicationVersion @@ -4623,9 +4611,8 @@ public enum GetEnvironmentOutputError: Swift.Error, Swift.Equatable { extension GetEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actualCapacity = output.actualCapacity self.creationTime = output.creationTime @@ -4962,9 +4949,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4978,7 +4964,7 @@ extension InternalServerException { } /// An unexpected error occurred during the processing of the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5105,9 +5091,8 @@ public enum ListApplicationVersionsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationVersions = output.applicationVersions self.nextToken = output.nextToken @@ -5260,9 +5245,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications self.nextToken = output.nextToken @@ -5415,9 +5399,8 @@ public enum ListBatchJobDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListBatchJobDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBatchJobDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchJobDefinitions = output.batchJobDefinitions self.nextToken = output.nextToken @@ -5604,9 +5587,8 @@ public enum ListBatchJobExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListBatchJobExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBatchJobExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchJobExecutions = output.batchJobExecutions self.nextToken = output.nextToken @@ -5751,9 +5733,8 @@ public enum ListDataSetImportHistoryOutputError: Swift.Error, Swift.Equatable { extension ListDataSetImportHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSetImportHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSetImportTasks = output.dataSetImportTasks self.nextToken = output.nextToken @@ -5906,9 +5887,8 @@ public enum ListDataSetsOutputError: Swift.Error, Swift.Equatable { extension ListDataSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSets = output.dataSets self.nextToken = output.nextToken @@ -6053,9 +6033,8 @@ public enum ListDeploymentsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deployments = output.deployments self.nextToken = output.nextToken @@ -6198,9 +6177,8 @@ public enum ListEngineVersionsOutputError: Swift.Error, Swift.Equatable { extension ListEngineVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEngineVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineVersions = output.engineVersions self.nextToken = output.nextToken @@ -6353,9 +6331,8 @@ public enum ListEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environments = output.environments self.nextToken = output.nextToken @@ -6475,9 +6452,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6767,9 +6743,8 @@ extension M2ClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -6787,7 +6762,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6912,9 +6887,8 @@ extension M2ClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -6936,7 +6910,7 @@ extension ServiceQuotaExceededException { } /// One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7190,9 +7164,8 @@ public enum StartBatchJobOutputError: Swift.Error, Swift.Equatable { extension StartBatchJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartBatchJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionId = output.executionId } else { @@ -7491,9 +7464,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -7511,7 +7483,7 @@ extension ThrottlingException { } /// The number of requests made exceeds the limit. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7773,9 +7745,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationVersion = output.applicationVersion } else { @@ -7952,9 +7923,8 @@ public enum UpdateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension UpdateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentId = output.environmentId } else { @@ -7994,9 +7964,8 @@ extension UpdateEnvironmentOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -8014,7 +7983,7 @@ extension ValidationException { } /// One or more parameters provided in the request is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMTurk/MTurkClient.swift b/Sources/Services/AWSMTurk/MTurkClient.swift index cb42645b7d5..446a43cf3f6 100644 --- a/Sources/Services/AWSMTurk/MTurkClient.swift +++ b/Sources/Services/AWSMTurk/MTurkClient.swift @@ -208,6 +208,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptQualificationRequest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "approveAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -267,7 +269,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -287,6 +289,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateQualificationWithWorker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -303,7 +306,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -327,6 +330,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAdditionalAssignmentsForHIT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -343,7 +347,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -363,6 +367,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHIT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -379,7 +384,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -399,6 +404,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHITType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -415,7 +421,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -435,6 +441,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHITWithHITType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -451,7 +458,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +478,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createQualificationType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +495,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +515,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkerBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +532,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -551,6 +560,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHIT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -567,7 +577,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +597,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQualificationType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -603,7 +614,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -623,6 +634,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkerBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +651,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +671,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateQualificationFromWorker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -675,7 +688,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -695,6 +708,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountBalance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -711,7 +725,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -731,6 +745,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -747,7 +762,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +785,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFileUploadURL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -786,7 +802,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -806,6 +822,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHIT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -822,7 +839,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -842,6 +859,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQualificationScore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -858,7 +876,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -878,6 +896,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQualificationType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -894,7 +913,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -914,6 +933,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssignmentsForHIT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -930,7 +950,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -950,6 +970,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBonusPayments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -966,7 +987,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -986,6 +1007,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHITs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1002,7 +1024,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1022,6 +1044,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHITsForQualificationType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1038,7 +1061,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1058,6 +1081,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQualificationRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1074,7 +1098,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1094,6 +1118,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQualificationTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1110,7 +1135,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1130,6 +1155,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReviewPolicyResultsForHIT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1146,7 +1172,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1166,6 +1192,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReviewableHITs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1182,7 +1209,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1202,6 +1229,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkerBlocks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1218,7 +1246,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1238,6 +1266,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkersWithQualificationType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1254,7 +1283,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1274,6 +1303,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyWorkers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1290,7 +1320,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1310,6 +1340,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1326,7 +1357,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1346,6 +1377,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectQualificationRequest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1362,7 +1394,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1382,6 +1414,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendBonus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1398,7 +1431,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1418,6 +1451,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendTestEventNotification") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1434,7 +1468,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1454,6 +1488,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateExpirationForHIT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1470,7 +1505,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1490,6 +1525,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHITReviewStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1506,7 +1542,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1526,6 +1562,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHITTypeOfHIT") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1542,7 +1579,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1562,6 +1599,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNotificationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1578,7 +1616,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1598,6 +1636,7 @@ extension MTurkClient: MTurkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mturk-requester") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQualificationType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1614,7 +1653,7 @@ extension MTurkClient: MTurkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMTurk/models/Models.swift b/Sources/Services/AWSMTurk/models/Models.swift index b7f3cece3f3..c4ca3b1e14f 100644 --- a/Sources/Services/AWSMTurk/models/Models.swift +++ b/Sources/Services/AWSMTurk/models/Models.swift @@ -1021,9 +1021,8 @@ public enum CreateHITOutputError: Swift.Error, Swift.Equatable { extension CreateHITOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHITOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hit = output.hit } else { @@ -1221,9 +1220,8 @@ public enum CreateHITTypeOutputError: Swift.Error, Swift.Equatable { extension CreateHITTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHITTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hitTypeId = output.hitTypeId } else { @@ -1455,9 +1453,8 @@ public enum CreateHITWithHITTypeOutputError: Swift.Error, Swift.Equatable { extension CreateHITWithHITTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHITWithHITTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hit = output.hit } else { @@ -1678,9 +1675,8 @@ public enum CreateQualificationTypeOutputError: Swift.Error, Swift.Equatable { extension CreateQualificationTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateQualificationTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.qualificationType = output.qualificationType } else { @@ -2293,9 +2289,8 @@ public enum GetAccountBalanceOutputError: Swift.Error, Swift.Equatable { extension GetAccountBalanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountBalanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availableBalance = output.availableBalance self.onHoldBalance = output.onHoldBalance @@ -2416,9 +2411,8 @@ public enum GetAssignmentOutputError: Swift.Error, Swift.Equatable { extension GetAssignmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssignmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assignment = output.assignment self.hit = output.hit @@ -2552,9 +2546,8 @@ public enum GetFileUploadURLOutputError: Swift.Error, Swift.Equatable { extension GetFileUploadURLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFileUploadURLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileUploadURL = output.fileUploadURL } else { @@ -2665,9 +2658,8 @@ public enum GetHITOutputError: Swift.Error, Swift.Equatable { extension GetHITOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHITOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hit = output.hit } else { @@ -2791,9 +2783,8 @@ public enum GetQualificationScoreOutputError: Swift.Error, Swift.Equatable { extension GetQualificationScoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQualificationScoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.qualification = output.qualification } else { @@ -2904,9 +2895,8 @@ public enum GetQualificationTypeOutputError: Swift.Error, Swift.Equatable { extension GetQualificationTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQualificationTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.qualificationType = output.qualificationType } else { @@ -3472,9 +3462,8 @@ public enum ListAssignmentsForHITOutputError: Swift.Error, Swift.Equatable { extension ListAssignmentsForHITOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssignmentsForHITOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assignments = output.assignments self.nextToken = output.nextToken @@ -3648,9 +3637,8 @@ public enum ListBonusPaymentsOutputError: Swift.Error, Swift.Equatable { extension ListBonusPaymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBonusPaymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bonusPayments = output.bonusPayments self.nextToken = output.nextToken @@ -3814,9 +3802,8 @@ public enum ListHITsForQualificationTypeOutputError: Swift.Error, Swift.Equatabl extension ListHITsForQualificationTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHITsForQualificationTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hiTs = output.hiTs self.nextToken = output.nextToken @@ -3966,9 +3953,8 @@ public enum ListHITsOutputError: Swift.Error, Swift.Equatable { extension ListHITsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHITsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hiTs = output.hiTs self.nextToken = output.nextToken @@ -4131,9 +4117,8 @@ public enum ListQualificationRequestsOutputError: Swift.Error, Swift.Equatable { extension ListQualificationRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQualificationRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.numResults = output.numResults @@ -4321,9 +4306,8 @@ public enum ListQualificationTypesOutputError: Swift.Error, Swift.Equatable { extension ListQualificationTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQualificationTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.numResults = output.numResults @@ -4535,9 +4519,8 @@ public enum ListReviewPolicyResultsForHITOutputError: Swift.Error, Swift.Equatab extension ListReviewPolicyResultsForHITOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReviewPolicyResultsForHITOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assignmentReviewPolicy = output.assignmentReviewPolicy self.assignmentReviewReport = output.assignmentReviewReport @@ -4733,9 +4716,8 @@ public enum ListReviewableHITsOutputError: Swift.Error, Swift.Equatable { extension ListReviewableHITsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReviewableHITsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hiTs = output.hiTs self.nextToken = output.nextToken @@ -4885,9 +4867,8 @@ public enum ListWorkerBlocksOutputError: Swift.Error, Swift.Equatable { extension ListWorkerBlocksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkerBlocksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.numResults = output.numResults @@ -5063,9 +5044,8 @@ public enum ListWorkersWithQualificationTypeOutputError: Swift.Error, Swift.Equa extension ListWorkersWithQualificationTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkersWithQualificationTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.numResults = output.numResults @@ -5498,9 +5478,8 @@ public enum NotifyWorkersOutputError: Swift.Error, Swift.Equatable { extension NotifyWorkersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotifyWorkersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notifyWorkersFailureStatuses = output.notifyWorkersFailureStatuses } else { @@ -6374,9 +6353,8 @@ public struct RejectQualificationRequestOutputResponse: Swift.Equatable { extension RequestError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.turkErrorCode = output.turkErrorCode @@ -6392,7 +6370,7 @@ extension RequestError { } /// Your request is invalid. -public struct RequestError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7082,9 +7060,8 @@ public struct SendTestEventNotificationOutputResponse: Swift.Equatable { extension ServiceFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.turkErrorCode = output.turkErrorCode @@ -7100,7 +7077,7 @@ extension ServiceFault { } /// Amazon Mechanical Turk is temporarily unable to process your request. Try your call again. -public struct ServiceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7705,9 +7682,8 @@ public enum UpdateQualificationTypeOutputError: Swift.Error, Swift.Equatable { extension UpdateQualificationTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateQualificationTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.qualificationType = output.qualificationType } else { diff --git a/Sources/Services/AWSMWAA/MWAAClient.swift b/Sources/Services/AWSMWAA/MWAAClient.swift index 51021f5d18b..eeb8de2d5a4 100644 --- a/Sources/Services/AWSMWAA/MWAAClient.swift +++ b/Sources/Services/AWSMWAA/MWAAClient.swift @@ -208,6 +208,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCliToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "env.")) @@ -220,7 +221,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -255,7 +257,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWebLoginToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "env.")) @@ -287,7 +290,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -319,7 +323,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +343,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -351,7 +356,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -371,6 +376,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -384,7 +390,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +410,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -416,7 +423,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -436,6 +443,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "ops.")) @@ -451,7 +459,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +479,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -486,7 +495,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -506,6 +515,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -519,7 +529,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +549,7 @@ extension MWAAClient: MWAAClientProtocol { .withRegion(value: config.region) .withSigningName(value: "airflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "api.")) @@ -554,7 +565,7 @@ extension MWAAClient: MWAAClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMWAA/models/Models.swift b/Sources/Services/AWSMWAA/models/Models.swift index a058f88f427..60d6535e0ea 100644 --- a/Sources/Services/AWSMWAA/models/Models.swift +++ b/Sources/Services/AWSMWAA/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. To learn more, see [Accessing an Amazon MWAA environment](https://docs.aws.amazon.com/mwaa/latest/userguide/access-policies.html). -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -114,9 +113,8 @@ extension CreateCliTokenOutputResponse: Swift.CustomDebugStringConvertible { extension CreateCliTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCliTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cliToken = output.cliToken self.webServerHostname = output.webServerHostname @@ -522,9 +520,8 @@ public enum CreateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -627,9 +624,8 @@ extension CreateWebLoginTokenOutputResponse: Swift.CustomDebugStringConvertible extension CreateWebLoginTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWebLoginTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webServerHostname = output.webServerHostname self.webToken = output.webToken @@ -1252,9 +1248,8 @@ public enum GetEnvironmentOutputError: Swift.Error, Swift.Equatable { extension GetEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environment = output.environment } else { @@ -1293,9 +1288,8 @@ extension GetEnvironmentOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1309,7 +1303,7 @@ extension InternalServerException { } /// InternalServerException: An internal error has occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1482,9 +1476,8 @@ public enum ListEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environments = output.environments self.nextToken = output.nextToken @@ -1600,9 +1593,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2213,9 +2205,8 @@ public struct PublishMetricsOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2229,7 +2220,7 @@ extension ResourceNotFoundException { } /// ResourceNotFoundException: The resource is not available. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2944,9 +2935,8 @@ public enum UpdateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension UpdateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -3113,9 +3103,8 @@ extension MWAAClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3129,7 +3118,7 @@ extension ValidationException { } /// ValidationException: The provided input is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMachineLearning/MachineLearningClient.swift b/Sources/Services/AWSMachineLearning/MachineLearningClient.swift index dbecdcc291b..c9529031e49 100644 --- a/Sources/Services/AWSMachineLearning/MachineLearningClient.swift +++ b/Sources/Services/AWSMachineLearning/MachineLearningClient.swift @@ -208,6 +208,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBatchPrediction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSourceFromRDS") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSourceFromRedshift") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSourceFromS3") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEvaluation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMLModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRealtimeEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBatchPrediction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEvaluation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMLModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRealtimeEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBatchPredictions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvaluations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMLModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBatchPrediction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEvaluation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMLModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "predict") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: PredictInputEndpointURLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBatchPrediction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEvaluation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { .withRegion(value: config.region) .withSigningName(value: "machinelearning") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMLModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension MachineLearningClient: MachineLearningClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMachineLearning/models/Models.swift b/Sources/Services/AWSMachineLearning/models/Models.swift index 5e3be09191b..e282c87ecc7 100644 --- a/Sources/Services/AWSMachineLearning/models/Models.swift +++ b/Sources/Services/AWSMachineLearning/models/Models.swift @@ -120,9 +120,8 @@ public enum AddTagsOutputError: Swift.Error, Swift.Equatable { extension AddTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceId = output.resourceId self.resourceType = output.resourceType @@ -591,9 +590,8 @@ public enum CreateBatchPredictionOutputError: Swift.Error, Swift.Equatable { extension CreateBatchPredictionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBatchPredictionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchPredictionId = output.batchPredictionId } else { @@ -784,9 +782,8 @@ public enum CreateDataSourceFromRDSOutputError: Swift.Error, Swift.Equatable { extension CreateDataSourceFromRDSOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSourceFromRDSOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceId = output.dataSourceId } else { @@ -975,9 +972,8 @@ public enum CreateDataSourceFromRedshiftOutputError: Swift.Error, Swift.Equatabl extension CreateDataSourceFromRedshiftOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSourceFromRedshiftOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceId = output.dataSourceId } else { @@ -1136,9 +1132,8 @@ public enum CreateDataSourceFromS3OutputError: Swift.Error, Swift.Equatable { extension CreateDataSourceFromS3OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSourceFromS3OutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceId = output.dataSourceId } else { @@ -1290,9 +1285,8 @@ public enum CreateEvaluationOutputError: Swift.Error, Swift.Equatable { extension CreateEvaluationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEvaluationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluationId = output.evaluationId } else { @@ -1511,9 +1505,8 @@ public enum CreateMLModelOutputError: Swift.Error, Swift.Equatable { extension CreateMLModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMLModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mlModelId = output.mlModelId } else { @@ -1627,9 +1620,8 @@ public enum CreateRealtimeEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateRealtimeEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRealtimeEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mlModelId = output.mlModelId self.realtimeEndpointInfo = output.realtimeEndpointInfo @@ -2026,9 +2018,8 @@ public enum DeleteBatchPredictionOutputError: Swift.Error, Swift.Equatable { extension DeleteBatchPredictionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBatchPredictionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchPredictionId = output.batchPredictionId } else { @@ -2142,9 +2133,8 @@ public enum DeleteDataSourceOutputError: Swift.Error, Swift.Equatable { extension DeleteDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceId = output.dataSourceId } else { @@ -2258,9 +2248,8 @@ public enum DeleteEvaluationOutputError: Swift.Error, Swift.Equatable { extension DeleteEvaluationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEvaluationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluationId = output.evaluationId } else { @@ -2374,9 +2363,8 @@ public enum DeleteMLModelOutputError: Swift.Error, Swift.Equatable { extension DeleteMLModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMLModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mlModelId = output.mlModelId } else { @@ -2490,9 +2478,8 @@ public enum DeleteRealtimeEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteRealtimeEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRealtimeEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mlModelId = output.mlModelId self.realtimeEndpointInfo = output.realtimeEndpointInfo @@ -2656,9 +2643,8 @@ public enum DeleteTagsOutputError: Swift.Error, Swift.Equatable { extension DeleteTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceId = output.resourceId self.resourceType = output.resourceType @@ -2926,9 +2912,8 @@ public enum DescribeBatchPredictionsOutputError: Swift.Error, Swift.Equatable { extension DescribeBatchPredictionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBatchPredictionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -3201,9 +3186,8 @@ public enum DescribeDataSourcesOutputError: Swift.Error, Swift.Equatable { extension DescribeDataSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -3480,9 +3464,8 @@ public enum DescribeEvaluationsOutputError: Swift.Error, Swift.Equatable { extension DescribeEvaluationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEvaluationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -3763,9 +3746,8 @@ public enum DescribeMLModelsOutputError: Swift.Error, Swift.Equatable { extension DescribeMLModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMLModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -3911,9 +3893,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceId = output.resourceId self.resourceType = output.resourceType @@ -4394,9 +4375,8 @@ public enum GetBatchPredictionOutputError: Swift.Error, Swift.Equatable { extension GetBatchPredictionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBatchPredictionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchPredictionDataSourceId = output.batchPredictionDataSourceId self.batchPredictionId = output.batchPredictionId @@ -4692,9 +4672,8 @@ public enum GetDataSourceOutputError: Swift.Error, Swift.Equatable { extension GetDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computeStatistics = output.computeStatistics self.computeTime = output.computeTime @@ -5008,9 +4987,8 @@ public enum GetEvaluationOutputError: Swift.Error, Swift.Equatable { extension GetEvaluationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEvaluationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computeTime = output.computeTime self.createdAt = output.createdAt @@ -5295,9 +5273,8 @@ public enum GetMLModelOutputError: Swift.Error, Swift.Equatable { extension GetMLModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMLModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.computeTime = output.computeTime self.createdAt = output.createdAt @@ -5572,9 +5549,8 @@ extension GetMLModelOutputResponseBody: Swift.Decodable { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5590,7 +5566,7 @@ extension IdempotentParameterMismatchException { } /// A second request to use or change an object was not allowed. This can result from retrying a request using a parameter that was not present in the original request. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5633,9 +5609,8 @@ extension IdempotentParameterMismatchExceptionBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5651,7 +5626,7 @@ extension InternalServerException { } /// An error on the server occurred when trying to process a request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5694,9 +5669,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5712,7 +5686,7 @@ extension InvalidInputException { } /// An error on the client occurred. Typically, the cause is an invalid input value. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5755,9 +5729,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension InvalidTagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5770,7 +5743,7 @@ extension InvalidTagException { } } -public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5806,9 +5779,8 @@ extension InvalidTagExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5824,7 +5796,7 @@ extension LimitExceededException { } /// The subscriber exceeded the maximum number of operations. This exception can occur when listing objects such as DataSource. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6382,9 +6354,8 @@ public enum PredictOutputError: Swift.Error, Swift.Equatable { extension PredictOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PredictOutputResponseBody = try responseDecoder.decode(responseBody: data) self.prediction = output.prediction } else { @@ -6528,9 +6499,8 @@ extension MachineLearningClientTypes { extension PredictorNotMountedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PredictorNotMountedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6544,7 +6514,7 @@ extension PredictorNotMountedException { } /// The exception is thrown when a predict request is made to an unmounted MLModel. -public struct PredictorNotMountedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PredictorNotMountedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7287,9 +7257,8 @@ extension MachineLearningClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -7305,7 +7274,7 @@ extension ResourceNotFoundException { } /// A specified resource cannot be located. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7504,9 +7473,8 @@ extension MachineLearningClientTypes { extension TagLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7519,7 +7487,7 @@ extension TagLimitExceededException { } } -public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7680,9 +7648,8 @@ public enum UpdateBatchPredictionOutputError: Swift.Error, Swift.Equatable { extension UpdateBatchPredictionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBatchPredictionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchPredictionId = output.batchPredictionId } else { @@ -7809,9 +7776,8 @@ public enum UpdateDataSourceOutputError: Swift.Error, Swift.Equatable { extension UpdateDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceId = output.dataSourceId } else { @@ -7938,9 +7904,8 @@ public enum UpdateEvaluationOutputError: Swift.Error, Swift.Equatable { extension UpdateEvaluationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEvaluationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.evaluationId = output.evaluationId } else { @@ -8078,9 +8043,8 @@ public enum UpdateMLModelOutputError: Swift.Error, Swift.Equatable { extension UpdateMLModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMLModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mlModelId = output.mlModelId } else { diff --git a/Sources/Services/AWSMacie/MacieClient.swift b/Sources/Services/AWSMacie/MacieClient.swift index 8182897f0dc..d34e0b5f06b 100644 --- a/Sources/Services/AWSMacie/MacieClient.swift +++ b/Sources/Services/AWSMacie/MacieClient.swift @@ -208,6 +208,7 @@ extension MacieClient: MacieClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateMemberAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MacieClient: MacieClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension MacieClient: MacieClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateS3Resources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension MacieClient: MacieClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension MacieClient: MacieClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMemberAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension MacieClient: MacieClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension MacieClient: MacieClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateS3Resources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension MacieClient: MacieClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension MacieClient: MacieClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMemberAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension MacieClient: MacieClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension MacieClient: MacieClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listS3Resources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension MacieClient: MacieClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension MacieClient: MacieClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateS3Resources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension MacieClient: MacieClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMacie/models/Models.swift b/Sources/Services/AWSMacie/models/Models.swift index 77c7a839d2d..f999aeff273 100644 --- a/Sources/Services/AWSMacie/models/Models.swift +++ b/Sources/Services/AWSMacie/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// (Discontinued) You do not have required permissions to access the requested resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -250,9 +249,8 @@ public enum AssociateS3ResourcesOutputError: Swift.Error, Swift.Equatable { extension AssociateS3ResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateS3ResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedS3Resources = output.failedS3Resources } else { @@ -572,9 +570,8 @@ public enum DisassociateS3ResourcesOutputError: Swift.Error, Swift.Equatable { extension DisassociateS3ResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateS3ResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedS3Resources = output.failedS3Resources } else { @@ -677,9 +674,8 @@ extension MacieClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -695,7 +691,7 @@ extension InternalException { } /// (Discontinued) Internal server error. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -739,9 +735,8 @@ extension InternalExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.fieldName = output.fieldName @@ -759,7 +754,7 @@ extension InvalidInputException { } /// (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -811,9 +806,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -831,7 +825,7 @@ extension LimitExceededException { } /// (Discontinued) The request was rejected because it attempted to create resources beyond the current Amazon Web Services account quotas. The error code describes the quota exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -966,9 +960,8 @@ public enum ListMemberAccountsOutputError: Swift.Error, Swift.Equatable { extension ListMemberAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMemberAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberAccounts = output.memberAccounts self.nextToken = output.nextToken @@ -1123,9 +1116,8 @@ public enum ListS3ResourcesOutputError: Swift.Error, Swift.Equatable { extension ListS3ResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListS3ResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.s3Resources = output.s3Resources @@ -1537,9 +1529,8 @@ public enum UpdateS3ResourcesOutputError: Swift.Error, Swift.Equatable { extension UpdateS3ResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateS3ResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedS3Resources = output.failedS3Resources } else { diff --git a/Sources/Services/AWSMacie2/Macie2Client.swift b/Sources/Services/AWSMacie2/Macie2Client.swift index 81d8f10d3e8..8324359be19 100644 --- a/Sources/Services/AWSMacie2/Macie2Client.swift +++ b/Sources/Services/AWSMacie2/Macie2Client.swift @@ -208,6 +208,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetCustomDataIdentifiers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAllowList") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -301,7 +304,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -321,6 +324,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClassificationJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -344,7 +348,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -364,6 +368,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomDataIdentifier") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -387,7 +392,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +412,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFindingsFilter") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -430,7 +436,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +456,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +472,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +492,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +508,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +528,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSampleFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +544,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +564,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "declineInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -570,7 +580,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -590,6 +600,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAllowList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -603,7 +614,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -623,6 +634,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomDataIdentifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -635,7 +647,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -655,6 +667,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFindingsFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -667,7 +680,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -687,6 +700,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -702,7 +716,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -722,6 +736,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -734,7 +749,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -754,6 +769,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBuckets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -769,7 +785,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -789,6 +805,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClassificationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -801,7 +818,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -821,6 +838,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -833,7 +851,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -853,6 +871,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableMacie") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -865,7 +884,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -885,6 +904,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -898,7 +918,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -918,6 +938,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFromAdministratorAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -930,7 +951,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -950,6 +971,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFromMasterAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -962,7 +984,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -982,6 +1004,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -994,7 +1017,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1014,6 +1037,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableMacie") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1037,7 +1061,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1057,6 +1081,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1080,7 +1105,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1100,6 +1125,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAdministratorAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1112,7 +1138,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1132,6 +1158,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAllowList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1144,7 +1171,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1164,6 +1191,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAutomatedDiscoveryConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1204,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1224,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1211,7 +1240,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1231,6 +1260,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClassificationExportConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1243,7 +1273,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1263,6 +1293,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClassificationScope") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1306,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1326,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCustomDataIdentifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1307,7 +1339,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1327,6 +1359,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindingStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1342,7 +1375,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1362,6 +1395,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1377,7 +1411,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1397,6 +1431,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindingsFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1409,7 +1444,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1429,6 +1464,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindingsPublicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1441,7 +1477,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1461,6 +1497,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInvitationsCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1473,7 +1510,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1493,6 +1530,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMacieSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1505,7 +1543,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1525,6 +1563,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMasterAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1537,7 +1576,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1557,6 +1596,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1569,7 +1609,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1589,6 +1629,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1602,7 +1643,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1622,6 +1663,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRevealConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1634,7 +1676,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1654,6 +1696,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSensitiveDataOccurrences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1666,7 +1709,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1686,6 +1729,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSensitiveDataOccurrencesAvailability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1698,7 +1742,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1718,6 +1762,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSensitivityInspectionTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1730,7 +1775,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1750,6 +1795,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsageStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1765,7 +1811,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1785,6 +1831,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsageTotals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1798,7 +1845,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1818,6 +1865,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAllowLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1831,7 +1879,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1851,6 +1899,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClassificationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1866,7 +1915,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1886,6 +1935,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClassificationScopes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1899,7 +1949,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1919,6 +1969,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomDataIdentifiers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1934,7 +1985,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1954,6 +2005,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1969,7 +2021,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1989,6 +2041,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindingsFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2002,7 +2055,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2022,6 +2075,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2035,7 +2089,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2055,6 +2109,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listManagedDataIdentifiers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2070,7 +2125,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2090,6 +2145,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2103,7 +2159,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2123,6 +2179,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizationAdminAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2136,7 +2193,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2156,6 +2213,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceProfileArtifacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2169,7 +2227,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2189,6 +2247,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceProfileDetections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2202,7 +2261,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2222,6 +2281,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSensitivityInspectionTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2235,7 +2295,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2255,6 +2315,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2267,7 +2328,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2287,6 +2348,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putClassificationExportConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2302,7 +2364,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2322,6 +2384,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFindingsPublicationConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2345,7 +2408,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2365,6 +2428,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2380,7 +2444,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2400,6 +2464,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2415,7 +2480,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2435,6 +2500,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testCustomDataIdentifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2450,7 +2516,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2470,6 +2536,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2483,7 +2550,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2503,6 +2570,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAllowList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2518,7 +2586,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2538,6 +2606,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAutomatedDiscoveryConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2553,7 +2622,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2573,6 +2642,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClassificationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2588,7 +2658,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2608,6 +2678,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateClassificationScope") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2623,7 +2694,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2643,6 +2714,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFindingsFilter") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2666,7 +2738,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2686,6 +2758,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMacieSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2701,7 +2774,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2721,6 +2794,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMemberSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2736,7 +2810,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2756,6 +2830,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2771,7 +2846,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2791,6 +2866,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2807,7 +2883,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2827,6 +2903,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceProfileDetections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2843,7 +2920,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2863,6 +2940,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRevealConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2878,7 +2956,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2898,6 +2976,7 @@ extension Macie2Client: Macie2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "macie2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSensitivityInspectionTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2913,7 +2992,7 @@ extension Macie2Client: Macie2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMacie2/models/Models.swift b/Sources/Services/AWSMacie2/models/Models.swift index 0740b874559..63078574cf2 100644 --- a/Sources/Services/AWSMacie2/models/Models.swift +++ b/Sources/Services/AWSMacie2/models/Models.swift @@ -165,9 +165,8 @@ extension Macie2ClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -181,7 +180,7 @@ extension AccessDeniedException { } /// Provides information about an error that occurred due to insufficient access to a specified resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1120,9 +1119,8 @@ public enum BatchGetCustomDataIdentifiersOutputError: Swift.Error, Swift.Equatab extension BatchGetCustomDataIdentifiersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetCustomDataIdentifiersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customDataIdentifiers = output.customDataIdentifiers self.notFoundIdentifierIds = output.notFoundIdentifierIds @@ -2776,9 +2774,8 @@ extension Macie2ClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2792,7 +2789,7 @@ extension ConflictException { } /// Provides information about an error that occurred due to a versioning conflict for a specified resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2973,9 +2970,8 @@ public enum CreateAllowListOutputError: Swift.Error, Swift.Equatable { extension CreateAllowListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAllowListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3316,9 +3312,8 @@ public enum CreateClassificationJobOutputError: Swift.Error, Swift.Equatable { extension CreateClassificationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClassificationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn self.jobId = output.jobId @@ -3594,9 +3589,8 @@ public enum CreateCustomDataIdentifierOutputError: Swift.Error, Swift.Equatable extension CreateCustomDataIdentifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomDataIdentifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customDataIdentifierId = output.customDataIdentifierId } else { @@ -3803,9 +3797,8 @@ public enum CreateFindingsFilterOutputError: Swift.Error, Swift.Equatable { extension CreateFindingsFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFindingsFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3972,9 +3965,8 @@ public enum CreateInvitationsOutputError: Swift.Error, Swift.Equatable { extension CreateInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -4128,9 +4120,8 @@ public enum CreateMemberOutputError: Swift.Error, Swift.Equatable { extension CreateMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -4952,9 +4943,8 @@ public enum DeclineInvitationsOutputError: Swift.Error, Swift.Equatable { extension DeclineInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeclineInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -5389,9 +5379,8 @@ public enum DeleteInvitationsOutputError: Swift.Error, Swift.Equatable { extension DeleteInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -5643,9 +5632,8 @@ public enum DescribeBucketsOutputError: Swift.Error, Swift.Equatable { extension DescribeBucketsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBucketsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buckets = output.buckets self.nextToken = output.nextToken @@ -5768,9 +5756,8 @@ public enum DescribeClassificationJobOutputError: Swift.Error, Swift.Equatable { extension DescribeClassificationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClassificationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowListIds = output.allowListIds self.clientToken = output.clientToken @@ -6126,9 +6113,8 @@ public enum DescribeOrganizationConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeOrganizationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnable = output.autoEnable self.maxAccountLimitReached = output.maxAccountLimitReached @@ -7851,9 +7837,8 @@ public enum GetAdministratorAccountOutputError: Swift.Error, Swift.Equatable { extension GetAdministratorAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAdministratorAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.administrator = output.administrator } else { @@ -7953,9 +7938,8 @@ public enum GetAllowListOutputError: Swift.Error, Swift.Equatable { extension GetAllowListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAllowListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -8131,9 +8115,8 @@ public enum GetAutomatedDiscoveryConfigurationOutputError: Swift.Error, Swift.Eq extension GetAutomatedDiscoveryConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAutomatedDiscoveryConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.classificationScopeId = output.classificationScopeId self.disabledAt = output.disabledAt @@ -8303,9 +8286,8 @@ public enum GetBucketStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetBucketStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucketCount = output.bucketCount self.bucketCountByEffectivePermission = output.bucketCountByEffectivePermission @@ -8528,9 +8510,8 @@ public enum GetClassificationExportConfigurationOutputError: Swift.Error, Swift. extension GetClassificationExportConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClassificationExportConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -8630,9 +8611,8 @@ public enum GetClassificationScopeOutputError: Swift.Error, Swift.Equatable { extension GetClassificationScopeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClassificationScopeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -8756,9 +8736,8 @@ public enum GetCustomDataIdentifierOutputError: Swift.Error, Swift.Equatable { extension GetCustomDataIdentifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCustomDataIdentifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -9069,9 +9048,8 @@ public enum GetFindingStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetFindingStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.countsByGroup = output.countsByGroup } else { @@ -9184,9 +9162,8 @@ public enum GetFindingsFilterOutputError: Swift.Error, Swift.Equatable { extension GetFindingsFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingsFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.arn = output.arn @@ -9410,9 +9387,8 @@ public enum GetFindingsOutputError: Swift.Error, Swift.Equatable { extension GetFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings } else { @@ -9514,9 +9490,8 @@ public enum GetFindingsPublicationConfigurationOutputError: Swift.Error, Swift.E extension GetFindingsPublicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingsPublicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityHubConfiguration = output.securityHubConfiguration } else { @@ -9609,9 +9584,8 @@ public enum GetInvitationsCountOutputError: Swift.Error, Swift.Equatable { extension GetInvitationsCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInvitationsCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invitationsCount = output.invitationsCount } else { @@ -9704,9 +9678,8 @@ public enum GetMacieSessionOutputError: Swift.Error, Swift.Equatable { extension GetMacieSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMacieSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.findingPublishingFrequency = output.findingPublishingFrequency @@ -9839,9 +9812,8 @@ public enum GetMasterAccountOutputError: Swift.Error, Swift.Equatable { extension GetMasterAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMasterAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.master = output.master } else { @@ -9945,9 +9917,8 @@ public enum GetMemberOutputError: Swift.Error, Swift.Equatable { extension GetMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountId = output.accountId self.administratorAccountId = output.administratorAccountId @@ -10150,9 +10121,8 @@ public enum GetResourceProfileOutputError: Swift.Error, Swift.Equatable { extension GetResourceProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profileUpdatedAt = output.profileUpdatedAt self.sensitivityScore = output.sensitivityScore @@ -10269,9 +10239,8 @@ public enum GetRevealConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetRevealConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRevealConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -10369,9 +10338,8 @@ public enum GetSensitiveDataOccurrencesAvailabilityOutputError: Swift.Error, Swi extension GetSensitiveDataOccurrencesAvailabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSensitiveDataOccurrencesAvailabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.reasons = output.reasons @@ -10505,9 +10473,8 @@ public enum GetSensitiveDataOccurrencesOutputError: Swift.Error, Swift.Equatable extension GetSensitiveDataOccurrencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSensitiveDataOccurrencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.sensitiveDataOccurrences = output.sensitiveDataOccurrences @@ -10649,9 +10616,8 @@ public enum GetSensitivityInspectionTemplateOutputError: Swift.Error, Swift.Equa extension GetSensitivityInspectionTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSensitivityInspectionTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.excludes = output.excludes @@ -10871,9 +10837,8 @@ public enum GetUsageStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetUsageStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsageStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.records = output.records @@ -11015,9 +10980,8 @@ public enum GetUsageTotalsOutputError: Swift.Error, Swift.Equatable { extension GetUsageTotalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsageTotalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.timeRange = output.timeRange self.usageTotals = output.usageTotals @@ -11223,9 +11187,8 @@ extension Macie2ClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11239,7 +11202,7 @@ extension InternalServerException { } /// Provides information about an error that occurred due to an unknown internal server error, exception, or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12365,9 +12328,8 @@ public enum ListAllowListsOutputError: Swift.Error, Swift.Equatable { extension ListAllowListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAllowListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowLists = output.allowLists self.nextToken = output.nextToken @@ -12542,9 +12504,8 @@ public enum ListClassificationJobsOutputError: Swift.Error, Swift.Equatable { extension ListClassificationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClassificationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -12678,9 +12639,8 @@ public enum ListClassificationScopesOutputError: Swift.Error, Swift.Equatable { extension ListClassificationScopesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClassificationScopesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.classificationScopes = output.classificationScopes self.nextToken = output.nextToken @@ -12831,9 +12791,8 @@ public enum ListCustomDataIdentifiersOutputError: Swift.Error, Swift.Equatable { extension ListCustomDataIdentifiersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomDataIdentifiersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -12973,9 +12932,8 @@ public enum ListFindingsFiltersOutputError: Swift.Error, Swift.Equatable { extension ListFindingsFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingsFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingsFilterListItems = output.findingsFilterListItems self.nextToken = output.nextToken @@ -13150,9 +13108,8 @@ public enum ListFindingsOutputError: Swift.Error, Swift.Equatable { extension ListFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingIds = output.findingIds self.nextToken = output.nextToken @@ -13292,9 +13249,8 @@ public enum ListInvitationsOutputError: Swift.Error, Swift.Equatable { extension ListInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invitations = output.invitations self.nextToken = output.nextToken @@ -13678,9 +13634,8 @@ public enum ListManagedDataIdentifiersOutputError: Swift.Error, Swift.Equatable extension ListManagedDataIdentifiersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListManagedDataIdentifiersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -13828,9 +13783,8 @@ public enum ListMembersOutputError: Swift.Error, Swift.Equatable { extension ListMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.nextToken = output.nextToken @@ -13970,9 +13924,8 @@ public enum ListOrganizationAdminAccountsOutputError: Swift.Error, Swift.Equatab extension ListOrganizationAdminAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationAdminAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adminAccounts = output.adminAccounts self.nextToken = output.nextToken @@ -14111,9 +14064,8 @@ public enum ListResourceProfileArtifactsOutputError: Swift.Error, Swift.Equatabl extension ListResourceProfileArtifactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceProfileArtifactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifacts = output.artifacts self.nextToken = output.nextToken @@ -14262,9 +14214,8 @@ public enum ListResourceProfileDetectionsOutputError: Swift.Error, Swift.Equatab extension ListResourceProfileDetectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceProfileDetectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.detections = output.detections self.nextToken = output.nextToken @@ -14400,9 +14351,8 @@ public enum ListSensitivityInspectionTemplatesOutputError: Swift.Error, Swift.Eq extension ListSensitivityInspectionTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSensitivityInspectionTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sensitivityInspectionTemplates = output.sensitivityInspectionTemplates @@ -14511,9 +14461,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -15562,9 +15511,8 @@ public enum PutClassificationExportConfigurationOutputError: Swift.Error, Swift. extension PutClassificationExportConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutClassificationExportConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -15930,9 +15878,8 @@ extension Macie2ClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15946,7 +15893,7 @@ extension ResourceNotFoundException { } /// Provides information about an error that occurred because a specified resource wasn't found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17480,9 +17427,8 @@ public enum SearchResourcesOutputError: Swift.Error, Swift.Equatable { extension SearchResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.matchingResources = output.matchingResources self.nextToken = output.nextToken @@ -18344,9 +18290,8 @@ extension Macie2ClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18360,7 +18305,7 @@ extension ServiceQuotaExceededException { } /// Provides information about an error that occurred due to one or more service quotas for an account. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19627,9 +19572,8 @@ public enum TestCustomDataIdentifierOutputError: Swift.Error, Swift.Equatable { extension TestCustomDataIdentifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestCustomDataIdentifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.matchCount = output.matchCount } else { @@ -19668,9 +19612,8 @@ extension TestCustomDataIdentifierOutputResponseBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19684,7 +19627,7 @@ extension ThrottlingException { } /// Provides information about an error that occurred because too many requests were sent during a certain amount of time. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19860,9 +19803,8 @@ extension Macie2ClientTypes { extension UnprocessableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnprocessableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19876,7 +19818,7 @@ extension UnprocessableEntityException { } /// Provides information about an error that occurred due to an unprocessable entity. -public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20173,9 +20115,8 @@ public enum UpdateAllowListOutputError: Swift.Error, Swift.Equatable { extension UpdateAllowListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAllowListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -20660,9 +20601,8 @@ public enum UpdateFindingsFilterOutputError: Swift.Error, Swift.Equatable { extension UpdateFindingsFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFindingsFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -21312,9 +21252,8 @@ public enum UpdateRevealConfigurationOutputError: Swift.Error, Swift.Equatable { extension UpdateRevealConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRevealConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -22204,9 +22143,8 @@ extension Macie2ClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -22220,7 +22158,7 @@ extension ValidationException { } /// Provides information about an error that occurred due to a syntax error in a request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSManagedBlockchain/ManagedBlockchainClient.swift b/Sources/Services/AWSManagedBlockchain/ManagedBlockchainClient.swift index 4fb9fd08536..7a64d004b04 100644 --- a/Sources/Services/AWSManagedBlockchain/ManagedBlockchainClient.swift +++ b/Sources/Services/AWSManagedBlockchain/ManagedBlockchainClient.swift @@ -208,6 +208,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessor") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMember") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetwork") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNode") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -360,7 +364,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +384,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProposal") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -403,7 +408,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -423,6 +428,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -435,7 +441,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +461,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -467,7 +474,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -487,6 +494,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +508,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +528,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -532,7 +541,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -552,6 +561,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +574,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +594,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -596,7 +607,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +627,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +641,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -649,6 +661,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProposal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -661,7 +674,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -681,6 +694,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -694,7 +708,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -714,6 +728,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -727,7 +742,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -747,6 +762,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -760,7 +776,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -780,6 +796,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNetworks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -793,7 +810,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -813,6 +830,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -826,7 +844,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -846,6 +864,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProposalVotes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -859,7 +878,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -879,6 +898,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProposals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -892,7 +912,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -912,6 +932,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +945,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +965,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -956,7 +978,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -976,6 +998,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -991,7 +1014,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1011,6 +1034,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1048,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1068,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1084,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1104,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1120,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1114,6 +1140,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { .withRegion(value: config.region) .withSigningName(value: "managedblockchain") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "voteOnProposal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1129,7 +1156,7 @@ extension ManagedBlockchainClient: ManagedBlockchainClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSManagedBlockchain/models/Models.swift b/Sources/Services/AWSManagedBlockchain/models/Models.swift index 423eece1455..cff18dc7fc9 100644 --- a/Sources/Services/AWSManagedBlockchain/models/Models.swift +++ b/Sources/Services/AWSManagedBlockchain/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -476,9 +475,8 @@ public enum CreateAccessorOutputError: Swift.Error, Swift.Equatable { extension CreateAccessorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessorId = output.accessorId self.billingToken = output.billingToken @@ -647,9 +645,8 @@ public enum CreateMemberOutputError: Swift.Error, Swift.Equatable { extension CreateMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberId = output.memberId } else { @@ -883,9 +880,8 @@ public enum CreateNetworkOutputError: Swift.Error, Swift.Equatable { extension CreateNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.memberId = output.memberId self.networkId = output.networkId @@ -1083,9 +1079,8 @@ public enum CreateNodeOutputError: Swift.Error, Swift.Equatable { extension CreateNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nodeId = output.nodeId } else { @@ -1276,9 +1271,8 @@ public enum CreateProposalOutputError: Swift.Error, Swift.Equatable { extension CreateProposalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProposalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proposalId = output.proposalId } else { @@ -1698,9 +1692,8 @@ public enum GetAccessorOutputError: Swift.Error, Swift.Equatable { extension GetAccessorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessor = output.accessor } else { @@ -1808,9 +1801,8 @@ public enum GetMemberOutputError: Swift.Error, Swift.Equatable { extension GetMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.member = output.member } else { @@ -1910,9 +1902,8 @@ public enum GetNetworkOutputError: Swift.Error, Swift.Equatable { extension GetNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.network = output.network } else { @@ -2037,9 +2028,8 @@ public enum GetNodeOutputError: Swift.Error, Swift.Equatable { extension GetNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.node = output.node } else { @@ -2147,9 +2137,8 @@ public enum GetProposalOutputError: Swift.Error, Swift.Equatable { extension GetProposalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProposalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proposal = output.proposal } else { @@ -2188,9 +2177,8 @@ extension GetProposalOutputResponseBody: Swift.Decodable { extension IllegalActionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalActionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2204,7 +2192,7 @@ extension IllegalActionException { } /// -public struct IllegalActionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalActionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2248,7 +2236,7 @@ extension InternalServiceErrorException { } /// The request processing has failed because of an unknown error, exception or failure. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2262,9 +2250,8 @@ public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceErro extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2278,7 +2265,7 @@ extension InvalidRequestException { } /// The action or operation requested is invalid. Verify that the action is typed correctly. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2562,9 +2549,8 @@ public enum ListAccessorsOutputError: Swift.Error, Swift.Equatable { extension ListAccessorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessors = output.accessors self.nextToken = output.nextToken @@ -2702,9 +2688,8 @@ public enum ListInvitationsOutputError: Swift.Error, Swift.Equatable { extension ListInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invitations = output.invitations self.nextToken = output.nextToken @@ -2870,9 +2855,8 @@ public enum ListMembersOutputError: Swift.Error, Swift.Equatable { extension ListMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.nextToken = output.nextToken @@ -3030,9 +3014,8 @@ public enum ListNetworksOutputError: Swift.Error, Swift.Equatable { extension ListNetworksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNetworksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networks = output.networks self.nextToken = output.nextToken @@ -3190,9 +3173,8 @@ public enum ListNodesOutputError: Swift.Error, Swift.Equatable { extension ListNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nodes = output.nodes @@ -3342,9 +3324,8 @@ public enum ListProposalVotesOutputError: Swift.Error, Swift.Equatable { extension ListProposalVotesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProposalVotesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proposalVotes = output.proposalVotes @@ -3488,9 +3469,8 @@ public enum ListProposalsOutputError: Swift.Error, Swift.Equatable { extension ListProposalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProposalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.proposals = output.proposals @@ -3607,9 +3587,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6014,9 +5993,8 @@ extension ManagedBlockchainClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6030,7 +6008,7 @@ extension ResourceAlreadyExistsException { } /// A resource request is issued for a resource that already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6066,9 +6044,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6082,7 +6059,7 @@ extension ResourceLimitExceededException { } /// The maximum number of resources of that type already exist. Ensure the resources requested are within the boundaries of the service edition and your account limits. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6118,9 +6095,8 @@ extension ResourceLimitExceededExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -6136,7 +6112,7 @@ extension ResourceNotFoundException { } /// A requested resource doesn't exist. It may have been deleted or referenced incorrectly. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6180,9 +6156,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6196,7 +6171,7 @@ extension ResourceNotReadyException { } /// The requested resource exists but isn't in a status that can complete the operation. -public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6412,7 +6387,7 @@ extension ThrottlingException { } /// The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6426,9 +6401,8 @@ public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.E extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -6444,7 +6418,7 @@ extension TooManyTagsException { } /// -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMarketplaceCatalog/MarketplaceCatalogClient.swift b/Sources/Services/AWSMarketplaceCatalog/MarketplaceCatalogClient.swift index 36de803c188..462a8eb5576 100644 --- a/Sources/Services/AWSMarketplaceCatalog/MarketplaceCatalogClient.swift +++ b/Sources/Services/AWSMarketplaceCatalog/MarketplaceCatalogClient.swift @@ -208,6 +208,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEntity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -353,7 +358,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -373,6 +378,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChangeSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -388,7 +394,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -408,6 +414,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -423,7 +430,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -443,6 +450,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -458,7 +466,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -478,6 +486,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -493,7 +502,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -513,6 +522,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startChangeSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -536,7 +546,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -556,6 +566,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -571,7 +582,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -591,6 +602,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -606,7 +618,7 @@ extension MarketplaceCatalogClient: MarketplaceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMarketplaceCatalog/models/Models.swift b/Sources/Services/AWSMarketplaceCatalog/models/Models.swift index 653af4785ff..40e78af01ac 100644 --- a/Sources/Services/AWSMarketplaceCatalog/models/Models.swift +++ b/Sources/Services/AWSMarketplaceCatalog/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access is denied. HTTP status code: 403 -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -142,9 +141,8 @@ public enum CancelChangeSetOutputError: Swift.Error, Swift.Equatable { extension CancelChangeSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelChangeSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeSetArn = output.changeSetArn self.changeSetId = output.changeSetId @@ -695,9 +693,8 @@ public enum DescribeChangeSetOutputError: Swift.Error, Swift.Equatable { extension DescribeChangeSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChangeSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeSet = output.changeSet self.changeSetArn = output.changeSetArn @@ -911,9 +908,8 @@ public enum DescribeEntityOutputError: Swift.Error, Swift.Equatable { extension DescribeEntityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEntityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.details = output.details self.entityArn = output.entityArn @@ -1344,9 +1340,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -1385,9 +1380,8 @@ extension GetResourcePolicyOutputResponseBody: Swift.Decodable { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1401,7 +1395,7 @@ extension InternalServiceException { } /// There was an internal service exception. HTTP status code: 500 -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1573,9 +1567,8 @@ public enum ListChangeSetsOutputError: Swift.Error, Swift.Equatable { extension ListChangeSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChangeSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeSetSummaryList = output.changeSetSummaryList self.nextToken = output.nextToken @@ -1795,9 +1788,8 @@ public enum ListEntitiesOutputError: Swift.Error, Swift.Equatable { extension ListEntitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitySummaryList = output.entitySummaryList self.nextToken = output.nextToken @@ -1933,9 +1925,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.tags = output.tags @@ -2126,9 +2117,8 @@ public struct PutResourcePolicyOutputResponse: Swift.Equatable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2142,7 +2132,7 @@ extension ResourceInUseException { } /// The resource is currently in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2178,9 +2168,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2194,7 +2183,7 @@ extension ResourceNotFoundException { } /// The specified resource wasn't found. HTTP status code: 404 -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2230,9 +2219,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2246,7 +2234,7 @@ extension ResourceNotSupportedException { } /// Currently, the specified resource is not supported. -public struct ResourceNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2282,9 +2270,8 @@ extension ResourceNotSupportedExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2298,7 +2285,7 @@ extension ServiceQuotaExceededException { } /// The maximum number of open requests per account has been exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2566,9 +2553,8 @@ public enum StartChangeSetOutputError: Swift.Error, Swift.Equatable { extension StartChangeSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartChangeSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeSetArn = output.changeSetArn self.changeSetId = output.changeSetId @@ -2777,9 +2763,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2793,7 +2778,7 @@ extension ThrottlingException { } /// Too many requests. HTTP status code: 429 -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2942,9 +2927,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2958,7 +2942,7 @@ extension ValidationException { } /// An error occurred during validation. HTTP status code: 422 -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMarketplaceCommerceAnalytics/MarketplaceCommerceAnalyticsClient.swift b/Sources/Services/AWSMarketplaceCommerceAnalytics/MarketplaceCommerceAnalyticsClient.swift index b1fdc423d88..c59714fdff2 100644 --- a/Sources/Services/AWSMarketplaceCommerceAnalytics/MarketplaceCommerceAnalyticsClient.swift +++ b/Sources/Services/AWSMarketplaceCommerceAnalytics/MarketplaceCommerceAnalyticsClient.swift @@ -208,6 +208,7 @@ extension MarketplaceCommerceAnalyticsClient: MarketplaceCommerceAnalyticsClient .withRegion(value: config.region) .withSigningName(value: "marketplacecommerceanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MarketplaceCommerceAnalyticsClient: MarketplaceCommerceAnalyticsClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension MarketplaceCommerceAnalyticsClient: MarketplaceCommerceAnalyticsClient .withRegion(value: config.region) .withSigningName(value: "marketplacecommerceanalytics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSupportDataExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension MarketplaceCommerceAnalyticsClient: MarketplaceCommerceAnalyticsClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMarketplaceCommerceAnalytics/models/Models.swift b/Sources/Services/AWSMarketplaceCommerceAnalytics/models/Models.swift index d44a5d15c2c..e2e50d727c7 100644 --- a/Sources/Services/AWSMarketplaceCommerceAnalytics/models/Models.swift +++ b/Sources/Services/AWSMarketplaceCommerceAnalytics/models/Models.swift @@ -314,9 +314,8 @@ public enum GenerateDataSetOutputError: Swift.Error, Swift.Equatable { extension GenerateDataSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateDataSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSetRequestId = output.dataSetRequestId } else { @@ -356,9 +355,8 @@ extension GenerateDataSetOutputResponseBody: Swift.Decodable { extension MarketplaceCommerceAnalyticsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MarketplaceCommerceAnalyticsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -372,7 +370,7 @@ extension MarketplaceCommerceAnalyticsException { } /// This exception is thrown when an internal service error occurs. -public struct MarketplaceCommerceAnalyticsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MarketplaceCommerceAnalyticsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -572,9 +570,8 @@ public enum StartSupportDataExportOutputError: Swift.Error, Swift.Equatable { extension StartSupportDataExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSupportDataExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSetRequestId = output.dataSetRequestId } else { diff --git a/Sources/Services/AWSMarketplaceEntitlementService/MarketplaceEntitlementClient.swift b/Sources/Services/AWSMarketplaceEntitlementService/MarketplaceEntitlementClient.swift index fdc1bdd09a7..d2450ce2858 100644 --- a/Sources/Services/AWSMarketplaceEntitlementService/MarketplaceEntitlementClient.swift +++ b/Sources/Services/AWSMarketplaceEntitlementService/MarketplaceEntitlementClient.swift @@ -208,6 +208,7 @@ extension MarketplaceEntitlementClient: MarketplaceEntitlementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEntitlements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MarketplaceEntitlementClient: MarketplaceEntitlementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMarketplaceEntitlementService/models/Models.swift b/Sources/Services/AWSMarketplaceEntitlementService/models/Models.swift index 37563af75cd..847c328c4c9 100644 --- a/Sources/Services/AWSMarketplaceEntitlementService/models/Models.swift +++ b/Sources/Services/AWSMarketplaceEntitlementService/models/Models.swift @@ -309,9 +309,8 @@ public enum GetEntitlementsOutputError: Swift.Error, Swift.Equatable { extension GetEntitlementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEntitlementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitlements = output.entitlements self.nextToken = output.nextToken @@ -370,9 +369,8 @@ extension GetEntitlementsOutputResponseBody: Swift.Decodable { extension InternalServiceErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -386,7 +384,7 @@ extension InternalServiceErrorException { } /// An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -422,9 +420,8 @@ extension InternalServiceErrorExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -438,7 +435,7 @@ extension InvalidParameterException { } /// One or more parameters in your request was invalid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -474,9 +471,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -490,7 +486,7 @@ extension ThrottlingException { } /// The calls to the GetEntitlements API are throttled. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMarketplaceMetering/MarketplaceMeteringClient.swift b/Sources/Services/AWSMarketplaceMetering/MarketplaceMeteringClient.swift index fb49e5b10f8..a2d15890bbb 100644 --- a/Sources/Services/AWSMarketplaceMetering/MarketplaceMeteringClient.swift +++ b/Sources/Services/AWSMarketplaceMetering/MarketplaceMeteringClient.swift @@ -208,6 +208,7 @@ extension MarketplaceMeteringClient: MarketplaceMeteringClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchMeterUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MarketplaceMeteringClient: MarketplaceMeteringClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension MarketplaceMeteringClient: MarketplaceMeteringClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "meterUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension MarketplaceMeteringClient: MarketplaceMeteringClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -284,6 +286,7 @@ extension MarketplaceMeteringClient: MarketplaceMeteringClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -300,7 +303,7 @@ extension MarketplaceMeteringClient: MarketplaceMeteringClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -320,6 +323,7 @@ extension MarketplaceMeteringClient: MarketplaceMeteringClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aws-marketplace") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resolveCustomer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension MarketplaceMeteringClient: MarketplaceMeteringClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMarketplaceMetering/models/Models.swift b/Sources/Services/AWSMarketplaceMetering/models/Models.swift index 868ad8016da..7a5fa97fc01 100644 --- a/Sources/Services/AWSMarketplaceMetering/models/Models.swift +++ b/Sources/Services/AWSMarketplaceMetering/models/Models.swift @@ -116,9 +116,8 @@ public enum BatchMeterUsageOutputError: Swift.Error, Swift.Equatable { extension BatchMeterUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchMeterUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.results = output.results self.unprocessedRecords = output.unprocessedRecords @@ -186,9 +185,8 @@ extension BatchMeterUsageOutputResponseBody: Swift.Decodable { extension CustomerNotEntitledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CustomerNotEntitledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -202,7 +200,7 @@ extension CustomerNotEntitledException { } /// Exception thrown when the customer does not have a valid subscription for the product. -public struct CustomerNotEntitledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomerNotEntitledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -238,9 +236,8 @@ extension CustomerNotEntitledExceptionBody: Swift.Decodable { extension DisabledApiException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisabledApiExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -254,7 +251,7 @@ extension DisabledApiException { } /// The API is disabled in the Region. -public struct DisabledApiException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DisabledApiException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -290,9 +287,8 @@ extension DisabledApiExceptionBody: Swift.Decodable { extension DuplicateRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -306,7 +302,7 @@ extension DuplicateRequestException { } /// A metering record has already been emitted by the same EC2 instance, ECS task, or EKS pod for the given {usageDimension, timestamp} with a different usageQuantity. -public struct DuplicateRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -342,9 +338,8 @@ extension DuplicateRequestExceptionBody: Swift.Decodable { extension ExpiredTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -358,7 +353,7 @@ extension ExpiredTokenException { } /// The submitted registration token has expired. This can happen if the buyer's browser takes too long to redirect to your page, the buyer has resubmitted the registration token, or your application has held on to the registration token for too long. Your SaaS registration website should redeem this token as soon as it is submitted by the buyer's browser. -public struct ExpiredTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -394,9 +389,8 @@ extension ExpiredTokenExceptionBody: Swift.Decodable { extension InternalServiceErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -410,7 +404,7 @@ extension InternalServiceErrorException { } /// An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -446,9 +440,8 @@ extension InternalServiceErrorExceptionBody: Swift.Decodable { extension InvalidCustomerIdentifierException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCustomerIdentifierExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -462,7 +455,7 @@ extension InvalidCustomerIdentifierException { } /// You have metered usage for a CustomerIdentifier that does not exist. -public struct InvalidCustomerIdentifierException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCustomerIdentifierException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -498,9 +491,8 @@ extension InvalidCustomerIdentifierExceptionBody: Swift.Decodable { extension InvalidEndpointRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEndpointRegionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -514,7 +506,7 @@ extension InvalidEndpointRegionException { } /// The endpoint being called is in a AWS Region different from your EC2 instance, ECS task, or EKS pod. The Region of the Metering Service endpoint and the AWS Region of the resource must match. -public struct InvalidEndpointRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEndpointRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -550,9 +542,8 @@ extension InvalidEndpointRegionExceptionBody: Swift.Decodable { extension InvalidProductCodeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidProductCodeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -566,7 +557,7 @@ extension InvalidProductCodeException { } /// The product code passed does not match the product code used for publishing the product. -public struct InvalidProductCodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidProductCodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -602,9 +593,8 @@ extension InvalidProductCodeExceptionBody: Swift.Decodable { extension InvalidPublicKeyVersionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPublicKeyVersionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -618,7 +608,7 @@ extension InvalidPublicKeyVersionException { } /// Public Key version is invalid. -public struct InvalidPublicKeyVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPublicKeyVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -654,9 +644,8 @@ extension InvalidPublicKeyVersionExceptionBody: Swift.Decodable { extension InvalidRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRegionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -670,7 +659,7 @@ extension InvalidRegionException { } /// RegisterUsage must be called in the same AWS Region the ECS task was launched in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) when calling RegisterUsage. -public struct InvalidRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -706,9 +695,8 @@ extension InvalidRegionExceptionBody: Swift.Decodable { extension InvalidTagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -722,7 +710,7 @@ extension InvalidTagException { } /// The tag is invalid, or the number of tags is greater than 5. -public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -758,9 +746,8 @@ extension InvalidTagExceptionBody: Swift.Decodable { extension InvalidTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -774,7 +761,7 @@ extension InvalidTokenException { } /// Registration token is invalid. -public struct InvalidTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -810,9 +797,8 @@ extension InvalidTokenExceptionBody: Swift.Decodable { extension InvalidUsageAllocationsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidUsageAllocationsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -826,7 +812,7 @@ extension InvalidUsageAllocationsException { } /// The usage allocation objects are invalid, or the number of allocations is greater than 500 for a single usage record. -public struct InvalidUsageAllocationsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUsageAllocationsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -862,9 +848,8 @@ extension InvalidUsageAllocationsExceptionBody: Swift.Decodable { extension InvalidUsageDimensionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidUsageDimensionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -878,7 +863,7 @@ extension InvalidUsageDimensionException { } /// The usage dimension does not match one of the UsageDimensions associated with products. -public struct InvalidUsageDimensionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUsageDimensionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1076,9 +1061,8 @@ public enum MeterUsageOutputError: Swift.Error, Swift.Equatable { extension MeterUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MeterUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.meteringRecordId = output.meteringRecordId } else { @@ -1117,9 +1101,8 @@ extension MeterUsageOutputResponseBody: Swift.Decodable { extension PlatformNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PlatformNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1133,7 +1116,7 @@ extension PlatformNotSupportedException { } /// AWS Marketplace does not support metering usage from the underlying platform. Currently, Amazon ECS, Amazon EKS, and AWS Fargate are supported. -public struct PlatformNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PlatformNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1278,9 +1261,8 @@ public enum RegisterUsageOutputError: Swift.Error, Swift.Equatable { extension RegisterUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.publicKeyRotationTimestamp = output.publicKeyRotationTimestamp self.signature = output.signature @@ -1408,9 +1390,8 @@ public enum ResolveCustomerOutputError: Swift.Error, Swift.Equatable { extension ResolveCustomerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResolveCustomerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerAWSAccountId = output.customerAWSAccountId self.customerIdentifier = output.customerIdentifier @@ -1517,9 +1498,8 @@ extension MarketplaceMeteringClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1533,7 +1513,7 @@ extension ThrottlingException { } /// The calls to the API are throttled. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1569,9 +1549,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TimestampOutOfBoundsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TimestampOutOfBoundsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1585,7 +1564,7 @@ extension TimestampOutOfBoundsException { } /// The timestamp value passed in the UsageRecord is out of allowed range. For BatchMeterUsage, if any of the records are outside of the allowed range, the entire batch is not processed. You must remove invalid records and try again. -public struct TimestampOutOfBoundsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TimestampOutOfBoundsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMediaConnect/MediaConnectClient.swift b/Sources/Services/AWSMediaConnect/MediaConnectClient.swift index 05e01631b2f..d26e0f3ac0e 100644 --- a/Sources/Services/AWSMediaConnect/MediaConnectClient.swift +++ b/Sources/Services/AWSMediaConnect/MediaConnectClient.swift @@ -208,6 +208,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addBridgeOutputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addBridgeSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addFlowMediaStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addFlowOutputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addFlowSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addFlowVpcInterfaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBridge") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBridge") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +545,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +565,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -567,7 +578,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +598,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +611,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -619,6 +631,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterGatewayInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -632,7 +645,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -652,6 +665,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBridge") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +678,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +698,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -696,7 +711,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -716,6 +731,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +744,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +764,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGatewayInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -760,7 +777,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -780,6 +797,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -792,7 +810,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -812,6 +830,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -824,7 +843,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -844,6 +863,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "grantFlowEntitlements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -859,7 +879,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -879,6 +899,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBridges") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -892,7 +913,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -912,6 +933,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEntitlements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -925,7 +947,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -945,6 +967,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFlows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -958,7 +981,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -978,6 +1001,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGatewayInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -991,7 +1015,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1011,6 +1035,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1049,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1069,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1057,7 +1083,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1077,6 +1103,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReservations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1090,7 +1117,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1110,6 +1137,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1122,7 +1150,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1142,6 +1170,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1186,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1177,6 +1206,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeBridgeOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1189,7 +1219,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1209,6 +1239,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeBridgeSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1221,7 +1252,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1241,6 +1272,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeFlowMediaStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1253,7 +1285,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1273,6 +1305,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeFlowOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1285,7 +1318,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1305,6 +1338,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeFlowSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1317,7 +1351,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1337,6 +1371,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeFlowVpcInterface") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1349,7 +1384,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1369,6 +1404,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeFlowEntitlement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1381,7 +1417,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1401,6 +1437,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1413,7 +1450,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1433,6 +1470,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1445,7 +1483,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1465,6 +1503,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1480,7 +1519,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1500,6 +1539,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1513,7 +1553,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1533,6 +1573,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBridge") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1548,7 +1589,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1568,6 +1609,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBridgeOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1583,7 +1625,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1603,6 +1645,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBridgeSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1618,7 +1661,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1638,6 +1681,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBridgeState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1653,7 +1697,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1673,6 +1717,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFlow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1688,7 +1733,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1708,6 +1753,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFlowEntitlement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1723,7 +1769,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1743,6 +1789,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFlowMediaStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1758,7 +1805,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1778,6 +1825,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFlowOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1793,7 +1841,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1813,6 +1861,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFlowSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1828,7 +1877,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1848,6 +1897,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconnect") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewayInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1863,7 +1913,7 @@ extension MediaConnectClient: MediaConnectClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMediaConnect/models/Models.swift b/Sources/Services/AWSMediaConnect/models/Models.swift index cf773dc8020..c016a1f5c79 100644 --- a/Sources/Services/AWSMediaConnect/models/Models.swift +++ b/Sources/Services/AWSMediaConnect/models/Models.swift @@ -370,9 +370,8 @@ public enum AddBridgeOutputsOutputError: Swift.Error, Swift.Equatable { extension AddBridgeOutputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddBridgeOutputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgeArn = output.bridgeArn self.outputs = output.outputs @@ -578,9 +577,8 @@ public enum AddBridgeSourcesOutputError: Swift.Error, Swift.Equatable { extension AddBridgeSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddBridgeSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgeArn = output.bridgeArn self.sources = output.sources @@ -774,9 +772,8 @@ public enum AddFlowMediaStreamsOutputError: Swift.Error, Swift.Equatable { extension AddFlowMediaStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddFlowMediaStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.mediaStreams = output.mediaStreams @@ -834,9 +831,8 @@ extension AddFlowMediaStreamsOutputResponseBody: Swift.Decodable { extension AddFlowOutputs420Exception { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddFlowOutputs420ExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -850,7 +846,7 @@ extension AddFlowOutputs420Exception { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct AddFlowOutputs420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AddFlowOutputs420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -991,9 +987,8 @@ public enum AddFlowOutputsOutputError: Swift.Error, Swift.Equatable { extension AddFlowOutputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddFlowOutputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.outputs = output.outputs @@ -1152,9 +1147,8 @@ public enum AddFlowSourcesOutputError: Swift.Error, Swift.Equatable { extension AddFlowSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddFlowSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.sources = output.sources @@ -1313,9 +1307,8 @@ public enum AddFlowVpcInterfacesOutputError: Swift.Error, Swift.Equatable { extension AddFlowVpcInterfacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddFlowVpcInterfacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.vpcInterfaces = output.vpcInterfaces @@ -1799,9 +1792,8 @@ extension MediaConnectClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1815,7 +1807,7 @@ extension BadRequestException { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2541,9 +2533,8 @@ extension MediaConnectClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2557,7 +2548,7 @@ extension ConflictException { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2627,9 +2618,8 @@ extension MediaConnectClientTypes { extension CreateBridge420Exception { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBridge420ExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2643,7 +2633,7 @@ extension CreateBridge420Exception { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct CreateBridge420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CreateBridge420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2862,9 +2852,8 @@ public enum CreateBridgeOutputError: Swift.Error, Swift.Equatable { extension CreateBridgeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBridgeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridge = output.bridge } else { @@ -2903,9 +2892,8 @@ extension CreateBridgeOutputResponseBody: Swift.Decodable { extension CreateFlow420Exception { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFlow420ExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2919,7 +2907,7 @@ extension CreateFlow420Exception { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct CreateFlow420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CreateFlow420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3205,9 +3193,8 @@ public enum CreateFlowOutputError: Swift.Error, Swift.Equatable { extension CreateFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flow = output.flow } else { @@ -3246,9 +3233,8 @@ extension CreateFlowOutputResponseBody: Swift.Decodable { extension CreateGateway420Exception { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGateway420ExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3262,7 +3248,7 @@ extension CreateGateway420Exception { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct CreateGateway420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CreateGateway420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3433,9 +3419,8 @@ public enum CreateGatewayOutputError: Swift.Error, Swift.Equatable { extension CreateGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gateway = output.gateway } else { @@ -3539,9 +3524,8 @@ public enum DeleteBridgeOutputError: Swift.Error, Swift.Equatable { extension DeleteBridgeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBridgeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgeArn = output.bridgeArn } else { @@ -3643,9 +3627,8 @@ public enum DeleteFlowOutputError: Swift.Error, Swift.Equatable { extension DeleteFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.status = output.status @@ -3759,9 +3742,8 @@ public enum DeleteGatewayOutputError: Swift.Error, Swift.Equatable { extension DeleteGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayArn = output.gatewayArn } else { @@ -3882,9 +3864,8 @@ public enum DeregisterGatewayInstanceOutputError: Swift.Error, Swift.Equatable { extension DeregisterGatewayInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterGatewayInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayInstanceArn = output.gatewayInstanceArn self.instanceState = output.instanceState @@ -3998,9 +3979,8 @@ public enum DescribeBridgeOutputError: Swift.Error, Swift.Equatable { extension DescribeBridgeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBridgeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridge = output.bridge } else { @@ -4119,9 +4099,8 @@ public enum DescribeFlowOutputError: Swift.Error, Swift.Equatable { extension DescribeFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flow = output.flow self.messages = output.messages @@ -4266,9 +4245,8 @@ public enum DescribeGatewayInstanceOutputError: Swift.Error, Swift.Equatable { extension DescribeGatewayInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGatewayInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayInstance = output.gatewayInstance } else { @@ -4341,9 +4319,8 @@ public enum DescribeGatewayOutputError: Swift.Error, Swift.Equatable { extension DescribeGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gateway = output.gateway } else { @@ -4443,9 +4420,8 @@ public enum DescribeOfferingOutputError: Swift.Error, Swift.Equatable { extension DescribeOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.offering = output.offering } else { @@ -4545,9 +4521,8 @@ public enum DescribeReservationOutputError: Swift.Error, Swift.Equatable { extension DescribeReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservation = output.reservation } else { @@ -5761,9 +5736,8 @@ extension MediaConnectClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5777,7 +5751,7 @@ extension ForbiddenException { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6297,9 +6271,8 @@ extension MediaConnectClientTypes { extension GrantFlowEntitlements420Exception { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GrantFlowEntitlements420ExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6313,7 +6286,7 @@ extension GrantFlowEntitlements420Exception { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct GrantFlowEntitlements420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GrantFlowEntitlements420Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6454,9 +6427,8 @@ public enum GrantFlowEntitlementsOutputError: Swift.Error, Swift.Equatable { extension GrantFlowEntitlementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GrantFlowEntitlementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitlements = output.entitlements self.flowArn = output.flowArn @@ -6791,9 +6763,8 @@ extension MediaConnectClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6807,7 +6778,7 @@ extension InternalServerErrorException { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6966,9 +6937,8 @@ public enum ListBridgesOutputError: Swift.Error, Swift.Equatable { extension ListBridgesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBridgesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridges = output.bridges self.nextToken = output.nextToken @@ -7102,9 +7072,8 @@ public enum ListEntitlementsOutputError: Swift.Error, Swift.Equatable { extension ListEntitlementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEntitlementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitlements = output.entitlements self.nextToken = output.nextToken @@ -7238,9 +7207,8 @@ public enum ListFlowsOutputError: Swift.Error, Swift.Equatable { extension ListFlowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFlowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flows = output.flows self.nextToken = output.nextToken @@ -7384,9 +7352,8 @@ public enum ListGatewayInstancesOutputError: Swift.Error, Swift.Equatable { extension ListGatewayInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGatewayInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.nextToken = output.nextToken @@ -7522,9 +7489,8 @@ public enum ListGatewaysOutputError: Swift.Error, Swift.Equatable { extension ListGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gateways = output.gateways self.nextToken = output.nextToken @@ -7658,9 +7624,8 @@ public enum ListOfferingsOutputError: Swift.Error, Swift.Equatable { extension ListOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.offerings = output.offerings @@ -7794,9 +7759,8 @@ public enum ListReservationsOutputError: Swift.Error, Swift.Equatable { extension ListReservationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReservationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservations = output.reservations @@ -7911,9 +7875,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -9102,9 +9065,8 @@ extension MediaConnectClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9118,7 +9080,7 @@ extension NotFoundException { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9660,9 +9622,8 @@ public enum PurchaseOfferingOutputError: Swift.Error, Swift.Equatable { extension PurchaseOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservation = output.reservation } else { @@ -9809,9 +9770,8 @@ public enum RemoveBridgeOutputOutputError: Swift.Error, Swift.Equatable { extension RemoveBridgeOutputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveBridgeOutputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgeArn = output.bridgeArn self.outputName = output.outputName @@ -9931,9 +9891,8 @@ public enum RemoveBridgeSourceOutputError: Swift.Error, Swift.Equatable { extension RemoveBridgeSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveBridgeSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgeArn = output.bridgeArn self.sourceName = output.sourceName @@ -10051,9 +10010,8 @@ public enum RemoveFlowMediaStreamOutputError: Swift.Error, Swift.Equatable { extension RemoveFlowMediaStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveFlowMediaStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.mediaStreamName = output.mediaStreamName @@ -10173,9 +10131,8 @@ public enum RemoveFlowOutputOutputError: Swift.Error, Swift.Equatable { extension RemoveFlowOutputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveFlowOutputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.outputArn = output.outputArn @@ -10295,9 +10252,8 @@ public enum RemoveFlowSourceOutputError: Swift.Error, Swift.Equatable { extension RemoveFlowSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveFlowSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.sourceArn = output.sourceArn @@ -10417,9 +10373,8 @@ public enum RemoveFlowVpcInterfaceOutputError: Swift.Error, Swift.Equatable { extension RemoveFlowVpcInterfaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveFlowVpcInterfaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.nonDeletedNetworkInterfaceIds = output.nonDeletedNetworkInterfaceIds @@ -10839,9 +10794,8 @@ public enum RevokeFlowEntitlementOutputError: Swift.Error, Swift.Equatable { extension RevokeFlowEntitlementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeFlowEntitlementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitlementArn = output.entitlementArn self.flowArn = output.flowArn @@ -10925,9 +10879,8 @@ extension MediaConnectClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10941,7 +10894,7 @@ extension ServiceUnavailableException { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11571,9 +11524,8 @@ public enum StartFlowOutputError: Swift.Error, Swift.Equatable { extension StartFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.status = output.status @@ -11764,9 +11716,8 @@ public enum StopFlowOutputError: Swift.Error, Swift.Equatable { extension StopFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.status = output.status @@ -11973,9 +11924,8 @@ extension MediaConnectClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11989,7 +11939,7 @@ extension TooManyRequestsException { } /// Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12679,9 +12629,8 @@ public enum UpdateBridgeOutputOutputError: Swift.Error, Swift.Equatable { extension UpdateBridgeOutputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBridgeOutputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgeArn = output.bridgeArn self.output = output.output @@ -12730,9 +12679,8 @@ extension UpdateBridgeOutputOutputResponseBody: Swift.Decodable { extension UpdateBridgeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBridgeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridge = output.bridge } else { @@ -12881,9 +12829,8 @@ public enum UpdateBridgeSourceOutputError: Swift.Error, Swift.Equatable { extension UpdateBridgeSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBridgeSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgeArn = output.bridgeArn self.source = output.source @@ -13022,9 +12969,8 @@ public enum UpdateBridgeStateOutputError: Swift.Error, Swift.Equatable { extension UpdateBridgeStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBridgeStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgeArn = output.bridgeArn self.desiredState = output.desiredState @@ -13430,9 +13376,8 @@ public enum UpdateFlowEntitlementOutputError: Swift.Error, Swift.Equatable { extension UpdateFlowEntitlementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFlowEntitlementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entitlement = output.entitlement self.flowArn = output.flowArn @@ -13693,9 +13638,8 @@ public enum UpdateFlowMediaStreamOutputError: Swift.Error, Swift.Equatable { extension UpdateFlowMediaStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFlowMediaStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.mediaStream = output.mediaStream @@ -14064,9 +14008,8 @@ public enum UpdateFlowOutputOutputError: Swift.Error, Swift.Equatable { extension UpdateFlowOutputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFlowOutputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.output = output.output @@ -14115,9 +14058,8 @@ extension UpdateFlowOutputOutputResponseBody: Swift.Decodable { extension UpdateFlowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFlowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flow = output.flow } else { @@ -14468,9 +14410,8 @@ public enum UpdateFlowSourceOutputError: Swift.Error, Swift.Equatable { extension UpdateFlowSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFlowSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowArn = output.flowArn self.source = output.source @@ -14654,9 +14595,8 @@ public enum UpdateGatewayInstanceOutputError: Swift.Error, Swift.Equatable { extension UpdateGatewayInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGatewayInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bridgePlacement = output.bridgePlacement self.gatewayInstanceArn = output.gatewayInstanceArn diff --git a/Sources/Services/AWSMediaConvert/MediaConvertClient.swift b/Sources/Services/AWSMediaConvert/MediaConvertClient.swift index a1d35fcdb81..14f976fdfbd 100644 --- a/Sources/Services/AWSMediaConvert/MediaConvertClient.swift +++ b/Sources/Services/AWSMediaConvert/MediaConvertClient.swift @@ -208,6 +208,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -298,7 +301,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -318,6 +321,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -333,7 +337,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -353,6 +357,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPreset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -403,7 +409,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -423,6 +429,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -435,7 +442,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +462,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -467,7 +475,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -487,6 +495,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePreset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -531,7 +541,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -551,6 +561,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -566,7 +577,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -586,6 +597,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -598,7 +610,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -618,6 +630,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -630,7 +643,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -650,6 +663,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -662,7 +676,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -682,6 +696,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -694,7 +709,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -714,6 +729,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPreset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -726,7 +742,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -746,6 +762,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -758,7 +775,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -778,6 +795,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -791,7 +809,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -811,6 +829,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -824,7 +843,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -844,6 +863,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPresets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -857,7 +877,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -877,6 +897,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -890,7 +911,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -910,6 +931,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -922,7 +944,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -942,6 +964,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -957,7 +980,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -977,6 +1000,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -992,7 +1016,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1012,6 +1036,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1027,7 +1052,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1047,6 +1072,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJobTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1062,7 +1088,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1082,6 +1108,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePreset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1097,7 +1124,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1117,6 +1144,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediaconvert") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1132,7 +1160,7 @@ extension MediaConvertClient: MediaConvertClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMediaConvert/models/Models.swift b/Sources/Services/AWSMediaConvert/models/Models.swift index 13f0c9a5174..b11b8c8e509 100644 --- a/Sources/Services/AWSMediaConvert/models/Models.swift +++ b/Sources/Services/AWSMediaConvert/models/Models.swift @@ -3467,9 +3467,8 @@ extension MediaConvertClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3483,7 +3482,7 @@ extension BadRequestException { } /// The service can't process your request because of a problem in the request. Please check your request form and syntax. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7114,9 +7113,8 @@ extension MediaConvertClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7130,7 +7128,7 @@ extension ConflictException { } /// The service couldn't complete your request because there is a conflict with the current state of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7635,9 +7633,8 @@ public enum CreateJobOutputError: Swift.Error, Swift.Equatable { extension CreateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -7889,9 +7886,8 @@ public enum CreateJobTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobTemplate = output.jobTemplate } else { @@ -8071,9 +8067,8 @@ public enum CreatePresetOutputError: Swift.Error, Swift.Equatable { extension CreatePresetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePresetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preset = output.preset } else { @@ -8264,9 +8259,8 @@ public enum CreateQueueOutputError: Swift.Error, Swift.Equatable { extension CreateQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queue = output.queue } else { @@ -9794,9 +9788,8 @@ public enum DescribeEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.nextToken = output.nextToken @@ -13137,9 +13130,8 @@ extension MediaConvertClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13153,7 +13145,7 @@ extension ForbiddenException { } /// You don't have permissions for this action with the credentials you sent. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13362,9 +13354,8 @@ public enum GetJobOutputError: Swift.Error, Swift.Equatable { extension GetJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -13466,9 +13457,8 @@ public enum GetJobTemplateOutputError: Swift.Error, Swift.Equatable { extension GetJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobTemplate = output.jobTemplate } else { @@ -13559,9 +13549,8 @@ public enum GetPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -13663,9 +13652,8 @@ public enum GetPresetOutputError: Swift.Error, Swift.Equatable { extension GetPresetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPresetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preset = output.preset } else { @@ -13767,9 +13755,8 @@ public enum GetQueueOutputError: Swift.Error, Swift.Equatable { extension GetQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queue = output.queue } else { @@ -19959,9 +19946,8 @@ extension MediaConvertClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19975,7 +19961,7 @@ extension InternalServerErrorException { } /// The service encountered an unexpected condition and can't fulfill your request. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21920,9 +21906,8 @@ public enum ListJobTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListJobTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobTemplates = output.jobTemplates self.nextToken = output.nextToken @@ -22084,9 +22069,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -22248,9 +22232,8 @@ public enum ListPresetsOutputError: Swift.Error, Swift.Equatable { extension ListPresetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPresetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.presets = output.presets @@ -22404,9 +22387,8 @@ public enum ListQueuesOutputError: Swift.Error, Swift.Equatable { extension ListQueuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queues = output.queues @@ -22527,9 +22509,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceTags = output.resourceTags } else { @@ -27525,9 +27506,8 @@ extension MediaConvertClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27541,7 +27521,7 @@ extension NotFoundException { } /// The resource you requested doesn't exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29187,9 +29167,8 @@ public enum PutPolicyOutputError: Swift.Error, Swift.Equatable { extension PutPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -31340,9 +31319,8 @@ extension MediaConvertClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -31356,7 +31334,7 @@ extension TooManyRequestsException { } /// Too many requests have been sent in too short of a time. The service limits the rate at which it will accept requests. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31819,9 +31797,8 @@ public enum UpdateJobTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateJobTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateJobTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobTemplate = output.jobTemplate } else { @@ -31971,9 +31948,8 @@ public enum UpdatePresetOutputError: Swift.Error, Swift.Equatable { extension UpdatePresetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePresetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.preset = output.preset } else { @@ -32123,9 +32099,8 @@ public enum UpdateQueueOutputError: Swift.Error, Swift.Equatable { extension UpdateQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queue = output.queue } else { diff --git a/Sources/Services/AWSMediaLive/MediaLiveClient.swift b/Sources/Services/AWSMediaLive/MediaLiveClient.swift index 63179de0d5f..e90fea68533 100644 --- a/Sources/Services/AWSMediaLive/MediaLiveClient.swift +++ b/Sources/Services/AWSMediaLive/MediaLiveClient.swift @@ -208,6 +208,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptInputDeviceTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDelete") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchStart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchStop") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelInputDeviceTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -392,7 +398,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +418,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "claimDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -427,7 +434,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -447,6 +454,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -470,7 +478,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -490,6 +498,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInput") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -513,7 +522,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -533,6 +542,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInputSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMultiplex") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -591,7 +602,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -611,6 +622,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMultiplexProgram") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -634,7 +646,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -654,6 +666,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPartnerInput") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -677,7 +690,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -697,6 +710,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -712,7 +726,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -732,6 +746,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +759,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +779,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -776,7 +792,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -796,6 +812,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInputSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +825,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +845,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMultiplex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -840,7 +858,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -860,6 +878,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMultiplexProgram") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -904,7 +924,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -924,6 +944,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -936,7 +957,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -956,6 +977,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -969,7 +991,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -989,6 +1011,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1001,7 +1024,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1021,6 +1044,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1033,7 +1057,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1053,6 +1077,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInputDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1065,7 +1090,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1085,6 +1110,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInputDeviceThumbnail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1098,7 +1124,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1118,6 +1144,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInputSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1130,7 +1157,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1150,6 +1177,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMultiplex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1162,7 +1190,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1182,6 +1210,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMultiplexProgram") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1194,7 +1223,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1214,6 +1243,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1226,7 +1256,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1246,6 +1276,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1258,7 +1289,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1278,6 +1309,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1291,7 +1323,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1311,6 +1343,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1324,7 +1357,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1344,6 +1377,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInputDeviceTransfers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1357,7 +1391,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1377,6 +1411,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInputDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1390,7 +1425,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1410,6 +1445,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInputSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1423,7 +1459,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1443,6 +1479,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1456,7 +1493,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1513,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMultiplexPrograms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1489,7 +1527,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1509,6 +1547,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMultiplexes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1522,7 +1561,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1542,6 +1581,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1555,7 +1595,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1575,6 +1615,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReservations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1588,7 +1629,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1608,6 +1649,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1620,7 +1662,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1640,6 +1682,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseOffering") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1663,7 +1706,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1683,6 +1726,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootInputDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1698,7 +1742,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1718,6 +1762,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectInputDeviceTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1730,7 +1775,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1750,6 +1795,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1762,7 +1808,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1782,6 +1828,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startInputDeviceMaintenanceWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1794,7 +1841,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1814,6 +1861,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMultiplex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1826,7 +1874,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1846,6 +1894,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1858,7 +1907,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1878,6 +1927,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopMultiplex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1890,7 +1940,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1910,6 +1960,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "transferInputDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1925,7 +1976,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1945,6 +1996,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1960,7 +2012,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1980,6 +2032,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannelClass") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1995,7 +2048,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2015,6 +2068,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2030,7 +2084,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2050,6 +2104,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInputDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2065,7 +2120,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2085,6 +2140,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInputSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2100,7 +2156,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2120,6 +2176,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMultiplex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2135,7 +2192,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2155,6 +2212,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMultiplexProgram") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2170,7 +2228,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2190,6 +2248,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { .withRegion(value: config.region) .withSigningName(value: "medialive") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReservation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2205,7 +2264,7 @@ extension MediaLiveClient: MediaLiveClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMediaLive/models/Models.swift b/Sources/Services/AWSMediaLive/models/Models.swift index c72f17e5997..e3664c2fdef 100644 --- a/Sources/Services/AWSMediaLive/models/Models.swift +++ b/Sources/Services/AWSMediaLive/models/Models.swift @@ -2548,9 +2548,8 @@ extension MediaLiveClientTypes { extension BadGatewayException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadGatewayExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2564,7 +2563,7 @@ extension BadGatewayException { } /// Placeholder documentation for BadGatewayException -public struct BadGatewayException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadGatewayException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2601,9 +2600,8 @@ extension BadGatewayExceptionBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2617,7 +2615,7 @@ extension BadRequestException { } /// Placeholder documentation for BadRequestException -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2822,9 +2820,8 @@ public enum BatchDeleteOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -3269,9 +3266,8 @@ public enum BatchStartOutputError: Swift.Error, Swift.Equatable { extension BatchStartOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchStartOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -3459,9 +3455,8 @@ public enum BatchStopOutputError: Swift.Error, Swift.Equatable { extension BatchStopOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchStopOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -3688,9 +3683,8 @@ public enum BatchUpdateScheduleOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creates = output.creates self.deletes = output.deletes @@ -5723,9 +5717,8 @@ extension MediaLiveClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5739,7 +5732,7 @@ extension ConflictException { } /// Placeholder documentation for ConflictException -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6083,9 +6076,8 @@ public enum CreateChannelOutputError: Swift.Error, Swift.Equatable { extension CreateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -6397,9 +6389,8 @@ public enum CreateInputOutputError: Swift.Error, Swift.Equatable { extension CreateInputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.input = output.input } else { @@ -6555,9 +6546,8 @@ public enum CreateInputSecurityGroupOutputError: Swift.Error, Swift.Equatable { extension CreateInputSecurityGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInputSecurityGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityGroup = output.securityGroup } else { @@ -6757,9 +6747,8 @@ public enum CreateMultiplexOutputError: Swift.Error, Swift.Equatable { extension CreateMultiplexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMultiplexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multiplex = output.multiplex } else { @@ -6918,9 +6907,8 @@ public enum CreateMultiplexProgramOutputError: Swift.Error, Swift.Equatable { extension CreateMultiplexProgramOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMultiplexProgramOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multiplexProgram = output.multiplexProgram } else { @@ -7072,9 +7060,8 @@ public enum CreatePartnerInputOutputError: Swift.Error, Swift.Equatable { extension CreatePartnerInputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePartnerInputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.input = output.input } else { @@ -7288,9 +7275,8 @@ public enum DeleteChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.cdiInputSpecification = output.cdiInputSpecification @@ -7769,9 +7755,8 @@ public enum DeleteMultiplexOutputError: Swift.Error, Swift.Equatable { extension DeleteMultiplexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMultiplexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.availabilityZones = output.availabilityZones @@ -8004,9 +7989,8 @@ public enum DeleteMultiplexProgramOutputError: Swift.Error, Swift.Equatable { extension DeleteMultiplexProgramOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMultiplexProgramOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelId = output.channelId self.multiplexProgramSettings = output.multiplexProgramSettings @@ -8163,9 +8147,8 @@ public enum DeleteReservationOutputError: Swift.Error, Swift.Equatable { extension DeleteReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.count = output.count @@ -8647,9 +8630,8 @@ public enum DescribeChannelOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.cdiInputSpecification = output.cdiInputSpecification @@ -8970,9 +8952,8 @@ public enum DescribeInputDeviceOutputError: Swift.Error, Swift.Equatable { extension DescribeInputDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInputDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.connectionState = output.connectionState @@ -9242,9 +9223,12 @@ extension DescribeInputDeviceThumbnailOutputResponse: ClientRuntime.HttpResponse } else { self.lastModified = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.body = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.body = .data(data) + case .stream(let stream): + self.body = .stream(stream) + case .none: self.body = nil } } @@ -9381,9 +9365,8 @@ public enum DescribeInputOutputError: Swift.Error, Swift.Equatable { extension DescribeInputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.attachedChannels = output.attachedChannels @@ -9711,9 +9694,8 @@ public enum DescribeInputSecurityGroupOutputError: Swift.Error, Swift.Equatable extension DescribeInputSecurityGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInputSecurityGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -9914,9 +9896,8 @@ public enum DescribeMultiplexOutputError: Swift.Error, Swift.Equatable { extension DescribeMultiplexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMultiplexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.availabilityZones = output.availabilityZones @@ -10147,9 +10128,8 @@ public enum DescribeMultiplexProgramOutputError: Swift.Error, Swift.Equatable { extension DescribeMultiplexProgramOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMultiplexProgramOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelId = output.channelId self.multiplexProgramSettings = output.multiplexProgramSettings @@ -10304,9 +10284,8 @@ public enum DescribeOfferingOutputError: Swift.Error, Swift.Equatable { extension DescribeOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.currencyCode = output.currencyCode @@ -10512,9 +10491,8 @@ public enum DescribeReservationOutputError: Swift.Error, Swift.Equatable { extension DescribeReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.count = output.count @@ -10834,9 +10812,8 @@ public enum DescribeScheduleOutputError: Swift.Error, Swift.Equatable { extension DescribeScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduleActions = output.scheduleActions @@ -13847,9 +13824,8 @@ extension MediaLiveClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13863,7 +13839,7 @@ extension ForbiddenException { } /// Placeholder documentation for ForbiddenException -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14159,9 +14135,8 @@ extension MediaLiveClientTypes { extension GatewayTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GatewayTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14175,7 +14150,7 @@ extension GatewayTimeoutException { } /// Placeholder documentation for GatewayTimeoutException -public struct GatewayTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GatewayTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21941,9 +21916,8 @@ extension MediaLiveClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -21957,7 +21931,7 @@ extension InternalServerErrorException { } /// Placeholder documentation for InternalServerErrorException -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22143,9 +22117,8 @@ public enum ListChannelsOutputError: Swift.Error, Swift.Equatable { extension ListChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -22298,9 +22271,8 @@ public enum ListInputDeviceTransfersOutputError: Swift.Error, Swift.Equatable { extension ListInputDeviceTransfersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInputDeviceTransfersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputDeviceTransfers = output.inputDeviceTransfers self.nextToken = output.nextToken @@ -22440,9 +22412,8 @@ public enum ListInputDevicesOutputError: Swift.Error, Swift.Equatable { extension ListInputDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInputDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputDevices = output.inputDevices self.nextToken = output.nextToken @@ -22582,9 +22553,8 @@ public enum ListInputSecurityGroupsOutputError: Swift.Error, Swift.Equatable { extension ListInputSecurityGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInputSecurityGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputSecurityGroups = output.inputSecurityGroups self.nextToken = output.nextToken @@ -22724,9 +22694,8 @@ public enum ListInputsOutputError: Swift.Error, Swift.Equatable { extension ListInputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inputs = output.inputs self.nextToken = output.nextToken @@ -22876,9 +22845,8 @@ public enum ListMultiplexProgramsOutputError: Swift.Error, Swift.Equatable { extension ListMultiplexProgramsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMultiplexProgramsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multiplexPrograms = output.multiplexPrograms self.nextToken = output.nextToken @@ -23018,9 +22986,8 @@ public enum ListMultiplexesOutputError: Swift.Error, Swift.Equatable { extension ListMultiplexesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMultiplexesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multiplexes = output.multiplexes self.nextToken = output.nextToken @@ -23240,9 +23207,8 @@ public enum ListOfferingsOutputError: Swift.Error, Swift.Equatable { extension ListOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.offerings = output.offerings @@ -23446,9 +23412,8 @@ public enum ListReservationsOutputError: Swift.Error, Swift.Equatable { extension ListReservationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReservationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservations = output.reservations @@ -23567,9 +23532,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -28280,9 +28244,8 @@ extension MediaLiveClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -28296,7 +28259,7 @@ extension NotFoundException { } /// Placeholder documentation for NotFoundException -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29508,9 +29471,8 @@ public enum PurchaseOfferingOutputError: Swift.Error, Swift.Equatable { extension PurchaseOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservation = output.reservation } else { @@ -32800,9 +32762,8 @@ public enum StartChannelOutputError: Swift.Error, Swift.Equatable { extension StartChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.cdiInputSpecification = output.cdiInputSpecification @@ -33204,9 +33165,8 @@ public enum StartMultiplexOutputError: Swift.Error, Swift.Equatable { extension StartMultiplexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMultiplexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.availabilityZones = output.availabilityZones @@ -33683,9 +33643,8 @@ public enum StopChannelOutputError: Swift.Error, Swift.Equatable { extension StopChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.cdiInputSpecification = output.cdiInputSpecification @@ -34008,9 +33967,8 @@ public enum StopMultiplexOutputError: Swift.Error, Swift.Equatable { extension StopMultiplexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopMultiplexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.availabilityZones = output.availabilityZones @@ -34672,9 +34630,8 @@ extension MediaLiveClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -34688,7 +34645,7 @@ extension TooManyRequestsException { } /// Placeholder documentation for TooManyRequestsException -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35180,9 +35137,8 @@ extension MediaLiveClientTypes { extension UnprocessableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnprocessableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.validationErrors = output.validationErrors @@ -35198,7 +35154,7 @@ extension UnprocessableEntityException { } /// Placeholder documentation for UnprocessableEntityException -public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35371,9 +35327,8 @@ public enum UpdateChannelClassOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelClassOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelClassOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -35623,9 +35578,8 @@ public enum UpdateChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channel = output.channel } else { @@ -35781,9 +35735,8 @@ public enum UpdateInputDeviceOutputError: Swift.Error, Swift.Equatable { extension UpdateInputDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInputDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.connectionState = output.connectionState @@ -36174,9 +36127,8 @@ public enum UpdateInputOutputError: Swift.Error, Swift.Equatable { extension UpdateInputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.input = output.input } else { @@ -36342,9 +36294,8 @@ public enum UpdateInputSecurityGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateInputSecurityGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInputSecurityGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityGroup = output.securityGroup } else { @@ -36488,9 +36439,8 @@ public enum UpdateMultiplexOutputError: Swift.Error, Swift.Equatable { extension UpdateMultiplexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMultiplexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multiplex = output.multiplex } else { @@ -36630,9 +36580,8 @@ public enum UpdateMultiplexProgramOutputError: Swift.Error, Swift.Equatable { extension UpdateMultiplexProgramOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMultiplexProgramOutputResponseBody = try responseDecoder.decode(responseBody: data) self.multiplexProgram = output.multiplexProgram } else { @@ -36776,9 +36725,8 @@ public enum UpdateReservationOutputError: Swift.Error, Swift.Equatable { extension UpdateReservationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReservationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservation = output.reservation } else { diff --git a/Sources/Services/AWSMediaPackage/MediaPackageClient.swift b/Sources/Services/AWSMediaPackage/MediaPackageClient.swift index 8d1e307b06b..273ee3b0770 100644 --- a/Sources/Services/AWSMediaPackage/MediaPackageClient.swift +++ b/Sources/Services/AWSMediaPackage/MediaPackageClient.swift @@ -208,6 +208,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "configureLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHarvestJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOriginEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOriginEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -392,7 +398,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +418,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +431,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +451,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHarvestJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +464,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +484,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOriginEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +497,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +517,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +531,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -541,6 +551,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHarvestJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -554,7 +565,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -574,6 +585,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOriginEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -587,7 +599,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -606,6 +618,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -618,7 +631,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -639,6 +652,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rotateChannelCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -651,7 +665,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +685,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rotateIngestEndpointCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -683,7 +698,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -702,6 +717,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -717,7 +733,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -736,6 +752,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -749,7 +766,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -769,6 +786,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -784,7 +802,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -804,6 +822,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOriginEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -819,7 +838,7 @@ extension MediaPackageClient: MediaPackageClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMediaPackage/models/Models.swift b/Sources/Services/AWSMediaPackage/models/Models.swift index 8a0d100ff0f..76caefacde6 100644 --- a/Sources/Services/AWSMediaPackage/models/Models.swift +++ b/Sources/Services/AWSMediaPackage/models/Models.swift @@ -618,9 +618,8 @@ public enum ConfigureLogsOutputError: Swift.Error, Swift.Equatable { extension ConfigureLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfigureLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -855,9 +854,8 @@ public enum CreateChannelOutputError: Swift.Error, Swift.Equatable { extension CreateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -1108,9 +1106,8 @@ public enum CreateHarvestJobOutputError: Swift.Error, Swift.Equatable { extension CreateHarvestJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHarvestJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.channelId = output.channelId @@ -1491,9 +1488,8 @@ public enum CreateOriginEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateOriginEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOriginEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authorization = output.authorization @@ -2174,9 +2170,8 @@ public enum DescribeChannelOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -2357,9 +2352,8 @@ public enum DescribeHarvestJobOutputError: Swift.Error, Swift.Equatable { extension DescribeHarvestJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHarvestJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.channelId = output.channelId @@ -2541,9 +2535,8 @@ public enum DescribeOriginEndpointOutputError: Swift.Error, Swift.Equatable { extension DescribeOriginEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOriginEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authorization = output.authorization @@ -2874,9 +2867,8 @@ extension MediaPackageClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2890,7 +2882,7 @@ extension ForbiddenException { } /// The client is not authorized to access the requested resource. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3687,9 +3679,8 @@ extension MediaPackageClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3703,7 +3694,7 @@ extension InternalServerErrorException { } /// An unexpected error occurred. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3819,9 +3810,8 @@ public enum ListChannelsOutputError: Swift.Error, Swift.Equatable { extension ListChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channels = output.channels self.nextToken = output.nextToken @@ -3975,9 +3965,8 @@ public enum ListHarvestJobsOutputError: Swift.Error, Swift.Equatable { extension ListHarvestJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHarvestJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.harvestJobs = output.harvestJobs self.nextToken = output.nextToken @@ -4123,9 +4112,8 @@ public enum ListOriginEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListOriginEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOriginEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.originEndpoints = output.originEndpoints @@ -4233,9 +4221,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4415,9 +4402,8 @@ extension MediaPackageClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4431,7 +4417,7 @@ extension NotFoundException { } /// The requested resource does not exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4952,9 +4938,8 @@ public enum RotateChannelCredentialsOutputError: Swift.Error, Swift.Equatable { extension RotateChannelCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RotateChannelCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -5144,9 +5129,8 @@ public enum RotateIngestEndpointCredentialsOutputError: Swift.Error, Swift.Equat extension RotateIngestEndpointCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RotateIngestEndpointCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -5357,9 +5341,8 @@ extension MediaPackageClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5373,7 +5356,7 @@ extension ServiceUnavailableException { } /// An unexpected error occurred. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5731,9 +5714,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5747,7 +5729,7 @@ extension TooManyRequestsException { } /// The client has exceeded their resource or throttling limits. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5783,9 +5765,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension UnprocessableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnprocessableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5799,7 +5780,7 @@ extension UnprocessableEntityException { } /// The parameters sent in the request are not valid. -public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6005,9 +5986,8 @@ public enum UpdateChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -6345,9 +6325,8 @@ public enum UpdateOriginEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateOriginEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateOriginEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authorization = output.authorization diff --git a/Sources/Services/AWSMediaPackageVod/MediaPackageVodClient.swift b/Sources/Services/AWSMediaPackageVod/MediaPackageVodClient.swift index 13e1db35828..aa76da3243c 100644 --- a/Sources/Services/AWSMediaPackageVod/MediaPackageVodClient.swift +++ b/Sources/Services/AWSMediaPackageVod/MediaPackageVodClient.swift @@ -208,6 +208,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "configureLogs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPackagingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPackagingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePackagingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -392,7 +398,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +418,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePackagingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +431,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +451,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAsset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +464,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +484,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackagingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +497,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +517,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackagingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +530,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +550,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -553,7 +564,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -573,6 +584,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackagingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -586,7 +598,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -606,6 +618,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackagingGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -619,7 +632,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -639,6 +652,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -651,7 +665,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +685,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -686,7 +701,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -706,6 +721,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -719,7 +735,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -739,6 +755,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediapackage-vod") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePackagingGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -754,7 +771,7 @@ extension MediaPackageVodClient: MediaPackageVodClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMediaPackageVod/models/Models.swift b/Sources/Services/AWSMediaPackageVod/models/Models.swift index 000728bb5e3..55e949925ce 100644 --- a/Sources/Services/AWSMediaPackageVod/models/Models.swift +++ b/Sources/Services/AWSMediaPackageVod/models/Models.swift @@ -415,9 +415,8 @@ public enum ConfigureLogsOutputError: Swift.Error, Swift.Equatable { extension ConfigureLogsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfigureLogsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authorization = output.authorization @@ -681,9 +680,8 @@ public enum CreateAssetOutputError: Swift.Error, Swift.Equatable { extension CreateAssetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -986,9 +984,8 @@ public enum CreatePackagingConfigurationOutputError: Swift.Error, Swift.Equatabl extension CreatePackagingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePackagingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.cmafPackage = output.cmafPackage @@ -1245,9 +1242,8 @@ public enum CreatePackagingGroupOutputError: Swift.Error, Swift.Equatable { extension CreatePackagingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePackagingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authorization = output.authorization @@ -1878,9 +1874,8 @@ public enum DescribeAssetOutputError: Swift.Error, Swift.Equatable { extension DescribeAssetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -2080,9 +2075,8 @@ public enum DescribePackagingConfigurationOutputError: Swift.Error, Swift.Equata extension DescribePackagingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackagingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.cmafPackage = output.cmafPackage @@ -2273,9 +2267,8 @@ public enum DescribePackagingGroupOutputError: Swift.Error, Swift.Equatable { extension DescribePackagingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackagingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateAssetCount = output.approximateAssetCount self.arn = output.arn @@ -2562,9 +2555,8 @@ extension MediaPackageVodClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2578,7 +2570,7 @@ extension ForbiddenException { } /// The client is not authorized to access the requested resource. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2843,9 +2835,8 @@ extension MediaPackageVodClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2859,7 +2850,7 @@ extension InternalServerErrorException { } /// An unexpected error occurred. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2983,9 +2974,8 @@ public enum ListAssetsOutputError: Swift.Error, Swift.Equatable { extension ListAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assets = output.assets self.nextToken = output.nextToken @@ -3131,9 +3121,8 @@ public enum ListPackagingConfigurationsOutputError: Swift.Error, Swift.Equatable extension ListPackagingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackagingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packagingConfigurations = output.packagingConfigurations @@ -3271,9 +3260,8 @@ public enum ListPackagingGroupsOutputError: Swift.Error, Swift.Equatable { extension ListPackagingGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackagingGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packagingGroups = output.packagingGroups @@ -3382,9 +3370,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3613,9 +3600,8 @@ extension MediaPackageVodClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3629,7 +3615,7 @@ extension NotFoundException { } /// The requested resource does not exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4105,9 +4091,8 @@ extension MediaPackageVodClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4121,7 +4106,7 @@ extension ServiceUnavailableException { } /// An unexpected error occurred. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4425,9 +4410,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4441,7 +4425,7 @@ extension TooManyRequestsException { } /// The client has exceeded their resource or throttling limits. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4477,9 +4461,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension UnprocessableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnprocessableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4493,7 +4476,7 @@ extension UnprocessableEntityException { } /// The parameters sent in the request are not valid. -public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnprocessableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4700,9 +4683,8 @@ public enum UpdatePackagingGroupOutputError: Swift.Error, Swift.Equatable { extension UpdatePackagingGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePackagingGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateAssetCount = output.approximateAssetCount self.arn = output.arn diff --git a/Sources/Services/AWSMediaStore/MediaStoreClient.swift b/Sources/Services/AWSMediaStore/MediaStoreClient.swift index d45cef973fe..c40b4b13271 100644 --- a/Sources/Services/AWSMediaStore/MediaStoreClient.swift +++ b/Sources/Services/AWSMediaStore/MediaStoreClient.swift @@ -208,6 +208,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContainer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContainer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContainerPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCorsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMetricPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContainer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContainerPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCorsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMetricPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContainers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putContainerPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putCorsPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLifecyclePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMetricPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAccessLogging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopAccessLogging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension MediaStoreClient: MediaStoreClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMediaStore/models/Models.swift b/Sources/Services/AWSMediaStore/models/Models.swift index bac42348e2d..f96a811e999 100644 --- a/Sources/Services/AWSMediaStore/models/Models.swift +++ b/Sources/Services/AWSMediaStore/models/Models.swift @@ -89,9 +89,8 @@ extension MediaStoreClientTypes { extension ContainerInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ContainerInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -105,7 +104,7 @@ extension ContainerInUseException { } /// The container that you specified in the request already exists or is being updated. -public struct ContainerInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ContainerInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -173,9 +172,8 @@ extension MediaStoreClientTypes { extension ContainerNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ContainerNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -189,7 +187,7 @@ extension ContainerNotFoundException { } /// The container that you specified in the request does not exist. -public struct ContainerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ContainerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -260,9 +258,8 @@ extension MediaStoreClientTypes { extension CorsPolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CorsPolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -276,7 +273,7 @@ extension CorsPolicyNotFoundException { } /// The CORS policy that you specified in the request does not exist. -public struct CorsPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CorsPolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -535,9 +532,8 @@ public enum CreateContainerOutputError: Swift.Error, Swift.Equatable { extension CreateContainerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContainerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.container = output.container } else { @@ -1076,9 +1072,8 @@ public enum DescribeContainerOutputError: Swift.Error, Swift.Equatable { extension DescribeContainerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContainerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.container = output.container } else { @@ -1193,9 +1188,8 @@ public enum GetContainerPolicyOutputError: Swift.Error, Swift.Equatable { extension GetContainerPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContainerPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -1311,9 +1305,8 @@ public enum GetCorsPolicyOutputError: Swift.Error, Swift.Equatable { extension GetCorsPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCorsPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.corsPolicy = output.corsPolicy } else { @@ -1438,9 +1431,8 @@ public enum GetLifecyclePolicyOutputError: Swift.Error, Swift.Equatable { extension GetLifecyclePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLifecyclePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lifecyclePolicy = output.lifecyclePolicy } else { @@ -1556,9 +1548,8 @@ public enum GetMetricPolicyOutputError: Swift.Error, Swift.Equatable { extension GetMetricPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMetricPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricPolicy = output.metricPolicy } else { @@ -1598,9 +1589,8 @@ extension GetMetricPolicyOutputResponseBody: Swift.Decodable { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1614,7 +1604,7 @@ extension InternalServerError { } /// The service is temporarily unavailable. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1650,9 +1640,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1666,7 +1655,7 @@ extension LimitExceededException { } /// A service limit has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1783,9 +1772,8 @@ public enum ListContainersOutputError: Swift.Error, Swift.Equatable { extension ListContainersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContainersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containers = output.containers self.nextToken = output.nextToken @@ -1918,9 +1906,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2111,9 +2098,8 @@ extension MediaStoreClientTypes { extension PolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2127,7 +2113,7 @@ extension PolicyNotFoundException { } /// The policy that you specified in the request does not exist. -public struct PolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMediaStoreData/MediaStoreDataClient.swift b/Sources/Services/AWSMediaStoreData/MediaStoreDataClient.swift index 405a23ea5f4..be2c5c6b056 100644 --- a/Sources/Services/AWSMediaStoreData/MediaStoreDataClient.swift +++ b/Sources/Services/AWSMediaStoreData/MediaStoreDataClient.swift @@ -208,6 +208,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -285,7 +288,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -305,6 +308,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -318,7 +322,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -338,6 +342,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediastore") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -354,7 +359,7 @@ extension MediaStoreDataClient: MediaStoreDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMediaStoreData/models/Models.swift b/Sources/Services/AWSMediaStoreData/models/Models.swift index 34b108e9fc6..6f8d2620771 100644 --- a/Sources/Services/AWSMediaStoreData/models/Models.swift +++ b/Sources/Services/AWSMediaStoreData/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ContainerNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ContainerNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ContainerNotFoundException { } /// The specified container was not found for the specified account. -public struct ContainerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ContainerNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -341,9 +340,12 @@ extension GetObjectOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.lastModified = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.body = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.body = .data(data) + case .stream(let stream): + self.body = .stream(stream) + case .none: self.body = nil } self.statusCode = httpResponse.statusCode.rawValue @@ -413,9 +415,8 @@ extension GetObjectOutputResponseBody: Swift.Decodable { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -429,7 +430,7 @@ extension InternalServerError { } /// The service is temporarily unavailable. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -662,9 +663,8 @@ public enum ListItemsOutputError: Swift.Error, Swift.Equatable { extension ListItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -722,9 +722,8 @@ extension ListItemsOutputResponseBody: Swift.Decodable { extension ObjectNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ObjectNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -738,7 +737,7 @@ extension ObjectNotFoundException { } /// Could not perform an operation on an object that does not exist. -public struct ObjectNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ObjectNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -786,9 +785,8 @@ public struct PutObjectInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.stream(bodydata) - input.builder.withBody(bodybody) + let bodyBody = ClientRuntime.HttpBody(byteStream: body) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -806,7 +804,7 @@ extension PutObjectInput: Swift.Encodable { public func encode(to encoder: Swift.Encoder) throws { var encodeContainer = encoder.container(keyedBy: CodingKeys.self) if let body = self.body { - try encodeContainer.encode(body.toBytes().getData(), forKey: .body) + try encodeContainer.encode(body, forKey: .body) } } } @@ -915,9 +913,8 @@ public enum PutObjectOutputError: Swift.Error, Swift.Equatable { extension PutObjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutObjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentSHA256 = output.contentSHA256 self.eTag = output.eTag @@ -976,9 +973,8 @@ extension PutObjectOutputResponseBody: Swift.Decodable { extension RequestedRangeNotSatisfiableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestedRangeNotSatisfiableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -992,7 +988,7 @@ extension RequestedRangeNotSatisfiableException { } /// The requested content range is not valid. -public struct RequestedRangeNotSatisfiableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestedRangeNotSatisfiableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMediaTailor/MediaTailorClient.swift b/Sources/Services/AWSMediaTailor/MediaTailorClient.swift index 5a07b4adf5a..e0a967a5920 100644 --- a/Sources/Services/AWSMediaTailor/MediaTailorClient.swift +++ b/Sources/Services/AWSMediaTailor/MediaTailorClient.swift @@ -208,6 +208,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "configureLogsForChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "configureLogsForPlaybackConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLiveSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPrefetchSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProgram") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSourceLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVodSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +509,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +529,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChannelPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -532,7 +542,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -552,6 +562,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLiveSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +575,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +595,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePlaybackConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -596,7 +608,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +628,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePrefetchSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +641,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +661,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProgram") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -660,7 +674,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +694,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSourceLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +707,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +727,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVodSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -724,7 +740,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -744,6 +760,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -756,7 +773,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -776,6 +793,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLiveSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -788,7 +806,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -808,6 +826,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProgram") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -820,7 +839,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -840,6 +859,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSourceLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +872,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +892,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVodSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +905,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +925,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannelPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +938,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +958,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannelSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -949,7 +972,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -969,6 +992,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPlaybackConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -981,7 +1005,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1001,6 +1025,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPrefetchSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1013,7 +1038,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1033,6 +1058,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAlerts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1046,7 +1072,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1066,6 +1092,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1079,7 +1106,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1099,6 +1126,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLiveSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1112,7 +1140,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1132,6 +1160,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPlaybackConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1145,7 +1174,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1165,6 +1194,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPrefetchSchedules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1180,7 +1210,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1200,6 +1230,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSourceLocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1213,7 +1244,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1233,6 +1264,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1245,7 +1277,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1265,6 +1297,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVodSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1278,7 +1311,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1298,6 +1331,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putChannelPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1313,7 +1347,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1333,6 +1367,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPlaybackConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1348,7 +1383,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1368,6 +1403,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1380,7 +1416,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1400,6 +1436,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1449,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1469,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1447,7 +1485,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1467,6 +1505,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1480,7 +1519,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1500,6 +1539,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1515,7 +1555,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1535,6 +1575,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLiveSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1550,7 +1591,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1570,6 +1611,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProgram") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1585,7 +1627,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1605,6 +1647,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSourceLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1620,7 +1663,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1640,6 +1683,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mediatailor") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVodSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1655,7 +1699,7 @@ extension MediaTailorClient: MediaTailorClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMediaTailor/models/Models.swift b/Sources/Services/AWSMediaTailor/models/Models.swift index 14f5b0b0175..15e257e81d2 100644 --- a/Sources/Services/AWSMediaTailor/models/Models.swift +++ b/Sources/Services/AWSMediaTailor/models/Models.swift @@ -375,9 +375,8 @@ extension MediaTailorClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -391,7 +390,7 @@ extension BadRequestException { } /// A request contains unexpected data. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -844,9 +843,8 @@ public enum ConfigureLogsForChannelOutputError: Swift.Error, Swift.Equatable { extension ConfigureLogsForChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfigureLogsForChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelName = output.channelName self.logTypes = output.logTypes @@ -986,9 +984,8 @@ public enum ConfigureLogsForPlaybackConfigurationOutputError: Swift.Error, Swift extension ConfigureLogsForPlaybackConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfigureLogsForPlaybackConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.percentEnabled = output.percentEnabled self.playbackConfigurationName = output.playbackConfigurationName @@ -1187,9 +1184,8 @@ public enum CreateChannelOutputError: Swift.Error, Swift.Equatable { extension CreateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.channelName = output.channelName @@ -1456,9 +1452,8 @@ public enum CreateLiveSourceOutputError: Swift.Error, Swift.Equatable { extension CreateLiveSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLiveSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -1684,9 +1679,8 @@ public enum CreatePrefetchScheduleOutputError: Swift.Error, Swift.Equatable { extension CreatePrefetchScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePrefetchScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.consumption = output.consumption @@ -1920,9 +1914,8 @@ public enum CreateProgramOutputError: Swift.Error, Swift.Equatable { extension CreateProgramOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProgramOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adBreaks = output.adBreaks self.arn = output.arn @@ -2218,9 +2211,8 @@ public enum CreateSourceLocationOutputError: Swift.Error, Swift.Equatable { extension CreateSourceLocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSourceLocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessConfiguration = output.accessConfiguration self.arn = output.arn @@ -2477,9 +2469,8 @@ public enum CreateVodSourceOutputError: Swift.Error, Swift.Equatable { extension CreateVodSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVodSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -3367,9 +3358,8 @@ public enum DescribeChannelOutputError: Swift.Error, Swift.Equatable { extension DescribeChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.channelName = output.channelName @@ -3586,9 +3576,8 @@ public enum DescribeLiveSourceOutputError: Swift.Error, Swift.Equatable { extension DescribeLiveSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLiveSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -3764,9 +3753,8 @@ public enum DescribeProgramOutputError: Swift.Error, Swift.Equatable { extension DescribeProgramOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProgramOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adBreaks = output.adBreaks self.arn = output.arn @@ -3965,9 +3953,8 @@ public enum DescribeSourceLocationOutputError: Swift.Error, Swift.Equatable { extension DescribeSourceLocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSourceLocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessConfiguration = output.accessConfiguration self.arn = output.arn @@ -4163,9 +4150,8 @@ public enum DescribeVodSourceOutputError: Swift.Error, Swift.Equatable { extension DescribeVodSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVodSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -4333,9 +4319,8 @@ public enum GetChannelPolicyOutputError: Swift.Error, Swift.Equatable { extension GetChannelPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChannelPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -4458,9 +4443,8 @@ public enum GetChannelScheduleOutputError: Swift.Error, Swift.Equatable { extension GetChannelScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChannelScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -4569,9 +4553,8 @@ public enum GetPlaybackConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetPlaybackConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPlaybackConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adDecisionServerUrl = output.adDecisionServerUrl self.availSuppression = output.availSuppression @@ -4874,9 +4857,8 @@ public enum GetPrefetchScheduleOutputError: Swift.Error, Swift.Equatable { extension GetPrefetchScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPrefetchScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.consumption = output.consumption @@ -5208,9 +5190,8 @@ public enum ListAlertsOutputError: Swift.Error, Swift.Equatable { extension ListAlertsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAlertsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5336,9 +5317,8 @@ public enum ListChannelsOutputError: Swift.Error, Swift.Equatable { extension ListChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5472,9 +5452,8 @@ public enum ListLiveSourcesOutputError: Swift.Error, Swift.Equatable { extension ListLiveSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLiveSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5600,9 +5579,8 @@ public enum ListPlaybackConfigurationsOutputError: Swift.Error, Swift.Equatable extension ListPlaybackConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPlaybackConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5759,9 +5737,8 @@ public enum ListPrefetchSchedulesOutputError: Swift.Error, Swift.Equatable { extension ListPrefetchSchedulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPrefetchSchedulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5887,9 +5864,8 @@ public enum ListSourceLocationsOutputError: Swift.Error, Swift.Equatable { extension ListSourceLocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSourceLocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6000,9 +5976,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6126,9 +6101,8 @@ public enum ListVodSourcesOutputError: Swift.Error, Swift.Equatable { extension ListVodSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVodSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7477,9 +7451,8 @@ public enum PutPlaybackConfigurationOutputError: Swift.Error, Swift.Equatable { extension PutPlaybackConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutPlaybackConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adDecisionServerUrl = output.adDecisionServerUrl self.availSuppression = output.availSuppression @@ -9236,9 +9209,8 @@ public enum UpdateChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.channelName = output.channelName @@ -9481,9 +9453,8 @@ public enum UpdateLiveSourceOutputError: Swift.Error, Swift.Equatable { extension UpdateLiveSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLiveSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -9708,9 +9679,8 @@ public enum UpdateProgramOutputError: Swift.Error, Swift.Equatable { extension UpdateProgramOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProgramOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adBreaks = output.adBreaks self.arn = output.arn @@ -10072,9 +10042,8 @@ public enum UpdateSourceLocationOutputError: Swift.Error, Swift.Equatable { extension UpdateSourceLocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSourceLocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessConfiguration = output.accessConfiguration self.arn = output.arn @@ -10307,9 +10276,8 @@ public enum UpdateVodSourceOutputError: Swift.Error, Swift.Equatable { extension UpdateVodSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVodSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime diff --git a/Sources/Services/AWSMemoryDB/MemoryDBClient.swift b/Sources/Services/AWSMemoryDB/MemoryDBClient.swift index 2473cde5d34..9cce5ddbfbf 100644 --- a/Sources/Services/AWSMemoryDB/MemoryDBClient.swift +++ b/Sources/Services/AWSMemoryDB/MemoryDBClient.swift @@ -208,6 +208,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copySnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeACLs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEngineVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedNodesOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServiceUpdates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSubnetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "failoverShard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAllowedNodeTypeUpdates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseReservedNodesOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "memorydb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension MemoryDBClient: MemoryDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMemoryDB/models/Models.swift b/Sources/Services/AWSMemoryDB/models/Models.swift index 47a4579771f..003f00155e0 100644 --- a/Sources/Services/AWSMemoryDB/models/Models.swift +++ b/Sources/Services/AWSMemoryDB/models/Models.swift @@ -123,9 +123,8 @@ extension MemoryDBClientTypes { extension ACLAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ACLAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -139,7 +138,7 @@ extension ACLAlreadyExistsFault { } /// -public struct ACLAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ACLAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -175,9 +174,8 @@ extension ACLAlreadyExistsFaultBody: Swift.Decodable { extension ACLNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ACLNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -191,7 +189,7 @@ extension ACLNotFoundFault { } /// -public struct ACLNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ACLNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -296,9 +294,8 @@ extension MemoryDBClientTypes { extension ACLQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ACLQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -312,7 +309,7 @@ extension ACLQuotaExceededFault { } /// -public struct ACLQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ACLQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -383,9 +380,8 @@ extension MemoryDBClientTypes { extension APICallRateForCustomerExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: APICallRateForCustomerExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -399,7 +395,7 @@ extension APICallRateForCustomerExceededFault { } /// -public struct APICallRateForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct APICallRateForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -732,9 +728,8 @@ public enum BatchUpdateClusterOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.processedClusters = output.processedClusters self.unprocessedClusters = output.unprocessedClusters @@ -1110,9 +1105,8 @@ extension MemoryDBClientTypes { extension ClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1126,7 +1120,7 @@ extension ClusterAlreadyExistsFault { } /// -public struct ClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1339,9 +1333,8 @@ extension MemoryDBClientTypes { extension ClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1355,7 +1348,7 @@ extension ClusterNotFoundFault { } /// -public struct ClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1458,9 +1451,8 @@ extension MemoryDBClientTypes { extension ClusterQuotaForCustomerExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterQuotaForCustomerExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1474,7 +1466,7 @@ extension ClusterQuotaForCustomerExceededFault { } /// -public struct ClusterQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1655,9 +1647,8 @@ public enum CopySnapshotOutputError: Swift.Error, Swift.Equatable { extension CopySnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopySnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -1826,9 +1817,8 @@ public enum CreateACLOutputError: Swift.Error, Swift.Equatable { extension CreateACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acl = output.acl } else { @@ -2274,9 +2264,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -2446,9 +2435,8 @@ public enum CreateParameterGroupOutputError: Swift.Error, Swift.Equatable { extension CreateParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterGroup = output.parameterGroup } else { @@ -2620,9 +2608,8 @@ public enum CreateSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -2804,9 +2791,8 @@ public enum CreateSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnetGroup = output.subnetGroup } else { @@ -2975,9 +2961,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -3048,9 +3033,8 @@ extension MemoryDBClientTypes { extension DefaultUserRequired { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DefaultUserRequiredBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3064,7 +3048,7 @@ extension DefaultUserRequired { } /// -public struct DefaultUserRequired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DefaultUserRequired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3174,9 +3158,8 @@ public enum DeleteACLOutputError: Swift.Error, Swift.Equatable { extension DeleteACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acl = output.acl } else { @@ -3307,9 +3290,8 @@ public enum DeleteClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -3426,9 +3408,8 @@ public enum DeleteParameterGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterGroup = output.parameterGroup } else { @@ -3545,9 +3526,8 @@ public enum DeleteSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -3660,9 +3640,8 @@ public enum DeleteSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnetGroup = output.subnetGroup } else { @@ -3775,9 +3754,8 @@ public enum DeleteUserOutputError: Swift.Error, Swift.Equatable { extension DeleteUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -3911,9 +3889,8 @@ public enum DescribeACLsOutputError: Swift.Error, Swift.Equatable { extension DescribeACLsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeACLsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acLs = output.acLs self.nextToken = output.nextToken @@ -4082,9 +4059,8 @@ public enum DescribeClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.nextToken = output.nextToken @@ -4263,9 +4239,8 @@ public enum DescribeEngineVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeEngineVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEngineVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineVersions = output.engineVersions self.nextToken = output.nextToken @@ -4468,9 +4443,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -4627,9 +4601,8 @@ public enum DescribeParameterGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parameterGroups = output.parameterGroups @@ -4787,9 +4760,8 @@ public enum DescribeParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parameters = output.parameters @@ -5101,9 +5073,8 @@ public enum DescribeReservedNodesOfferingsOutputError: Swift.Error, Swift.Equata extension DescribeReservedNodesOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedNodesOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservedNodesOfferings = output.reservedNodesOfferings @@ -5189,9 +5160,8 @@ public enum DescribeReservedNodesOutputError: Swift.Error, Swift.Equatable { extension DescribeReservedNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservedNodes = output.reservedNodes @@ -5392,9 +5362,8 @@ public enum DescribeServiceUpdatesOutputError: Swift.Error, Swift.Equatable { extension DescribeServiceUpdatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServiceUpdatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceUpdates = output.serviceUpdates @@ -5587,9 +5556,8 @@ public enum DescribeSnapshotsOutputError: Swift.Error, Swift.Equatable { extension DescribeSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshots = output.snapshots @@ -5742,9 +5710,8 @@ public enum DescribeSubnetGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeSubnetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSubnetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subnetGroups = output.subnetGroups @@ -5921,9 +5888,8 @@ public enum DescribeUsersOutputError: Swift.Error, Swift.Equatable { extension DescribeUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.users = output.users @@ -5981,9 +5947,8 @@ extension DescribeUsersOutputResponseBody: Swift.Decodable { extension DuplicateUserNameFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateUserNameFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5997,7 +5962,7 @@ extension DuplicateUserNameFault { } /// -public struct DuplicateUserNameFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateUserNameFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6295,9 +6260,8 @@ public enum FailoverShardOutputError: Swift.Error, Swift.Equatable { extension FailoverShardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailoverShardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -6424,9 +6388,8 @@ extension MemoryDBClientTypes { extension InsufficientClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientClusterCapacityFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6440,7 +6403,7 @@ extension InsufficientClusterCapacityFault { } /// -public struct InsufficientClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6476,9 +6439,8 @@ extension InsufficientClusterCapacityFaultBody: Swift.Decodable { extension InvalidACLStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidACLStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6492,7 +6454,7 @@ extension InvalidACLStateFault { } /// -public struct InvalidACLStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidACLStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6528,9 +6490,8 @@ extension InvalidACLStateFaultBody: Swift.Decodable { extension InvalidARNFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidARNFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6544,7 +6505,7 @@ extension InvalidARNFault { } /// -public struct InvalidARNFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidARNFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6580,9 +6541,8 @@ extension InvalidARNFaultBody: Swift.Decodable { extension InvalidClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClusterStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6596,7 +6556,7 @@ extension InvalidClusterStateFault { } /// -public struct InvalidClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6632,9 +6592,8 @@ extension InvalidClusterStateFaultBody: Swift.Decodable { extension InvalidCredentialsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCredentialsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6648,7 +6607,7 @@ extension InvalidCredentialsException { } /// -public struct InvalidCredentialsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCredentialsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6684,9 +6643,8 @@ extension InvalidCredentialsExceptionBody: Swift.Decodable { extension InvalidKMSKeyFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidKMSKeyFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6700,7 +6658,7 @@ extension InvalidKMSKeyFault { } /// -public struct InvalidKMSKeyFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKMSKeyFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6736,9 +6694,8 @@ extension InvalidKMSKeyFaultBody: Swift.Decodable { extension InvalidNodeStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNodeStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6752,7 +6709,7 @@ extension InvalidNodeStateFault { } /// -public struct InvalidNodeStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNodeStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6788,9 +6745,8 @@ extension InvalidNodeStateFaultBody: Swift.Decodable { extension InvalidParameterCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterCombinationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6804,7 +6760,7 @@ extension InvalidParameterCombinationException { } /// -public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6840,9 +6796,8 @@ extension InvalidParameterCombinationExceptionBody: Swift.Decodable { extension InvalidParameterGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterGroupStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6856,7 +6811,7 @@ extension InvalidParameterGroupStateFault { } /// -public struct InvalidParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6892,9 +6847,8 @@ extension InvalidParameterGroupStateFaultBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6908,7 +6862,7 @@ extension InvalidParameterValueException { } /// -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6944,9 +6898,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSnapshotStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6960,7 +6913,7 @@ extension InvalidSnapshotStateFault { } /// -public struct InvalidSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6996,9 +6949,8 @@ extension InvalidSnapshotStateFaultBody: Swift.Decodable { extension InvalidSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSubnetBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7012,7 +6964,7 @@ extension InvalidSubnet { } /// -public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7048,9 +7000,8 @@ extension InvalidSubnetBody: Swift.Decodable { extension InvalidUserStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidUserStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7064,7 +7015,7 @@ extension InvalidUserStateFault { } /// -public struct InvalidUserStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUserStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7100,9 +7051,8 @@ extension InvalidUserStateFaultBody: Swift.Decodable { extension InvalidVPCNetworkStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidVPCNetworkStateFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7116,7 +7066,7 @@ extension InvalidVPCNetworkStateFault { } /// -public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7228,9 +7178,8 @@ public enum ListAllowedNodeTypeUpdatesOutputError: Swift.Error, Swift.Equatable extension ListAllowedNodeTypeUpdatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAllowedNodeTypeUpdatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scaleDownNodeTypes = output.scaleDownNodeTypes self.scaleUpNodeTypes = output.scaleUpNodeTypes @@ -7383,9 +7332,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -7433,9 +7381,8 @@ extension ListTagsOutputResponseBody: Swift.Decodable { extension NoOperationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoOperationFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7449,7 +7396,7 @@ extension NoOperationFault { } /// -public struct NoOperationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoOperationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7560,9 +7507,8 @@ extension MemoryDBClientTypes { extension NodeQuotaForClusterExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NodeQuotaForClusterExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7576,7 +7522,7 @@ extension NodeQuotaForClusterExceededFault { } /// -public struct NodeQuotaForClusterExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeQuotaForClusterExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7612,9 +7558,8 @@ extension NodeQuotaForClusterExceededFaultBody: Swift.Decodable { extension NodeQuotaForCustomerExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NodeQuotaForCustomerExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7628,7 +7573,7 @@ extension NodeQuotaForCustomerExceededFault { } /// -public struct NodeQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NodeQuotaForCustomerExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7814,9 +7759,8 @@ extension MemoryDBClientTypes { extension ParameterGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterGroupAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7830,7 +7774,7 @@ extension ParameterGroupAlreadyExistsFault { } /// -public struct ParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7866,9 +7810,8 @@ extension ParameterGroupAlreadyExistsFaultBody: Swift.Decodable { extension ParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterGroupNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7882,7 +7825,7 @@ extension ParameterGroupNotFoundFault { } /// -public struct ParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7918,9 +7861,8 @@ extension ParameterGroupNotFoundFaultBody: Swift.Decodable { extension ParameterGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterGroupQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7934,7 +7876,7 @@ extension ParameterGroupQuotaExceededFault { } /// -public struct ParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8190,9 +8132,8 @@ public enum PurchaseReservedNodesOfferingOutputError: Swift.Error, Swift.Equatab extension PurchaseReservedNodesOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseReservedNodesOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedNode = output.reservedNode } else { @@ -8458,9 +8399,8 @@ extension MemoryDBClientTypes { extension ReservedNodeAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReservedNodeAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8474,7 +8414,7 @@ extension ReservedNodeAlreadyExistsFault { } /// You already have a reservation with the given identifier. -public struct ReservedNodeAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8510,9 +8450,8 @@ extension ReservedNodeAlreadyExistsFaultBody: Swift.Decodable { extension ReservedNodeNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReservedNodeNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8526,7 +8465,7 @@ extension ReservedNodeNotFoundFault { } /// The requested node does not exist. -public struct ReservedNodeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8562,9 +8501,8 @@ extension ReservedNodeNotFoundFaultBody: Swift.Decodable { extension ReservedNodeQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReservedNodeQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8578,7 +8516,7 @@ extension ReservedNodeQuotaExceededFault { } /// The request cannot be processed because it would exceed the user's node quota. -public struct ReservedNodeQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8711,9 +8649,8 @@ extension MemoryDBClientTypes { extension ReservedNodesOfferingNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReservedNodesOfferingNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8727,7 +8664,7 @@ extension ReservedNodesOfferingNotFoundFault { } /// The requested node offering does not exist. -public struct ReservedNodesOfferingNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodesOfferingNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8877,9 +8814,8 @@ public enum ResetParameterGroupOutputError: Swift.Error, Swift.Equatable { extension ResetParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterGroup = output.parameterGroup } else { @@ -8998,9 +8934,8 @@ extension MemoryDBClientTypes { extension ServiceLinkedRoleNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLinkedRoleNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9014,7 +8949,7 @@ extension ServiceLinkedRoleNotFoundFault { } /// -public struct ServiceLinkedRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLinkedRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9155,9 +9090,8 @@ extension MemoryDBClientTypes { extension ServiceUpdateNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUpdateNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9171,7 +9105,7 @@ extension ServiceUpdateNotFoundFault { } /// -public struct ServiceUpdateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUpdateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9541,9 +9475,8 @@ extension MemoryDBClientTypes { extension ShardNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ShardNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9557,7 +9490,7 @@ extension ShardNotFoundFault { } /// -public struct ShardNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ShardNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9593,9 +9526,8 @@ extension ShardNotFoundFaultBody: Swift.Decodable { extension ShardsPerClusterQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ShardsPerClusterQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9609,7 +9541,7 @@ extension ShardsPerClusterQuotaExceededFault { } /// -public struct ShardsPerClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ShardsPerClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9775,9 +9707,8 @@ extension MemoryDBClientTypes { extension SnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SnapshotAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9791,7 +9722,7 @@ extension SnapshotAlreadyExistsFault { } /// -public struct SnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9827,9 +9758,8 @@ extension SnapshotAlreadyExistsFaultBody: Swift.Decodable { extension SnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SnapshotNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9843,7 +9773,7 @@ extension SnapshotNotFoundFault { } /// -public struct SnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9879,9 +9809,8 @@ extension SnapshotNotFoundFaultBody: Swift.Decodable { extension SnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SnapshotQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9895,7 +9824,7 @@ extension SnapshotQuotaExceededFault { } /// -public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10114,9 +10043,8 @@ extension MemoryDBClientTypes { extension SubnetGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetGroupAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10130,7 +10058,7 @@ extension SubnetGroupAlreadyExistsFault { } /// -public struct SubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10166,9 +10094,8 @@ extension SubnetGroupAlreadyExistsFaultBody: Swift.Decodable { extension SubnetGroupInUseFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetGroupInUseFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10182,7 +10109,7 @@ extension SubnetGroupInUseFault { } /// -public struct SubnetGroupInUseFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetGroupInUseFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10218,9 +10145,8 @@ extension SubnetGroupInUseFaultBody: Swift.Decodable { extension SubnetGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetGroupNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10234,7 +10160,7 @@ extension SubnetGroupNotFoundFault { } /// -public struct SubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10270,9 +10196,8 @@ extension SubnetGroupNotFoundFaultBody: Swift.Decodable { extension SubnetGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetGroupQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10286,7 +10211,7 @@ extension SubnetGroupQuotaExceededFault { } /// -public struct SubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10322,9 +10247,8 @@ extension SubnetGroupQuotaExceededFaultBody: Swift.Decodable { extension SubnetInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetInUseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10338,7 +10262,7 @@ extension SubnetInUse { } /// -public struct SubnetInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10374,9 +10298,8 @@ extension SubnetInUseBody: Swift.Decodable { extension SubnetNotAllowedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetNotAllowedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10390,7 +10313,7 @@ extension SubnetNotAllowedFault { } /// -public struct SubnetNotAllowedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetNotAllowedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10426,9 +10349,8 @@ extension SubnetNotAllowedFaultBody: Swift.Decodable { extension SubnetQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubnetQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10442,7 +10364,7 @@ extension SubnetQuotaExceededFault { } /// -public struct SubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10523,9 +10445,8 @@ extension MemoryDBClientTypes { extension TagNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10539,7 +10460,7 @@ extension TagNotFoundFault { } /// -public struct TagNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10575,9 +10496,8 @@ extension TagNotFoundFaultBody: Swift.Decodable { extension TagQuotaPerResourceExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagQuotaPerResourceExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10591,7 +10511,7 @@ extension TagQuotaPerResourceExceeded { } /// -public struct TagQuotaPerResourceExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagQuotaPerResourceExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10740,9 +10660,8 @@ public enum TagResourceOutputError: Swift.Error, Swift.Equatable { extension TagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -10790,9 +10709,8 @@ extension TagResourceOutputResponseBody: Swift.Decodable { extension TestFailoverNotAvailableFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestFailoverNotAvailableFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10806,7 +10724,7 @@ extension TestFailoverNotAvailableFault { } /// -public struct TestFailoverNotAvailableFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TestFailoverNotAvailableFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11010,9 +10928,8 @@ public enum UntagResourceOutputError: Swift.Error, Swift.Equatable { extension UntagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UntagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -11190,9 +11107,8 @@ public enum UpdateACLOutputError: Swift.Error, Swift.Equatable { extension UpdateACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acl = output.acl } else { @@ -11516,9 +11432,8 @@ public enum UpdateClusterOutputError: Swift.Error, Swift.Equatable { extension UpdateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -11660,9 +11575,8 @@ public enum UpdateParameterGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterGroup = output.parameterGroup } else { @@ -11817,9 +11731,8 @@ public enum UpdateSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subnetGroup = output.subnetGroup } else { @@ -11958,9 +11871,8 @@ public enum UpdateUserOutputError: Swift.Error, Swift.Equatable { extension UpdateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -12106,9 +12018,8 @@ extension MemoryDBClientTypes { extension UserAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12122,7 +12033,7 @@ extension UserAlreadyExistsFault { } /// -public struct UserAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12158,9 +12069,8 @@ extension UserAlreadyExistsFaultBody: Swift.Decodable { extension UserNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserNotFoundFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12174,7 +12084,7 @@ extension UserNotFoundFault { } /// -public struct UserNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12210,9 +12120,8 @@ extension UserNotFoundFaultBody: Swift.Decodable { extension UserQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UserQuotaExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12226,7 +12135,7 @@ extension UserQuotaExceededFault { } /// -public struct UserQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMgn/MgnClient.swift b/Sources/Services/AWSMgn/MgnClient.swift index 97eb5a0ecbd..f2e9b58daaf 100644 --- a/Sources/Services/AWSMgn/MgnClient.swift +++ b/Sources/Services/AWSMgn/MgnClient.swift @@ -208,6 +208,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "archiveApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "archiveWave") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateSourceServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "changeServerLifeCycleState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLaunchConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWave") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLaunchConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -643,7 +656,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -663,6 +676,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSourceServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +692,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +712,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVcenterClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +728,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +748,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWave") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +764,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +784,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobLogItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +800,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +820,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLaunchConfigurationTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +872,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +892,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReplicationConfigurationTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +908,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +928,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSourceServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -923,7 +944,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +964,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVcenterClients") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -956,7 +978,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -976,6 +998,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -991,7 +1014,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1011,6 +1034,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateSourceServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1026,7 +1050,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1046,6 +1070,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disconnectFromService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1061,7 +1086,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1081,6 +1106,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "finalizeCutover") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1122,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1142,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1131,7 +1158,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1151,6 +1178,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1166,7 +1194,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1186,6 +1214,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initializeService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1198,7 +1227,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1218,6 +1247,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1233,7 +1263,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1253,6 +1283,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExportErrors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1299,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1319,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1303,7 +1335,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1323,6 +1355,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImportErrors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1338,7 +1371,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1358,6 +1391,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1373,7 +1407,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1393,6 +1427,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSourceServerActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1408,7 +1443,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1428,6 +1463,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1440,7 +1476,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1460,6 +1496,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplateActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1475,7 +1512,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1495,6 +1532,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWaves") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1510,7 +1548,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1530,6 +1568,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "markAsArchived") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1545,7 +1584,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1565,6 +1604,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSourceServerAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1580,7 +1620,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1600,6 +1640,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putTemplateAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1615,7 +1656,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1635,6 +1676,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeSourceServerAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1650,7 +1692,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1670,6 +1712,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTemplateAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1685,7 +1728,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1705,6 +1748,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retryDataReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1720,7 +1764,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1740,6 +1784,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCutover") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1755,7 +1800,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1775,6 +1820,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startExport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1790,7 +1836,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1810,6 +1856,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImport") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1833,7 +1880,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1853,6 +1900,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1868,7 +1916,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1888,6 +1936,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1903,7 +1952,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1923,6 +1972,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1938,7 +1988,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1958,6 +2008,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateTargetInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1973,7 +2024,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1993,6 +2044,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unarchiveApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2008,7 +2060,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2028,6 +2080,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unarchiveWave") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2043,7 +2096,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2063,6 +2116,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2076,7 +2130,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2096,6 +2150,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2111,7 +2166,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2131,6 +2186,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2146,7 +2202,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2166,6 +2222,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLaunchConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2181,7 +2238,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2201,6 +2258,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2216,7 +2274,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2236,6 +2294,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReplicationConfigurationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2251,7 +2310,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2271,6 +2330,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSourceServerReplicationType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2286,7 +2346,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2306,6 +2366,7 @@ extension MgnClient: MgnClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgn") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWave") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2321,7 +2382,7 @@ extension MgnClient: MgnClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMgn/models/Models.swift b/Sources/Services/AWSMgn/models/Models.swift index 81cf6198d54..73a7f19adf9 100644 --- a/Sources/Services/AWSMgn/models/Models.swift +++ b/Sources/Services/AWSMgn/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// Operating denied due to a file permission or access check error. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -478,9 +477,8 @@ extension ArchiveApplicationOutputResponse: Swift.CustomDebugStringConvertible { extension ArchiveApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ArchiveApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationAggregatedStatus = output.applicationAggregatedStatus self.applicationID = output.applicationID @@ -699,9 +697,8 @@ extension ArchiveWaveOutputResponse: Swift.CustomDebugStringConvertible { extension ArchiveWaveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ArchiveWaveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -1222,9 +1219,8 @@ extension ChangeServerLifeCycleStateOutputResponse: Swift.CustomDebugStringConve extension ChangeServerLifeCycleStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChangeServerLifeCycleStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationID = output.applicationID self.arn = output.arn @@ -1463,9 +1459,8 @@ extension MgnClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.errors = output.errors @@ -1487,7 +1482,7 @@ extension ConflictException { } /// The request could not be completed due to a conflict with the current state of the target resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1683,9 +1678,8 @@ extension CreateApplicationOutputResponse: Swift.CustomDebugStringConvertible { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationAggregatedStatus = output.applicationAggregatedStatus self.applicationID = output.applicationID @@ -2074,9 +2068,8 @@ extension CreateLaunchConfigurationTemplateOutputResponse: Swift.CustomDebugStri extension CreateLaunchConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLaunchConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associatePublicIpAddress = output.associatePublicIpAddress @@ -2559,9 +2552,8 @@ extension CreateReplicationConfigurationTemplateOutputResponse: Swift.CustomDebu extension CreateReplicationConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associateDefaultSecurityGroup = output.associateDefaultSecurityGroup @@ -2888,9 +2880,8 @@ extension CreateWaveOutputResponse: Swift.CustomDebugStringConvertible { extension CreateWaveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWaveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -4277,9 +4268,8 @@ public enum DescribeJobLogItemsOutputError: Swift.Error, Swift.Equatable { extension DescribeJobLogItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobLogItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -4432,9 +4422,8 @@ public enum DescribeJobsOutputError: Swift.Error, Swift.Equatable { extension DescribeJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -4668,9 +4657,8 @@ public enum DescribeLaunchConfigurationTemplatesOutputError: Swift.Error, Swift. extension DescribeLaunchConfigurationTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLaunchConfigurationTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -4837,9 +4825,8 @@ public enum DescribeReplicationConfigurationTemplatesOutputError: Swift.Error, S extension DescribeReplicationConfigurationTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReplicationConfigurationTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -4992,9 +4979,8 @@ public enum DescribeSourceServersOutputError: Swift.Error, Swift.Equatable { extension DescribeSourceServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSourceServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5249,9 +5235,8 @@ public enum DescribeVcenterClientsOutputError: Swift.Error, Swift.Equatable { extension DescribeVcenterClientsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVcenterClientsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -5606,9 +5591,8 @@ extension DisconnectFromServiceOutputResponse: Swift.CustomDebugStringConvertibl extension DisconnectFromServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisconnectFromServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationID = output.applicationID self.arn = output.arn @@ -6255,9 +6239,8 @@ extension FinalizeCutoverOutputResponse: Swift.CustomDebugStringConvertible { extension FinalizeCutoverOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FinalizeCutoverOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationID = output.applicationID self.arn = output.arn @@ -6535,9 +6518,8 @@ public enum GetLaunchConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetLaunchConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLaunchConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bootMode = output.bootMode self.copyPrivateIp = output.copyPrivateIp @@ -6763,9 +6745,8 @@ extension GetReplicationConfigurationOutputResponse: Swift.CustomDebugStringConv extension GetReplicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReplicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associateDefaultSecurityGroup = output.associateDefaultSecurityGroup self.bandwidthThrottling = output.bandwidthThrottling @@ -7638,9 +7619,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7654,7 +7634,7 @@ extension InternalServerException { } /// The server encountered an unexpected condition that prevented it from fulfilling the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9190,9 +9170,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -9426,9 +9405,8 @@ public enum ListExportErrorsOutputError: Swift.Error, Swift.Equatable { extension ListExportErrorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExportErrorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -9581,9 +9559,8 @@ public enum ListExportsOutputError: Swift.Error, Swift.Equatable { extension ListExportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -9786,9 +9763,8 @@ public enum ListImportErrorsOutputError: Swift.Error, Swift.Equatable { extension ListImportErrorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportErrorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -9943,9 +9919,8 @@ public enum ListImportsOutputError: Swift.Error, Swift.Equatable { extension ListImportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10159,9 +10134,8 @@ public enum ListSourceServerActionsOutputError: Swift.Error, Swift.Equatable { extension ListSourceServerActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSourceServerActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10285,9 +10259,8 @@ extension ListTagsForResourceOutputResponse: Swift.CustomDebugStringConvertible extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10443,9 +10416,8 @@ public enum ListTemplateActionsOutputError: Swift.Error, Swift.Equatable { extension ListTemplateActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplateActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10596,9 +10568,8 @@ public enum ListWavesOutputError: Swift.Error, Swift.Equatable { extension ListWavesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWavesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10792,9 +10763,8 @@ extension MarkAsArchivedOutputResponse: Swift.CustomDebugStringConvertible { extension MarkAsArchivedOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MarkAsArchivedOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationID = output.applicationID self.arn = output.arn @@ -11602,9 +11572,8 @@ public enum PutSourceServerActionOutputError: Swift.Error, Swift.Equatable { extension PutSourceServerActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSourceServerActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionID = output.actionID self.actionName = output.actionName @@ -12048,9 +12017,8 @@ public enum PutTemplateActionOutputError: Swift.Error, Swift.Equatable { extension PutTemplateActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutTemplateActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionID = output.actionID self.actionName = output.actionName @@ -12900,9 +12868,8 @@ extension MgnClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -12922,7 +12889,7 @@ extension ResourceNotFoundException { } /// Resource not found exception. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13060,9 +13027,8 @@ extension RetryDataReplicationOutputResponse: Swift.CustomDebugStringConvertible extension RetryDataReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryDataReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationID = output.applicationID self.arn = output.arn @@ -13287,9 +13253,8 @@ extension MgnClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -13315,7 +13280,7 @@ extension ServiceQuotaExceededException { } /// The request could not be completed because its exceeded the service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14316,9 +14281,8 @@ public enum StartCutoverOutputError: Swift.Error, Swift.Equatable { extension StartCutoverOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartCutoverOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -14457,9 +14421,8 @@ public enum StartExportOutputError: Swift.Error, Swift.Equatable { extension StartExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportTask = output.exportTask } else { @@ -14590,9 +14553,8 @@ public enum StartImportOutputError: Swift.Error, Swift.Equatable { extension StartImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importTask = output.importTask } else { @@ -14715,9 +14677,8 @@ extension StartReplicationOutputResponse: Swift.CustomDebugStringConvertible { extension StartReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationID = output.applicationID self.arn = output.arn @@ -15000,9 +14961,8 @@ public enum StartTestOutputError: Swift.Error, Swift.Equatable { extension StartTestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -15536,9 +15496,8 @@ public enum TerminateTargetInstancesOutputError: Swift.Error, Swift.Equatable { extension TerminateTargetInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateTargetInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -15582,9 +15541,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -15602,7 +15560,7 @@ extension ThrottlingException { } /// Reached throttling quota exception. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15738,9 +15696,8 @@ extension UnarchiveApplicationOutputResponse: Swift.CustomDebugStringConvertible extension UnarchiveApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnarchiveApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationAggregatedStatus = output.applicationAggregatedStatus self.applicationID = output.applicationID @@ -15957,9 +15914,8 @@ extension UnarchiveWaveOutputResponse: Swift.CustomDebugStringConvertible { extension UnarchiveWaveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnarchiveWaveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -16087,9 +16043,8 @@ extension UnarchiveWaveOutputResponseBody: Swift.Decodable { extension UninitializedAccountException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UninitializedAccountExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -16105,7 +16060,7 @@ extension UninitializedAccountException { } /// Uninitialized account exception. -public struct UninitializedAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UninitializedAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16349,9 +16304,8 @@ extension UpdateApplicationOutputResponse: Swift.CustomDebugStringConvertible { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationAggregatedStatus = output.applicationAggregatedStatus self.applicationID = output.applicationID @@ -16685,9 +16639,8 @@ public enum UpdateLaunchConfigurationOutputError: Swift.Error, Swift.Equatable { extension UpdateLaunchConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLaunchConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bootMode = output.bootMode self.copyPrivateIp = output.copyPrivateIp @@ -17073,9 +17026,8 @@ extension UpdateLaunchConfigurationTemplateOutputResponse: Swift.CustomDebugStri extension UpdateLaunchConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLaunchConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associatePublicIpAddress = output.associatePublicIpAddress @@ -17576,9 +17528,8 @@ extension UpdateReplicationConfigurationOutputResponse: Swift.CustomDebugStringC extension UpdateReplicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReplicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associateDefaultSecurityGroup = output.associateDefaultSecurityGroup self.bandwidthThrottling = output.bandwidthThrottling @@ -18050,9 +18001,8 @@ extension UpdateReplicationConfigurationTemplateOutputResponse: Swift.CustomDebu extension UpdateReplicationConfigurationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReplicationConfigurationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associateDefaultSecurityGroup = output.associateDefaultSecurityGroup @@ -18353,9 +18303,8 @@ extension UpdateSourceServerReplicationTypeOutputResponse: Swift.CustomDebugStri extension UpdateSourceServerReplicationTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSourceServerReplicationTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationID = output.applicationID self.arn = output.arn @@ -18626,9 +18575,8 @@ extension UpdateWaveOutputResponse: Swift.CustomDebugStringConvertible { extension UpdateWaveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWaveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -18756,9 +18704,8 @@ extension UpdateWaveOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.fieldList = output.fieldList @@ -18778,7 +18725,7 @@ extension ValidationException { } /// Validate exception. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMigrationHub/MigrationHubClient.swift b/Sources/Services/AWSMigrationHub/MigrationHubClient.swift index 55dbd0e79b2..809764c9430 100644 --- a/Sources/Services/AWSMigrationHub/MigrationHubClient.swift +++ b/Sources/Services/AWSMigrationHub/MigrationHubClient.swift @@ -214,6 +214,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateCreatedArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -230,7 +231,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -250,6 +251,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDiscoveredResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -266,7 +268,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProgressUpdateStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -302,7 +305,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -332,6 +335,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProgressUpdateStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -348,7 +352,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +372,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplicationState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +389,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +409,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMigrationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +426,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -446,6 +452,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateCreatedArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +469,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -482,6 +489,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDiscoveredResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -498,7 +506,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -518,6 +526,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importMigrationTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +543,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +563,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationStates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -570,7 +580,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -596,6 +606,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCreatedArtifacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -612,7 +623,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -632,6 +643,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDiscoveredResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +660,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -674,6 +686,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMigrationTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -690,7 +703,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -710,6 +723,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProgressUpdateStreams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -726,7 +740,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -746,6 +760,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyApplicationState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -762,7 +777,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +803,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyMigrationTaskState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +820,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -831,6 +847,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourceAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -847,7 +864,7 @@ extension MigrationHubClient: MigrationHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMigrationHub/models/Models.swift b/Sources/Services/AWSMigrationHub/models/Models.swift index 41c51c6f0fb..f1ca9354964 100644 --- a/Sources/Services/AWSMigrationHub/models/Models.swift +++ b/Sources/Services/AWSMigrationHub/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -760,9 +759,8 @@ public enum DescribeApplicationStateOutputError: Swift.Error, Swift.Equatable { extension DescribeApplicationStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationStatus = output.applicationStatus self.lastUpdatedTime = output.lastUpdatedTime @@ -906,9 +904,8 @@ public enum DescribeMigrationTaskOutputError: Swift.Error, Swift.Equatable { extension DescribeMigrationTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMigrationTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.migrationTask = output.migrationTask } else { @@ -1261,9 +1258,8 @@ extension MigrationHubClientTypes { extension DryRunOperation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DryRunOperationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1277,7 +1273,7 @@ extension DryRunOperation { } /// Exception raised to indicate a successfully authorized action when the DryRun flag is set to "true". -public struct DryRunOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DryRunOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1313,9 +1309,8 @@ extension DryRunOperationBody: Swift.Decodable { extension HomeRegionNotSetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HomeRegionNotSetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1329,7 +1324,7 @@ extension HomeRegionNotSetException { } /// The home region is not set. Set the home region to continue. -public struct HomeRegionNotSetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HomeRegionNotSetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1486,9 +1481,8 @@ public struct ImportMigrationTaskOutputResponse: Swift.Equatable { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1502,7 +1496,7 @@ extension InternalServerError { } /// Exception raised when an internal, configuration, or dependency error is encountered. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1538,9 +1532,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1554,7 +1547,7 @@ extension InvalidInputException { } /// Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1705,9 +1698,8 @@ public enum ListApplicationStatesOutputError: Swift.Error, Swift.Equatable { extension ListApplicationStatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationStatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationStateList = output.applicationStateList self.nextToken = output.nextToken @@ -1884,9 +1876,8 @@ public enum ListCreatedArtifactsOutputError: Swift.Error, Swift.Equatable { extension ListCreatedArtifactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCreatedArtifactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdArtifactList = output.createdArtifactList self.nextToken = output.nextToken @@ -2063,9 +2054,8 @@ public enum ListDiscoveredResourcesOutputError: Swift.Error, Swift.Equatable { extension ListDiscoveredResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDiscoveredResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.discoveredResourceList = output.discoveredResourceList self.nextToken = output.nextToken @@ -2230,9 +2220,8 @@ public enum ListMigrationTasksOutputError: Swift.Error, Swift.Equatable { extension ListMigrationTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMigrationTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.migrationTaskSummaryList = output.migrationTaskSummaryList self.nextToken = output.nextToken @@ -2381,9 +2370,8 @@ public enum ListProgressUpdateStreamsOutputError: Swift.Error, Swift.Equatable { extension ListProgressUpdateStreamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProgressUpdateStreamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.progressUpdateStreamSummaryList = output.progressUpdateStreamSummaryList @@ -2908,9 +2896,8 @@ public struct NotifyMigrationTaskStateOutputResponse: Swift.Equatable { extension PolicyErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2924,7 +2911,7 @@ extension PolicyErrorException { } /// Exception raised when there are problems accessing Application Discovery Service (Application Discovery Service); most likely due to a misconfigured policy or the migrationhub-discovery role is missing or not configured correctly. -public struct PolicyErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3248,9 +3235,8 @@ extension MigrationHubClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3264,7 +3250,7 @@ extension ResourceNotFoundException { } /// Exception raised when the request references a resource (Application Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application Discovery Service (Application Discovery Service) or in Migration Hub's repository. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3300,9 +3286,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3316,7 +3301,7 @@ extension ServiceUnavailableException { } /// Exception raised when there is an internal, configuration, or dependency error encountered. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3451,9 +3436,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3467,7 +3451,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3509,9 +3493,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension UnauthorizedOperation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedOperationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3525,7 +3508,7 @@ extension UnauthorizedOperation { } /// Exception raised to indicate a request was not authorized when the DryRun flag is set to "true". -public struct UnauthorizedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMigrationHubConfig/MigrationHubConfigClient.swift b/Sources/Services/AWSMigrationHubConfig/MigrationHubConfigClient.swift index 1f26e7e061e..40ed2c6c534 100644 --- a/Sources/Services/AWSMigrationHubConfig/MigrationHubConfigClient.swift +++ b/Sources/Services/AWSMigrationHubConfig/MigrationHubConfigClient.swift @@ -208,6 +208,7 @@ extension MigrationHubConfigClient: MigrationHubConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHomeRegionControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MigrationHubConfigClient: MigrationHubConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension MigrationHubConfigClient: MigrationHubConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHomeRegionControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension MigrationHubConfigClient: MigrationHubConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension MigrationHubConfigClient: MigrationHubConfigClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mgh") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHomeRegion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension MigrationHubConfigClient: MigrationHubConfigClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMigrationHubConfig/models/Models.swift b/Sources/Services/AWSMigrationHubConfig/models/Models.swift index 6fa65399ea0..3cb769a06ae 100644 --- a/Sources/Services/AWSMigrationHubConfig/models/Models.swift +++ b/Sources/Services/AWSMigrationHubConfig/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -161,9 +160,8 @@ public enum CreateHomeRegionControlOutputError: Swift.Error, Swift.Equatable { extension CreateHomeRegionControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHomeRegionControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.homeRegionControl = output.homeRegionControl } else { @@ -327,9 +325,8 @@ public enum DescribeHomeRegionControlsOutputError: Swift.Error, Swift.Equatable extension DescribeHomeRegionControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHomeRegionControlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.homeRegionControls = output.homeRegionControls self.nextToken = output.nextToken @@ -387,9 +384,8 @@ extension DescribeHomeRegionControlsOutputResponseBody: Swift.Decodable { extension DryRunOperation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DryRunOperationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -403,7 +399,7 @@ extension DryRunOperation { } /// Exception raised to indicate that authorization of an action was successful, when the DryRun flag is set to true. -public struct DryRunOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DryRunOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -497,9 +493,8 @@ public enum GetHomeRegionOutputError: Swift.Error, Swift.Equatable { extension GetHomeRegionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHomeRegionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.homeRegion = output.homeRegion } else { @@ -603,9 +598,8 @@ extension MigrationHubConfigClientTypes { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -619,7 +613,7 @@ extension InternalServerError { } /// Exception raised when an internal, configuration, or dependency error is encountered. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -655,9 +649,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -671,7 +664,7 @@ extension InvalidInputException { } /// Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -707,9 +700,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -723,7 +715,7 @@ extension ServiceUnavailableException { } /// Exception raised when a request fails due to temporary unavailability of the service. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -839,9 +831,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -855,7 +846,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMigrationHubOrchestrator/MigrationHubOrchestratorClient.swift b/Sources/Services/AWSMigrationHubOrchestrator/MigrationHubOrchestratorClient.swift index 016c4f8c0a0..d2b3015a2cf 100644 --- a/Sources/Services/AWSMigrationHubOrchestrator/MigrationHubOrchestratorClient.swift +++ b/Sources/Services/AWSMigrationHubOrchestrator/MigrationHubOrchestratorClient.swift @@ -208,6 +208,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkflowStep") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkflowStepGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkflowStep") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -358,7 +363,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -378,6 +383,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkflowStepGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -391,7 +397,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -411,6 +417,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -423,7 +430,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -443,6 +450,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplateStep") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +464,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +484,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplateStepGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +497,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +517,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +530,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +550,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowStep") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -553,7 +564,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -573,6 +584,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowStepGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -586,7 +598,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -606,6 +618,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPlugins") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -619,7 +632,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -639,6 +652,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -651,7 +665,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +685,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplateStepGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -684,7 +699,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -704,6 +719,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplateSteps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -717,7 +733,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -737,6 +753,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +767,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +787,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflowStepGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +801,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +821,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflowSteps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +835,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +855,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +869,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +889,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retryWorkflowStep") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -882,7 +903,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +923,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -914,7 +936,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -934,6 +956,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -946,7 +969,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -966,6 +989,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -981,7 +1005,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1001,6 +1025,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1014,7 +1039,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1034,6 +1059,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1049,7 +1075,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1069,6 +1095,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkflowStep") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1084,7 +1111,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1104,6 +1131,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol .withRegion(value: config.region) .withSigningName(value: "migrationhub-orchestrator") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkflowStepGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1120,7 +1148,7 @@ extension MigrationHubOrchestratorClient: MigrationHubOrchestratorClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMigrationHubOrchestrator/models/Models.swift b/Sources/Services/AWSMigrationHubOrchestrator/models/Models.swift index c28132eadb1..ce35b95fae7 100644 --- a/Sources/Services/AWSMigrationHubOrchestrator/models/Models.swift +++ b/Sources/Services/AWSMigrationHubOrchestrator/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -254,9 +253,8 @@ extension CreateWorkflowOutputResponse: Swift.CustomDebugStringConvertible { extension CreateWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adsApplicationConfigurationId = output.adsApplicationConfigurationId self.arn = output.arn @@ -571,9 +569,8 @@ public enum CreateWorkflowStepGroupOutputError: Swift.Error, Swift.Equatable { extension CreateWorkflowStepGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkflowStepGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -944,9 +941,8 @@ public enum CreateWorkflowStepOutputError: Swift.Error, Swift.Equatable { extension CreateWorkflowStepOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkflowStepOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -1114,9 +1110,8 @@ public enum DeleteWorkflowOutputError: Swift.Error, Swift.Equatable { extension DeleteWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -1427,9 +1422,8 @@ public enum GetTemplateOutputError: Swift.Error, Swift.Equatable { extension GetTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -1615,9 +1609,8 @@ public enum GetTemplateStepGroupOutputError: Swift.Error, Swift.Equatable { extension GetTemplateStepGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateStepGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -1865,9 +1858,8 @@ public enum GetTemplateStepOutputError: Swift.Error, Swift.Equatable { extension GetTemplateStepOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateStepOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -2099,9 +2091,8 @@ extension GetWorkflowOutputResponse: Swift.CustomDebugStringConvertible { extension GetWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adsApplicationConfigurationId = output.adsApplicationConfigurationId self.adsApplicationName = output.adsApplicationName @@ -2438,9 +2429,8 @@ public enum GetWorkflowStepGroupOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowStepGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowStepGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -2706,9 +2696,8 @@ public enum GetWorkflowStepOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowStepOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowStepOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -2983,9 +2972,8 @@ extension GetWorkflowStepOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2999,7 +2987,7 @@ extension InternalServerException { } /// An internal error has occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3110,9 +3098,8 @@ public enum ListPluginsOutputError: Swift.Error, Swift.Equatable { extension ListPluginsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPluginsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.plugins = output.plugins @@ -3225,9 +3212,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3359,9 +3345,8 @@ public enum ListTemplateStepGroupsOutputError: Swift.Error, Swift.Equatable { extension ListTemplateStepGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplateStepGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templateStepGroupSummary = output.templateStepGroupSummary @@ -3520,9 +3505,8 @@ public enum ListTemplateStepsOutputError: Swift.Error, Swift.Equatable { extension ListTemplateStepsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplateStepsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templateStepSummaryList = output.templateStepSummaryList @@ -3662,9 +3646,8 @@ public enum ListTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templateSummary = output.templateSummary @@ -3812,9 +3795,8 @@ public enum ListWorkflowStepGroupsOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowStepGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowStepGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workflowStepGroupsSummary = output.workflowStepGroupsSummary @@ -3965,9 +3947,8 @@ public enum ListWorkflowStepsOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowStepsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowStepsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workflowStepsSummary = output.workflowStepsSummary @@ -4136,9 +4117,8 @@ public enum ListWorkflowsOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.migrationWorkflowSummary = output.migrationWorkflowSummary self.nextToken = output.nextToken @@ -4629,9 +4609,8 @@ extension MigrationHubOrchestratorClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4645,7 +4624,7 @@ extension ResourceNotFoundException { } /// The resource is not available. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4772,9 +4751,8 @@ public enum RetryWorkflowStepOutputError: Swift.Error, Swift.Equatable { extension RetryWorkflowStepOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryWorkflowStepOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.status = output.status @@ -4936,9 +4914,8 @@ public enum StartWorkflowOutputError: Swift.Error, Swift.Equatable { extension StartWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -5428,9 +5405,8 @@ public enum StopWorkflowOutputError: Swift.Error, Swift.Equatable { extension StopWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -6023,9 +5999,8 @@ extension MigrationHubOrchestratorClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6039,7 +6014,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6363,9 +6338,8 @@ extension UpdateWorkflowOutputResponse: Swift.CustomDebugStringConvertible { extension UpdateWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adsApplicationConfigurationId = output.adsApplicationConfigurationId self.arn = output.arn @@ -6706,9 +6680,8 @@ public enum UpdateWorkflowStepGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkflowStepGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkflowStepGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.id = output.id @@ -7097,9 +7070,8 @@ public enum UpdateWorkflowStepOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkflowStepOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkflowStepOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -7168,9 +7140,8 @@ extension UpdateWorkflowStepOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7184,7 +7155,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMigrationHubRefactorSpaces/MigrationHubRefactorSpacesClient.swift b/Sources/Services/AWSMigrationHubRefactorSpaces/MigrationHubRefactorSpacesClient.swift index 985f6e630be..ab3596f1406 100644 --- a/Sources/Services/AWSMigrationHubRefactorSpaces/MigrationHubRefactorSpacesClient.swift +++ b/Sources/Services/AWSMigrationHubRefactorSpaces/MigrationHubRefactorSpacesClient.swift @@ -208,6 +208,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -301,6 +303,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoute") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -324,7 +327,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +347,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createService") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -367,7 +371,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -387,6 +391,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -399,7 +404,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -419,6 +424,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -431,7 +437,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -451,6 +457,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -463,7 +470,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -483,6 +490,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -495,7 +503,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -515,6 +523,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -527,7 +536,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -547,6 +556,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -559,7 +569,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -579,6 +589,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -591,7 +602,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -611,6 +622,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -623,7 +635,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -643,6 +655,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -655,7 +668,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -675,6 +688,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -687,7 +701,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -707,6 +721,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -720,7 +735,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -740,6 +755,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironmentVpcs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -753,7 +769,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -773,6 +789,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -786,7 +803,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -806,6 +823,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -819,7 +837,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -839,6 +857,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +871,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +891,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +904,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +924,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -919,7 +940,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -939,6 +960,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +976,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +996,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -987,7 +1010,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1007,6 +1030,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt .withRegion(value: config.region) .withSigningName(value: "refactor-spaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1022,7 +1046,7 @@ extension MigrationHubRefactorSpacesClient: MigrationHubRefactorSpacesClientProt operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMigrationHubRefactorSpaces/models/Models.swift b/Sources/Services/AWSMigrationHubRefactorSpaces/models/Models.swift index 518f82b0cd9..020bcdada5b 100644 --- a/Sources/Services/AWSMigrationHubRefactorSpaces/models/Models.swift +++ b/Sources/Services/AWSMigrationHubRefactorSpaces/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The user does not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -547,9 +546,8 @@ extension MigrationHubRefactorSpacesClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -567,7 +565,7 @@ extension ConflictException { } /// Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -796,9 +794,8 @@ extension CreateApplicationOutputResponse: Swift.CustomDebugStringConvertible { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiGatewayProxy = output.apiGatewayProxy self.applicationId = output.applicationId @@ -1119,9 +1116,8 @@ extension CreateEnvironmentOutputResponse: Swift.CustomDebugStringConvertible { extension CreateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdTime = output.createdTime @@ -1440,9 +1436,8 @@ extension CreateRouteOutputResponse: Swift.CustomDebugStringConvertible { extension CreateRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -1805,9 +1800,8 @@ extension CreateServiceOutputResponse: Swift.CustomDebugStringConvertible { extension CreateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -2111,9 +2105,8 @@ public enum DeleteApplicationOutputError: Swift.Error, Swift.Equatable { extension DeleteApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -2265,9 +2258,8 @@ public enum DeleteEnvironmentOutputError: Swift.Error, Swift.Equatable { extension DeleteEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environmentId = output.environmentId @@ -2496,9 +2488,8 @@ public enum DeleteRouteOutputError: Swift.Error, Swift.Equatable { extension DeleteRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -2666,9 +2657,8 @@ public enum DeleteServiceOutputError: Swift.Error, Swift.Equatable { extension DeleteServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -3390,9 +3380,8 @@ extension GetApplicationOutputResponse: Swift.CustomDebugStringConvertible { extension GetApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apiGatewayProxy = output.apiGatewayProxy self.applicationId = output.applicationId @@ -3636,9 +3625,8 @@ extension GetEnvironmentOutputResponse: Swift.CustomDebugStringConvertible { extension GetEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdTime = output.createdTime @@ -3857,9 +3845,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -3980,9 +3967,8 @@ extension GetRouteOutputResponse: Swift.CustomDebugStringConvertible { extension GetRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -4290,9 +4276,8 @@ extension GetServiceOutputResponse: Swift.CustomDebugStringConvertible { extension GetServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -4547,9 +4532,8 @@ extension MigrationHubRefactorSpacesClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4563,7 +4547,7 @@ extension InternalServerException { } /// An unexpected error occurred while processing the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4600,9 +4584,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidResourcePolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourcePolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4616,7 +4599,7 @@ extension InvalidResourcePolicyException { } /// The resource policy is not valid. -public struct InvalidResourcePolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourcePolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4849,9 +4832,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationSummaryList = output.applicationSummaryList self.nextToken = output.nextToken @@ -4995,9 +4977,8 @@ public enum ListEnvironmentVpcsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentVpcsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentVpcsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentVpcList = output.environmentVpcList self.nextToken = output.nextToken @@ -5133,9 +5114,8 @@ public enum ListEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentSummaryList = output.environmentSummaryList self.nextToken = output.nextToken @@ -5291,9 +5271,8 @@ public enum ListRoutesOutputError: Swift.Error, Swift.Equatable { extension ListRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routeSummaryList = output.routeSummaryList @@ -5449,9 +5428,8 @@ public enum ListServicesOutputError: Swift.Error, Swift.Equatable { extension ListServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceSummaryList = output.serviceSummaryList @@ -5571,9 +5549,8 @@ extension ListTagsForResourceOutputResponse: Swift.CustomDebugStringConvertible extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5785,9 +5762,8 @@ public struct PutResourcePolicyOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -5805,7 +5781,7 @@ extension ResourceNotFoundException { } /// The request references a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6236,9 +6212,8 @@ extension MigrationHubRefactorSpacesClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -6260,7 +6235,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6696,9 +6671,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -6716,7 +6690,7 @@ extension ThrottlingException { } /// Request was denied because the request was throttled. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6969,9 +6943,8 @@ public enum UpdateRouteOutputError: Swift.Error, Swift.Equatable { extension UpdateRouteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRouteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.arn = output.arn @@ -7275,9 +7248,8 @@ extension MigrationHubRefactorSpacesClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7291,7 +7263,7 @@ extension ValidationException { } /// The input does not satisfy the constraints specified by an Amazon Web Service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMigrationHubStrategy/MigrationHubStrategyClient.swift b/Sources/Services/AWSMigrationHubStrategy/MigrationHubStrategyClient.swift index 5eaf4b24c97..b496c145060 100644 --- a/Sources/Services/AWSMigrationHubStrategy/MigrationHubStrategyClient.swift +++ b/Sources/Services/AWSMigrationHubStrategy/MigrationHubStrategyClient.swift @@ -208,6 +208,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplicationComponentDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplicationComponentStrategies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -284,7 +287,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -304,6 +307,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImportFileTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -316,7 +320,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -336,6 +340,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLatestAssessmentId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -348,7 +353,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +373,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPortfolioPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -380,7 +386,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -400,6 +406,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPortfolioSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +419,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +439,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecommendationReportDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -444,7 +452,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +472,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServerDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -477,7 +486,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +506,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServerStrategies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -509,7 +519,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -529,6 +539,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -544,7 +555,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -564,6 +575,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCollectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -577,7 +589,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -597,6 +609,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImportFileTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -610,7 +623,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -630,6 +643,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -645,7 +659,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -665,6 +679,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPortfolioPreferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +695,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +715,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -715,7 +731,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -735,6 +751,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startImportFileTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +767,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +787,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRecommendationReportGeneration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -785,7 +803,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -805,6 +823,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -820,7 +839,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -840,6 +859,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplicationComponentConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -855,7 +875,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -875,6 +895,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "migrationhub-strategy") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServerConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -890,7 +911,7 @@ extension MigrationHubStrategyClient: MigrationHubStrategyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMigrationHubStrategy/models/Models.swift b/Sources/Services/AWSMigrationHubStrategy/models/Models.swift index 58c1777246a..9a623dc9473 100644 --- a/Sources/Services/AWSMigrationHubStrategy/models/Models.swift +++ b/Sources/Services/AWSMigrationHubStrategy/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1953,9 +1952,8 @@ extension MigrationHubStrategyClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1969,7 +1967,7 @@ extension ConflictException { } /// Exception to indicate that there is an ongoing task when a new task is created. Return when once the existing tasks are complete. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2318,9 +2316,8 @@ extension MigrationHubStrategyClientTypes { extension DependencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2334,7 +2331,7 @@ extension DependencyException { } /// Dependency encountered an error. -public struct DependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2427,9 +2424,8 @@ public enum GetApplicationComponentDetailsOutputError: Swift.Error, Swift.Equata extension GetApplicationComponentDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationComponentDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationComponentDetail = output.applicationComponentDetail self.associatedApplications = output.associatedApplications @@ -2573,9 +2569,8 @@ public enum GetApplicationComponentStrategiesOutputError: Swift.Error, Swift.Equ extension GetApplicationComponentStrategiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationComponentStrategiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationComponentStrategies = output.applicationComponentStrategies } else { @@ -2682,9 +2677,8 @@ public enum GetAssessmentOutputError: Swift.Error, Swift.Equatable { extension GetAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentTargets = output.assessmentTargets self.dataCollectionDetails = output.dataCollectionDetails @@ -2813,9 +2807,8 @@ public enum GetImportFileTaskOutputError: Swift.Error, Swift.Equatable { extension GetImportFileTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImportFileTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completionTime = output.completionTime self.id = output.id @@ -3002,9 +2995,8 @@ public enum GetLatestAssessmentIdOutputError: Swift.Error, Swift.Equatable { extension GetLatestAssessmentIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLatestAssessmentIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -3091,9 +3083,8 @@ public enum GetPortfolioPreferencesOutputError: Swift.Error, Swift.Equatable { extension GetPortfolioPreferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPortfolioPreferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationMode = output.applicationMode self.applicationPreferences = output.applicationPreferences @@ -3208,9 +3199,8 @@ public enum GetPortfolioSummaryOutputError: Swift.Error, Swift.Equatable { extension GetPortfolioSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPortfolioSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentSummary = output.assessmentSummary } else { @@ -3310,9 +3300,8 @@ public enum GetRecommendationReportDetailsOutputError: Swift.Error, Swift.Equata extension GetRecommendationReportDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecommendationReportDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.recommendationReportDetails = output.recommendationReportDetails @@ -3447,9 +3436,8 @@ public enum GetServerDetailsOutputError: Swift.Error, Swift.Equatable { extension GetServerDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServerDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedApplications = output.associatedApplications self.nextToken = output.nextToken @@ -3578,9 +3566,8 @@ public enum GetServerStrategiesOutputError: Swift.Error, Swift.Equatable { extension GetServerStrategiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServerStrategiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverStrategies = output.serverStrategies } else { @@ -4157,9 +4144,8 @@ extension MigrationHubStrategyClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4173,7 +4159,7 @@ extension InternalServerException { } /// The server experienced an internal error. Try again. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4356,9 +4342,8 @@ public enum ListApplicationComponentsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationComponentInfos = output.applicationComponentInfos self.nextToken = output.nextToken @@ -4492,9 +4477,8 @@ public enum ListCollectorsOutputError: Swift.Error, Swift.Equatable { extension ListCollectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCollectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectors = output.collectors self.nextToken = output.nextToken @@ -4628,9 +4612,8 @@ public enum ListImportFileTaskOutputError: Swift.Error, Swift.Equatable { extension ListImportFileTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportFileTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.taskInfos = output.taskInfos @@ -4835,9 +4818,8 @@ public enum ListServersOutputError: Swift.Error, Swift.Equatable { extension ListServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serverInfos = output.serverInfos @@ -5724,9 +5706,8 @@ extension MigrationHubStrategyClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5740,7 +5721,7 @@ extension ResourceNotFoundException { } /// The specified ID in the request is not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6653,9 +6634,8 @@ extension MigrationHubStrategyClientTypes { extension ServiceLinkedRoleLockClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLinkedRoleLockClientExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6669,7 +6649,7 @@ extension ServiceLinkedRoleLockClientException { } /// Exception to indicate that the service-linked role (SLR) is locked. -public struct ServiceLinkedRoleLockClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLinkedRoleLockClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6705,9 +6685,8 @@ extension ServiceLinkedRoleLockClientExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6721,7 +6700,7 @@ extension ServiceQuotaExceededException { } /// The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7151,9 +7130,8 @@ public enum StartAssessmentOutputError: Swift.Error, Swift.Equatable { extension StartAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentId = output.assessmentId } else { @@ -7344,9 +7322,8 @@ public enum StartImportFileTaskOutputError: Swift.Error, Swift.Equatable { extension StartImportFileTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartImportFileTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -7486,9 +7463,8 @@ public enum StartRecommendationReportGenerationOutputError: Swift.Error, Swift.E extension StartRecommendationReportGenerationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRecommendationReportGenerationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -8009,9 +7985,8 @@ extension MigrationHubStrategyClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8025,7 +8000,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8445,9 +8420,8 @@ public struct UpdateServerConfigOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8461,7 +8435,7 @@ extension ValidationException { } /// The request body isn't valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSMobile/MobileClient.swift b/Sources/Services/AWSMobile/MobileClient.swift index ec25a4e801c..a510c0ba816 100644 --- a/Sources/Services/AWSMobile/MobileClient.swift +++ b/Sources/Services/AWSMobile/MobileClient.swift @@ -208,6 +208,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -256,7 +258,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -276,6 +278,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBundle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -288,7 +291,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -308,6 +311,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -321,7 +325,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -341,6 +345,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportBundle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -354,7 +359,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -374,6 +379,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -386,7 +392,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -406,6 +412,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBundles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -419,7 +426,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -439,6 +446,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -452,7 +460,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -472,6 +480,7 @@ extension MobileClient: MobileClientProtocol { .withRegion(value: config.region) .withSigningName(value: "AWSMobileHubService") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +497,7 @@ extension MobileClient: MobileClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMobile/models/Models.swift b/Sources/Services/AWSMobile/models/Models.swift index 4b515310ac4..5449ce64163 100644 --- a/Sources/Services/AWSMobile/models/Models.swift +++ b/Sources/Services/AWSMobile/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccountActionRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountActionRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccountActionRequiredException { } /// Account Action is required in order to continue the request. -public struct AccountActionRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountActionRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -57,9 +56,8 @@ extension AccountActionRequiredExceptionBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -73,7 +71,7 @@ extension BadRequestException { } /// The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -219,9 +217,9 @@ public struct CreateProjectInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let contents = input.operationInput.contents { - let contentsdata = contents - let contentsbody = ClientRuntime.HttpBody.data(contentsdata) - input.builder.withBody(contentsbody) + let contentsData = contents + let contentsBody = ClientRuntime.HttpBody.data(contentsData) + input.builder.withBody(contentsBody) } return try await next.handle(context: context, input: input) } @@ -348,9 +346,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.details = output.details } else { @@ -452,9 +449,8 @@ public enum DeleteProjectOutputError: Swift.Error, Swift.Equatable { extension DeleteProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletedResources = output.deletedResources self.orphanedResources = output.orphanedResources @@ -586,9 +582,8 @@ public enum DescribeBundleOutputError: Swift.Error, Swift.Equatable { extension DescribeBundleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBundleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.details = output.details } else { @@ -712,9 +707,8 @@ public enum DescribeProjectOutputError: Swift.Error, Swift.Equatable { extension DescribeProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.details = output.details } else { @@ -843,9 +837,8 @@ public enum ExportBundleOutputError: Swift.Error, Swift.Equatable { extension ExportBundleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportBundleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.downloadUrl = output.downloadUrl } else { @@ -949,9 +942,8 @@ public enum ExportProjectOutputError: Swift.Error, Swift.Equatable { extension ExportProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.downloadUrl = output.downloadUrl self.shareUrl = output.shareUrl @@ -1011,9 +1003,8 @@ extension ExportProjectOutputResponseBody: Swift.Decodable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1027,7 +1018,7 @@ extension InternalFailureException { } /// The service has encountered an unexpected error condition which prevents it from servicing the request. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1069,9 +1060,8 @@ extension LimitExceededException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1085,7 +1075,7 @@ extension LimitExceededException { } /// There are too many AWS Mobile Hub projects in the account or the account has exceeded the maximum number of resources in some AWS service. You should create another sub-account using AWS Organizations or remove some resources and retry your request. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1205,9 +1195,8 @@ public enum ListBundlesOutputError: Swift.Error, Swift.Equatable { extension ListBundlesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBundlesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundleList = output.bundleList self.nextToken = output.nextToken @@ -1345,9 +1334,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projects = output.projects @@ -1406,9 +1394,8 @@ extension ListProjectsOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1422,7 +1409,7 @@ extension NotFoundException { } /// No entity can be found with the specified identifier. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1797,9 +1784,8 @@ extension ServiceUnavailableException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1813,7 +1799,7 @@ extension ServiceUnavailableException { } /// The service is temporarily unavailable. The request should be retried after some time delay. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1859,9 +1845,8 @@ extension TooManyRequestsException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1875,7 +1860,7 @@ extension TooManyRequestsException { } /// Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1916,9 +1901,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1932,7 +1916,7 @@ extension UnauthorizedException { } /// Credentials of the caller are insufficient to authorize the request. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1981,9 +1965,9 @@ public struct UpdateProjectInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let contents = input.operationInput.contents { - let contentsdata = contents - let contentsbody = ClientRuntime.HttpBody.data(contentsdata) - input.builder.withBody(contentsbody) + let contentsData = contents + let contentsBody = ClientRuntime.HttpBody.data(contentsData) + input.builder.withBody(contentsBody) } return try await next.handle(context: context, input: input) } @@ -2099,9 +2083,8 @@ public enum UpdateProjectOutputError: Swift.Error, Swift.Equatable { extension UpdateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.details = output.details } else { diff --git a/Sources/Services/AWSMq/MqClient.swift b/Sources/Services/AWSMq/MqClient.swift index 0b1c21616d4..9e09999e44c 100644 --- a/Sources/Services/AWSMq/MqClient.swift +++ b/Sources/Services/AWSMq/MqClient.swift @@ -235,6 +235,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBroker") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -258,7 +259,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +279,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +295,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +315,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +331,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +351,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +367,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +387,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBroker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +400,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +420,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -428,7 +434,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -448,6 +454,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -460,7 +467,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -480,6 +487,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBroker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -492,7 +500,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -512,6 +520,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBrokerEngineTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -525,7 +534,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -545,6 +554,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBrokerInstanceOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -558,7 +568,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -578,6 +588,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -590,7 +601,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -610,6 +621,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -622,7 +634,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -642,6 +654,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -654,7 +667,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -674,6 +687,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBrokers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -687,7 +701,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -707,6 +721,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurationRevisions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -720,7 +735,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -740,6 +755,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -753,7 +769,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -773,6 +789,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -785,7 +802,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -805,6 +822,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +836,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +856,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootBroker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -850,7 +869,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -870,6 +889,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBroker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -885,7 +905,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -905,6 +925,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -920,7 +941,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -940,6 +961,7 @@ extension MqClient: MqClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mq") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -955,7 +977,7 @@ extension MqClient: MqClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSMq/models/Models.swift b/Sources/Services/AWSMq/models/Models.swift index fbae4345288..992c8436695 100644 --- a/Sources/Services/AWSMq/models/Models.swift +++ b/Sources/Services/AWSMq/models/Models.swift @@ -117,9 +117,8 @@ extension MqClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.errorAttribute = output.errorAttribute self.message = output.message @@ -135,7 +134,7 @@ extension BadRequestException { } /// Returns information about an error. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -962,9 +961,8 @@ extension MqClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.errorAttribute = output.errorAttribute self.message = output.message @@ -980,7 +978,7 @@ extension ConflictException { } /// Returns information about an error. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1375,9 +1373,8 @@ public enum CreateBrokerOutputError: Swift.Error, Swift.Equatable { extension CreateBrokerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBrokerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.brokerArn = output.brokerArn self.brokerId = output.brokerId @@ -1565,9 +1562,8 @@ public enum CreateConfigurationOutputError: Swift.Error, Swift.Equatable { extension CreateConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authenticationStrategy = output.authenticationStrategy @@ -2009,9 +2005,8 @@ public enum DeleteBrokerOutputError: Swift.Error, Swift.Equatable { extension DeleteBrokerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBrokerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.brokerId = output.brokerId } else { @@ -2336,9 +2331,8 @@ public enum DescribeBrokerEngineTypesOutputError: Swift.Error, Swift.Equatable { extension DescribeBrokerEngineTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBrokerEngineTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.brokerEngineTypes = output.brokerEngineTypes self.maxResults = output.maxResults @@ -2535,9 +2529,8 @@ public enum DescribeBrokerInstanceOptionsOutputError: Swift.Error, Swift.Equatab extension DescribeBrokerInstanceOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBrokerInstanceOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.brokerInstanceOptions = output.brokerInstanceOptions self.maxResults = output.maxResults @@ -2633,9 +2626,8 @@ public enum DescribeBrokerOutputError: Swift.Error, Swift.Equatable { extension DescribeBrokerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBrokerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionsRequired = output.actionsRequired self.authenticationStrategy = output.authenticationStrategy @@ -3076,9 +3068,8 @@ public enum DescribeConfigurationOutputError: Swift.Error, Swift.Equatable { extension DescribeConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authenticationStrategy = output.authenticationStrategy @@ -3283,9 +3274,8 @@ public enum DescribeConfigurationRevisionOutputError: Swift.Error, Swift.Equatab extension DescribeConfigurationRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationId = output.configurationId self.created = output.created @@ -3421,9 +3411,8 @@ public enum DescribeUserOutputError: Swift.Error, Swift.Equatable { extension DescribeUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.brokerId = output.brokerId self.consoleAccess = output.consoleAccess @@ -3625,9 +3614,8 @@ extension MqClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.errorAttribute = output.errorAttribute self.message = output.message @@ -3643,7 +3631,7 @@ extension ForbiddenException { } /// Returns information about an error. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3688,9 +3676,8 @@ extension ForbiddenExceptionBody: Swift.Decodable { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.errorAttribute = output.errorAttribute self.message = output.message @@ -3706,7 +3693,7 @@ extension InternalServerErrorException { } /// Returns information about an error. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4122,9 +4109,8 @@ public enum ListBrokersOutputError: Swift.Error, Swift.Equatable { extension ListBrokersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBrokersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.brokerSummaries = output.brokerSummaries self.nextToken = output.nextToken @@ -4266,9 +4252,8 @@ public enum ListConfigurationRevisionsOutputError: Swift.Error, Swift.Equatable extension ListConfigurationRevisionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationRevisionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationId = output.configurationId self.maxResults = output.maxResults @@ -4420,9 +4405,8 @@ public enum ListConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurations = output.configurations self.maxResults = output.maxResults @@ -4549,9 +4533,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4683,9 +4666,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.brokerId = output.brokerId self.maxResults = output.maxResults @@ -4885,9 +4867,8 @@ extension MqClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.errorAttribute = output.errorAttribute self.message = output.message @@ -4903,7 +4884,7 @@ extension NotFoundException { } /// Returns information about an error. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5154,9 +5135,8 @@ extension MqClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.errorAttribute = output.errorAttribute self.message = output.message @@ -5172,7 +5152,7 @@ extension UnauthorizedException { } /// Returns information about an error. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5411,9 +5391,8 @@ public enum UpdateBrokerOutputError: Swift.Error, Swift.Equatable { extension UpdateBrokerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBrokerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationStrategy = output.authenticationStrategy self.autoMinorVersionUpgrade = output.autoMinorVersionUpgrade @@ -5650,9 +5629,8 @@ public enum UpdateConfigurationOutputError: Swift.Error, Swift.Equatable { extension UpdateConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.created = output.created diff --git a/Sources/Services/AWSNeptune/NeptuneClient.swift b/Sources/Services/AWSNeptune/NeptuneClient.swift index 21f21fcf41d..82474306c16 100644 --- a/Sources/Services/AWSNeptune/NeptuneClient.swift +++ b/Sources/Services/AWSNeptune/NeptuneClient.swift @@ -204,6 +204,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addRoleToDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addSourceIdentifierToSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applyPendingMaintenanceAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBClusterEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +580,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +600,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +616,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +636,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +688,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +724,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +744,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +760,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +780,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -779,7 +796,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -799,6 +816,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBClusterEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +832,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +852,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +868,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +888,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +904,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +924,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -919,7 +940,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -939,6 +960,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +976,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +996,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1012,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1032,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1048,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1068,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1084,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1104,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1120,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1114,6 +1140,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1129,7 +1156,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1149,6 +1176,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1164,7 +1192,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1184,6 +1212,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterSnapshotAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1199,7 +1228,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1219,6 +1248,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1234,7 +1264,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1254,6 +1284,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1269,7 +1300,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1289,6 +1320,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBEngineVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1336,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1356,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1339,7 +1372,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1359,6 +1392,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1374,7 +1408,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1394,6 +1428,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1409,7 +1444,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1429,6 +1464,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBSubnetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1444,7 +1480,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1464,6 +1500,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEngineDefaultClusterParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1479,7 +1516,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1499,6 +1536,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEngineDefaultParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1514,7 +1552,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1534,6 +1572,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventCategories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1549,7 +1588,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1569,6 +1608,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1584,7 +1624,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1604,6 +1644,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1619,7 +1660,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1639,6 +1680,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGlobalClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1654,7 +1696,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1674,6 +1716,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrderableDBInstanceOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1689,7 +1732,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1709,6 +1752,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePendingMaintenanceActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1724,7 +1768,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1744,6 +1788,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeValidDBInstanceModifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1759,7 +1804,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1779,6 +1824,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "failoverDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1794,7 +1840,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1814,6 +1860,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "failoverGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1829,7 +1876,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1849,6 +1896,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1864,7 +1912,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1884,6 +1932,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1899,7 +1948,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1919,6 +1968,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBClusterEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1934,7 +1984,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1954,6 +2004,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1969,7 +2020,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1989,6 +2040,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBClusterSnapshotAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2004,7 +2056,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2024,6 +2076,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2039,7 +2092,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2059,6 +2112,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2074,7 +2128,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2094,6 +2148,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2109,7 +2164,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2129,6 +2184,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2144,7 +2200,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2164,6 +2220,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2179,7 +2236,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2199,6 +2256,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "promoteReadReplicaDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2214,7 +2272,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2234,6 +2292,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2249,7 +2308,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2269,6 +2328,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeFromGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2284,7 +2344,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2304,6 +2364,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeRoleFromDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2319,7 +2380,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2339,6 +2400,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeSourceIdentifierFromSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2354,7 +2416,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2374,6 +2436,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2389,7 +2452,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2409,6 +2472,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2424,7 +2488,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2444,6 +2508,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2459,7 +2524,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2479,6 +2544,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBClusterFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2494,7 +2560,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2514,6 +2580,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBClusterToPointInTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2529,7 +2596,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2549,6 +2616,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2564,7 +2632,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2584,6 +2652,7 @@ extension NeptuneClient: NeptuneClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2599,7 +2668,7 @@ extension NeptuneClient: NeptuneClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSNeptune/models/Models.swift b/Sources/Services/AWSNeptune/models/Models.swift index a7b12691d8b..c392bdbeb1f 100644 --- a/Sources/Services/AWSNeptune/models/Models.swift +++ b/Sources/Services/AWSNeptune/models/Models.swift @@ -199,9 +199,8 @@ public enum AddSourceIdentifierToSubscriptionOutputError: Swift.Error, Swift.Equ extension AddSourceIdentifierToSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddSourceIdentifierToSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -489,9 +488,8 @@ public enum ApplyPendingMaintenanceActionOutputError: Swift.Error, Swift.Equatab extension ApplyPendingMaintenanceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplyPendingMaintenanceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePendingMaintenanceActions = output.resourcePendingMaintenanceActions } else { @@ -531,7 +529,7 @@ extension ApplyPendingMaintenanceActionOutputResponseBody: Swift.Decodable { extension AuthorizationNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -546,7 +544,7 @@ extension AuthorizationNotFoundFault { } /// Specified CIDRIP or EC2 security group is not authorized for the specified DB security group. Neptune may not also be authorized via IAM to perform necessary actions on your behalf. -public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -618,7 +616,7 @@ extension NeptuneClientTypes { extension CertificateNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -633,7 +631,7 @@ extension CertificateNotFoundFault { } /// CertificateIdentifier does not refer to an existing certificate. -public struct CertificateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1056,9 +1054,8 @@ public enum CopyDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatable extension CopyDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroup = output.dbClusterParameterGroup } else { @@ -1273,9 +1270,8 @@ public enum CopyDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CopyDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -1462,9 +1458,8 @@ public enum CopyDBParameterGroupOutputError: Swift.Error, Swift.Equatable { extension CopyDBParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroup = output.dbParameterGroup } else { @@ -1716,9 +1711,8 @@ public enum CreateDBClusterEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateDBClusterEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customEndpointType = output.customEndpointType self.dbClusterEndpointArn = output.dbClusterEndpointArn @@ -2412,9 +2406,8 @@ public enum CreateDBClusterOutputError: Swift.Error, Swift.Equatable { extension CreateDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -2589,9 +2582,8 @@ public enum CreateDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatab extension CreateDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroup = output.dbClusterParameterGroup } else { @@ -2769,9 +2761,8 @@ public enum CreateDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -3501,9 +3492,8 @@ public enum CreateDBInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -3682,9 +3672,8 @@ public enum CreateDBParameterGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDBParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroup = output.dbParameterGroup } else { @@ -3886,9 +3875,8 @@ public enum CreateDBSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDBSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroup = output.dbSubnetGroup } else { @@ -4162,9 +4150,8 @@ public enum CreateEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension CreateEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -4332,9 +4319,8 @@ public enum CreateGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension CreateGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -5011,7 +4997,7 @@ extension NeptuneClientTypes { extension DBClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5026,7 +5012,7 @@ extension DBClusterAlreadyExistsFault { } /// User already has a DB cluster with the given identifier. -public struct DBClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5251,7 +5237,7 @@ extension NeptuneClientTypes { extension DBClusterEndpointAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5266,7 +5252,7 @@ extension DBClusterEndpointAlreadyExistsFault { } /// The specified custom endpoint cannot be created because it already exists. -public struct DBClusterEndpointAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterEndpointAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5303,7 +5289,7 @@ extension DBClusterEndpointAlreadyExistsFaultBody: Swift.Decodable { extension DBClusterEndpointNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5318,7 +5304,7 @@ extension DBClusterEndpointNotFoundFault { } /// The specified custom endpoint doesn't exist. -public struct DBClusterEndpointNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterEndpointNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5355,7 +5341,7 @@ extension DBClusterEndpointNotFoundFaultBody: Swift.Decodable { extension DBClusterEndpointQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5370,7 +5356,7 @@ extension DBClusterEndpointQuotaExceededFault { } /// The cluster already has the maximum number of custom endpoints. -public struct DBClusterEndpointQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterEndpointQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5472,7 +5458,7 @@ extension NeptuneClientTypes { extension DBClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5487,7 +5473,7 @@ extension DBClusterNotFoundFault { } /// DBClusterIdentifier does not refer to an existing DB cluster. -public struct DBClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5634,7 +5620,7 @@ extension NeptuneClientTypes { extension DBClusterParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5649,7 +5635,7 @@ extension DBClusterParameterGroupNotFoundFault { } /// DBClusterParameterGroupName does not refer to an existing DB Cluster parameter group. -public struct DBClusterParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5686,7 +5672,7 @@ extension DBClusterParameterGroupNotFoundFaultBody: Swift.Decodable { extension DBClusterQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5701,7 +5687,7 @@ extension DBClusterQuotaExceededFault { } /// User attempted to create a new DB cluster and the user has already reached the maximum allowed DB cluster quota. -public struct DBClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5799,7 +5785,7 @@ extension NeptuneClientTypes { extension DBClusterRoleAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5814,7 +5800,7 @@ extension DBClusterRoleAlreadyExistsFault { } /// The specified IAM role Amazon Resource Name (ARN) is already associated with the specified DB cluster. -public struct DBClusterRoleAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterRoleAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5851,7 +5837,7 @@ extension DBClusterRoleAlreadyExistsFaultBody: Swift.Decodable { extension DBClusterRoleNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5866,7 +5852,7 @@ extension DBClusterRoleNotFoundFault { } /// The specified IAM role Amazon Resource Name (ARN) is not associated with the specified DB cluster. -public struct DBClusterRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5903,7 +5889,7 @@ extension DBClusterRoleNotFoundFaultBody: Swift.Decodable { extension DBClusterRoleQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5918,7 +5904,7 @@ extension DBClusterRoleQuotaExceededFault { } /// You have exceeded the maximum number of IAM roles that can be associated with the specified DB cluster. -public struct DBClusterRoleQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterRoleQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6206,7 +6192,7 @@ extension NeptuneClientTypes { extension DBClusterSnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6221,7 +6207,7 @@ extension DBClusterSnapshotAlreadyExistsFault { } /// User already has a DB cluster snapshot with the given identifier. -public struct DBClusterSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6400,7 +6386,7 @@ extension NeptuneClientTypes { extension DBClusterSnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6415,7 +6401,7 @@ extension DBClusterSnapshotNotFoundFault { } /// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. -public struct DBClusterSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7501,7 +7487,7 @@ extension NeptuneClientTypes { extension DBInstanceAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7516,7 +7502,7 @@ extension DBInstanceAlreadyExistsFault { } /// User already has a DB instance with the given identifier. -public struct DBInstanceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7553,7 +7539,7 @@ extension DBInstanceAlreadyExistsFaultBody: Swift.Decodable { extension DBInstanceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7568,7 +7554,7 @@ extension DBInstanceNotFoundFault { } /// DBInstanceIdentifier does not refer to an existing DB instance. -public struct DBInstanceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7735,7 +7721,7 @@ extension NeptuneClientTypes { extension DBParameterGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7750,7 +7736,7 @@ extension DBParameterGroupAlreadyExistsFault { } /// A DB parameter group with the same name exists. -public struct DBParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7787,7 +7773,7 @@ extension DBParameterGroupAlreadyExistsFaultBody: Swift.Decodable { extension DBParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7802,7 +7788,7 @@ extension DBParameterGroupNotFoundFault { } /// DBParameterGroupName does not refer to an existing DB parameter group. -public struct DBParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7839,7 +7825,7 @@ extension DBParameterGroupNotFoundFaultBody: Swift.Decodable { extension DBParameterGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7854,7 +7840,7 @@ extension DBParameterGroupQuotaExceededFault { } /// Request would result in user exceeding the allowed number of DB parameter groups. -public struct DBParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7989,7 +7975,7 @@ extension NeptuneClientTypes { extension DBSecurityGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8004,7 +7990,7 @@ extension DBSecurityGroupNotFoundFault { } /// DBSecurityGroupName does not refer to an existing DB security group. -public struct DBSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8041,7 +8027,7 @@ extension DBSecurityGroupNotFoundFaultBody: Swift.Decodable { extension DBSnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8056,7 +8042,7 @@ extension DBSnapshotAlreadyExistsFault { } /// DBSnapshotIdentifier is already used by an existing snapshot. -public struct DBSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8093,7 +8079,7 @@ extension DBSnapshotAlreadyExistsFaultBody: Swift.Decodable { extension DBSnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8108,7 +8094,7 @@ extension DBSnapshotNotFoundFault { } /// DBSnapshotIdentifier does not refer to an existing DB snapshot. -public struct DBSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8256,7 +8242,7 @@ extension NeptuneClientTypes { extension DBSubnetGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8271,7 +8257,7 @@ extension DBSubnetGroupAlreadyExistsFault { } /// DBSubnetGroupName is already used by an existing DB subnet group. -public struct DBSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8308,7 +8294,7 @@ extension DBSubnetGroupAlreadyExistsFaultBody: Swift.Decodable { extension DBSubnetGroupDoesNotCoverEnoughAZs { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8323,7 +8309,7 @@ extension DBSubnetGroupDoesNotCoverEnoughAZs { } /// Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone. -public struct DBSubnetGroupDoesNotCoverEnoughAZs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupDoesNotCoverEnoughAZs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8360,7 +8346,7 @@ extension DBSubnetGroupDoesNotCoverEnoughAZsBody: Swift.Decodable { extension DBSubnetGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8375,7 +8361,7 @@ extension DBSubnetGroupNotFoundFault { } /// DBSubnetGroupName does not refer to an existing DB subnet group. -public struct DBSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8412,7 +8398,7 @@ extension DBSubnetGroupNotFoundFaultBody: Swift.Decodable { extension DBSubnetGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8427,7 +8413,7 @@ extension DBSubnetGroupQuotaExceededFault { } /// Request would result in user exceeding the allowed number of DB subnet groups. -public struct DBSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8464,7 +8450,7 @@ extension DBSubnetGroupQuotaExceededFaultBody: Swift.Decodable { extension DBSubnetQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8479,7 +8465,7 @@ extension DBSubnetQuotaExceededFault { } /// Request would result in user exceeding the allowed number of subnets in a DB subnet groups. -public struct DBSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8516,7 +8502,7 @@ extension DBSubnetQuotaExceededFaultBody: Swift.Decodable { extension DBUpgradeDependencyFailureFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8531,7 +8517,7 @@ extension DBUpgradeDependencyFailureFault { } /// The DB upgrade failed because a resource the DB depends on could not be modified. -public struct DBUpgradeDependencyFailureFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBUpgradeDependencyFailureFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8639,9 +8625,8 @@ public enum DeleteDBClusterEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteDBClusterEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBClusterEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customEndpointType = output.customEndpointType self.dbClusterEndpointArn = output.dbClusterEndpointArn @@ -8922,9 +8907,8 @@ public enum DeleteDBClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -9118,9 +9102,8 @@ public enum DeleteDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -9267,9 +9250,8 @@ public enum DeleteDBInstanceOutputError: Swift.Error, Swift.Equatable { extension DeleteDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -9544,9 +9526,8 @@ public enum DeleteEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension DeleteEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -9655,9 +9636,8 @@ public enum DeleteGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -9833,9 +9813,8 @@ public enum DescribeDBClusterEndpointsOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterEndpoints = output.dbClusterEndpoints self.marker = output.marker @@ -10029,9 +10008,8 @@ public enum DescribeDBClusterParameterGroupsOutputError: Swift.Error, Swift.Equa extension DescribeDBClusterParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroups = output.dbClusterParameterGroups self.marker = output.marker @@ -10237,9 +10215,8 @@ public enum DescribeDBClusterParametersOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.parameters = output.parameters @@ -10373,9 +10350,8 @@ public enum DescribeDBClusterSnapshotAttributesOutputError: Swift.Error, Swift.E extension DescribeDBClusterSnapshotAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterSnapshotAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshotAttributesResult = output.dbClusterSnapshotAttributesResult } else { @@ -10601,9 +10577,8 @@ public enum DescribeDBClusterSnapshotsOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshots = output.dbClusterSnapshots self.marker = output.marker @@ -10804,9 +10779,8 @@ public enum DescribeDBClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeDBClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusters = output.dbClusters self.marker = output.marker @@ -11053,9 +11027,8 @@ public enum DescribeDBEngineVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBEngineVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBEngineVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbEngineVersions = output.dbEngineVersions self.marker = output.marker @@ -11268,9 +11241,8 @@ public enum DescribeDBInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeDBInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstances = output.dbInstances self.marker = output.marker @@ -11464,9 +11436,8 @@ public enum DescribeDBParameterGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroups = output.dbParameterGroups self.marker = output.marker @@ -11672,9 +11643,8 @@ public enum DescribeDBParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeDBParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.parameters = output.parameters @@ -11866,9 +11836,8 @@ public enum DescribeDBSubnetGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBSubnetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBSubnetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroups = output.dbSubnetGroups self.marker = output.marker @@ -12059,9 +12028,8 @@ public enum DescribeEngineDefaultClusterParametersOutputError: Swift.Error, Swif extension DescribeEngineDefaultClusterParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEngineDefaultClusterParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineDefaults = output.engineDefaults } else { @@ -12225,9 +12193,8 @@ public enum DescribeEngineDefaultParametersOutputError: Swift.Error, Swift.Equat extension DescribeEngineDefaultParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEngineDefaultParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineDefaults = output.engineDefaults } else { @@ -12368,9 +12335,8 @@ public enum DescribeEventCategoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeEventCategoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventCategoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventCategoriesMapList = output.eventCategoriesMapList } else { @@ -12552,9 +12518,8 @@ public enum DescribeEventSubscriptionsOutputError: Swift.Error, Swift.Equatable extension DescribeEventSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscriptionsList = output.eventSubscriptionsList self.marker = output.marker @@ -12837,9 +12802,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.marker = output.marker @@ -12994,9 +12958,8 @@ public enum DescribeGlobalClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeGlobalClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGlobalClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalClusters = output.globalClusters self.marker = output.marker @@ -13231,9 +13194,8 @@ public enum DescribeOrderableDBInstanceOptionsOutputError: Swift.Error, Swift.Eq extension DescribeOrderableDBInstanceOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrderableDBInstanceOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.orderableDBInstanceOptions = output.orderableDBInstanceOptions @@ -13429,9 +13391,8 @@ public enum DescribePendingMaintenanceActionsOutputError: Swift.Error, Swift.Equ extension DescribePendingMaintenanceActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePendingMaintenanceActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.pendingMaintenanceActions = output.pendingMaintenanceActions @@ -13567,9 +13528,8 @@ public enum DescribeValidDBInstanceModificationsOutputError: Swift.Error, Swift. extension DescribeValidDBInstanceModificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeValidDBInstanceModificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.validDBInstanceModificationsMessage = output.validDBInstanceModificationsMessage } else { @@ -13674,7 +13634,7 @@ extension NeptuneClientTypes { extension DomainNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13689,7 +13649,7 @@ extension DomainNotFoundFault { } /// Domain does not refer to an existing Active Directory Domain. -public struct DomainNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DomainNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14266,7 +14226,7 @@ extension NeptuneClientTypes { extension EventSubscriptionQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14281,7 +14241,7 @@ extension EventSubscriptionQuotaExceededFault { } /// You have exceeded the number of events you can subscribe to. -public struct EventSubscriptionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventSubscriptionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14401,9 +14361,8 @@ public enum FailoverDBClusterOutputError: Swift.Error, Swift.Equatable { extension FailoverDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailoverDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -14528,9 +14487,8 @@ public enum FailoverGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension FailoverGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailoverGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -14784,7 +14742,7 @@ extension NeptuneClientTypes { extension GlobalClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14799,7 +14757,7 @@ extension GlobalClusterAlreadyExistsFault { } /// The GlobalClusterIdentifier already exists. Choose a new global database identifier (unique name) to create a new global database cluster. -public struct GlobalClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14917,7 +14875,7 @@ extension NeptuneClientTypes { extension GlobalClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14932,7 +14890,7 @@ extension GlobalClusterNotFoundFault { } /// The GlobalClusterIdentifier doesn't refer to an existing global database cluster. -public struct GlobalClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14969,7 +14927,7 @@ extension GlobalClusterNotFoundFaultBody: Swift.Decodable { extension GlobalClusterQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14984,7 +14942,7 @@ extension GlobalClusterQuotaExceededFault { } /// The number of global database clusters for this account is already at the maximum allowed. -public struct GlobalClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15021,7 +14979,7 @@ extension GlobalClusterQuotaExceededFaultBody: Swift.Decodable { extension InstanceQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15036,7 +14994,7 @@ extension InstanceQuotaExceededFault { } /// Request would result in user exceeding the allowed number of DB instances. -public struct InstanceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15073,7 +15031,7 @@ extension InstanceQuotaExceededFaultBody: Swift.Decodable { extension InsufficientDBClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15088,7 +15046,7 @@ extension InsufficientDBClusterCapacityFault { } /// The DB cluster does not have enough capacity for the current operation. -public struct InsufficientDBClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientDBClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15125,7 +15083,7 @@ extension InsufficientDBClusterCapacityFaultBody: Swift.Decodable { extension InsufficientDBInstanceCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15140,7 +15098,7 @@ extension InsufficientDBInstanceCapacityFault { } /// Specified DB instance class is not available in the specified Availability Zone. -public struct InsufficientDBInstanceCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientDBInstanceCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15177,7 +15135,7 @@ extension InsufficientDBInstanceCapacityFaultBody: Swift.Decodable { extension InsufficientStorageClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15192,7 +15150,7 @@ extension InsufficientStorageClusterCapacityFault { } /// There is insufficient storage available for the current action. You may be able to resolve this error by updating your subnet group to use different Availability Zones that have more storage available. -public struct InsufficientStorageClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientStorageClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15229,7 +15187,7 @@ extension InsufficientStorageClusterCapacityFaultBody: Swift.Decodable { extension InvalidDBClusterEndpointStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15244,7 +15202,7 @@ extension InvalidDBClusterEndpointStateFault { } /// The requested operation cannot be performed on the endpoint while the endpoint is in this state. -public struct InvalidDBClusterEndpointStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterEndpointStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15281,7 +15239,7 @@ extension InvalidDBClusterEndpointStateFaultBody: Swift.Decodable { extension InvalidDBClusterSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15296,7 +15254,7 @@ extension InvalidDBClusterSnapshotStateFault { } /// The supplied value is not a valid DB cluster snapshot state. -public struct InvalidDBClusterSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15333,7 +15291,7 @@ extension InvalidDBClusterSnapshotStateFaultBody: Swift.Decodable { extension InvalidDBClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15348,7 +15306,7 @@ extension InvalidDBClusterStateFault { } /// The DB cluster is not in a valid state. -public struct InvalidDBClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15385,7 +15343,7 @@ extension InvalidDBClusterStateFaultBody: Swift.Decodable { extension InvalidDBInstanceStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15400,7 +15358,7 @@ extension InvalidDBInstanceStateFault { } /// The specified DB instance is not in the available state. -public struct InvalidDBInstanceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBInstanceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15437,7 +15395,7 @@ extension InvalidDBInstanceStateFaultBody: Swift.Decodable { extension InvalidDBParameterGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15452,7 +15410,7 @@ extension InvalidDBParameterGroupStateFault { } /// The DB parameter group is in use or is in an invalid state. If you are attempting to delete the parameter group, you cannot delete it when the parameter group is in this state. -public struct InvalidDBParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15489,7 +15447,7 @@ extension InvalidDBParameterGroupStateFaultBody: Swift.Decodable { extension InvalidDBSecurityGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15504,7 +15462,7 @@ extension InvalidDBSecurityGroupStateFault { } /// The state of the DB security group does not allow deletion. -public struct InvalidDBSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15541,7 +15499,7 @@ extension InvalidDBSecurityGroupStateFaultBody: Swift.Decodable { extension InvalidDBSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15556,7 +15514,7 @@ extension InvalidDBSnapshotStateFault { } /// The state of the DB snapshot does not allow deletion. -public struct InvalidDBSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15593,7 +15551,7 @@ extension InvalidDBSnapshotStateFaultBody: Swift.Decodable { extension InvalidDBSubnetGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15608,7 +15566,7 @@ extension InvalidDBSubnetGroupStateFault { } /// The DB subnet group cannot be deleted because it is in use. -public struct InvalidDBSubnetGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSubnetGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15645,7 +15603,7 @@ extension InvalidDBSubnetGroupStateFaultBody: Swift.Decodable { extension InvalidDBSubnetStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15660,7 +15618,7 @@ extension InvalidDBSubnetStateFault { } /// The DB subnet is not in the available state. -public struct InvalidDBSubnetStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSubnetStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15697,7 +15655,7 @@ extension InvalidDBSubnetStateFaultBody: Swift.Decodable { extension InvalidEventSubscriptionStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15712,7 +15670,7 @@ extension InvalidEventSubscriptionStateFault { } /// The event subscription is in an invalid state. -public struct InvalidEventSubscriptionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventSubscriptionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15749,7 +15707,7 @@ extension InvalidEventSubscriptionStateFaultBody: Swift.Decodable { extension InvalidGlobalClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15764,7 +15722,7 @@ extension InvalidGlobalClusterStateFault { } /// The global cluster is in an invalid state and can't perform the requested operation. -public struct InvalidGlobalClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGlobalClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15801,7 +15759,7 @@ extension InvalidGlobalClusterStateFaultBody: Swift.Decodable { extension InvalidRestoreFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15816,7 +15774,7 @@ extension InvalidRestoreFault { } /// Cannot restore from vpc backup to non-vpc DB instance. -public struct InvalidRestoreFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRestoreFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15853,7 +15811,7 @@ extension InvalidRestoreFaultBody: Swift.Decodable { extension InvalidSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15868,7 +15826,7 @@ extension InvalidSubnet { } /// The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC. -public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15905,7 +15863,7 @@ extension InvalidSubnetBody: Swift.Decodable { extension InvalidVPCNetworkStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15920,7 +15878,7 @@ extension InvalidVPCNetworkStateFault { } /// DB subnet group does not cover all Availability Zones after it is created because users' change. -public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15957,7 +15915,7 @@ extension InvalidVPCNetworkStateFaultBody: Swift.Decodable { extension KMSKeyNotAccessibleFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15972,7 +15930,7 @@ extension KMSKeyNotAccessibleFault { } /// Error accessing KMS key. -public struct KMSKeyNotAccessibleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSKeyNotAccessibleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16117,9 +16075,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -16336,9 +16293,8 @@ public enum ModifyDBClusterEndpointOutputError: Swift.Error, Swift.Equatable { extension ModifyDBClusterEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customEndpointType = output.customEndpointType self.dbClusterEndpointArn = output.dbClusterEndpointArn @@ -16850,9 +16806,8 @@ public enum ModifyDBClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -16999,9 +16954,8 @@ public enum ModifyDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatab extension ModifyDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroupName = output.dbClusterParameterGroupName } else { @@ -17207,9 +17161,8 @@ public enum ModifyDBClusterSnapshotAttributeOutputError: Swift.Error, Swift.Equa extension ModifyDBClusterSnapshotAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterSnapshotAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshotAttributesResult = output.dbClusterSnapshotAttributesResult } else { @@ -17818,9 +17771,8 @@ public enum ModifyDBInstanceOutputError: Swift.Error, Swift.Equatable { extension ModifyDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -17969,9 +17921,8 @@ public enum ModifyDBParameterGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyDBParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroupName = output.dbParameterGroupName } else { @@ -18135,9 +18086,8 @@ public enum ModifyDBSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyDBSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroup = output.dbSubnetGroup } else { @@ -18324,9 +18274,8 @@ public enum ModifyEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension ModifyEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -18488,9 +18437,8 @@ public enum ModifyGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -18575,7 +18523,7 @@ extension NeptuneClientTypes { extension OptionGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18590,7 +18538,7 @@ extension OptionGroupNotFoundFault { } /// The designated option group could not be found. -public struct OptionGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OptionGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19429,9 +19377,8 @@ public enum PromoteReadReplicaDBClusterOutputError: Swift.Error, Swift.Equatable extension PromoteReadReplicaDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PromoteReadReplicaDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -19471,7 +19418,7 @@ extension PromoteReadReplicaDBClusterOutputResponseBody: Swift.Decodable { extension ProvisionedIopsNotAvailableInAZFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19486,7 +19433,7 @@ extension ProvisionedIopsNotAvailableInAZFault { } /// Provisioned IOPS not available in the specified Availability Zone. -public struct ProvisionedIopsNotAvailableInAZFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProvisionedIopsNotAvailableInAZFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19660,9 +19607,8 @@ public enum RebootDBInstanceOutputError: Swift.Error, Swift.Equatable { extension RebootDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -19785,9 +19731,8 @@ public enum RemoveFromGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension RemoveFromGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveFromGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -20012,9 +19957,8 @@ public enum RemoveSourceIdentifierFromSubscriptionOutputError: Swift.Error, Swif extension RemoveSourceIdentifierFromSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveSourceIdentifierFromSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -20290,9 +20234,8 @@ public enum ResetDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatabl extension ResetDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroupName = output.dbClusterParameterGroupName } else { @@ -20460,9 +20403,8 @@ public enum ResetDBParameterGroupOutputError: Swift.Error, Swift.Equatable { extension ResetDBParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetDBParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroupName = output.dbParameterGroupName } else { @@ -20502,7 +20444,7 @@ extension ResetDBParameterGroupOutputResponseBody: Swift.Decodable { extension ResourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -20517,7 +20459,7 @@ extension ResourceNotFoundFault { } /// The specified resource ID was not found. -public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21032,9 +20974,8 @@ public enum RestoreDBClusterFromSnapshotOutputError: Swift.Error, Swift.Equatabl extension RestoreDBClusterFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBClusterFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -21452,9 +21393,8 @@ public enum RestoreDBClusterToPointInTimeOutputError: Swift.Error, Swift.Equatab extension RestoreDBClusterToPointInTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBClusterToPointInTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -21494,7 +21434,7 @@ extension RestoreDBClusterToPointInTimeOutputResponseBody: Swift.Decodable { extension SNSInvalidTopicFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21509,7 +21449,7 @@ extension SNSInvalidTopicFault { } /// The SNS topic is invalid. -public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21546,7 +21486,7 @@ extension SNSInvalidTopicFaultBody: Swift.Decodable { extension SNSNoAuthorizationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21561,7 +21501,7 @@ extension SNSNoAuthorizationFault { } /// There is no SNS authorization. -public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21598,7 +21538,7 @@ extension SNSNoAuthorizationFaultBody: Swift.Decodable { extension SNSTopicArnNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21613,7 +21553,7 @@ extension SNSTopicArnNotFoundFault { } /// The ARN of the SNS topic could not be found. -public struct SNSTopicArnNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSTopicArnNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21740,7 +21680,7 @@ extension NeptuneClientTypes { extension SharedSnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21755,7 +21695,7 @@ extension SharedSnapshotQuotaExceededFault { } /// You have exceeded the maximum number of accounts that you can share a manual DB snapshot with. -public struct SharedSnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SharedSnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21792,7 +21732,7 @@ extension SharedSnapshotQuotaExceededFaultBody: Swift.Decodable { extension SnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21807,7 +21747,7 @@ extension SnapshotQuotaExceededFault { } /// Request would result in user exceeding the allowed number of DB snapshots. -public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21844,7 +21784,7 @@ extension SnapshotQuotaExceededFaultBody: Swift.Decodable { extension SourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21859,7 +21799,7 @@ extension SourceNotFoundFault { } /// The source could not be found. -public struct SourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22011,9 +21951,8 @@ public enum StartDBClusterOutputError: Swift.Error, Swift.Equatable { extension StartDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -22124,9 +22063,8 @@ public enum StopDBClusterOutputError: Swift.Error, Swift.Equatable { extension StopDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -22166,7 +22104,7 @@ extension StopDBClusterOutputResponseBody: Swift.Decodable { extension StorageQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22181,7 +22119,7 @@ extension StorageQuotaExceededFault { } /// Request would result in user exceeding the allowed amount of storage available across all DB instances. -public struct StorageQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22218,7 +22156,7 @@ extension StorageQuotaExceededFaultBody: Swift.Decodable { extension StorageTypeNotSupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22233,7 +22171,7 @@ extension StorageTypeNotSupportedFault { } /// StorageType specified cannot be associated with the DB Instance. -public struct StorageTypeNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageTypeNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22325,7 +22263,7 @@ extension NeptuneClientTypes { extension SubnetAlreadyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22340,7 +22278,7 @@ extension SubnetAlreadyInUse { } /// The DB subnet is already in use in the Availability Zone. -public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22377,7 +22315,7 @@ extension SubnetAlreadyInUseBody: Swift.Decodable { extension SubscriptionAlreadyExistFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22392,7 +22330,7 @@ extension SubscriptionAlreadyExistFault { } /// This subscription already exists. -public struct SubscriptionAlreadyExistFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionAlreadyExistFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22429,7 +22367,7 @@ extension SubscriptionAlreadyExistFaultBody: Swift.Decodable { extension SubscriptionCategoryNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22444,7 +22382,7 @@ extension SubscriptionCategoryNotFoundFault { } /// The designated subscription category could not be found. -public struct SubscriptionCategoryNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionCategoryNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22481,7 +22419,7 @@ extension SubscriptionCategoryNotFoundFaultBody: Swift.Decodable { extension SubscriptionNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22496,7 +22434,7 @@ extension SubscriptionNotFoundFault { } /// The designated subscription could not be found. -public struct SubscriptionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSNetworkFirewall/NetworkFirewallClient.swift b/Sources/Services/AWSNetworkFirewall/NetworkFirewallClient.swift index d54a179cf4b..9b97aeaf34f 100644 --- a/Sources/Services/AWSNetworkFirewall/NetworkFirewallClient.swift +++ b/Sources/Services/AWSNetworkFirewall/NetworkFirewallClient.swift @@ -208,6 +208,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateFirewallPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateSubnets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFirewall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFirewallPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTLSInspectionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFirewall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFirewallPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTLSInspectionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFirewall") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFirewallPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRuleGroupMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTLSInspectionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateSubnets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFirewallPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFirewalls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTLSInspectionConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1103,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1095,7 +1120,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1115,6 +1140,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1131,7 +1157,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1151,6 +1177,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1167,7 +1194,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1187,6 +1214,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallDeleteProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1203,7 +1231,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1223,6 +1251,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallDescription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1239,7 +1268,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1259,6 +1288,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallEncryptionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1305,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1325,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1311,7 +1342,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1331,6 +1362,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallPolicyChangeProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1347,7 +1379,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1408,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1392,7 +1425,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1412,6 +1445,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1462,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1482,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubnetChangeProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1464,7 +1499,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1484,6 +1519,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { .withRegion(value: config.region) .withSigningName(value: "network-firewall") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTLSInspectionConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1500,7 +1536,7 @@ extension NetworkFirewallClient: NetworkFirewallClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSNetworkFirewall/models/Models.swift b/Sources/Services/AWSNetworkFirewall/models/Models.swift index ccfc64d0191..89894560cc6 100644 --- a/Sources/Services/AWSNetworkFirewall/models/Models.swift +++ b/Sources/Services/AWSNetworkFirewall/models/Models.swift @@ -202,9 +202,8 @@ public enum AssociateFirewallPolicyOutputError: Swift.Error, Swift.Equatable { extension AssociateFirewallPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateFirewallPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallArn = output.firewallArn self.firewallName = output.firewallName @@ -403,9 +402,8 @@ public enum AssociateSubnetsOutputError: Swift.Error, Swift.Equatable { extension AssociateSubnetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateSubnetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallArn = output.firewallArn self.firewallName = output.firewallName @@ -938,9 +936,8 @@ public enum CreateFirewallOutputError: Swift.Error, Swift.Equatable { extension CreateFirewallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFirewallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewall = output.firewall self.firewallStatus = output.firewallStatus @@ -1140,9 +1137,8 @@ public enum CreateFirewallPolicyOutputError: Swift.Error, Swift.Equatable { extension CreateFirewallPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFirewallPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallPolicyResponse = output.firewallPolicyResponse self.updateToken = output.updateToken @@ -1402,9 +1398,8 @@ public enum CreateRuleGroupOutputError: Swift.Error, Swift.Equatable { extension CreateRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleGroupResponse = output.ruleGroupResponse self.updateToken = output.updateToken @@ -1590,9 +1585,8 @@ public enum CreateTLSInspectionConfigurationOutputError: Swift.Error, Swift.Equa extension CreateTLSInspectionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTLSInspectionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tlsInspectionConfigurationResponse = output.tlsInspectionConfigurationResponse self.updateToken = output.updateToken @@ -1785,9 +1779,8 @@ public enum DeleteFirewallOutputError: Swift.Error, Swift.Equatable { extension DeleteFirewallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFirewallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewall = output.firewall self.firewallStatus = output.firewallStatus @@ -1927,9 +1920,8 @@ public enum DeleteFirewallPolicyOutputError: Swift.Error, Swift.Equatable { extension DeleteFirewallPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFirewallPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallPolicyResponse = output.firewallPolicyResponse } else { @@ -2160,9 +2152,8 @@ public enum DeleteRuleGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleGroupResponse = output.ruleGroupResponse } else { @@ -2291,9 +2282,8 @@ public enum DeleteTLSInspectionConfigurationOutputError: Swift.Error, Swift.Equa extension DeleteTLSInspectionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTLSInspectionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tlsInspectionConfigurationResponse = output.tlsInspectionConfigurationResponse } else { @@ -2420,9 +2410,8 @@ public enum DescribeFirewallOutputError: Swift.Error, Swift.Equatable { extension DescribeFirewallOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFirewallOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewall = output.firewall self.firewallStatus = output.firewallStatus @@ -2568,9 +2557,8 @@ public enum DescribeFirewallPolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeFirewallPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFirewallPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallPolicy = output.firewallPolicy self.firewallPolicyResponse = output.firewallPolicyResponse @@ -2718,9 +2706,8 @@ public enum DescribeLoggingConfigurationOutputError: Swift.Error, Swift.Equatabl extension DescribeLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallArn = output.firewallArn self.loggingConfiguration = output.loggingConfiguration @@ -2845,9 +2832,8 @@ public enum DescribeResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -3056,9 +3042,8 @@ public enum DescribeRuleGroupMetadataOutputError: Swift.Error, Swift.Equatable { extension DescribeRuleGroupMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRuleGroupMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacity = output.capacity self.description = output.description @@ -3187,9 +3172,8 @@ public enum DescribeRuleGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleGroup = output.ruleGroup self.ruleGroupResponse = output.ruleGroupResponse @@ -3337,9 +3321,8 @@ public enum DescribeTLSInspectionConfigurationOutputError: Swift.Error, Swift.Eq extension DescribeTLSInspectionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTLSInspectionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tlsInspectionConfiguration = output.tlsInspectionConfiguration self.tlsInspectionConfigurationResponse = output.tlsInspectionConfigurationResponse @@ -3564,9 +3547,8 @@ public enum DisassociateSubnetsOutputError: Swift.Error, Swift.Equatable { extension DisassociateSubnetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateSubnetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallArn = output.firewallArn self.firewallName = output.firewallName @@ -4737,9 +4719,8 @@ extension NetworkFirewallClientTypes { extension InsufficientCapacityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientCapacityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4753,7 +4734,7 @@ extension InsufficientCapacityException { } /// Amazon Web Services doesn't currently have enough available capacity to fulfill your request. Try your request later. -public struct InsufficientCapacityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientCapacityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4789,9 +4770,8 @@ extension InsufficientCapacityExceptionBody: Swift.Decodable { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4805,7 +4785,7 @@ extension InternalServerError { } /// Your request is valid, but Network Firewall couldn’t perform the operation because of a system problem. Retry your request. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4841,9 +4821,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4857,7 +4836,7 @@ extension InvalidOperationException { } /// The operation failed because it's not valid. For example, you might have tried to delete a rule group or firewall policy that's in use. -public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4893,9 +4872,8 @@ extension InvalidOperationExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4915,7 +4893,7 @@ extension InvalidRequestException { /// * You tried to update a property with a value that isn't among the available types. /// /// * Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4951,9 +4929,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidResourcePolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourcePolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4967,7 +4944,7 @@ extension InvalidResourcePolicyException { } /// The policy statement failed validation. -public struct InvalidResourcePolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourcePolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5003,9 +4980,8 @@ extension InvalidResourcePolicyExceptionBody: Swift.Decodable { extension InvalidTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5019,7 +4995,7 @@ extension InvalidTokenException { } /// The token you provided is stale or isn't valid for the operation. -public struct InvalidTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5055,9 +5031,8 @@ extension InvalidTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5071,7 +5046,7 @@ extension LimitExceededException { } /// Unable to perform the operation because doing so would violate a limit setting. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5192,9 +5167,8 @@ public enum ListFirewallPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListFirewallPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFirewallPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallPolicies = output.firewallPolicies self.nextToken = output.nextToken @@ -5361,9 +5335,8 @@ public enum ListFirewallsOutputError: Swift.Error, Swift.Equatable { extension ListFirewallsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFirewallsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewalls = output.firewalls self.nextToken = output.nextToken @@ -5542,9 +5515,8 @@ public enum ListRuleGroupsOutputError: Swift.Error, Swift.Equatable { extension ListRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.ruleGroups = output.ruleGroups @@ -5687,9 +5659,8 @@ public enum ListTLSInspectionConfigurationsOutputError: Swift.Error, Swift.Equat extension ListTLSInspectionConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTLSInspectionConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tlsInspectionConfigurations = output.tlsInspectionConfigurations @@ -5847,9 +5818,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -5983,9 +5953,8 @@ extension NetworkFirewallClientTypes { extension LogDestinationPermissionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LogDestinationPermissionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5999,7 +5968,7 @@ extension LogDestinationPermissionException { } /// Unable to send logs to a configured logging destination. -public struct LogDestinationPermissionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LogDestinationPermissionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6790,9 +6759,8 @@ extension NetworkFirewallClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6806,7 +6774,7 @@ extension ResourceNotFoundException { } /// Unable to locate a resource using the parameters that you provided. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6842,9 +6810,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceOwnerCheckException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceOwnerCheckExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6858,7 +6825,7 @@ extension ResourceOwnerCheckException { } /// Unable to change the resource because your account doesn't own it. -public struct ResourceOwnerCheckException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceOwnerCheckException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9193,9 +9160,8 @@ extension NetworkFirewallClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9209,7 +9175,7 @@ extension ThrottlingException { } /// Unable to process the request due to throttling limitations. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9310,9 +9276,8 @@ extension NetworkFirewallClientTypes { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9326,7 +9291,7 @@ extension UnsupportedOperationException { } /// The operation you requested isn't supported by Network Firewall. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9589,9 +9554,8 @@ public enum UpdateFirewallDeleteProtectionOutputError: Swift.Error, Swift.Equata extension UpdateFirewallDeleteProtectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallDeleteProtectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deleteProtection = output.deleteProtection self.firewallArn = output.firewallArn @@ -9773,9 +9737,8 @@ public enum UpdateFirewallDescriptionOutputError: Swift.Error, Swift.Equatable { extension UpdateFirewallDescriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallDescriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.firewallArn = output.firewallArn @@ -9959,9 +9922,8 @@ public enum UpdateFirewallEncryptionConfigurationOutputError: Swift.Error, Swift extension UpdateFirewallEncryptionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallEncryptionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.encryptionConfiguration = output.encryptionConfiguration self.firewallArn = output.firewallArn @@ -10146,9 +10108,8 @@ public enum UpdateFirewallPolicyChangeProtectionOutputError: Swift.Error, Swift. extension UpdateFirewallPolicyChangeProtectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallPolicyChangeProtectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallArn = output.firewallArn self.firewallName = output.firewallName @@ -10368,9 +10329,8 @@ public enum UpdateFirewallPolicyOutputError: Swift.Error, Swift.Equatable { extension UpdateFirewallPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallPolicyResponse = output.firewallPolicyResponse self.updateToken = output.updateToken @@ -10524,9 +10484,8 @@ public enum UpdateLoggingConfigurationOutputError: Swift.Error, Swift.Equatable extension UpdateLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallArn = output.firewallArn self.firewallName = output.firewallName @@ -10771,9 +10730,8 @@ public enum UpdateRuleGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleGroupResponse = output.ruleGroupResponse self.updateToken = output.updateToken @@ -10940,9 +10898,8 @@ public enum UpdateSubnetChangeProtectionOutputError: Swift.Error, Swift.Equatabl extension UpdateSubnetChangeProtectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSubnetChangeProtectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallArn = output.firewallArn self.firewallName = output.firewallName @@ -11150,9 +11107,8 @@ public enum UpdateTLSInspectionConfigurationOutputError: Swift.Error, Swift.Equa extension UpdateTLSInspectionConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTLSInspectionConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tlsInspectionConfigurationResponse = output.tlsInspectionConfigurationResponse self.updateToken = output.updateToken diff --git a/Sources/Services/AWSNetworkManager/NetworkManagerClient.swift b/Sources/Services/AWSNetworkManager/NetworkManagerClient.swift index f947e2be4be..363daac1489 100644 --- a/Sources/Services/AWSNetworkManager/NetworkManagerClient.swift +++ b/Sources/Services/AWSNetworkManager/NetworkManagerClient.swift @@ -208,6 +208,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateConnectPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateCustomerGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTransitGatewayConnectPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnectAttachment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -403,7 +409,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -423,6 +429,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnectPeer") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -446,7 +453,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -466,6 +473,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -481,7 +489,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -501,6 +509,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCoreNetwork") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -524,7 +533,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -544,6 +553,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -559,7 +569,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -579,6 +589,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGlobalNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -594,7 +605,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -614,6 +625,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +641,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -649,6 +661,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +677,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +697,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSiteToSiteVpnAttachment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -707,7 +721,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -727,6 +741,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayPeering") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -750,7 +765,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +785,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransitGatewayRouteTableAttachment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -793,7 +809,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -813,6 +829,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcAttachment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -836,7 +853,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +873,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -868,7 +886,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -888,6 +906,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnectPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -900,7 +919,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -920,6 +939,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -932,7 +952,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -952,6 +972,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCoreNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -964,7 +985,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -984,6 +1005,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCoreNetworkPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1018,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1038,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1028,7 +1051,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1048,6 +1071,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGlobalNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1084,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1104,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1092,7 +1117,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1112,6 +1137,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePeering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1156,7 +1183,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1176,6 +1203,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1188,7 +1216,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1208,6 +1236,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterTransitGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1220,7 +1249,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1240,6 +1269,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGlobalNetworks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1253,7 +1283,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1273,6 +1303,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateConnectPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1285,7 +1316,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1305,6 +1336,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateCustomerGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1317,7 +1349,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1337,6 +1369,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1350,7 +1383,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1370,6 +1403,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTransitGatewayConnectPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1382,7 +1416,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1402,6 +1436,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeCoreNetworkChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1414,7 +1449,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1434,6 +1469,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1446,7 +1482,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1466,6 +1502,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectPeer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1478,7 +1515,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1498,6 +1535,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectPeerAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1511,7 +1549,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1531,6 +1569,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1544,7 +1583,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1564,6 +1603,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoreNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1576,7 +1616,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1596,6 +1636,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoreNetworkChangeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1609,7 +1650,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1629,6 +1670,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoreNetworkChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1642,7 +1684,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1662,6 +1704,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCoreNetworkPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1675,7 +1718,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1695,6 +1738,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCustomerGatewayAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1708,7 +1752,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1728,6 +1772,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1741,7 +1786,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1761,6 +1806,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLinkAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1774,7 +1820,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1794,6 +1840,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLinks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1807,7 +1854,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1827,6 +1874,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkResourceCounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1840,7 +1888,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1860,6 +1908,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkResourceRelationships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1873,7 +1922,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1893,6 +1942,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1906,7 +1956,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1926,6 +1976,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1941,7 +1992,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1961,6 +2012,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkTelemetry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1974,7 +2026,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1994,6 +2046,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2006,7 +2059,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2026,6 +2079,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRouteAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2038,7 +2092,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2058,6 +2112,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSiteToSiteVpnAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2070,7 +2125,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2090,6 +2145,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSites") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2103,7 +2159,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2123,6 +2179,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayConnectPeerAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2136,7 +2193,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2156,6 +2213,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayPeering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2168,7 +2226,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2188,6 +2246,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayRegistrations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2201,7 +2260,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2221,6 +2280,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTransitGatewayRouteTableAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2233,7 +2293,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2253,6 +2313,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVpcAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2265,7 +2326,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2285,6 +2346,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttachments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2298,7 +2360,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2318,6 +2380,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnectPeers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2331,7 +2394,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2351,6 +2414,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCoreNetworkPolicyVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2364,7 +2428,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2384,6 +2448,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCoreNetworks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2397,7 +2462,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2417,6 +2482,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizationServiceAccessStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2430,7 +2496,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2450,6 +2516,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPeerings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2463,7 +2530,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2483,6 +2550,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2495,7 +2563,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2515,6 +2583,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putCoreNetworkPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2538,7 +2607,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2558,6 +2627,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2573,7 +2643,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2593,6 +2663,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerTransitGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2608,7 +2679,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2628,6 +2699,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2640,7 +2712,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2660,6 +2732,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreCoreNetworkPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2672,7 +2745,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2692,6 +2765,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startOrganizationServiceAccessUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2707,7 +2781,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2727,6 +2801,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRouteAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2742,7 +2817,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2762,6 +2837,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2777,7 +2853,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2797,6 +2873,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2810,7 +2887,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2830,6 +2907,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2845,7 +2923,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2865,6 +2943,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCoreNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2880,7 +2959,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2900,6 +2979,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2915,7 +2995,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2935,6 +3015,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGlobalNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2950,7 +3031,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2970,6 +3051,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2985,7 +3067,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3005,6 +3087,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNetworkResourceMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3020,7 +3103,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3040,6 +3123,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3055,7 +3139,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3075,6 +3159,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "networkmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVpcAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3090,7 +3175,7 @@ extension NetworkManagerClient: NetworkManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSNetworkManager/models/Models.swift b/Sources/Services/AWSNetworkManager/models/Models.swift index 5ea09aa5d1b..f672c4edd46 100644 --- a/Sources/Services/AWSNetworkManager/models/Models.swift +++ b/Sources/Services/AWSNetworkManager/models/Models.swift @@ -112,9 +112,8 @@ public enum AcceptAttachmentOutputError: Swift.Error, Swift.Equatable { extension AcceptAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachment = output.attachment } else { @@ -153,9 +152,8 @@ extension AcceptAttachmentOutputResponseBody: Swift.Decodable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -169,7 +167,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -366,9 +364,8 @@ public enum AssociateConnectPeerOutputError: Swift.Error, Swift.Equatable { extension AssociateConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectPeerAssociation = output.connectPeerAssociation } else { @@ -522,9 +519,8 @@ public enum AssociateCustomerGatewayOutputError: Swift.Error, Swift.Equatable { extension AssociateCustomerGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateCustomerGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerGatewayAssociation = output.customerGatewayAssociation } else { @@ -666,9 +662,8 @@ public enum AssociateLinkOutputError: Swift.Error, Swift.Equatable { extension AssociateLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.linkAssociation = output.linkAssociation } else { @@ -822,9 +817,8 @@ public enum AssociateTransitGatewayConnectPeerOutputError: Swift.Error, Swift.Eq extension AssociateTransitGatewayConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTransitGatewayConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayConnectPeerAssociation = output.transitGatewayConnectPeerAssociation } else { @@ -1381,9 +1375,8 @@ extension NetworkManagerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1401,7 +1394,7 @@ extension ConflictException { } /// There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3179,9 +3172,8 @@ extension NetworkManagerClientTypes { extension CoreNetworkPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CoreNetworkPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.message = output.message @@ -3197,7 +3189,7 @@ extension CoreNetworkPolicyException { } /// Describes a core network policy exception. -public struct CoreNetworkPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CoreNetworkPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3770,9 +3762,8 @@ public enum CreateConnectAttachmentOutputError: Swift.Error, Swift.Equatable { extension CreateConnectAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectAttachment = output.connectAttachment } else { @@ -3989,9 +3980,8 @@ public enum CreateConnectPeerOutputError: Swift.Error, Swift.Equatable { extension CreateConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectPeer = output.connectPeer } else { @@ -4191,9 +4181,8 @@ public enum CreateConnectionOutputError: Swift.Error, Swift.Equatable { extension CreateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -4374,9 +4363,8 @@ public enum CreateCoreNetworkOutputError: Swift.Error, Swift.Equatable { extension CreateCoreNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCoreNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetwork = output.coreNetwork } else { @@ -4617,9 +4605,8 @@ public enum CreateDeviceOutputError: Swift.Error, Swift.Equatable { extension CreateDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.device = output.device } else { @@ -4761,9 +4748,8 @@ public enum CreateGlobalNetworkOutputError: Swift.Error, Swift.Equatable { extension CreateGlobalNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGlobalNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalNetwork = output.globalNetwork } else { @@ -4965,9 +4951,8 @@ public enum CreateLinkOutputError: Swift.Error, Swift.Equatable { extension CreateLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.link = output.link } else { @@ -5142,9 +5127,8 @@ public enum CreateSiteOutputError: Swift.Error, Swift.Equatable { extension CreateSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.site = output.site } else { @@ -5312,9 +5296,8 @@ public enum CreateSiteToSiteVpnAttachmentOutputError: Swift.Error, Swift.Equatab extension CreateSiteToSiteVpnAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSiteToSiteVpnAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.siteToSiteVpnAttachment = output.siteToSiteVpnAttachment } else { @@ -5482,9 +5465,8 @@ public enum CreateTransitGatewayPeeringOutputError: Swift.Error, Swift.Equatable extension CreateTransitGatewayPeeringOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayPeeringOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPeering = output.transitGatewayPeering } else { @@ -5652,9 +5634,8 @@ public enum CreateTransitGatewayRouteTableAttachmentOutputError: Swift.Error, Sw extension CreateTransitGatewayRouteTableAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransitGatewayRouteTableAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayRouteTableAttachment = output.transitGatewayRouteTableAttachment } else { @@ -5859,9 +5840,8 @@ public enum CreateVpcAttachmentOutputError: Swift.Error, Swift.Equatable { extension CreateVpcAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcAttachment = output.vpcAttachment } else { @@ -6076,9 +6056,8 @@ public enum DeleteAttachmentOutputError: Swift.Error, Swift.Equatable { extension DeleteAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachment = output.attachment } else { @@ -6180,9 +6159,8 @@ public enum DeleteConnectPeerOutputError: Swift.Error, Swift.Equatable { extension DeleteConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectPeer = output.connectPeer } else { @@ -6292,9 +6270,8 @@ public enum DeleteConnectionOutputError: Swift.Error, Swift.Equatable { extension DeleteConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -6396,9 +6373,8 @@ public enum DeleteCoreNetworkOutputError: Swift.Error, Swift.Equatable { extension DeleteCoreNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCoreNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetwork = output.coreNetwork } else { @@ -6508,9 +6484,8 @@ public enum DeleteCoreNetworkPolicyVersionOutputError: Swift.Error, Swift.Equata extension DeleteCoreNetworkPolicyVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCoreNetworkPolicyVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworkPolicy = output.coreNetworkPolicy } else { @@ -6620,9 +6595,8 @@ public enum DeleteDeviceOutputError: Swift.Error, Swift.Equatable { extension DeleteDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.device = output.device } else { @@ -6724,9 +6698,8 @@ public enum DeleteGlobalNetworkOutputError: Swift.Error, Swift.Equatable { extension DeleteGlobalNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGlobalNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalNetwork = output.globalNetwork } else { @@ -6836,9 +6809,8 @@ public enum DeleteLinkOutputError: Swift.Error, Swift.Equatable { extension DeleteLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.link = output.link } else { @@ -6940,9 +6912,8 @@ public enum DeletePeeringOutputError: Swift.Error, Swift.Equatable { extension DeletePeeringOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePeeringOutputResponseBody = try responseDecoder.decode(responseBody: data) self.peering = output.peering } else { @@ -7123,9 +7094,8 @@ public enum DeleteSiteOutputError: Swift.Error, Swift.Equatable { extension DeleteSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.site = output.site } else { @@ -7235,9 +7205,8 @@ public enum DeregisterTransitGatewayOutputError: Swift.Error, Swift.Equatable { extension DeregisterTransitGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterTransitGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayRegistration = output.transitGatewayRegistration } else { @@ -7364,9 +7333,8 @@ public enum DescribeGlobalNetworksOutputError: Swift.Error, Swift.Equatable { extension DescribeGlobalNetworksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGlobalNetworksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalNetworks = output.globalNetworks self.nextToken = output.nextToken @@ -7715,9 +7683,8 @@ public enum DisassociateConnectPeerOutputError: Swift.Error, Swift.Equatable { extension DisassociateConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectPeerAssociation = output.connectPeerAssociation } else { @@ -7827,9 +7794,8 @@ public enum DisassociateCustomerGatewayOutputError: Swift.Error, Swift.Equatable extension DisassociateCustomerGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateCustomerGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerGatewayAssociation = output.customerGatewayAssociation } else { @@ -7962,9 +7928,8 @@ public enum DisassociateLinkOutputError: Swift.Error, Swift.Equatable { extension DisassociateLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.linkAssociation = output.linkAssociation } else { @@ -8074,9 +8039,8 @@ public enum DisassociateTransitGatewayConnectPeerOutputError: Swift.Error, Swift extension DisassociateTransitGatewayConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateTransitGatewayConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayConnectPeerAssociation = output.transitGatewayConnectPeerAssociation } else { @@ -8257,9 +8221,8 @@ public enum GetConnectAttachmentOutputError: Swift.Error, Swift.Equatable { extension GetConnectAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectAttachment = output.connectAttachment } else { @@ -8396,9 +8359,8 @@ public enum GetConnectPeerAssociationsOutputError: Swift.Error, Swift.Equatable extension GetConnectPeerAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectPeerAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectPeerAssociations = output.connectPeerAssociations self.nextToken = output.nextToken @@ -8517,9 +8479,8 @@ public enum GetConnectPeerOutputError: Swift.Error, Swift.Equatable { extension GetConnectPeerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectPeerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectPeer = output.connectPeer } else { @@ -8662,9 +8623,8 @@ public enum GetConnectionsOutputError: Swift.Error, Swift.Equatable { extension GetConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections self.nextToken = output.nextToken @@ -8816,9 +8776,8 @@ public enum GetCoreNetworkChangeEventsOutputError: Swift.Error, Swift.Equatable extension GetCoreNetworkChangeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoreNetworkChangeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworkChangeEvents = output.coreNetworkChangeEvents self.nextToken = output.nextToken @@ -8970,9 +8929,8 @@ public enum GetCoreNetworkChangeSetOutputError: Swift.Error, Swift.Equatable { extension GetCoreNetworkChangeSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoreNetworkChangeSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworkChanges = output.coreNetworkChanges self.nextToken = output.nextToken @@ -9091,9 +9049,8 @@ public enum GetCoreNetworkOutputError: Swift.Error, Swift.Equatable { extension GetCoreNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoreNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetwork = output.coreNetwork } else { @@ -9218,9 +9175,8 @@ public enum GetCoreNetworkPolicyOutputError: Swift.Error, Swift.Equatable { extension GetCoreNetworkPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCoreNetworkPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworkPolicy = output.coreNetworkPolicy } else { @@ -9357,9 +9313,8 @@ public enum GetCustomerGatewayAssociationsOutputError: Swift.Error, Swift.Equata extension GetCustomerGatewayAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCustomerGatewayAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerGatewayAssociations = output.customerGatewayAssociations self.nextToken = output.nextToken @@ -9521,9 +9476,8 @@ public enum GetDevicesOutputError: Swift.Error, Swift.Equatable { extension GetDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.nextToken = output.nextToken @@ -9683,9 +9637,8 @@ public enum GetLinkAssociationsOutputError: Swift.Error, Swift.Equatable { extension GetLinkAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLinkAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.linkAssociations = output.linkAssociations self.nextToken = output.nextToken @@ -9863,9 +9816,8 @@ public enum GetLinksOutputError: Swift.Error, Swift.Equatable { extension GetLinksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLinksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.links = output.links self.nextToken = output.nextToken @@ -10047,9 +9999,8 @@ public enum GetNetworkResourceCountsOutputError: Swift.Error, Swift.Equatable { extension GetNetworkResourceCountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkResourceCountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkResourceCounts = output.networkResourceCounts self.nextToken = output.nextToken @@ -10273,9 +10224,8 @@ public enum GetNetworkResourceRelationshipsOutputError: Swift.Error, Swift.Equat extension GetNetworkResourceRelationshipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkResourceRelationshipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.relationships = output.relationships @@ -10499,9 +10449,8 @@ public enum GetNetworkResourcesOutputError: Swift.Error, Swift.Equatable { extension GetNetworkResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkResources = output.networkResources self.nextToken = output.nextToken @@ -10847,9 +10796,8 @@ public enum GetNetworkRoutesOutputError: Swift.Error, Swift.Equatable { extension GetNetworkRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworkSegmentEdge = output.coreNetworkSegmentEdge self.networkRoutes = output.networkRoutes @@ -11103,9 +11051,8 @@ public enum GetNetworkTelemetryOutputError: Swift.Error, Swift.Equatable { extension GetNetworkTelemetryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkTelemetryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkTelemetry = output.networkTelemetry self.nextToken = output.nextToken @@ -11222,9 +11169,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyDocument = output.policyDocument } else { @@ -11332,9 +11278,8 @@ public enum GetRouteAnalysisOutputError: Swift.Error, Swift.Equatable { extension GetRouteAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRouteAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routeAnalysis = output.routeAnalysis } else { @@ -11434,9 +11379,8 @@ public enum GetSiteToSiteVpnAttachmentOutputError: Swift.Error, Swift.Equatable extension GetSiteToSiteVpnAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSiteToSiteVpnAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.siteToSiteVpnAttachment = output.siteToSiteVpnAttachment } else { @@ -11571,9 +11515,8 @@ public enum GetSitesOutputError: Swift.Error, Swift.Equatable { extension GetSitesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSitesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sites = output.sites @@ -11729,9 +11672,8 @@ public enum GetTransitGatewayConnectPeerAssociationsOutputError: Swift.Error, Sw extension GetTransitGatewayConnectPeerAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayConnectPeerAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayConnectPeerAssociations = output.transitGatewayConnectPeerAssociations @@ -11850,9 +11792,8 @@ public enum GetTransitGatewayPeeringOutputError: Swift.Error, Swift.Equatable { extension GetTransitGatewayPeeringOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayPeeringOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayPeering = output.transitGatewayPeering } else { @@ -11987,9 +11928,8 @@ public enum GetTransitGatewayRegistrationsOutputError: Swift.Error, Swift.Equata extension GetTransitGatewayRegistrationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayRegistrationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transitGatewayRegistrations = output.transitGatewayRegistrations @@ -12108,9 +12048,8 @@ public enum GetTransitGatewayRouteTableAttachmentOutputError: Swift.Error, Swift extension GetTransitGatewayRouteTableAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTransitGatewayRouteTableAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayRouteTableAttachment = output.transitGatewayRouteTableAttachment } else { @@ -12210,9 +12149,8 @@ public enum GetVpcAttachmentOutputError: Swift.Error, Swift.Equatable { extension GetVpcAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVpcAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcAttachment = output.vpcAttachment } else { @@ -12391,9 +12329,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12407,7 +12344,7 @@ extension InternalServerException { } /// The request has failed due to an internal error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12844,9 +12781,8 @@ public enum ListAttachmentsOutputError: Swift.Error, Swift.Equatable { extension ListAttachmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttachmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachments = output.attachments self.nextToken = output.nextToken @@ -12996,9 +12932,8 @@ public enum ListConnectPeersOutputError: Swift.Error, Swift.Equatable { extension ListConnectPeersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectPeersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectPeers = output.connectPeers self.nextToken = output.nextToken @@ -13142,9 +13077,8 @@ public enum ListCoreNetworkPolicyVersionsOutputError: Swift.Error, Swift.Equatab extension ListCoreNetworkPolicyVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCoreNetworkPolicyVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworkPolicyVersions = output.coreNetworkPolicyVersions self.nextToken = output.nextToken @@ -13278,9 +13212,8 @@ public enum ListCoreNetworksOutputError: Swift.Error, Swift.Equatable { extension ListCoreNetworksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCoreNetworksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworks = output.coreNetworks self.nextToken = output.nextToken @@ -13406,9 +13339,8 @@ public enum ListOrganizationServiceAccessStatusOutputError: Swift.Error, Swift.E extension ListOrganizationServiceAccessStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationServiceAccessStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationStatus = output.organizationStatus @@ -13565,9 +13497,8 @@ public enum ListPeeringsOutputError: Swift.Error, Swift.Equatable { extension ListPeeringsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPeeringsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.peerings = output.peerings @@ -13686,9 +13617,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -14934,9 +14864,8 @@ public enum PutCoreNetworkPolicyOutputError: Swift.Error, Swift.Equatable { extension PutCoreNetworkPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutCoreNetworkPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworkPolicy = output.coreNetworkPolicy } else { @@ -15161,9 +15090,8 @@ public enum RegisterTransitGatewayOutputError: Swift.Error, Swift.Equatable { extension RegisterTransitGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterTransitGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transitGatewayRegistration = output.transitGatewayRegistration } else { @@ -15265,9 +15193,8 @@ public enum RejectAttachmentOutputError: Swift.Error, Swift.Equatable { extension RejectAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachment = output.attachment } else { @@ -15351,9 +15278,8 @@ extension NetworkManagerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.context = output.context self.message = output.message @@ -15373,7 +15299,7 @@ extension ResourceNotFoundException { } /// The specified resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15516,9 +15442,8 @@ public enum RestoreCoreNetworkPolicyVersionOutputError: Swift.Error, Swift.Equat extension RestoreCoreNetworkPolicyVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreCoreNetworkPolicyVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetworkPolicy = output.coreNetworkPolicy } else { @@ -16201,9 +16126,8 @@ extension NetworkManagerClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.limitCode = output.limitCode self.message = output.message @@ -16225,7 +16149,7 @@ extension ServiceQuotaExceededException { } /// A service limit was exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16582,9 +16506,8 @@ public enum StartOrganizationServiceAccessUpdateOutputError: Swift.Error, Swift. extension StartOrganizationServiceAccessUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartOrganizationServiceAccessUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationStatus = output.organizationStatus } else { @@ -16748,9 +16671,8 @@ public enum StartRouteAnalysisOutputError: Swift.Error, Swift.Equatable { extension StartRouteAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRouteAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routeAnalysis = output.routeAnalysis } else { @@ -16951,9 +16873,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16967,7 +16888,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17615,9 +17536,8 @@ public enum UpdateConnectionOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -17743,9 +17663,8 @@ public enum UpdateCoreNetworkOutputError: Swift.Error, Swift.Equatable { extension UpdateCoreNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCoreNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.coreNetwork = output.coreNetwork } else { @@ -17968,9 +17887,8 @@ public enum UpdateDeviceOutputError: Swift.Error, Swift.Equatable { extension UpdateDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.device = output.device } else { @@ -18096,9 +18014,8 @@ public enum UpdateGlobalNetworkOutputError: Swift.Error, Swift.Equatable { extension UpdateGlobalNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGlobalNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalNetwork = output.globalNetwork } else { @@ -18270,9 +18187,8 @@ public enum UpdateLinkOutputError: Swift.Error, Swift.Equatable { extension UpdateLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.link = output.link } else { @@ -18419,9 +18335,8 @@ public enum UpdateNetworkResourceMetadataOutputError: Swift.Error, Swift.Equatab extension UpdateNetworkResourceMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNetworkResourceMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata self.resourceArn = output.resourceArn @@ -18597,9 +18512,8 @@ public enum UpdateSiteOutputError: Swift.Error, Swift.Equatable { extension UpdateSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.site = output.site } else { @@ -18773,9 +18687,8 @@ public enum UpdateVpcAttachmentOutputError: Swift.Error, Swift.Equatable { extension UpdateVpcAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVpcAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcAttachment = output.vpcAttachment } else { @@ -18814,9 +18727,8 @@ extension UpdateVpcAttachmentOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -18834,7 +18746,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSNimble/NimbleClient.swift b/Sources/Services/AWSNimble/NimbleClient.swift index 027ab52f878..e98f4ff4fbd 100644 --- a/Sources/Services/AWSNimble/NimbleClient.swift +++ b/Sources/Services/AWSNimble/NimbleClient.swift @@ -208,6 +208,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptEulas") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLaunchProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -276,7 +278,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -296,6 +298,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStreamingImage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -320,7 +323,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +343,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStreamingSession") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -364,7 +368,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +388,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStreamingSessionStream") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -408,7 +413,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -428,6 +433,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStudio") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -452,7 +458,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -472,6 +478,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStudioComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -496,7 +503,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -516,6 +523,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLaunchProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -537,7 +545,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -557,6 +565,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLaunchProfileMember") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -578,7 +587,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -598,6 +607,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStreamingImage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -619,7 +629,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -639,6 +649,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStreamingSession") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -660,7 +671,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +691,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStudio") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -701,7 +713,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -721,6 +733,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStudioComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -742,7 +755,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -762,6 +775,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStudioMember") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -783,7 +797,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +817,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEula") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -815,7 +830,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -835,6 +850,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLaunchProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -847,7 +863,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -867,6 +883,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLaunchProfileDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +896,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +916,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLaunchProfileInitialization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +930,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +950,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLaunchProfileMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +963,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +983,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStreamingImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -976,7 +996,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -996,6 +1016,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStreamingSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1008,7 +1029,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1028,6 +1049,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStreamingSessionBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1040,7 +1062,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1060,6 +1082,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStreamingSessionStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1072,7 +1095,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1092,6 +1115,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStudio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1128,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1148,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStudioComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1136,7 +1161,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1156,6 +1181,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStudioMember") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1194,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1214,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEulaAcceptances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1201,7 +1228,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1221,6 +1248,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEulas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1234,7 +1262,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1254,6 +1282,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLaunchProfileMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1267,7 +1296,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1287,6 +1316,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLaunchProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1300,7 +1330,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1320,6 +1350,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreamingImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1333,7 +1364,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1353,6 +1384,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreamingSessionBackups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1366,7 +1398,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1386,6 +1418,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreamingSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1399,7 +1432,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1419,6 +1452,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStudioComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1432,7 +1466,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1452,6 +1486,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStudioMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1465,7 +1500,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1485,6 +1520,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStudios") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1498,7 +1534,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1518,6 +1554,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1530,7 +1567,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1550,6 +1587,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLaunchProfileMembers") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1574,7 +1612,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1594,6 +1632,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putStudioMembers") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1618,7 +1657,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1638,6 +1677,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startStreamingSession") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1662,7 +1702,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1682,6 +1722,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startStudioSSOConfigurationRepair") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1703,7 +1744,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1723,6 +1764,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopStreamingSession") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1747,7 +1789,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1767,6 +1809,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1782,7 +1825,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1802,6 +1845,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1815,7 +1859,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1835,6 +1879,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLaunchProfile") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1859,7 +1904,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1879,6 +1924,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLaunchProfileMember") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1903,7 +1949,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1923,6 +1969,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStreamingImage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1947,7 +1994,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1967,6 +2014,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStudio") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1991,7 +2039,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2011,6 +2059,7 @@ extension NimbleClient: NimbleClientProtocol { .withRegion(value: config.region) .withSigningName(value: "nimble") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStudioComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2035,7 +2084,7 @@ extension NimbleClient: NimbleClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSNimble/models/Models.swift b/Sources/Services/AWSNimble/models/Models.swift index fbfa5f8f95a..e8897e6aada 100644 --- a/Sources/Services/AWSNimble/models/Models.swift +++ b/Sources/Services/AWSNimble/models/Models.swift @@ -119,9 +119,8 @@ public enum AcceptEulasOutputError: Swift.Error, Swift.Equatable { extension AcceptEulasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptEulasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eulaAcceptances = output.eulaAcceptances } else { @@ -169,9 +168,8 @@ extension AcceptEulasOutputResponseBody: Swift.Decodable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -189,7 +187,7 @@ extension AccessDeniedException { } /// You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -450,9 +448,8 @@ extension NimbleClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -470,7 +467,7 @@ extension ConflictException { } /// Another operation is in progress. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -765,9 +762,8 @@ public enum CreateLaunchProfileOutputError: Swift.Error, Swift.Equatable { extension CreateLaunchProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLaunchProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchProfile = output.launchProfile } else { @@ -964,9 +960,8 @@ public enum CreateStreamingImageOutputError: Swift.Error, Swift.Equatable { extension CreateStreamingImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStreamingImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingImage = output.streamingImage } else { @@ -1169,9 +1164,8 @@ public enum CreateStreamingSessionOutputError: Swift.Error, Swift.Equatable { extension CreateStreamingSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStreamingSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -1321,9 +1315,8 @@ public enum CreateStreamingSessionStreamOutputError: Swift.Error, Swift.Equatabl extension CreateStreamingSessionStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStreamingSessionStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stream = output.stream } else { @@ -1640,9 +1633,8 @@ public enum CreateStudioComponentOutputError: Swift.Error, Swift.Equatable { extension CreateStudioComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStudioComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studioComponent = output.studioComponent } else { @@ -1857,9 +1849,8 @@ public enum CreateStudioOutputError: Swift.Error, Swift.Equatable { extension CreateStudioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStudioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studio = output.studio } else { @@ -2090,9 +2081,8 @@ public enum DeleteLaunchProfileOutputError: Swift.Error, Swift.Equatable { extension DeleteLaunchProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteLaunchProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchProfile = output.launchProfile } else { @@ -2218,9 +2208,8 @@ public enum DeleteStreamingImageOutputError: Swift.Error, Swift.Equatable { extension DeleteStreamingImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteStreamingImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingImage = output.streamingImage } else { @@ -2346,9 +2335,8 @@ public enum DeleteStreamingSessionOutputError: Swift.Error, Swift.Equatable { extension DeleteStreamingSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteStreamingSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -2474,9 +2462,8 @@ public enum DeleteStudioComponentOutputError: Swift.Error, Swift.Equatable { extension DeleteStudioComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteStudioComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studioComponent = output.studioComponent } else { @@ -2691,9 +2678,8 @@ public enum DeleteStudioOutputError: Swift.Error, Swift.Equatable { extension DeleteStudioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteStudioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studio = output.studio } else { @@ -2948,9 +2934,8 @@ public enum GetEulaOutputError: Swift.Error, Swift.Equatable { extension GetEulaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEulaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eula = output.eula } else { @@ -3062,9 +3047,8 @@ public enum GetLaunchProfileDetailsOutputError: Swift.Error, Swift.Equatable { extension GetLaunchProfileDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLaunchProfileDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchProfile = output.launchProfile self.streamingImages = output.streamingImages @@ -3258,9 +3242,8 @@ public enum GetLaunchProfileInitializationOutputError: Swift.Error, Swift.Equata extension GetLaunchProfileInitializationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLaunchProfileInitializationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchProfileInitialization = output.launchProfileInitialization } else { @@ -3419,9 +3402,8 @@ public enum GetLaunchProfileMemberOutputError: Swift.Error, Swift.Equatable { extension GetLaunchProfileMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLaunchProfileMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.member = output.member } else { @@ -3494,9 +3476,8 @@ public enum GetLaunchProfileOutputError: Swift.Error, Swift.Equatable { extension GetLaunchProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLaunchProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchProfile = output.launchProfile } else { @@ -3608,9 +3589,8 @@ public enum GetStreamingImageOutputError: Swift.Error, Swift.Equatable { extension GetStreamingImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStreamingImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingImage = output.streamingImage } else { @@ -3720,9 +3700,8 @@ public enum GetStreamingSessionBackupOutputError: Swift.Error, Swift.Equatable { extension GetStreamingSessionBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStreamingSessionBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingSessionBackup = output.streamingSessionBackup } else { @@ -3834,9 +3813,8 @@ public enum GetStreamingSessionOutputError: Swift.Error, Swift.Equatable { extension GetStreamingSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStreamingSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -3956,9 +3934,8 @@ public enum GetStreamingSessionStreamOutputError: Swift.Error, Swift.Equatable { extension GetStreamingSessionStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStreamingSessionStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stream = output.stream } else { @@ -4070,9 +4047,8 @@ public enum GetStudioComponentOutputError: Swift.Error, Swift.Equatable { extension GetStudioComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStudioComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studioComponent = output.studioComponent } else { @@ -4215,9 +4191,8 @@ public enum GetStudioMemberOutputError: Swift.Error, Swift.Equatable { extension GetStudioMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStudioMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.member = output.member } else { @@ -4290,9 +4265,8 @@ public enum GetStudioOutputError: Swift.Error, Swift.Equatable { extension GetStudioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStudioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studio = output.studio } else { @@ -4332,9 +4306,8 @@ extension GetStudioOutputResponseBody: Swift.Decodable { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -4352,7 +4325,7 @@ extension InternalServerErrorException { } /// An internal error has occurred. Please retry your request. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5557,9 +5530,8 @@ public enum ListEulaAcceptancesOutputError: Swift.Error, Swift.Equatable { extension ListEulaAcceptancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEulaAcceptancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eulaAcceptances = output.eulaAcceptances self.nextToken = output.nextToken @@ -5701,9 +5673,8 @@ public enum ListEulasOutputError: Swift.Error, Swift.Equatable { extension ListEulasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEulasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eulas = output.eulas self.nextToken = output.nextToken @@ -5859,9 +5830,8 @@ public enum ListLaunchProfileMembersOutputError: Swift.Error, Swift.Equatable { extension ListLaunchProfileMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLaunchProfileMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.nextToken = output.nextToken @@ -6027,9 +5997,8 @@ public enum ListLaunchProfilesOutputError: Swift.Error, Swift.Equatable { extension ListLaunchProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLaunchProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchProfiles = output.launchProfiles self.nextToken = output.nextToken @@ -6177,9 +6146,8 @@ public enum ListStreamingImagesOutputError: Swift.Error, Swift.Equatable { extension ListStreamingImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamingImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streamingImages = output.streamingImages @@ -6325,9 +6293,8 @@ public enum ListStreamingSessionBackupsOutputError: Swift.Error, Swift.Equatable extension ListStreamingSessionBackupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamingSessionBackupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streamingSessionBackups = output.streamingSessionBackups @@ -6491,9 +6458,8 @@ public enum ListStreamingSessionsOutputError: Swift.Error, Swift.Equatable { extension ListStreamingSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamingSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sessions = output.sessions @@ -6661,9 +6627,8 @@ public enum ListStudioComponentsOutputError: Swift.Error, Swift.Equatable { extension ListStudioComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStudioComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.studioComponents = output.studioComponents @@ -6811,9 +6776,8 @@ public enum ListStudioMembersOutputError: Swift.Error, Swift.Equatable { extension ListStudioMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStudioMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.nextToken = output.nextToken @@ -6945,9 +6909,8 @@ public enum ListStudiosOutputError: Swift.Error, Swift.Equatable { extension ListStudiosOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStudiosOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.studios = output.studios @@ -7071,9 +7034,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7501,9 +7463,8 @@ public struct PutStudioMembersOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -7521,7 +7482,7 @@ extension ResourceNotFoundException { } /// The specified resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7628,9 +7589,8 @@ extension NimbleClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -7648,7 +7608,7 @@ extension ServiceQuotaExceededException { } /// Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7965,9 +7925,8 @@ public enum StartStreamingSessionOutputError: Swift.Error, Swift.Equatable { extension StartStreamingSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartStreamingSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -8085,9 +8044,8 @@ public enum StartStudioSSOConfigurationRepairOutputError: Swift.Error, Swift.Equ extension StartStudioSSOConfigurationRepairOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartStudioSSOConfigurationRepairOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studio = output.studio } else { @@ -8238,9 +8196,8 @@ public enum StopStreamingSessionOutputError: Swift.Error, Swift.Equatable { extension StopStreamingSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopStreamingSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -11390,9 +11347,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -11410,7 +11366,7 @@ extension ThrottlingException { } /// The request throughput limit was exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11843,9 +11799,8 @@ public enum UpdateLaunchProfileMemberOutputError: Swift.Error, Swift.Equatable { extension UpdateLaunchProfileMemberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLaunchProfileMemberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.member = output.member } else { @@ -11918,9 +11873,8 @@ public enum UpdateLaunchProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateLaunchProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLaunchProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchProfile = output.launchProfile } else { @@ -12087,9 +12041,8 @@ public enum UpdateStreamingImageOutputError: Swift.Error, Swift.Equatable { extension UpdateStreamingImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStreamingImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamingImage = output.streamingImage } else { @@ -12388,9 +12341,8 @@ public enum UpdateStudioComponentOutputError: Swift.Error, Swift.Equatable { extension UpdateStudioComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStudioComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studioComponent = output.studioComponent } else { @@ -12561,9 +12513,8 @@ public enum UpdateStudioOutputError: Swift.Error, Swift.Equatable { extension UpdateStudioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStudioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studio = output.studio } else { @@ -12603,9 +12554,8 @@ extension UpdateStudioOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.context = output.context @@ -12623,7 +12573,7 @@ extension ValidationException { } /// One of the parameters in the request is invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSOAM/OAMClient.swift b/Sources/Services/AWSOAM/OAMClient.swift index 645a7ed8330..bce0d3ef5e0 100644 --- a/Sources/Services/AWSOAM/OAMClient.swift +++ b/Sources/Services/AWSOAM/OAMClient.swift @@ -208,6 +208,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSinkPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttachedLinks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLinks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSinks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -570,7 +581,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -599,6 +610,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSinkPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -614,7 +626,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -634,6 +646,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -649,7 +662,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -669,6 +682,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -682,7 +696,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -702,6 +716,7 @@ extension OAMClient: OAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "oam") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLink") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -717,7 +732,7 @@ extension OAMClient: OAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSOAM/models/Models.swift b/Sources/Services/AWSOAM/models/Models.swift index f38d264828b..bebaa9b5c3b 100644 --- a/Sources/Services/AWSOAM/models/Models.swift +++ b/Sources/Services/AWSOAM/models/Models.swift @@ -9,9 +9,8 @@ extension ConflictException { } else { self.amznErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25,7 +24,7 @@ extension ConflictException { } /// A resource was in an inconsistent state during an update or a deletion. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -211,9 +210,8 @@ public enum CreateLinkOutputError: Swift.Error, Swift.Equatable { extension CreateLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -432,9 +430,8 @@ public enum CreateSinkOutputError: Swift.Error, Swift.Equatable { extension CreateSinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -762,9 +759,8 @@ public enum GetLinkOutputError: Swift.Error, Swift.Equatable { extension GetLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -957,9 +953,8 @@ public enum GetSinkOutputError: Swift.Error, Swift.Equatable { extension GetSinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -1113,9 +1108,8 @@ public enum GetSinkPolicyOutputError: Swift.Error, Swift.Equatable { extension GetSinkPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSinkPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.sinkArn = output.sinkArn @@ -1179,9 +1173,8 @@ extension InternalServiceFault { } else { self.amznErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1195,7 +1188,7 @@ extension InternalServiceFault { } /// Unexpected error while processing the request. Retry the request. -public struct InternalServiceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1240,9 +1233,8 @@ extension InvalidParameterException { } else { self.amznErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1256,7 +1248,7 @@ extension InvalidParameterException { } /// A parameter is specified incorrectly. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1463,9 +1455,8 @@ public enum ListAttachedLinksOutputError: Swift.Error, Swift.Equatable { extension ListAttachedLinksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttachedLinksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -1696,9 +1687,8 @@ public enum ListLinksOutputError: Swift.Error, Swift.Equatable { extension ListLinksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLinksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -1897,9 +1887,8 @@ public enum ListSinksOutputError: Swift.Error, Swift.Equatable { extension ListSinksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSinksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -2013,9 +2002,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2068,9 +2056,8 @@ extension MissingRequiredParameterException { } else { self.amznErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingRequiredParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2084,7 +2071,7 @@ extension MissingRequiredParameterException { } /// A required parameter is missing from the request. -public struct MissingRequiredParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingRequiredParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2213,9 +2200,8 @@ public enum PutSinkPolicyOutputError: Swift.Error, Swift.Equatable { extension PutSinkPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSinkPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.sinkArn = output.sinkArn @@ -2279,9 +2265,8 @@ extension ResourceNotFoundException { } else { self.amznErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2295,7 +2280,7 @@ extension ResourceNotFoundException { } /// The request references a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2375,9 +2360,8 @@ extension ServiceQuotaExceededException { } else { self.amznErrorType = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2391,7 +2375,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2535,9 +2519,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2551,7 +2534,7 @@ extension TooManyTagsException { } /// A resource can have no more than 50 tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2775,9 +2758,8 @@ public enum UpdateLinkOutputError: Swift.Error, Swift.Equatable { extension UpdateLinkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLinkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -2894,9 +2876,8 @@ extension UpdateLinkOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2910,7 +2891,7 @@ extension ValidationException { } /// The value of a parameter in the request caused an error. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSOmics/OmicsClient.swift b/Sources/Services/AWSOmics/OmicsClient.swift index 3e19fc617d6..7d6dbd387dc 100644 --- a/Sources/Services/AWSOmics/OmicsClient.swift +++ b/Sources/Services/AWSOmics/OmicsClient.swift @@ -208,6 +208,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteReadSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -223,7 +224,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelAnnotationImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -255,7 +257,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -287,7 +290,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelVariantImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -319,7 +323,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +343,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAnnotationStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -354,7 +359,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -374,6 +379,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReferenceStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -389,7 +395,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRunGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -432,7 +439,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -452,6 +459,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSequenceStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -467,7 +475,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -487,6 +495,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVariantStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -502,7 +511,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -522,6 +531,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkflow") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -545,7 +555,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -565,6 +575,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAnnotationStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -578,7 +589,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -598,6 +609,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -610,7 +622,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -630,6 +642,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReferenceStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -642,7 +655,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -662,6 +675,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -674,7 +688,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRunGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -706,7 +721,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -726,6 +741,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSequenceStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -738,7 +754,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -758,6 +774,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVariantStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -771,7 +788,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -791,6 +808,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -803,7 +821,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -823,6 +841,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnnotationImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -835,7 +854,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -855,6 +874,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnnotationStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -867,7 +887,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -887,6 +907,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReadSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "storage-")) @@ -900,7 +921,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -920,6 +941,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReadSetActivationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -932,7 +954,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -952,6 +974,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReadSetExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -964,7 +987,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -984,6 +1007,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReadSetImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -996,7 +1020,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1040,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReadSetMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1028,7 +1053,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1048,6 +1073,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "storage-")) @@ -1062,7 +1088,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1082,6 +1108,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReferenceImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1094,7 +1121,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1114,6 +1141,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReferenceMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1126,7 +1154,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1146,6 +1174,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReferenceStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1158,7 +1187,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1178,6 +1207,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -1191,7 +1221,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1211,6 +1241,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRunGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -1223,7 +1254,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1243,6 +1274,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRunTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -1255,7 +1287,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1275,6 +1307,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSequenceStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1287,7 +1320,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1307,6 +1340,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVariantImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -1319,7 +1353,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1339,6 +1373,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVariantStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -1351,7 +1386,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1371,6 +1406,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -1384,7 +1420,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1404,6 +1440,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnnotationImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -1420,7 +1457,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1440,6 +1477,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnnotationStores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -1456,7 +1494,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1476,6 +1514,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReadSetActivationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1492,7 +1531,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1512,6 +1551,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReadSetExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1528,7 +1568,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1548,6 +1588,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReadSetImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1564,7 +1605,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1584,6 +1625,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReadSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1600,7 +1642,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1620,6 +1662,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReferenceImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1636,7 +1679,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1656,6 +1699,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReferenceStores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1672,7 +1716,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1692,6 +1736,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReferences") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1708,7 +1753,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1728,6 +1773,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRunGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -1741,7 +1787,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1761,6 +1807,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRunTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -1774,7 +1821,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1794,6 +1841,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -1807,7 +1855,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1827,6 +1875,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSequenceStores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -1843,7 +1892,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1863,6 +1912,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tags-")) @@ -1875,7 +1925,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1895,6 +1945,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVariantImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -1911,7 +1962,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1931,6 +1982,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVariantStores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -1947,7 +1999,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1967,6 +2019,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -1980,7 +2033,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2000,6 +2053,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAnnotationImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -2015,7 +2069,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2035,6 +2089,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReadSetActivationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -2050,7 +2105,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2070,6 +2125,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReadSetExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -2085,7 +2141,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2105,6 +2161,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReadSetImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -2120,7 +2177,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2140,6 +2197,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReferenceImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "control-storage-")) @@ -2155,7 +2213,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2175,6 +2233,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRun") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2198,7 +2257,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2218,6 +2277,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startVariantImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -2233,7 +2293,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2253,6 +2313,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tags-")) @@ -2268,7 +2329,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2288,6 +2349,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "tags-")) @@ -2301,7 +2363,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2321,6 +2383,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAnnotationStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -2336,7 +2399,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2356,6 +2419,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRunGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -2371,7 +2435,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2391,6 +2455,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVariantStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "analytics-")) @@ -2406,7 +2471,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2426,6 +2491,7 @@ extension OmicsClient: OmicsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "omics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "workflows-")) @@ -2441,7 +2507,7 @@ extension OmicsClient: OmicsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSOmics/models/Models.swift b/Sources/Services/AWSOmics/models/Models.swift index 13941883d0a..887d5ce2657 100644 --- a/Sources/Services/AWSOmics/models/Models.swift +++ b/Sources/Services/AWSOmics/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -753,9 +752,8 @@ public enum BatchDeleteReadSetOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteReadSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteReadSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { @@ -1022,9 +1020,8 @@ public struct CancelVariantImportJobOutputResponse: Swift.Equatable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1038,7 +1035,7 @@ extension ConflictException { } /// The request cannot be applied to the target resource in its current state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1241,9 +1238,8 @@ public enum CreateAnnotationStoreOutputError: Swift.Error, Swift.Equatable { extension CreateAnnotationStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAnnotationStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.id = output.id @@ -1486,9 +1482,8 @@ public enum CreateReferenceStoreOutputError: Swift.Error, Swift.Equatable { extension CreateReferenceStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReferenceStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -1736,9 +1731,8 @@ public enum CreateRunGroupOutputError: Swift.Error, Swift.Equatable { extension CreateRunGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRunGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -1946,9 +1940,8 @@ public enum CreateSequenceStoreOutputError: Swift.Error, Swift.Equatable { extension CreateSequenceStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSequenceStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -2182,9 +2175,8 @@ public enum CreateVariantStoreOutputError: Swift.Error, Swift.Equatable { extension CreateVariantStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVariantStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.id = output.id @@ -2483,9 +2475,8 @@ public enum CreateWorkflowOutputError: Swift.Error, Swift.Equatable { extension CreateWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -2643,9 +2634,8 @@ public enum DeleteAnnotationStoreOutputError: Swift.Error, Swift.Equatable { extension DeleteAnnotationStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAnnotationStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -3152,9 +3142,8 @@ public enum DeleteVariantStoreOutputError: Swift.Error, Swift.Equatable { extension DeleteVariantStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVariantStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -3781,9 +3770,8 @@ public enum GetAnnotationImportJobOutputError: Swift.Error, Swift.Equatable { extension GetAnnotationImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnnotationImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completionTime = output.completionTime self.creationTime = output.creationTime @@ -4003,9 +3991,8 @@ public enum GetAnnotationStoreOutputError: Swift.Error, Swift.Equatable { extension GetAnnotationStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnnotationStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -4266,9 +4253,8 @@ public enum GetReadSetActivationJobOutputError: Swift.Error, Swift.Equatable { extension GetReadSetActivationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReadSetActivationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completionTime = output.completionTime self.creationTime = output.creationTime @@ -4451,9 +4437,8 @@ public enum GetReadSetExportJobOutputError: Swift.Error, Swift.Equatable { extension GetReadSetExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReadSetExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completionTime = output.completionTime self.creationTime = output.creationTime @@ -4647,9 +4632,8 @@ public enum GetReadSetImportJobOutputError: Swift.Error, Swift.Equatable { extension GetReadSetImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReadSetImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completionTime = output.completionTime self.creationTime = output.creationTime @@ -4911,9 +4895,8 @@ public enum GetReadSetMetadataOutputError: Swift.Error, Swift.Equatable { extension GetReadSetMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReadSetMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -5114,9 +5097,12 @@ public enum GetReadSetOutputError: Swift.Error, Swift.Equatable { extension GetReadSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - self.payload = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.payload = .data(data) + case .stream(let stream): + self.payload = .stream(stream) + case .none: self.payload = nil } } @@ -5223,9 +5209,8 @@ public enum GetReferenceImportJobOutputError: Swift.Error, Swift.Equatable { extension GetReferenceImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReferenceImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completionTime = output.completionTime self.creationTime = output.creationTime @@ -5501,9 +5486,8 @@ public enum GetReferenceMetadataOutputError: Swift.Error, Swift.Equatable { extension GetReferenceMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReferenceMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -5672,9 +5656,12 @@ public enum GetReferenceOutputError: Swift.Error, Swift.Equatable { extension GetReferenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - self.payload = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.payload = .data(data) + case .stream(let stream): + self.payload = .stream(stream) + case .none: self.payload = nil } } @@ -5773,9 +5760,8 @@ public enum GetReferenceStoreOutputError: Swift.Error, Swift.Equatable { extension GetReferenceStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReferenceStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -5934,9 +5920,8 @@ public enum GetRunGroupOutputError: Swift.Error, Swift.Equatable { extension GetRunGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRunGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -6140,9 +6125,8 @@ public enum GetRunOutputError: Swift.Error, Swift.Equatable { extension GetRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -6494,9 +6478,8 @@ public enum GetRunTaskOutputError: Swift.Error, Swift.Equatable { extension GetRunTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRunTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cpus = output.cpus self.creationTime = output.creationTime @@ -6688,9 +6671,8 @@ public enum GetSequenceStoreOutputError: Swift.Error, Swift.Equatable { extension GetSequenceStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSequenceStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -6843,9 +6825,8 @@ public enum GetVariantImportJobOutputError: Swift.Error, Swift.Equatable { extension GetVariantImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVariantImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completionTime = output.completionTime self.creationTime = output.creationTime @@ -7053,9 +7034,8 @@ public enum GetVariantStoreOutputError: Swift.Error, Swift.Equatable { extension GetVariantStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVariantStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -7319,9 +7299,8 @@ public enum GetWorkflowOutputError: Swift.Error, Swift.Equatable { extension GetWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -8058,9 +8037,8 @@ extension OmicsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8074,7 +8052,7 @@ extension InternalServerException { } /// An unexpected error occurred. Try the request again. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8332,9 +8310,8 @@ public enum ListAnnotationImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListAnnotationImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnnotationImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.annotationImportJobs = output.annotationImportJobs self.nextToken = output.nextToken @@ -8553,9 +8530,8 @@ public enum ListAnnotationStoresOutputError: Swift.Error, Swift.Equatable { extension ListAnnotationStoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnnotationStoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.annotationStores = output.annotationStores self.nextToken = output.nextToken @@ -8725,9 +8701,8 @@ public enum ListReadSetActivationJobsOutputError: Swift.Error, Swift.Equatable { extension ListReadSetActivationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReadSetActivationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activationJobs = output.activationJobs self.nextToken = output.nextToken @@ -8897,9 +8872,8 @@ public enum ListReadSetExportJobsOutputError: Swift.Error, Swift.Equatable { extension ListReadSetExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReadSetExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportJobs = output.exportJobs self.nextToken = output.nextToken @@ -9069,9 +9043,8 @@ public enum ListReadSetImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListReadSetImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReadSetImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importJobs = output.importJobs self.nextToken = output.nextToken @@ -9241,9 +9214,8 @@ public enum ListReadSetsOutputError: Swift.Error, Swift.Equatable { extension ListReadSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReadSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.readSets = output.readSets @@ -9414,9 +9386,8 @@ public enum ListReferenceImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListReferenceImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReferenceImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importJobs = output.importJobs self.nextToken = output.nextToken @@ -9576,9 +9547,8 @@ public enum ListReferenceStoresOutputError: Swift.Error, Swift.Equatable { extension ListReferenceStoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReferenceStoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.referenceStores = output.referenceStores @@ -9749,9 +9719,8 @@ public enum ListReferencesOutputError: Swift.Error, Swift.Equatable { extension ListReferencesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReferencesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.references = output.references @@ -9902,9 +9871,8 @@ public enum ListRunGroupsOutputError: Swift.Error, Swift.Equatable { extension ListRunGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRunGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10062,9 +10030,8 @@ public enum ListRunTasksOutputError: Swift.Error, Swift.Equatable { extension ListRunTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRunTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10222,9 +10189,8 @@ public enum ListRunsOutputError: Swift.Error, Swift.Equatable { extension ListRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -10384,9 +10350,8 @@ public enum ListSequenceStoresOutputError: Swift.Error, Swift.Equatable { extension ListSequenceStoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSequenceStoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sequenceStores = output.sequenceStores @@ -10512,9 +10477,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10734,9 +10698,8 @@ public enum ListVariantImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListVariantImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVariantImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.variantImportJobs = output.variantImportJobs @@ -10955,9 +10918,8 @@ public enum ListVariantStoresOutputError: Swift.Error, Swift.Equatable { extension ListVariantStoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVariantStoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.variantStores = output.variantStores @@ -11115,9 +11077,8 @@ public enum ListWorkflowsOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -11175,9 +11136,8 @@ extension ListWorkflowsOutputResponseBody: Swift.Decodable { extension RangeNotSatisfiableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RangeNotSatisfiableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11191,7 +11151,7 @@ extension RangeNotSatisfiableException { } /// The ranges specified in the request are not valid. -public struct RangeNotSatisfiableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RangeNotSatisfiableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12576,9 +12536,8 @@ extension OmicsClientTypes { extension RequestTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12592,7 +12551,7 @@ extension RequestTimeoutException { } /// The request timed out. -public struct RequestTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12629,9 +12588,8 @@ extension RequestTimeoutExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12645,7 +12603,7 @@ extension ResourceNotFoundException { } /// The target resource was not found in the current Region. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13277,9 +13235,8 @@ extension OmicsClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13293,7 +13250,7 @@ extension ServiceQuotaExceededException { } /// The request exceeds a service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13564,9 +13521,8 @@ public enum StartAnnotationImportJobOutputError: Swift.Error, Swift.Equatable { extension StartAnnotationImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAnnotationImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -13720,9 +13676,8 @@ public enum StartReadSetActivationJobOutputError: Swift.Error, Swift.Equatable { extension StartReadSetActivationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReadSetActivationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.id = output.id @@ -13971,9 +13926,8 @@ public enum StartReadSetExportJobOutputError: Swift.Error, Swift.Equatable { extension StartReadSetExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReadSetExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.destination = output.destination @@ -14184,9 +14138,8 @@ public enum StartReadSetImportJobOutputError: Swift.Error, Swift.Equatable { extension StartReadSetImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReadSetImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.id = output.id @@ -14529,9 +14482,8 @@ public enum StartReferenceImportJobOutputError: Swift.Error, Swift.Equatable { extension StartReferenceImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartReferenceImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.id = output.id @@ -14935,9 +14887,8 @@ public enum StartRunOutputError: Swift.Error, Swift.Equatable { extension StartRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -15145,9 +15096,8 @@ public enum StartVariantImportJobOutputError: Swift.Error, Swift.Equatable { extension StartVariantImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartVariantImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -15574,9 +15524,8 @@ extension OmicsClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15590,7 +15539,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15937,9 +15886,8 @@ public enum UpdateAnnotationStoreOutputError: Swift.Error, Swift.Equatable { extension UpdateAnnotationStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAnnotationStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -16287,9 +16235,8 @@ public enum UpdateVariantStoreOutputError: Swift.Error, Swift.Equatable { extension UpdateVariantStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVariantStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -16508,9 +16455,8 @@ public struct UpdateWorkflowOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16524,7 +16470,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSOpenSearch/OpenSearchClient.swift b/Sources/Services/AWSOpenSearch/OpenSearchClient.swift index dfac4626abc..43bdc93b7a5 100644 --- a/Sources/Services/AWSOpenSearch/OpenSearchClient.swift +++ b/Sources/Services/AWSOpenSearch/OpenSearchClient.swift @@ -208,6 +208,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptInboundConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeVpcEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -322,7 +326,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -342,6 +346,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelServiceSoftwareUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -392,7 +398,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +418,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOutboundConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -427,7 +434,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -447,6 +454,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +470,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -482,6 +490,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -497,7 +506,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -517,6 +526,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -529,7 +539,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -549,6 +559,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInboundConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -561,7 +572,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -581,6 +592,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOutboundConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +605,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +625,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -625,7 +638,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -645,6 +658,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -657,7 +671,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -677,6 +691,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -689,7 +704,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -709,6 +724,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomainAutoTunes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -724,7 +740,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -744,6 +760,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomainChangeProgress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -757,7 +774,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -777,6 +794,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomainConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -789,7 +807,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -809,6 +827,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -824,7 +843,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -844,6 +863,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDryRunProgress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -857,7 +877,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -877,6 +897,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInboundConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -892,7 +913,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -912,6 +933,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceTypeLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -925,7 +947,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -945,6 +967,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOutboundConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +983,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +1003,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -995,7 +1019,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1015,6 +1039,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedInstanceOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1028,7 +1053,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1048,6 +1073,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1061,7 +1087,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1081,6 +1107,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVpcEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1123,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1143,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "dissociatePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1128,7 +1156,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1176,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCompatibleVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1161,7 +1190,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1181,6 +1210,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPackageVersionHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1194,7 +1224,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1214,6 +1244,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUpgradeHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1227,7 +1258,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1247,6 +1278,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUpgradeStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1259,7 +1291,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1279,6 +1311,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainNames") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1292,7 +1325,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1312,6 +1345,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainsForPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1325,7 +1359,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1345,6 +1379,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstanceTypeDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1358,7 +1393,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1378,6 +1413,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackagesForDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1391,7 +1427,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1411,6 +1447,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listScheduledActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1424,7 +1461,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1444,6 +1481,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1457,7 +1495,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1477,6 +1515,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1490,7 +1529,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1510,6 +1549,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1523,7 +1563,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1543,6 +1583,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1597,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1617,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcEndpointsForDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1589,7 +1631,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1609,6 +1651,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseReservedInstanceOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1624,7 +1667,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1644,6 +1687,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectInboundConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1656,7 +1700,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1676,6 +1720,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1691,7 +1736,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1711,6 +1756,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeVpcEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1726,7 +1772,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1746,6 +1792,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startServiceSoftwareUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1761,7 +1808,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1781,6 +1828,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1796,7 +1844,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1816,6 +1864,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1831,7 +1880,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1851,6 +1900,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateScheduledAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1866,7 +1916,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1886,6 +1936,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1901,7 +1952,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1921,6 +1972,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { .withRegion(value: config.region) .withSigningName(value: "es") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "upgradeDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1936,7 +1988,7 @@ extension OpenSearchClient: OpenSearchClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSOpenSearch/models/Models.swift b/Sources/Services/AWSOpenSearch/models/Models.swift index fe044c5bd87..ab4ed1d685f 100644 --- a/Sources/Services/AWSOpenSearch/models/Models.swift +++ b/Sources/Services/AWSOpenSearch/models/Models.swift @@ -118,9 +118,8 @@ public enum AcceptInboundConnectionOutputError: Swift.Error, Swift.Equatable { extension AcceptInboundConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptInboundConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -160,9 +159,8 @@ extension AcceptInboundConnectionOutputResponseBody: Swift.Decodable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -176,7 +174,7 @@ extension AccessDeniedException { } /// An error occurred because you don't have permissions to access the resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -884,9 +882,8 @@ public enum AssociatePackageOutputError: Swift.Error, Swift.Equatable { extension AssociatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainPackageDetails = output.domainPackageDetails } else { @@ -1014,9 +1011,8 @@ public enum AuthorizeVpcEndpointAccessOutputError: Swift.Error, Swift.Equatable extension AuthorizeVpcEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeVpcEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedPrincipal = output.authorizedPrincipal } else { @@ -1685,9 +1681,8 @@ extension OpenSearchClientTypes { extension BaseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BaseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1701,7 +1696,7 @@ extension BaseException { } /// An error occurred while processing the request. -public struct BaseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BaseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1815,9 +1810,8 @@ public enum CancelServiceSoftwareUpdateOutputError: Swift.Error, Swift.Equatable extension CancelServiceSoftwareUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelServiceSoftwareUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSoftwareOptions = output.serviceSoftwareOptions } else { @@ -2485,9 +2479,8 @@ extension OpenSearchClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2501,7 +2494,7 @@ extension ConflictException { } /// An error occurred because the client attempts to remove a resource that is currently in use. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2943,9 +2936,8 @@ public enum CreateDomainOutputError: Swift.Error, Swift.Equatable { extension CreateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatus = output.domainStatus } else { @@ -3100,9 +3092,8 @@ public enum CreateOutboundConnectionOutputError: Swift.Error, Swift.Equatable { extension CreateOutboundConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOutboundConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionAlias = output.connectionAlias self.connectionId = output.connectionId @@ -3323,9 +3314,8 @@ public enum CreatePackageOutputError: Swift.Error, Swift.Equatable { extension CreatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.packageDetails = output.packageDetails } else { @@ -3470,9 +3460,8 @@ public enum CreateVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpoint = output.vpcEndpoint } else { @@ -3572,9 +3561,8 @@ public enum DeleteDomainOutputError: Swift.Error, Swift.Equatable { extension DeleteDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatus = output.domainStatus } else { @@ -3670,9 +3658,8 @@ public enum DeleteInboundConnectionOutputError: Swift.Error, Swift.Equatable { extension DeleteInboundConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInboundConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -3768,9 +3755,8 @@ public enum DeleteOutboundConnectionOutputError: Swift.Error, Swift.Equatable { extension DeleteOutboundConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteOutboundConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -3874,9 +3860,8 @@ public enum DeletePackageOutputError: Swift.Error, Swift.Equatable { extension DeletePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.packageDetails = output.packageDetails } else { @@ -3975,9 +3960,8 @@ public enum DeleteVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpointSummary = output.vpcEndpointSummary } else { @@ -4154,9 +4138,8 @@ public enum DescribeDomainAutoTunesOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainAutoTunesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainAutoTunesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoTunes = output.autoTunes self.nextToken = output.nextToken @@ -4292,9 +4275,8 @@ public enum DescribeDomainChangeProgressOutputError: Swift.Error, Swift.Equatabl extension DescribeDomainChangeProgressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainChangeProgressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeProgressStatus = output.changeProgressStatus } else { @@ -4394,9 +4376,8 @@ public enum DescribeDomainConfigOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainConfig = output.domainConfig } else { @@ -4497,9 +4478,8 @@ public enum DescribeDomainOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatus = output.domainStatus } else { @@ -4627,9 +4607,8 @@ public enum DescribeDomainsOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainStatusList = output.domainStatusList } else { @@ -4765,9 +4744,8 @@ public enum DescribeDryRunProgressOutputError: Swift.Error, Swift.Equatable { extension DescribeDryRunProgressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDryRunProgressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dryRunConfig = output.dryRunConfig self.dryRunProgressStatus = output.dryRunProgressStatus @@ -4934,9 +4912,8 @@ public enum DescribeInboundConnectionsOutputError: Swift.Error, Swift.Equatable extension DescribeInboundConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInboundConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections self.nextToken = output.nextToken @@ -5084,9 +5061,8 @@ public enum DescribeInstanceTypeLimitsOutputError: Swift.Error, Swift.Equatable extension DescribeInstanceTypeLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceTypeLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.limitsByRole = output.limitsByRole } else { @@ -5243,9 +5219,8 @@ public enum DescribeOutboundConnectionsOutputError: Swift.Error, Swift.Equatable extension DescribeOutboundConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOutboundConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connections = output.connections self.nextToken = output.nextToken @@ -5510,9 +5485,8 @@ public enum DescribePackagesOutputError: Swift.Error, Swift.Equatable { extension DescribePackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packageDetailsList = output.packageDetailsList @@ -5656,9 +5630,8 @@ public enum DescribeReservedInstanceOfferingsOutputError: Swift.Error, Swift.Equ extension DescribeReservedInstanceOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedInstanceOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservedInstanceOfferings = output.reservedInstanceOfferings @@ -5802,9 +5775,8 @@ public enum DescribeReservedInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeReservedInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.reservedInstances = output.reservedInstances @@ -5951,9 +5923,8 @@ public enum DescribeVpcEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeVpcEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVpcEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpointErrors = output.vpcEndpointErrors self.vpcEndpoints = output.vpcEndpoints @@ -6022,9 +5993,8 @@ extension DescribeVpcEndpointsOutputResponseBody: Swift.Decodable { extension DisabledOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisabledOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6038,7 +6008,7 @@ extension DisabledOperationException { } /// An error occured because the client wanted to access a not supported operation. -public struct DisabledOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DisabledOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6147,9 +6117,8 @@ public enum DissociatePackageOutputError: Swift.Error, Swift.Equatable { extension DissociatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DissociatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainPackageDetails = output.domainPackageDetails } else { @@ -7721,9 +7690,8 @@ public enum GetCompatibleVersionsOutputError: Swift.Error, Swift.Equatable { extension GetCompatibleVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCompatibleVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibleVersions = output.compatibleVersions } else { @@ -7859,9 +7827,8 @@ public enum GetPackageVersionHistoryOutputError: Swift.Error, Swift.Equatable { extension GetPackageVersionHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPackageVersionHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packageID = output.packageID @@ -8017,9 +7984,8 @@ public enum GetUpgradeHistoryOutputError: Swift.Error, Swift.Equatable { extension GetUpgradeHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUpgradeHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.upgradeHistories = output.upgradeHistories @@ -8140,9 +8106,8 @@ public enum GetUpgradeStatusOutputError: Swift.Error, Swift.Equatable { extension GetUpgradeStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUpgradeStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stepStatus = output.stepStatus self.upgradeName = output.upgradeName @@ -8575,9 +8540,8 @@ extension OpenSearchClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8591,7 +8555,7 @@ extension InternalException { } /// Request processing failed because of an unknown error, exception, or internal failure. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8628,9 +8592,8 @@ extension InternalExceptionBody: Swift.Decodable { extension InvalidPaginationTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPaginationTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8644,7 +8607,7 @@ extension InvalidPaginationTokenException { } /// The request processing has failed because you provided an invalid pagination token. -public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8681,9 +8644,8 @@ extension InvalidPaginationTokenExceptionBody: Swift.Decodable { extension InvalidTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8697,7 +8659,7 @@ extension InvalidTypeException { } /// An exception for trying to create or access a sub-resource that's either invalid or not supported. -public struct InvalidTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8734,9 +8696,8 @@ extension InvalidTypeExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8750,7 +8711,7 @@ extension LimitExceededException { } /// An exception for trying to create more than the allowed number of resources or sub-resources. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8931,9 +8892,8 @@ public enum ListDomainNamesOutputError: Swift.Error, Swift.Equatable { extension ListDomainNamesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainNamesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainNames = output.domainNames } else { @@ -9069,9 +9029,8 @@ public enum ListDomainsForPackageOutputError: Swift.Error, Swift.Equatable { extension ListDomainsForPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsForPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainPackageDetailsList = output.domainPackageDetailsList self.nextToken = output.nextToken @@ -9222,9 +9181,8 @@ public enum ListInstanceTypeDetailsOutputError: Swift.Error, Swift.Equatable { extension ListInstanceTypeDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstanceTypeDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceTypeDetails = output.instanceTypeDetails self.nextToken = output.nextToken @@ -9369,9 +9327,8 @@ public enum ListPackagesForDomainOutputError: Swift.Error, Swift.Equatable { extension ListPackagesForDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackagesForDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainPackageDetailsList = output.domainPackageDetailsList self.nextToken = output.nextToken @@ -9516,9 +9473,8 @@ public enum ListScheduledActionsOutputError: Swift.Error, Swift.Equatable { extension ListScheduledActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListScheduledActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduledActions = output.scheduledActions @@ -9648,9 +9604,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -9776,9 +9731,8 @@ public enum ListVersionsOutputError: Swift.Error, Swift.Equatable { extension ListVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -9913,9 +9867,8 @@ public enum ListVpcEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension ListVpcEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedPrincipalList = output.authorizedPrincipalList self.nextToken = output.nextToken @@ -10051,9 +10004,8 @@ public enum ListVpcEndpointsForDomainOutputError: Swift.Error, Swift.Equatable { extension ListVpcEndpointsForDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcEndpointsForDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcEndpointSummaryList = output.vpcEndpointSummaryList @@ -10179,9 +10131,8 @@ public enum ListVpcEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListVpcEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcEndpointSummaryList = output.vpcEndpointSummaryList @@ -11808,9 +11759,8 @@ public enum PurchaseReservedInstanceOfferingOutputError: Swift.Error, Swift.Equa extension PurchaseReservedInstanceOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseReservedInstanceOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservationName = output.reservationName self.reservedInstanceId = output.reservedInstanceId @@ -11961,9 +11911,8 @@ public enum RejectInboundConnectionOutputError: Swift.Error, Swift.Equatable { extension RejectInboundConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectInboundConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connection = output.connection } else { @@ -12442,9 +12391,8 @@ extension OpenSearchClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12458,7 +12406,7 @@ extension ResourceAlreadyExistsException { } /// An exception for creating a resource that already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12495,9 +12443,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12511,7 +12458,7 @@ extension ResourceNotFoundException { } /// An exception for accessing or deleting a resource that does not exist.. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13324,9 +13271,8 @@ extension OpenSearchClientTypes { extension SlotNotAvailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SlotNotAvailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.slotSuggestions = output.slotSuggestions @@ -13342,7 +13288,7 @@ extension SlotNotAvailableException { } /// An exception for attempting to schedule a domain action during an unavailable time slot. -public struct SlotNotAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SlotNotAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13668,9 +13614,8 @@ public enum StartServiceSoftwareUpdateOutputError: Swift.Error, Swift.Equatable extension StartServiceSoftwareUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartServiceSoftwareUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSoftwareOptions = output.serviceSoftwareOptions } else { @@ -14274,9 +14219,8 @@ public enum UpdateDomainConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainConfig = output.domainConfig self.dryRunProgressStatus = output.dryRunProgressStatus @@ -14455,9 +14399,8 @@ public enum UpdatePackageOutputError: Swift.Error, Swift.Equatable { extension UpdatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.packageDetails = output.packageDetails } else { @@ -14631,9 +14574,8 @@ public enum UpdateScheduledActionOutputError: Swift.Error, Swift.Equatable { extension UpdateScheduledActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateScheduledActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduledAction = output.scheduledAction } else { @@ -14765,9 +14707,8 @@ public enum UpdateVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpoint = output.vpcEndpoint } else { @@ -14937,9 +14878,8 @@ public enum UpgradeDomainOutputError: Swift.Error, Swift.Equatable { extension UpgradeDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpgradeDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.advancedOptions = output.advancedOptions self.changeProgressDetails = output.changeProgressDetails @@ -15504,9 +15444,8 @@ extension OpenSearchClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15520,7 +15459,7 @@ extension ValidationException { } /// An exception for accessing or deleting a resource that doesn't exist. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSOpenSearchServerless/OpenSearchServerlessClient.swift b/Sources/Services/AWSOpenSearchServerless/OpenSearchServerlessClient.swift index da5be691621..ae4188ede02 100644 --- a/Sources/Services/AWSOpenSearchServerless/OpenSearchServerlessClient.swift +++ b/Sources/Services/AWSOpenSearchServerless/OpenSearchServerlessClient.swift @@ -208,6 +208,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetVpcEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -304,7 +307,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCollection") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -348,7 +352,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +372,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSecurityConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -392,7 +397,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +417,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSecurityPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -436,7 +442,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -456,6 +462,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVpcEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -480,7 +487,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -500,6 +507,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -524,7 +532,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -544,6 +552,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCollection") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -568,7 +577,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -588,6 +597,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSecurityConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -612,7 +622,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -632,6 +642,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSecurityPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -656,7 +667,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +687,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVpcEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -700,7 +712,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +732,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +749,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +769,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +786,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +806,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPoliciesStats") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +823,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +843,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSecurityConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +860,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +880,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSecurityPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +897,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +917,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +934,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +954,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCollections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +971,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +991,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -988,7 +1008,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1008,6 +1028,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1045,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1065,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1082,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1080,6 +1102,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVpcEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1096,7 +1119,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1116,6 +1139,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1132,7 +1156,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1152,6 +1176,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1193,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1213,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccessPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1212,7 +1238,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1232,6 +1258,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1275,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1295,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCollection") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1292,7 +1320,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1312,6 +1340,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecurityConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1336,7 +1365,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1356,6 +1385,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecurityPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1380,7 +1410,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1400,6 +1430,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "aoss") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVpcEndpoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1424,7 +1455,7 @@ extension OpenSearchServerlessClient: OpenSearchServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSOpenSearchServerless/models/Models.swift b/Sources/Services/AWSOpenSearchServerless/models/Models.swift index 75ac375376a..533ff0b5ab4 100644 --- a/Sources/Services/AWSOpenSearchServerless/models/Models.swift +++ b/Sources/Services/AWSOpenSearchServerless/models/Models.swift @@ -391,9 +391,8 @@ public enum BatchGetCollectionOutputError: Swift.Error, Swift.Equatable { extension BatchGetCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectionDetails = output.collectionDetails self.collectionErrorDetails = output.collectionErrorDetails @@ -544,9 +543,8 @@ public enum BatchGetVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension BatchGetVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vpcEndpointDetails = output.vpcEndpointDetails self.vpcEndpointErrorDetails = output.vpcEndpointErrorDetails @@ -1044,9 +1042,8 @@ extension OpenSearchServerlessClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1060,7 +1057,7 @@ extension ConflictException { } /// When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1222,9 +1219,8 @@ public enum CreateAccessPolicyOutputError: Swift.Error, Swift.Equatable { extension CreateAccessPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicyDetail = output.accessPolicyDetail } else { @@ -1516,9 +1512,8 @@ public enum CreateCollectionOutputError: Swift.Error, Swift.Equatable { extension CreateCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createCollectionDetail = output.createCollectionDetail } else { @@ -1682,9 +1677,8 @@ public enum CreateSecurityConfigOutputError: Swift.Error, Swift.Equatable { extension CreateSecurityConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSecurityConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityConfigDetail = output.securityConfigDetail } else { @@ -1849,9 +1843,8 @@ public enum CreateSecurityPolicyOutputError: Swift.Error, Swift.Equatable { extension CreateSecurityPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSecurityPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityPolicyDetail = output.securityPolicyDetail } else { @@ -2095,9 +2088,8 @@ public enum CreateVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createVpcEndpointDetail = output.createVpcEndpointDetail } else { @@ -2390,9 +2382,8 @@ public enum DeleteCollectionOutputError: Swift.Error, Swift.Equatable { extension DeleteCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deleteCollectionDetail = output.deleteCollectionDetail } else { @@ -2783,9 +2774,8 @@ public enum DeleteVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deleteVpcEndpointDetail = output.deleteVpcEndpointDetail } else { @@ -2911,9 +2901,8 @@ public enum GetAccessPolicyOutputError: Swift.Error, Swift.Equatable { extension GetAccessPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicyDetail = output.accessPolicyDetail } else { @@ -3004,9 +2993,8 @@ public enum GetAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension GetAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettingsDetail = output.accountSettingsDetail } else { @@ -3095,9 +3083,8 @@ public enum GetPoliciesStatsOutputError: Swift.Error, Swift.Equatable { extension GetPoliciesStatsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPoliciesStatsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicyStats = output.accessPolicyStats self.securityConfigStats = output.securityConfigStats @@ -3240,9 +3227,8 @@ public enum GetSecurityConfigOutputError: Swift.Error, Swift.Equatable { extension GetSecurityConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSecurityConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityConfigDetail = output.securityConfigDetail } else { @@ -3368,9 +3354,8 @@ public enum GetSecurityPolicyOutputError: Swift.Error, Swift.Equatable { extension GetSecurityPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSecurityPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityPolicyDetail = output.securityPolicyDetail } else { @@ -3409,9 +3394,8 @@ extension GetSecurityPolicyOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3425,7 +3409,7 @@ extension InternalServerException { } /// Thrown when an error internal to the service occurs while processing a request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3581,9 +3565,8 @@ public enum ListAccessPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListAccessPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicySummaries = output.accessPolicySummaries self.nextToken = output.nextToken @@ -3736,9 +3719,8 @@ public enum ListCollectionsOutputError: Swift.Error, Swift.Equatable { extension ListCollectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCollectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectionSummaries = output.collectionSummaries self.nextToken = output.nextToken @@ -3892,9 +3874,8 @@ public enum ListSecurityConfigsOutputError: Swift.Error, Swift.Equatable { extension ListSecurityConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityConfigSummaries = output.securityConfigSummaries @@ -4072,9 +4053,8 @@ public enum ListSecurityPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListSecurityPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityPolicySummaries = output.securityPolicySummaries @@ -4206,9 +4186,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4351,9 +4330,8 @@ public enum ListVpcEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListVpcEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVpcEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vpcEndpointSummaries = output.vpcEndpointSummaries @@ -4411,9 +4389,8 @@ extension ListVpcEndpointsOutputResponseBody: Swift.Decodable { extension OcuLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OcuLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4427,7 +4404,7 @@ extension OcuLimitExceededException { } /// OCU Limit Exceeded for service limits -public struct OcuLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OcuLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4465,9 +4442,8 @@ extension OcuLimitExceededExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4481,7 +4457,7 @@ extension ResourceNotFoundException { } /// Thrown when accessing or deleting a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5087,9 +5063,8 @@ extension OpenSearchServerlessClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -5111,7 +5086,7 @@ extension ServiceQuotaExceededException { } /// Thrown when you attempt to create more resources than the service allows based on service quotas. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5591,9 +5566,8 @@ public enum UpdateAccessPolicyOutputError: Swift.Error, Swift.Equatable { extension UpdateAccessPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccessPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPolicyDetail = output.accessPolicyDetail } else { @@ -5703,9 +5677,8 @@ public enum UpdateAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettingsDetail = output.accountSettingsDetail } else { @@ -5947,9 +5920,8 @@ public enum UpdateCollectionOutputError: Swift.Error, Swift.Equatable { extension UpdateCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.updateCollectionDetail = output.updateCollectionDetail } else { @@ -6113,9 +6085,8 @@ public enum UpdateSecurityConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateSecurityConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSecurityConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityConfigDetail = output.securityConfigDetail } else { @@ -6294,9 +6265,8 @@ public enum UpdateSecurityPolicyOutputError: Swift.Error, Swift.Equatable { extension UpdateSecurityPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSecurityPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityPolicyDetail = output.securityPolicyDetail } else { @@ -6626,9 +6596,8 @@ public enum UpdateVpcEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateVpcEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVpcEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.updateVpcEndpointDetail = output.updateVpcEndpointDetail } else { @@ -6667,9 +6636,8 @@ extension UpdateVpcEndpointOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6683,7 +6651,7 @@ extension ValidationException { } /// Thrown when the HTTP request contains invalid input or is missing required input. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSOpsWorks/OpsWorksClient.swift b/Sources/Services/AWSOpsWorks/OpsWorksClient.swift index cdb6f72e344..49c54ed1942 100644 --- a/Sources/Services/AWSOpsWorks/OpsWorksClient.swift +++ b/Sources/Services/AWSOpsWorks/OpsWorksClient.swift @@ -217,6 +217,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assignInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -233,7 +234,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -253,6 +254,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assignVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -269,7 +271,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -289,6 +291,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateElasticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -305,7 +308,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -325,6 +328,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachElasticLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -341,7 +345,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -361,6 +365,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cloneStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -377,7 +382,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -397,6 +402,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -413,7 +419,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -433,6 +439,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -449,7 +456,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -469,6 +476,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +493,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +513,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLayer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +530,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -541,6 +550,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -557,7 +567,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -577,6 +587,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +604,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +624,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +641,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -649,6 +661,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -665,7 +678,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -685,6 +698,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLayer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -701,7 +715,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -721,6 +735,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -737,7 +752,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -757,6 +772,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -773,7 +789,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -793,6 +809,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterEcsCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -809,7 +826,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -829,6 +846,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterElasticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -845,7 +863,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -865,6 +883,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -881,7 +900,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -901,6 +920,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterRdsDbInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -917,7 +937,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -937,6 +957,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -953,7 +974,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -973,6 +994,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAgentVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1011,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1031,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1025,7 +1048,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1068,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCommands") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1061,7 +1085,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1081,6 +1105,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1097,7 +1122,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1117,6 +1142,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEcsClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1133,7 +1159,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1153,6 +1179,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeElasticIps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1169,7 +1196,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1189,6 +1216,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeElasticLoadBalancers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1205,7 +1233,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1225,6 +1253,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1241,7 +1270,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1261,6 +1290,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLayers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1277,7 +1307,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1297,6 +1327,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoadBasedAutoScaling") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1313,7 +1344,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1333,6 +1364,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMyUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1349,7 +1381,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1369,6 +1401,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOperatingSystems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1385,7 +1418,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1405,6 +1438,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1421,7 +1455,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1441,6 +1475,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRaidArrays") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1457,7 +1492,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1477,6 +1512,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRdsDbInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1493,7 +1529,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1513,6 +1549,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServiceErrors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1529,7 +1566,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1549,6 +1586,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackProvisioningParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1565,7 +1603,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1585,6 +1623,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStackSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1601,7 +1640,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1621,6 +1660,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1637,7 +1677,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1657,6 +1697,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTimeBasedAutoScaling") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1673,7 +1714,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1693,6 +1734,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1709,7 +1751,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1729,6 +1771,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVolumes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1745,7 +1788,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1765,6 +1808,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachElasticLoadBalancer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1781,7 +1825,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1801,6 +1845,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateElasticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1817,7 +1862,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1837,6 +1882,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHostnameSuggestion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1853,7 +1899,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1873,6 +1919,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "grantAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1889,7 +1936,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1909,6 +1956,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1925,7 +1973,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1945,6 +1993,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1961,7 +2010,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1981,6 +2030,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerEcsCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1997,7 +2047,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2017,6 +2067,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerElasticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2033,7 +2084,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2053,6 +2104,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2069,7 +2121,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2089,6 +2141,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerRdsDbInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2105,7 +2158,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2125,6 +2178,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2141,7 +2195,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2161,6 +2215,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setLoadBasedAutoScaling") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2177,7 +2232,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2197,6 +2252,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2213,7 +2269,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2233,6 +2289,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setTimeBasedAutoScaling") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2249,7 +2306,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2269,6 +2326,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2285,7 +2343,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2305,6 +2363,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2321,7 +2380,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2341,6 +2400,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2357,7 +2417,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2377,6 +2437,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2393,7 +2454,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2413,6 +2474,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2429,7 +2491,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2449,6 +2511,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unassignInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2465,7 +2528,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2485,6 +2548,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unassignVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2501,7 +2565,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2521,6 +2585,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2537,7 +2602,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2557,6 +2622,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2573,7 +2639,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2593,6 +2659,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateElasticIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2609,7 +2676,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2629,6 +2696,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2645,7 +2713,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2665,6 +2733,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLayer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2681,7 +2750,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2701,6 +2770,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMyUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2717,7 +2787,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2737,6 +2807,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRdsDbInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2753,7 +2824,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2773,6 +2844,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2789,7 +2861,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2809,6 +2881,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2825,7 +2898,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2845,6 +2918,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2861,7 +2935,7 @@ extension OpsWorksClient: OpsWorksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSOpsWorks/models/Models.swift b/Sources/Services/AWSOpsWorks/models/Models.swift index 7dfd4c4ce8b..c0470741129 100644 --- a/Sources/Services/AWSOpsWorks/models/Models.swift +++ b/Sources/Services/AWSOpsWorks/models/Models.swift @@ -1435,9 +1435,8 @@ public enum CloneStackOutputError: Swift.Error, Swift.Equatable { extension CloneStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CloneStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackId = output.stackId } else { @@ -2449,9 +2448,8 @@ public enum CreateAppOutputError: Swift.Error, Swift.Equatable { extension CreateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId } else { @@ -2660,9 +2658,8 @@ public enum CreateDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentId = output.deploymentId } else { @@ -3026,9 +3023,8 @@ public enum CreateInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceId = output.instanceId } else { @@ -3395,9 +3391,8 @@ public enum CreateLayerOutputError: Swift.Error, Swift.Equatable { extension CreateLayerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLayerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.layerId = output.layerId } else { @@ -3806,9 +3801,8 @@ public enum CreateStackOutputError: Swift.Error, Swift.Equatable { extension CreateStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackId = output.stackId } else { @@ -3954,9 +3948,8 @@ public enum CreateUserProfileOutputError: Swift.Error, Swift.Equatable { extension CreateUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iamUserArn = output.iamUserArn } else { @@ -5301,9 +5294,8 @@ public enum DescribeAgentVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeAgentVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAgentVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentVersions = output.agentVersions } else { @@ -5447,9 +5439,8 @@ public enum DescribeAppsOutputError: Swift.Error, Swift.Equatable { extension DescribeAppsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apps = output.apps } else { @@ -5605,9 +5596,8 @@ public enum DescribeCommandsOutputError: Swift.Error, Swift.Equatable { extension DescribeCommandsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCommandsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commands = output.commands } else { @@ -5763,9 +5753,8 @@ public enum DescribeDeploymentsOutputError: Swift.Error, Swift.Equatable { extension DescribeDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deployments = output.deployments } else { @@ -5933,9 +5922,8 @@ public enum DescribeEcsClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeEcsClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEcsClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ecsClusters = output.ecsClusters self.nextToken = output.nextToken @@ -6101,9 +6089,8 @@ public enum DescribeElasticIpsOutputError: Swift.Error, Swift.Equatable { extension DescribeElasticIpsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeElasticIpsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.elasticIps = output.elasticIps } else { @@ -6247,9 +6234,8 @@ public enum DescribeElasticLoadBalancersOutputError: Swift.Error, Swift.Equatabl extension DescribeElasticLoadBalancersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeElasticLoadBalancersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.elasticLoadBalancers = output.elasticLoadBalancers } else { @@ -6418,9 +6404,8 @@ public enum DescribeInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances } else { @@ -6564,9 +6549,8 @@ public enum DescribeLayersOutputError: Swift.Error, Swift.Equatable { extension DescribeLayersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLayersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.layers = output.layers } else { @@ -6699,9 +6683,8 @@ public enum DescribeLoadBasedAutoScalingOutputError: Swift.Error, Swift.Equatabl extension DescribeLoadBasedAutoScalingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoadBasedAutoScalingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loadBasedAutoScalingConfigurations = output.loadBasedAutoScalingConfigurations } else { @@ -6798,9 +6781,8 @@ public enum DescribeMyUserProfileOutputError: Swift.Error, Swift.Equatable { extension DescribeMyUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMyUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userProfile = output.userProfile } else { @@ -6888,9 +6870,8 @@ public enum DescribeOperatingSystemsOutputError: Swift.Error, Swift.Equatable { extension DescribeOperatingSystemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOperatingSystemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operatingSystems = output.operatingSystems } else { @@ -7022,9 +7003,8 @@ public enum DescribePermissionsOutputError: Swift.Error, Swift.Equatable { extension DescribePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissions = output.permissions } else { @@ -7186,9 +7166,8 @@ public enum DescribeRaidArraysOutputError: Swift.Error, Swift.Equatable { extension DescribeRaidArraysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRaidArraysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.raidArrays = output.raidArrays } else { @@ -7333,9 +7312,8 @@ public enum DescribeRdsDbInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeRdsDbInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRdsDbInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rdsDbInstances = output.rdsDbInstances } else { @@ -7491,9 +7469,8 @@ public enum DescribeServiceErrorsOutputError: Swift.Error, Swift.Equatable { extension DescribeServiceErrorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServiceErrorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceErrors = output.serviceErrors } else { @@ -7614,9 +7591,8 @@ public enum DescribeStackProvisioningParametersOutputError: Swift.Error, Swift.E extension DescribeStackProvisioningParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackProvisioningParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentInstallerUrl = output.agentInstallerUrl self.parameters = output.parameters @@ -7747,9 +7723,8 @@ public enum DescribeStackSummaryOutputError: Swift.Error, Swift.Equatable { extension DescribeStackSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStackSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stackSummary = output.stackSummary } else { @@ -7872,9 +7847,8 @@ public enum DescribeStacksOutputError: Swift.Error, Swift.Equatable { extension DescribeStacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stacks = output.stacks } else { @@ -8007,9 +7981,8 @@ public enum DescribeTimeBasedAutoScalingOutputError: Swift.Error, Swift.Equatabl extension DescribeTimeBasedAutoScalingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTimeBasedAutoScalingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.timeBasedAutoScalingConfigurations = output.timeBasedAutoScalingConfigurations } else { @@ -8141,9 +8114,8 @@ public enum DescribeUserProfilesOutputError: Swift.Error, Swift.Equatable { extension DescribeUserProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userProfiles = output.userProfiles } else { @@ -8311,9 +8283,8 @@ public enum DescribeVolumesOutputError: Swift.Error, Swift.Equatable { extension DescribeVolumesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVolumesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volumes = output.volumes } else { @@ -9032,9 +9003,8 @@ public enum GetHostnameSuggestionOutputError: Swift.Error, Swift.Equatable { extension GetHostnameSuggestionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHostnameSuggestionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostname = output.hostname self.layerId = output.layerId @@ -9168,9 +9138,8 @@ public enum GrantAccessOutputError: Swift.Error, Swift.Equatable { extension GrantAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GrantAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.temporaryCredential = output.temporaryCredential } else { @@ -10590,9 +10559,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -11528,9 +11496,8 @@ public enum RegisterEcsClusterOutputError: Swift.Error, Swift.Equatable { extension RegisterEcsClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterEcsClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ecsClusterArn = output.ecsClusterArn } else { @@ -11655,9 +11622,8 @@ public enum RegisterElasticIpOutputError: Swift.Error, Swift.Equatable { extension RegisterElasticIpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterElasticIpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.elasticIp = output.elasticIp } else { @@ -11841,9 +11807,8 @@ public enum RegisterInstanceOutputError: Swift.Error, Swift.Equatable { extension RegisterInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceId = output.instanceId } else { @@ -12088,9 +12053,8 @@ public enum RegisterVolumeOutputError: Swift.Error, Swift.Equatable { extension RegisterVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volumeId = output.volumeId } else { @@ -12185,9 +12149,8 @@ extension OpsWorksClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12201,7 +12164,7 @@ extension ResourceNotFoundException { } /// Indicates that a resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16014,9 +15977,8 @@ extension OpsWorksClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16030,7 +15992,7 @@ extension ValidationException { } /// Indicates that a request was not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSOpsWorksCM/OpsWorksCMClient.swift b/Sources/Services/AWSOpsWorksCM/OpsWorksCMClient.swift index 4540dce307d..839c7c68c06 100644 --- a/Sources/Services/AWSOpsWorksCM/OpsWorksCMClient.swift +++ b/Sources/Services/AWSOpsWorksCM/OpsWorksCMClient.swift @@ -208,6 +208,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBackups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNodeAssociationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportServerEngineAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMaintenance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "opsworks-cm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServerEngineAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension OpsWorksCMClient: OpsWorksCMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSOpsWorksCM/models/Models.swift b/Sources/Services/AWSOpsWorksCM/models/Models.swift index e1a9b272e78..f7adacd47c0 100644 --- a/Sources/Services/AWSOpsWorksCM/models/Models.swift +++ b/Sources/Services/AWSOpsWorksCM/models/Models.swift @@ -184,9 +184,8 @@ public enum AssociateNodeOutputError: Swift.Error, Swift.Equatable { extension AssociateNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateNodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nodeAssociationStatusToken = output.nodeAssociationStatusToken } else { @@ -708,9 +707,8 @@ public enum CreateBackupOutputError: Swift.Error, Swift.Equatable { extension CreateBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backup = output.backup } else { @@ -1162,9 +1160,8 @@ public enum CreateServerOutputError: Swift.Error, Swift.Equatable { extension CreateServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.server = output.server } else { @@ -1419,9 +1416,8 @@ public enum DescribeAccountAttributesOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -1578,9 +1574,8 @@ public enum DescribeBackupsOutputError: Swift.Error, Swift.Equatable { extension DescribeBackupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBackupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backups = output.backups self.nextToken = output.nextToken @@ -1736,9 +1731,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serverEvents = output.serverEvents @@ -1881,9 +1875,8 @@ public enum DescribeNodeAssociationStatusOutputError: Swift.Error, Swift.Equatab extension DescribeNodeAssociationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNodeAssociationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineAttributes = output.engineAttributes self.nodeAssociationStatus = output.nodeAssociationStatus @@ -2044,9 +2037,8 @@ public enum DescribeServersOutputError: Swift.Error, Swift.Equatable { extension DescribeServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.servers = output.servers @@ -2221,9 +2213,8 @@ public enum DisassociateNodeOutputError: Swift.Error, Swift.Equatable { extension DisassociateNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateNodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nodeAssociationStatusToken = output.nodeAssociationStatusToken } else { @@ -2431,9 +2422,8 @@ public enum ExportServerEngineAttributeOutputError: Swift.Error, Swift.Equatable extension ExportServerEngineAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportServerEngineAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineAttribute = output.engineAttribute self.serverName = output.serverName @@ -2482,9 +2472,8 @@ extension ExportServerEngineAttributeOutputResponseBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2498,7 +2487,7 @@ extension InvalidNextTokenException { } /// This occurs when the provided nextToken is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2535,9 +2524,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2551,7 +2539,7 @@ extension InvalidStateException { } /// The resource is in a state that does not allow you to perform a specified action. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2588,9 +2576,8 @@ extension InvalidStateExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2604,7 +2591,7 @@ extension LimitExceededException { } /// The limit of servers or backups has been reached. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2737,9 +2724,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -2871,9 +2857,8 @@ extension OpsWorksCMClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2887,7 +2872,7 @@ extension ResourceAlreadyExistsException { } /// The requested resource cannot be created because it already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2924,9 +2909,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2940,7 +2924,7 @@ extension ResourceNotFoundException { } /// The requested resource does not exist, or access was denied. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3088,9 +3072,8 @@ public enum RestoreServerOutputError: Swift.Error, Swift.Equatable { extension RestoreServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.server = output.server } else { @@ -3671,9 +3654,8 @@ public enum StartMaintenanceOutputError: Swift.Error, Swift.Equatable { extension StartMaintenanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMaintenanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.server = output.server } else { @@ -4086,9 +4068,8 @@ public enum UpdateServerEngineAttributesOutputError: Swift.Error, Swift.Equatabl extension UpdateServerEngineAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServerEngineAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.server = output.server } else { @@ -4249,9 +4230,8 @@ public enum UpdateServerOutputError: Swift.Error, Swift.Equatable { extension UpdateServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.server = output.server } else { @@ -4290,9 +4270,8 @@ extension UpdateServerOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4306,7 +4285,7 @@ extension ValidationException { } /// One or more of the provided request parameters are not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSOrganizations/OrganizationsClient.swift b/Sources/Services/AWSOrganizations/OrganizationsClient.swift index 9e59dbba127..623e02cd4de 100644 --- a/Sources/Services/AWSOrganizations/OrganizationsClient.swift +++ b/Sources/Services/AWSOrganizations/OrganizationsClient.swift @@ -215,6 +215,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptHandshake") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -231,7 +232,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -262,6 +263,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -278,7 +280,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -298,6 +300,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelHandshake") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -314,7 +317,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -350,6 +353,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "closeAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -366,7 +370,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +408,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +425,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +481,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGovCloudAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -492,7 +498,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -512,6 +518,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -528,7 +535,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +555,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOrganizationalUnit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +572,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +592,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -600,7 +609,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -620,6 +629,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "declineHandshake") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -636,7 +646,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -656,6 +666,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +683,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +703,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOrganizationalUnit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +720,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +740,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +757,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +777,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +794,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +814,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterDelegatedAdministrator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +831,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +851,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +868,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +888,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCreateAccountStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +905,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +925,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEffectivePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +942,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +962,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHandshake") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +979,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +999,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1016,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1036,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationalUnit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1053,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1073,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1068,7 +1090,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1088,6 +1110,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1127,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1147,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1140,7 +1164,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1169,6 +1193,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableAWSServiceAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1185,7 +1210,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1205,6 +1230,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disablePolicyType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1221,7 +1247,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1241,6 +1267,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableAWSServiceAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1257,7 +1284,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1277,6 +1304,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableAllFeatures") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1293,7 +1321,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1313,6 +1341,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enablePolicyType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1329,7 +1358,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1356,6 +1385,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "inviteAccountToOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1372,7 +1402,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1413,6 +1443,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "leaveOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1429,7 +1460,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1449,6 +1480,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAWSServiceAccessForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1465,7 +1497,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1485,6 +1517,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1501,7 +1534,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1521,6 +1554,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountsForParent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1537,7 +1571,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1557,6 +1591,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listChildren") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1573,7 +1608,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1593,6 +1628,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCreateAccountStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1609,7 +1645,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1629,6 +1665,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDelegatedAdministrators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1645,7 +1682,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1665,6 +1702,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDelegatedServicesForAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1681,7 +1719,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1701,6 +1739,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHandshakesForAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1717,7 +1756,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1737,6 +1776,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHandshakesForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1753,7 +1793,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1773,6 +1813,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizationalUnitsForParent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1789,7 +1830,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1809,6 +1850,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listParents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1825,7 +1867,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1845,6 +1887,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1861,7 +1904,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1881,6 +1924,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPoliciesForTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1897,7 +1941,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1917,6 +1961,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1933,7 +1978,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1964,6 +2009,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1980,7 +2026,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2000,6 +2046,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargetsForPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2016,7 +2063,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2036,6 +2083,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "moveAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2052,7 +2100,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2072,6 +2120,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2088,7 +2137,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2108,6 +2157,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerDelegatedAdministrator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2124,7 +2174,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2150,6 +2200,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeAccountFromOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2166,7 +2217,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2197,6 +2248,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2213,7 +2265,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2244,6 +2296,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2260,7 +2313,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2280,6 +2333,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOrganizationalUnit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2296,7 +2350,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2316,6 +2370,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "organizations") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2332,7 +2387,7 @@ extension OrganizationsClient: OrganizationsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSOrganizations/models/Models.swift b/Sources/Services/AWSOrganizations/models/Models.swift index eb42375ecd4..c4dee3d0252 100644 --- a/Sources/Services/AWSOrganizations/models/Models.swift +++ b/Sources/Services/AWSOrganizations/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AWSOrganizationsNotInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AWSOrganizationsNotInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AWSOrganizationsNotInUseException { } /// Your account isn't a member of an organization. To make this request, you must use the credentials of an account that belongs to an organization. -public struct AWSOrganizationsNotInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AWSOrganizationsNotInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -146,9 +145,8 @@ public enum AcceptHandshakeOutputError: Swift.Error, Swift.Equatable { extension AcceptHandshakeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptHandshakeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.handshake = output.handshake } else { @@ -187,9 +185,8 @@ extension AcceptHandshakeOutputResponseBody: Swift.Decodable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -203,7 +200,7 @@ extension AccessDeniedException { } /// You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see [Access Management](https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM User Guide. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -239,9 +236,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension AccessDeniedForDependencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedForDependencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -257,7 +253,7 @@ extension AccessDeniedForDependencyException { } /// The operation that you attempted requires you to have the iam:CreateServiceLinkedRole for organizations.amazonaws.com permission so that Organizations can create the required service-linked role. You don't have that permission. -public struct AccessDeniedForDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedForDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -429,9 +425,8 @@ extension OrganizationsClientTypes { extension AccountAlreadyClosedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountAlreadyClosedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -445,7 +440,7 @@ extension AccountAlreadyClosedException { } /// You attempted to close an account that is already closed. -public struct AccountAlreadyClosedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountAlreadyClosedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -481,9 +476,8 @@ extension AccountAlreadyClosedExceptionBody: Swift.Decodable { extension AccountAlreadyRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountAlreadyRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -497,7 +491,7 @@ extension AccountAlreadyRegisteredException { } /// The specified account is already a delegated administrator for this Amazon Web Services service. -public struct AccountAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -565,9 +559,8 @@ extension OrganizationsClientTypes { extension AccountNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -581,7 +574,7 @@ extension AccountNotFoundException { } /// We can't find an Amazon Web Services account with the AccountId that you specified, or the account whose credentials you used to make this request isn't a member of an organization. -public struct AccountNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -617,9 +610,8 @@ extension AccountNotFoundExceptionBody: Swift.Decodable { extension AccountNotRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountNotRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -633,7 +625,7 @@ extension AccountNotRegisteredException { } /// The specified account is not a delegated administrator for this Amazon Web Services service. -public struct AccountNotRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountNotRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -669,9 +661,8 @@ extension AccountNotRegisteredExceptionBody: Swift.Decodable { extension AccountOwnerNotVerifiedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountOwnerNotVerifiedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -685,7 +676,7 @@ extension AccountOwnerNotVerifiedException { } /// You can't invite an existing account to your organization until you verify that you own the email address associated with the management account. For more information, see [Email Address Verification](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification) in the Organizations User Guide. -public struct AccountOwnerNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountOwnerNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -794,9 +785,8 @@ extension OrganizationsClientTypes { extension AlreadyInOrganizationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyInOrganizationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -810,7 +800,7 @@ extension AlreadyInOrganizationException { } /// This account is already a member of an organization. An account can belong to only one organization at a time. -public struct AlreadyInOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyInOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1053,9 +1043,8 @@ public enum CancelHandshakeOutputError: Swift.Error, Swift.Equatable { extension CancelHandshakeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelHandshakeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.handshake = output.handshake } else { @@ -1143,9 +1132,8 @@ extension OrganizationsClientTypes { extension ChildNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChildNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1159,7 +1147,7 @@ extension ChildNotFoundException { } /// We can't find an organizational unit (OU) or Amazon Web Services account with the ChildId that you specified. -public struct ChildNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ChildNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1327,9 +1315,8 @@ public struct CloseAccountOutputResponse: Swift.Equatable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1343,7 +1330,7 @@ extension ConcurrentModificationException { } /// The target of the operation is currently being modified by a different request. Try again later. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1379,9 +1366,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1395,7 +1381,7 @@ extension ConflictException { } /// The request failed because it conflicts with the current state of the specified resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1431,9 +1417,8 @@ extension ConflictExceptionBody: Swift.Decodable { extension ConstraintViolationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConstraintViolationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -1515,7 +1500,7 @@ extension ConstraintViolationException { /// * TAG_POLICY_VIOLATION: You attempted to create or update a resource with tags that are not compliant with the tag policy requirements for this account. /// /// * WAIT_PERIOD_ACTIVE: After you create an Amazon Web Services account, there is a waiting period before you can remove it from the organization. If you get an error that indicates that a wait period is required, try again in a few days. -public struct ConstraintViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConstraintViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1935,9 +1920,8 @@ public enum CreateAccountOutputError: Swift.Error, Swift.Equatable { extension CreateAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createAccountStatus = output.createAccountStatus } else { @@ -2149,9 +2133,8 @@ extension OrganizationsClientTypes { extension CreateAccountStatusNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccountStatusNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2165,7 +2148,7 @@ extension CreateAccountStatusNotFoundException { } /// We can't find an create account request with the CreateAccountRequestId that you specified. -public struct CreateAccountStatusNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CreateAccountStatusNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2372,9 +2355,8 @@ public enum CreateGovCloudAccountOutputError: Swift.Error, Swift.Equatable { extension CreateGovCloudAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGovCloudAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createAccountStatus = output.createAccountStatus } else { @@ -2500,9 +2482,8 @@ public enum CreateOrganizationOutputError: Swift.Error, Swift.Equatable { extension CreateOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organization = output.organization } else { @@ -2668,9 +2649,8 @@ public enum CreateOrganizationalUnitOutputError: Swift.Error, Swift.Equatable { extension CreateOrganizationalUnitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOrganizationalUnitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationalUnit = output.organizationalUnit } else { @@ -2870,9 +2850,8 @@ public enum CreatePolicyOutputError: Swift.Error, Swift.Equatable { extension CreatePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -2995,9 +2974,8 @@ public enum DeclineHandshakeOutputError: Swift.Error, Swift.Equatable { extension DeclineHandshakeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeclineHandshakeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.handshake = output.handshake } else { @@ -3718,9 +3696,8 @@ public enum DescribeAccountOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.account = output.account } else { @@ -3841,9 +3818,8 @@ public enum DescribeCreateAccountStatusOutputError: Swift.Error, Swift.Equatable extension DescribeCreateAccountStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCreateAccountStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createAccountStatus = output.createAccountStatus } else { @@ -3986,9 +3962,8 @@ public enum DescribeEffectivePolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeEffectivePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEffectivePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.effectivePolicy = output.effectivePolicy } else { @@ -4107,9 +4082,8 @@ public enum DescribeHandshakeOutputError: Swift.Error, Swift.Equatable { extension DescribeHandshakeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHandshakeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.handshake = output.handshake } else { @@ -4206,9 +4180,8 @@ public enum DescribeOrganizationOutputError: Swift.Error, Swift.Equatable { extension DescribeOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organization = output.organization } else { @@ -4327,9 +4300,8 @@ public enum DescribeOrganizationalUnitOutputError: Swift.Error, Swift.Equatable extension DescribeOrganizationalUnitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationalUnitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationalUnit = output.organizationalUnit } else { @@ -4450,9 +4422,8 @@ public enum DescribePolicyOutputError: Swift.Error, Swift.Equatable { extension DescribePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -4553,9 +4524,8 @@ public enum DescribeResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePolicy = output.resourcePolicy } else { @@ -4594,9 +4564,8 @@ extension DescribeResourcePolicyOutputResponseBody: Swift.Decodable { extension DestinationParentNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DestinationParentNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4610,7 +4579,7 @@ extension DestinationParentNotFoundException { } /// We can't find the destination container (a root or OU) with the ParentId that you specified. -public struct DestinationParentNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DestinationParentNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4972,9 +4941,8 @@ public enum DisablePolicyTypeOutputError: Swift.Error, Swift.Equatable { extension DisablePolicyTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisablePolicyTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.root = output.root } else { @@ -5013,9 +4981,8 @@ extension DisablePolicyTypeOutputResponseBody: Swift.Decodable { extension DuplicateAccountException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateAccountExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5029,7 +4996,7 @@ extension DuplicateAccountException { } /// That account is already present in the specified destination. -public struct DuplicateAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5065,9 +5032,8 @@ extension DuplicateAccountExceptionBody: Swift.Decodable { extension DuplicateHandshakeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateHandshakeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5081,7 +5047,7 @@ extension DuplicateHandshakeException { } /// A handshake with the same action and target already exists. For example, if you invited an account to join your organization, the invited account might already have a pending invitation from this organization. If you intend to resend an invitation to an account, ensure that existing handshakes that might be considered duplicates are canceled or declined. -public struct DuplicateHandshakeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateHandshakeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5117,9 +5083,8 @@ extension DuplicateHandshakeExceptionBody: Swift.Decodable { extension DuplicateOrganizationalUnitException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateOrganizationalUnitExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5133,7 +5098,7 @@ extension DuplicateOrganizationalUnitException { } /// An OU with the same name already exists. -public struct DuplicateOrganizationalUnitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateOrganizationalUnitException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5169,9 +5134,8 @@ extension DuplicateOrganizationalUnitExceptionBody: Swift.Decodable { extension DuplicatePolicyAttachmentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicatePolicyAttachmentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5185,7 +5149,7 @@ extension DuplicatePolicyAttachmentException { } /// The selected policy is already attached to the specified target. -public struct DuplicatePolicyAttachmentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicatePolicyAttachmentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5221,9 +5185,8 @@ extension DuplicatePolicyAttachmentExceptionBody: Swift.Decodable { extension DuplicatePolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicatePolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5237,7 +5200,7 @@ extension DuplicatePolicyException { } /// A policy with the same name already exists. -public struct DuplicatePolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicatePolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5338,9 +5301,8 @@ extension OrganizationsClientTypes { extension EffectivePolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EffectivePolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5354,7 +5316,7 @@ extension EffectivePolicyNotFoundException { } /// If you ran this action on the management account, this policy type is not enabled. If you ran the action on a member account, the account doesn't have an effective policy of this type. Contact the administrator of your organization about attaching a policy of this type to the account. -public struct EffectivePolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EffectivePolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5581,9 +5543,8 @@ public enum EnableAllFeaturesOutputError: Swift.Error, Swift.Equatable { extension EnableAllFeaturesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableAllFeaturesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.handshake = output.handshake } else { @@ -5735,9 +5696,8 @@ public enum EnablePolicyTypeOutputError: Swift.Error, Swift.Equatable { extension EnablePolicyTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnablePolicyTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.root = output.root } else { @@ -5821,9 +5781,8 @@ extension OrganizationsClientTypes { extension FinalizingOrganizationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FinalizingOrganizationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5837,7 +5796,7 @@ extension FinalizingOrganizationException { } /// Organizations couldn't perform the operation because your organization hasn't finished initializing. This can take up to an hour. Try again later. If after one hour you continue to receive this error, contact [Amazon Web Services Support](https://console.aws.amazon.com/support/home#/). -public struct FinalizingOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FinalizingOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6020,9 +5979,8 @@ extension OrganizationsClientTypes { extension HandshakeAlreadyInStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HandshakeAlreadyInStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6036,7 +5994,7 @@ extension HandshakeAlreadyInStateException { } /// The specified handshake is already in the requested state. For example, you can't accept a handshake that was already accepted. -public struct HandshakeAlreadyInStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HandshakeAlreadyInStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6072,9 +6030,8 @@ extension HandshakeAlreadyInStateExceptionBody: Swift.Decodable { extension HandshakeConstraintViolationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HandshakeConstraintViolationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -6108,7 +6065,7 @@ extension HandshakeConstraintViolationException { /// * ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change the membership of an account too quickly after its previous change. /// /// * PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an account that doesn't have a payment instrument, such as a credit card, associated with it. -public struct HandshakeConstraintViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HandshakeConstraintViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6252,9 +6209,8 @@ extension OrganizationsClientTypes { extension HandshakeNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HandshakeNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6268,7 +6224,7 @@ extension HandshakeNotFoundException { } /// We can't find a handshake with the HandshakeId that you specified. -public struct HandshakeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HandshakeNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6601,9 +6557,8 @@ extension OrganizationsClientTypes { extension InvalidHandshakeTransitionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidHandshakeTransitionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6617,7 +6572,7 @@ extension InvalidHandshakeTransitionException { } /// You can't perform the operation on the handshake in its current state. For example, you can't cancel a handshake that was already accepted or accept a handshake that was already declined. -public struct InvalidHandshakeTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidHandshakeTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6653,9 +6608,8 @@ extension InvalidHandshakeTransitionExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -6719,7 +6673,7 @@ extension InvalidInputException { /// * TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target entity. /// /// * UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't recognized. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7003,9 +6957,8 @@ public enum InviteAccountToOrganizationOutputError: Swift.Error, Swift.Equatable extension InviteAccountToOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InviteAccountToOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.handshake = output.handshake } else { @@ -7213,9 +7166,8 @@ public enum ListAWSServiceAccessForOrganizationOutputError: Swift.Error, Swift.E extension ListAWSServiceAccessForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAWSServiceAccessForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.enabledServicePrincipals = output.enabledServicePrincipals self.nextToken = output.nextToken @@ -7377,9 +7329,8 @@ public enum ListAccountsForParentOutputError: Swift.Error, Swift.Equatable { extension ListAccountsForParentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountsForParentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.nextToken = output.nextToken @@ -7526,9 +7477,8 @@ public enum ListAccountsOutputError: Swift.Error, Swift.Equatable { extension ListAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accounts = output.accounts self.nextToken = output.nextToken @@ -7707,9 +7657,8 @@ public enum ListChildrenOutputError: Swift.Error, Swift.Equatable { extension ListChildrenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListChildrenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.children = output.children self.nextToken = output.nextToken @@ -7882,9 +7831,8 @@ public enum ListCreateAccountStatusOutputError: Swift.Error, Swift.Equatable { extension ListCreateAccountStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCreateAccountStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createAccountStatuses = output.createAccountStatuses self.nextToken = output.nextToken @@ -8047,9 +7995,8 @@ public enum ListDelegatedAdministratorsOutputError: Swift.Error, Swift.Equatable extension ListDelegatedAdministratorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDelegatedAdministratorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegatedAdministrators = output.delegatedAdministrators self.nextToken = output.nextToken @@ -8217,9 +8164,8 @@ public enum ListDelegatedServicesForAccountOutputError: Swift.Error, Swift.Equat extension ListDelegatedServicesForAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDelegatedServicesForAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegatedServices = output.delegatedServices self.nextToken = output.nextToken @@ -8378,9 +8324,8 @@ public enum ListHandshakesForAccountOutputError: Swift.Error, Swift.Equatable { extension ListHandshakesForAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHandshakesForAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.handshakes = output.handshakes self.nextToken = output.nextToken @@ -8541,9 +8486,8 @@ public enum ListHandshakesForOrganizationOutputError: Swift.Error, Swift.Equatab extension ListHandshakesForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHandshakesForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.handshakes = output.handshakes self.nextToken = output.nextToken @@ -8709,9 +8653,8 @@ public enum ListOrganizationalUnitsForParentOutputError: Swift.Error, Swift.Equa extension ListOrganizationalUnitsForParentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationalUnitsForParentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationalUnits = output.organizationalUnits @@ -8877,9 +8820,8 @@ public enum ListParentsOutputError: Swift.Error, Swift.Equatable { extension ListParentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListParentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parents = output.parents @@ -9070,9 +9012,8 @@ public enum ListPoliciesForTargetOutputError: Swift.Error, Swift.Equatable { extension ListPoliciesForTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPoliciesForTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.policies = output.policies @@ -9242,9 +9183,8 @@ public enum ListPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.policies = output.policies @@ -9391,9 +9331,8 @@ public enum ListRootsOutputError: Swift.Error, Swift.Equatable { extension ListRootsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRootsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.roots = output.roots @@ -9551,9 +9490,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -9717,9 +9655,8 @@ public enum ListTargetsForPolicyOutputError: Swift.Error, Swift.Equatable { extension ListTargetsForPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetsForPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.targets = output.targets @@ -9777,9 +9714,8 @@ extension ListTargetsForPolicyOutputResponseBody: Swift.Decodable { extension MalformedPolicyDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedPolicyDocumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9793,7 +9729,7 @@ extension MalformedPolicyDocumentException { } /// The provided policy document doesn't meet the requirements of the specified policy type. For example, the syntax might be incorrect. For details about service control policy syntax, see [Service Control Policy Syntax](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) in the Organizations User Guide. -public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9829,9 +9765,8 @@ extension MalformedPolicyDocumentExceptionBody: Swift.Decodable { extension MasterCannotLeaveOrganizationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MasterCannotLeaveOrganizationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9845,7 +9780,7 @@ extension MasterCannotLeaveOrganizationException { } /// You can't remove a management account from an organization. If you want the management account to become a member account in another organization, you must first delete the current organization of the management account. -public struct MasterCannotLeaveOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MasterCannotLeaveOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10157,9 +10092,8 @@ extension OrganizationsClientTypes { extension OrganizationNotEmptyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationNotEmptyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10173,7 +10107,7 @@ extension OrganizationNotEmptyException { } /// The organization isn't empty. To delete an organization, you must first remove all accounts except the management account, delete all OUs, and delete all policies. -public struct OrganizationNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10264,9 +10198,8 @@ extension OrganizationsClientTypes { extension OrganizationalUnitNotEmptyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationalUnitNotEmptyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10280,7 +10213,7 @@ extension OrganizationalUnitNotEmptyException { } /// The specified OU is not empty. Move all accounts to another root or to other OUs, remove all child OUs, and try the operation again. -public struct OrganizationalUnitNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationalUnitNotEmptyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10316,9 +10249,8 @@ extension OrganizationalUnitNotEmptyExceptionBody: Swift.Decodable { extension OrganizationalUnitNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationalUnitNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10332,7 +10264,7 @@ extension OrganizationalUnitNotFoundException { } /// We can't find an OU with the OrganizationalUnitId that you specified. -public struct OrganizationalUnitNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationalUnitNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10417,9 +10349,8 @@ extension OrganizationsClientTypes { extension ParentNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParentNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10433,7 +10364,7 @@ extension ParentNotFoundException { } /// We can't find a root or OU with the ParentId that you specified. -public struct ParentNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParentNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10546,9 +10477,8 @@ extension OrganizationsClientTypes { extension PolicyChangesInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyChangesInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10562,7 +10492,7 @@ extension PolicyChangesInProgressException { } /// Changes to the effective policy are in progress, and its contents can't be returned. Try the operation again later. -public struct PolicyChangesInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyChangesInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10598,9 +10528,8 @@ extension PolicyChangesInProgressExceptionBody: Swift.Decodable { extension PolicyInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10614,7 +10543,7 @@ extension PolicyInUseException { } /// The policy is attached to one or more entities. You must detach it from all roots, OUs, and accounts before performing this operation. -public struct PolicyInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10650,9 +10579,8 @@ extension PolicyInUseExceptionBody: Swift.Decodable { extension PolicyNotAttachedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyNotAttachedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10666,7 +10594,7 @@ extension PolicyNotAttachedException { } /// The policy isn't attached to the specified target in the specified root. -public struct PolicyNotAttachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyNotAttachedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10702,9 +10630,8 @@ extension PolicyNotAttachedExceptionBody: Swift.Decodable { extension PolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10718,7 +10645,7 @@ extension PolicyNotFoundException { } /// We can't find a policy with the PolicyId that you specified. -public struct PolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10948,9 +10875,8 @@ extension OrganizationsClientTypes { extension PolicyTypeAlreadyEnabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyTypeAlreadyEnabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10964,7 +10890,7 @@ extension PolicyTypeAlreadyEnabledException { } /// The specified policy type is already enabled in the specified root. -public struct PolicyTypeAlreadyEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyTypeAlreadyEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11000,9 +10926,8 @@ extension PolicyTypeAlreadyEnabledExceptionBody: Swift.Decodable { extension PolicyTypeNotAvailableForOrganizationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyTypeNotAvailableForOrganizationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11016,7 +10941,7 @@ extension PolicyTypeNotAvailableForOrganizationException { } /// You can't use the specified policy type with the feature set currently enabled for this organization. For example, you can enable SCPs only after you enable all features in the organization. For more information, see [Managing Organizations Policies](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root)in the Organizations User Guide. -public struct PolicyTypeNotAvailableForOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyTypeNotAvailableForOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11052,9 +10977,8 @@ extension PolicyTypeNotAvailableForOrganizationExceptionBody: Swift.Decodable { extension PolicyTypeNotEnabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyTypeNotEnabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11068,7 +10992,7 @@ extension PolicyTypeNotEnabledException { } /// The specified policy type isn't currently enabled in this root. You can't attach policies of the specified type to entities in a root until you enable that type in the root. For more information, see [Enabling All Features in Your Organization](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) in the Organizations User Guide. -public struct PolicyTypeNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyTypeNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11292,9 +11216,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePolicy = output.resourcePolicy } else { @@ -11585,9 +11508,8 @@ extension OrganizationsClientTypes { extension ResourcePolicyNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourcePolicyNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11601,7 +11523,7 @@ extension ResourcePolicyNotFoundException { } /// We can't find a resource policy request with the parameter that you specified. -public struct ResourcePolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourcePolicyNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11759,9 +11681,8 @@ extension OrganizationsClientTypes { extension RootNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RootNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11775,7 +11696,7 @@ extension RootNotFoundException { } /// We can't find a root with the RootId that you specified. -public struct RootNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RootNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11811,9 +11732,8 @@ extension RootNotFoundExceptionBody: Swift.Decodable { extension ServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11827,7 +11747,7 @@ extension ServiceException { } /// Organizations can't complete your request because of an internal service error. Try again later. -public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11863,9 +11783,8 @@ extension ServiceExceptionBody: Swift.Decodable { extension SourceParentNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SourceParentNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11879,7 +11798,7 @@ extension SourceParentNotFoundException { } /// We can't find a source root or OU with the ParentId that you specified. -public struct SourceParentNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceParentNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12097,9 +12016,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TargetNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TargetNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12113,7 +12031,7 @@ extension TargetNotFoundException { } /// We can't find a root, OU, account, or policy with the TargetId that you specified. -public struct TargetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12184,9 +12102,8 @@ extension OrganizationsClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.type = output.type @@ -12202,7 +12119,7 @@ extension TooManyRequestsException { } /// You have sent too many requests in too short a period of time. The quota helps protect against denial-of-service attacks. Try again later. For information about quotas that affect Organizations, see [Quotas for Organizations](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html)in the Organizations User Guide. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12245,9 +12162,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension UnsupportedAPIEndpointException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedAPIEndpointExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12261,7 +12177,7 @@ extension UnsupportedAPIEndpointException { } /// This action isn't available in the current Amazon Web Services Region. -public struct UnsupportedAPIEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedAPIEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12520,9 +12436,8 @@ public enum UpdateOrganizationalUnitOutputError: Swift.Error, Swift.Equatable { extension UpdateOrganizationalUnitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateOrganizationalUnitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationalUnit = output.organizationalUnit } else { @@ -12689,9 +12604,8 @@ public enum UpdatePolicyOutputError: Swift.Error, Swift.Equatable { extension UpdatePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { diff --git a/Sources/Services/AWSOutposts/OutpostsClient.swift b/Sources/Services/AWSOutposts/OutpostsClient.swift index 07ed83b3004..2c07e107817 100644 --- a/Sources/Services/AWSOutposts/OutpostsClient.swift +++ b/Sources/Services/AWSOutposts/OutpostsClient.swift @@ -208,6 +208,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelOrder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOrder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOutpost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOutpost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCatalogItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -421,7 +428,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -441,6 +448,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -453,7 +461,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -473,6 +481,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOrder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +494,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +514,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOutpost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -517,7 +527,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -537,6 +547,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOutpostInstanceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -550,7 +561,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -570,6 +581,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -582,7 +594,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -602,6 +614,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSiteAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -615,7 +628,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -635,6 +648,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +662,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -668,6 +682,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCatalogItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -681,7 +696,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -701,6 +716,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -714,7 +730,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -734,6 +750,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOutposts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -747,7 +764,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -767,6 +784,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSites") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +798,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +818,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -812,7 +831,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -832,6 +851,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -847,7 +867,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -867,6 +887,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -882,7 +903,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +923,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +937,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +957,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOutpost") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -950,7 +973,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -970,6 +993,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -985,7 +1009,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1005,6 +1029,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSiteAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1020,7 +1045,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1040,6 +1065,7 @@ extension OutpostsClient: OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSiteRackPhysicalProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1055,7 +1081,7 @@ extension OutpostsClient: OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSOutposts/models/Models.swift b/Sources/Services/AWSOutposts/models/Models.swift index 50ada0740cb..4866ecfd6ae 100644 --- a/Sources/Services/AWSOutposts/models/Models.swift +++ b/Sources/Services/AWSOutposts/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have permission to perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -751,9 +750,8 @@ extension OutpostsClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -771,7 +769,7 @@ extension ConflictException { } /// Updating or deleting this resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1050,9 +1048,8 @@ public enum CreateOrderOutputError: Swift.Error, Swift.Equatable { extension CreateOrderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOrderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.order = output.order } else { @@ -1256,9 +1253,8 @@ public enum CreateOutpostOutputError: Swift.Error, Swift.Equatable { extension CreateOutpostOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOutpostOutputResponseBody = try responseDecoder.decode(responseBody: data) self.outpost = output.outpost } else { @@ -1459,9 +1455,8 @@ public enum CreateSiteOutputError: Swift.Error, Swift.Equatable { extension CreateSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.site = output.site } else { @@ -1786,9 +1781,8 @@ public enum GetCatalogItemOutputError: Swift.Error, Swift.Equatable { extension GetCatalogItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCatalogItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.catalogItem = output.catalogItem } else { @@ -1886,9 +1880,8 @@ public enum GetConnectionOutputError: Swift.Error, Swift.Equatable { extension GetConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionDetails = output.connectionDetails self.connectionId = output.connectionId @@ -1994,9 +1987,8 @@ public enum GetOrderOutputError: Swift.Error, Swift.Equatable { extension GetOrderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOrderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.order = output.order } else { @@ -2150,9 +2142,8 @@ public enum GetOutpostInstanceTypesOutputError: Swift.Error, Swift.Equatable { extension GetOutpostInstanceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOutpostInstanceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceTypes = output.instanceTypes self.nextToken = output.nextToken @@ -2258,9 +2249,8 @@ public enum GetOutpostOutputError: Swift.Error, Swift.Equatable { extension GetOutpostOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOutpostOutputResponseBody = try responseDecoder.decode(responseBody: data) self.outpost = output.outpost } else { @@ -2378,9 +2368,8 @@ public enum GetSiteAddressOutputError: Swift.Error, Swift.Equatable { extension GetSiteAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSiteAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address self.addressType = output.addressType @@ -2498,9 +2487,8 @@ public enum GetSiteOutputError: Swift.Error, Swift.Equatable { extension GetSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.site = output.site } else { @@ -2574,9 +2562,8 @@ extension OutpostsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2590,7 +2577,7 @@ extension InternalServerException { } /// An internal error has occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3002,9 +2989,8 @@ public enum ListAssetsOutputError: Swift.Error, Swift.Equatable { extension ListAssetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assets = output.assets self.nextToken = output.nextToken @@ -3166,9 +3152,8 @@ public enum ListCatalogItemsOutputError: Swift.Error, Swift.Equatable { extension ListCatalogItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCatalogItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.catalogItems = output.catalogItems self.nextToken = output.nextToken @@ -3310,9 +3295,8 @@ public enum ListOrdersOutputError: Swift.Error, Swift.Equatable { extension ListOrdersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrdersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.orders = output.orders @@ -3474,9 +3458,8 @@ public enum ListOutpostsOutputError: Swift.Error, Swift.Equatable { extension ListOutpostsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOutpostsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.outposts = output.outposts @@ -3638,9 +3621,8 @@ public enum ListSitesOutputError: Swift.Error, Swift.Equatable { extension ListSitesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSitesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sites = output.sites @@ -3755,9 +3737,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3846,9 +3827,8 @@ extension OutpostsClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3862,7 +3842,7 @@ extension NotFoundException { } /// The specified request is not valid. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4822,9 +4802,8 @@ extension OutpostsClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4838,7 +4817,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded a service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5219,9 +5198,8 @@ public enum StartConnectionOutputError: Swift.Error, Swift.Equatable { extension StartConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionId = output.connectionId self.underlayIpAddress = output.underlayIpAddress @@ -5636,9 +5614,8 @@ public enum UpdateOutpostOutputError: Swift.Error, Swift.Equatable { extension UpdateOutpostOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateOutpostOutputResponseBody = try responseDecoder.decode(responseBody: data) self.outpost = output.outpost } else { @@ -5776,9 +5753,8 @@ public enum UpdateSiteAddressOutputError: Swift.Error, Swift.Equatable { extension UpdateSiteAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSiteAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address self.addressType = output.addressType @@ -5936,9 +5912,8 @@ public enum UpdateSiteOutputError: Swift.Error, Swift.Equatable { extension UpdateSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.site = output.site } else { @@ -6209,9 +6184,8 @@ public enum UpdateSiteRackPhysicalPropertiesOutputError: Swift.Error, Swift.Equa extension UpdateSiteRackPhysicalPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSiteRackPhysicalPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.site = output.site } else { @@ -6344,9 +6318,8 @@ extension OutpostsClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6360,7 +6333,7 @@ extension ValidationException { } /// A parameter is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPI/PIClient.swift b/Sources/Services/AWSPI/PIClient.swift index b294d392059..0902922ab8e 100644 --- a/Sources/Services/AWSPI/PIClient.swift +++ b/Sources/Services/AWSPI/PIClient.swift @@ -208,6 +208,7 @@ extension PIClient: PIClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDimensionKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension PIClient: PIClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension PIClient: PIClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDimensionKeyDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension PIClient: PIClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension PIClient: PIClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension PIClient: PIClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension PIClient: PIClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension PIClient: PIClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension PIClient: PIClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailableResourceDimensions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension PIClient: PIClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension PIClient: PIClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pi") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailableResourceMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension PIClient: PIClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPI/models/Models.swift b/Sources/Services/AWSPI/models/Models.swift index 4953ee04290..f2c951a4261 100644 --- a/Sources/Services/AWSPI/models/Models.swift +++ b/Sources/Services/AWSPI/models/Models.swift @@ -314,9 +314,8 @@ public enum DescribeDimensionKeysOutputError: Swift.Error, Swift.Equatable { extension DescribeDimensionKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDimensionKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alignedEndTime = output.alignedEndTime self.alignedStartTime = output.alignedStartTime @@ -1151,9 +1150,8 @@ public enum GetDimensionKeyDetailsOutputError: Swift.Error, Swift.Equatable { extension GetDimensionKeyDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDimensionKeyDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dimensions = output.dimensions } else { @@ -1288,9 +1286,8 @@ public enum GetResourceMetadataOutputError: Swift.Error, Swift.Equatable { extension GetResourceMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.features = output.features self.identifier = output.identifier @@ -1551,9 +1548,8 @@ public enum GetResourceMetricsOutputError: Swift.Error, Swift.Equatable { extension GetResourceMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alignedEndTime = output.alignedEndTime self.alignedStartTime = output.alignedStartTime @@ -1641,9 +1637,8 @@ extension GetResourceMetricsOutputResponseBody: Swift.Decodable { extension InternalServiceError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1657,7 +1652,7 @@ extension InternalServiceError { } /// The request failed due to an unknown error. -public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1693,9 +1688,8 @@ extension InternalServiceErrorBody: Swift.Decodable { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1709,7 +1703,7 @@ extension InvalidArgumentException { } /// One of the arguments provided is invalid for this request. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1881,9 +1875,8 @@ public enum ListAvailableResourceDimensionsOutputError: Swift.Error, Swift.Equat extension ListAvailableResourceDimensionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailableResourceDimensionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricDimensions = output.metricDimensions self.nextToken = output.nextToken @@ -2085,9 +2078,8 @@ public enum ListAvailableResourceMetricsOutputError: Swift.Error, Swift.Equatabl extension ListAvailableResourceMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailableResourceMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metrics = output.metrics self.nextToken = output.nextToken @@ -2340,9 +2332,8 @@ extension PIClientTypes { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotAuthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2356,7 +2347,7 @@ extension NotAuthorizedException { } /// The user is not authorized to perform this request. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPanorama/PanoramaClient.swift b/Sources/Services/AWSPanorama/PanoramaClient.swift index 9e296f03c45..49f1ccf74f8 100644 --- a/Sources/Services/AWSPanorama/PanoramaClient.swift +++ b/Sources/Services/AWSPanorama/PanoramaClient.swift @@ -208,6 +208,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplicationInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJobForDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNodeFromTemplateJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPackageImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +401,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +421,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -428,7 +435,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -448,6 +455,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterPackageVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -461,7 +469,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -481,6 +489,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplicationInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -493,7 +502,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -513,6 +522,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApplicationInstanceDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -525,7 +535,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -545,6 +555,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -557,7 +568,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -577,6 +588,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDeviceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -589,7 +601,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -609,6 +621,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -622,7 +635,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -642,6 +655,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNodeFromTemplateJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -654,7 +668,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -674,6 +688,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -686,7 +701,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -706,6 +721,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackageImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -718,7 +734,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -738,6 +754,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePackageVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -751,7 +768,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -771,6 +788,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationInstanceDependencies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -784,7 +802,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -804,6 +822,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationInstanceNodeInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -817,7 +836,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -837,6 +856,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -850,7 +870,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -870,6 +890,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -883,7 +904,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -903,6 +924,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevicesJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +938,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +958,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNodeFromTemplateJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -949,7 +972,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -969,6 +992,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -982,7 +1006,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1002,6 +1026,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackageImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1015,7 +1040,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1035,6 +1060,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1048,7 +1074,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1068,6 +1094,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1080,7 +1107,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1100,6 +1127,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "provisionDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1115,7 +1143,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1135,6 +1163,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerPackageVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1150,7 +1179,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1170,6 +1199,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeApplicationInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1182,7 +1212,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1202,6 +1232,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "signalApplicationInstanceNodeInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1217,7 +1248,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1237,6 +1268,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1252,7 +1284,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1272,6 +1304,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1285,7 +1318,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1305,6 +1338,7 @@ extension PanoramaClient: PanoramaClientProtocol { .withRegion(value: config.region) .withSigningName(value: "panorama") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeviceMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1320,7 +1354,7 @@ extension PanoramaClient: PanoramaClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPanorama/models/Models.swift b/Sources/Services/AWSPanorama/models/Models.swift index 763b47f2ef7..b87ac9b9019 100644 --- a/Sources/Services/AWSPanorama/models/Models.swift +++ b/Sources/Services/AWSPanorama/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The requestor does not have permission to access the target action or resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -355,9 +354,8 @@ extension PanoramaClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.errorArguments = output.errorArguments self.errorId = output.errorId @@ -379,7 +377,7 @@ extension ConflictException { } /// The target resource is in use. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -711,9 +709,8 @@ public enum CreateApplicationInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInstanceId = output.applicationInstanceId } else { @@ -868,9 +865,8 @@ public enum CreateJobForDevicesOutputError: Swift.Error, Swift.Equatable { extension CreateJobForDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobForDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs } else { @@ -1095,9 +1091,8 @@ public enum CreateNodeFromTemplateJobOutputError: Swift.Error, Swift.Equatable { extension CreateNodeFromTemplateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNodeFromTemplateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -1276,9 +1271,8 @@ public enum CreatePackageImportJobOutputError: Swift.Error, Swift.Equatable { extension CreatePackageImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePackageImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -1418,9 +1412,8 @@ public enum CreatePackageOutputError: Swift.Error, Swift.Equatable { extension CreatePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.packageId = output.packageId @@ -1541,9 +1534,8 @@ public enum DeleteDeviceOutputError: Swift.Error, Swift.Equatable { extension DeleteDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceId = output.deviceId } else { @@ -1843,9 +1835,8 @@ public enum DescribeApplicationInstanceDetailsOutputError: Swift.Error, Swift.Eq extension DescribeApplicationInstanceDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationInstanceDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInstanceId = output.applicationInstanceId self.applicationInstanceIdToReplace = output.applicationInstanceIdToReplace @@ -2015,9 +2006,8 @@ public enum DescribeApplicationInstanceOutputError: Swift.Error, Swift.Equatable extension DescribeApplicationInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeApplicationInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInstanceId = output.applicationInstanceId self.applicationInstanceIdToReplace = output.applicationInstanceIdToReplace @@ -2306,9 +2296,8 @@ public enum DescribeDeviceJobOutputError: Swift.Error, Swift.Equatable { extension DescribeDeviceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeviceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTime = output.createdTime self.deviceArn = output.deviceArn @@ -2455,9 +2444,8 @@ public enum DescribeDeviceOutputError: Swift.Error, Swift.Equatable { extension DescribeDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alternateSoftwares = output.alternateSoftwares self.arn = output.arn @@ -2763,9 +2751,8 @@ public enum DescribeNodeFromTemplateJobOutputError: Swift.Error, Swift.Equatable extension DescribeNodeFromTemplateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNodeFromTemplateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTime = output.createdTime self.jobId = output.jobId @@ -3020,9 +3007,8 @@ public enum DescribeNodeOutputError: Swift.Error, Swift.Equatable { extension DescribeNodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assetName = output.assetName self.category = output.category @@ -3262,9 +3248,8 @@ public enum DescribePackageImportJobOutputError: Swift.Error, Swift.Equatable { extension DescribePackageImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackageImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.createdTime = output.createdTime @@ -3482,9 +3467,8 @@ public enum DescribePackageOutputError: Swift.Error, Swift.Equatable { extension DescribePackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdTime = output.createdTime @@ -3720,9 +3704,8 @@ public enum DescribePackageVersionOutputError: Swift.Error, Swift.Equatable { extension DescribePackageVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePackageVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isLatestPatch = output.isLatestPatch self.ownerAccount = output.ownerAccount @@ -4539,9 +4522,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4555,7 +4537,7 @@ extension InternalServerException { } /// An internal error occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4896,9 +4878,8 @@ public enum ListApplicationInstanceDependenciesOutputError: Swift.Error, Swift.E extension ListApplicationInstanceDependenciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationInstanceDependenciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packageObjects = output.packageObjects @@ -5036,9 +5017,8 @@ public enum ListApplicationInstanceNodeInstancesOutputError: Swift.Error, Swift. extension ListApplicationInstanceNodeInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationInstanceNodeInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nodeInstances = output.nodeInstances @@ -5184,9 +5164,8 @@ public enum ListApplicationInstancesOutputError: Swift.Error, Swift.Equatable { extension ListApplicationInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInstances = output.applicationInstances self.nextToken = output.nextToken @@ -5410,9 +5389,8 @@ public enum ListDevicesJobsOutputError: Swift.Error, Swift.Equatable { extension ListDevicesJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceJobs = output.deviceJobs self.nextToken = output.nextToken @@ -5498,9 +5476,8 @@ public enum ListDevicesOutputError: Swift.Error, Swift.Equatable { extension ListDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.nextToken = output.nextToken @@ -5673,9 +5650,8 @@ public enum ListNodeFromTemplateJobsOutputError: Swift.Error, Swift.Equatable { extension ListNodeFromTemplateJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNodeFromTemplateJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nodeFromTemplateJobs = output.nodeFromTemplateJobs @@ -5848,9 +5824,8 @@ public enum ListNodesOutputError: Swift.Error, Swift.Equatable { extension ListNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nodes = output.nodes @@ -5984,9 +5959,8 @@ public enum ListPackageImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListPackageImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackageImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packageImportJobs = output.packageImportJobs @@ -6123,9 +6097,8 @@ public enum ListPackagesOutputError: Swift.Error, Swift.Equatable { extension ListPackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.packages = output.packages @@ -6240,9 +6213,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -8165,9 +8137,8 @@ public enum ProvisionDeviceOutputError: Swift.Error, Swift.Equatable { extension ProvisionDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.certificates = output.certificates @@ -8509,9 +8480,8 @@ extension PanoramaClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -8529,7 +8499,7 @@ extension ResourceNotFoundException { } /// The target resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8641,9 +8611,8 @@ extension PanoramaClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -8665,7 +8634,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a limit to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8832,9 +8801,8 @@ public enum SignalApplicationInstanceNodeInstancesOutputError: Swift.Error, Swif extension SignalApplicationInstanceNodeInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SignalApplicationInstanceNodeInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationInstanceId = output.applicationInstanceId } else { @@ -9421,9 +9389,8 @@ public enum UpdateDeviceMetadataOutputError: Swift.Error, Swift.Equatable { extension UpdateDeviceMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDeviceMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceId = output.deviceId } else { @@ -9509,9 +9476,8 @@ extension PanoramaClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.errorArguments = output.errorArguments self.errorId = output.errorId @@ -9533,7 +9499,7 @@ extension ValidationException { } /// The request contains an invalid parameter value. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPersonalize/PersonalizeClient.swift b/Sources/Services/AWSPersonalize/PersonalizeClient.swift index b9e8adfc1f7..bbd4cbdddfe 100644 --- a/Sources/Services/AWSPersonalize/PersonalizeClient.swift +++ b/Sources/Services/AWSPersonalize/PersonalizeClient.swift @@ -208,6 +208,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBatchInferenceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBatchSegmentJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -295,6 +297,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -311,7 +314,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -355,6 +358,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +375,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +400,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatasetExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +417,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -463,6 +468,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatasetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -479,7 +485,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +514,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatasetImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -524,7 +531,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -557,6 +564,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventTracker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +581,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +601,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -609,7 +618,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -629,6 +638,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMetricAttribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -645,7 +655,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -682,6 +692,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRecommender") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -698,7 +709,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -724,6 +735,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -740,7 +752,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -782,6 +794,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSolution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -798,7 +811,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -845,6 +858,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSolutionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -861,7 +875,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -881,6 +895,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -897,7 +912,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -917,6 +932,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -933,7 +949,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -959,6 +975,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatasetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -975,7 +992,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -995,6 +1012,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventTracker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1011,7 +1029,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1031,6 +1049,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1047,7 +1066,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1067,6 +1086,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMetricAttribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1083,7 +1103,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1103,6 +1123,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecommender") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1119,7 +1140,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1139,6 +1160,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1155,7 +1177,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1175,6 +1197,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSolution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1191,7 +1214,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1211,6 +1234,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlgorithm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1227,7 +1251,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1247,6 +1271,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBatchInferenceJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1263,7 +1288,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1283,6 +1308,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBatchSegmentJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1299,7 +1325,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1326,6 +1352,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1342,7 +1369,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1362,6 +1389,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1378,7 +1406,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1398,6 +1426,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDatasetExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1414,7 +1443,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1434,6 +1463,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDatasetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1450,7 +1480,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1470,6 +1500,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDatasetImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1486,7 +1517,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1506,6 +1537,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventTracker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1522,7 +1554,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1542,6 +1574,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFeatureTransformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1558,7 +1591,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1578,6 +1611,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1594,7 +1628,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1614,6 +1648,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMetricAttribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1630,7 +1665,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1659,6 +1694,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1675,7 +1711,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1704,6 +1740,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecommender") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1720,7 +1757,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1740,6 +1777,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1756,7 +1794,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1776,6 +1814,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSolution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1792,7 +1831,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1812,6 +1851,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSolutionVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1828,7 +1868,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1848,6 +1888,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolutionMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1864,7 +1905,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1884,6 +1925,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBatchInferenceJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1900,7 +1942,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1920,6 +1962,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBatchSegmentJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1936,7 +1979,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1956,6 +1999,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCampaigns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1972,7 +2016,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1992,6 +2036,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2008,7 +2053,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2028,6 +2073,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2044,7 +2090,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2064,6 +2110,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2080,7 +2127,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2100,6 +2147,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2116,7 +2164,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2136,6 +2184,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEventTrackers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2152,7 +2201,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2172,6 +2221,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2188,7 +2238,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2208,6 +2258,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMetricAttributionMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2224,7 +2275,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2244,6 +2295,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMetricAttributions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2260,7 +2312,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2280,6 +2332,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecipes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2296,7 +2349,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2316,6 +2369,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecommenders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2332,7 +2386,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2352,6 +2406,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2368,7 +2423,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2388,6 +2443,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSolutionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2404,7 +2460,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2424,6 +2480,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSolutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2440,7 +2497,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2460,6 +2517,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2476,7 +2534,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2496,6 +2554,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startRecommender") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2512,7 +2571,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2532,6 +2591,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopRecommender") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2548,7 +2608,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2575,6 +2635,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopSolutionVersionCreation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2591,7 +2652,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2611,6 +2672,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2627,7 +2689,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2647,6 +2709,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2663,7 +2726,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2683,6 +2746,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2699,7 +2763,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2719,6 +2783,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMetricAttribution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2735,7 +2800,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2755,6 +2820,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRecommender") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2771,7 +2837,7 @@ extension PersonalizeClient: PersonalizeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPersonalize/models/Models.swift b/Sources/Services/AWSPersonalize/models/Models.swift index a3ac29af334..9c88137b397 100644 --- a/Sources/Services/AWSPersonalize/models/Models.swift +++ b/Sources/Services/AWSPersonalize/models/Models.swift @@ -1672,9 +1672,8 @@ public enum CreateBatchInferenceJobOutputError: Swift.Error, Swift.Equatable { extension CreateBatchInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBatchInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchInferenceJobArn = output.batchInferenceJobArn } else { @@ -1893,9 +1892,8 @@ public enum CreateBatchSegmentJobOutputError: Swift.Error, Swift.Equatable { extension CreateBatchSegmentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBatchSegmentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchSegmentJobArn = output.batchSegmentJobArn } else { @@ -2075,9 +2073,8 @@ public enum CreateCampaignOutputError: Swift.Error, Swift.Equatable { extension CreateCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.campaignArn = output.campaignArn } else { @@ -2271,9 +2268,8 @@ public enum CreateDatasetExportJobOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetExportJobArn = output.datasetExportJobArn } else { @@ -2448,9 +2444,8 @@ public enum CreateDatasetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetGroupArn = output.datasetGroupArn self.domain = output.domain @@ -2670,9 +2665,8 @@ public enum CreateDatasetImportJobOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetImportJobArn = output.datasetImportJobArn } else { @@ -2860,9 +2854,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetArn = output.datasetArn } else { @@ -3018,9 +3011,8 @@ public enum CreateEventTrackerOutputError: Swift.Error, Swift.Equatable { extension CreateEventTrackerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventTrackerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTrackerArn = output.eventTrackerArn self.trackingId = output.trackingId @@ -3202,9 +3194,8 @@ public enum CreateFilterOutputError: Swift.Error, Swift.Equatable { extension CreateFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.filterArn = output.filterArn } else { @@ -3372,9 +3363,8 @@ public enum CreateMetricAttributionOutputError: Swift.Error, Swift.Equatable { extension CreateMetricAttributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMetricAttributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricAttributionArn = output.metricAttributionArn } else { @@ -3555,9 +3545,8 @@ public enum CreateRecommenderOutputError: Swift.Error, Swift.Equatable { extension CreateRecommenderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRecommenderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommenderArn = output.recommenderArn } else { @@ -3695,9 +3684,8 @@ public enum CreateSchemaOutputError: Swift.Error, Swift.Equatable { extension CreateSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schemaArn = output.schemaArn } else { @@ -3913,9 +3901,8 @@ public enum CreateSolutionOutputError: Swift.Error, Swift.Equatable { extension CreateSolutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSolutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.solutionArn = output.solutionArn } else { @@ -4082,9 +4069,8 @@ public enum CreateSolutionVersionOutputError: Swift.Error, Swift.Equatable { extension CreateSolutionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSolutionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.solutionVersionArn = output.solutionVersionArn } else { @@ -6352,9 +6338,8 @@ public enum DescribeAlgorithmOutputError: Swift.Error, Swift.Equatable { extension DescribeAlgorithmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlgorithmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.algorithm = output.algorithm } else { @@ -6465,9 +6450,8 @@ public enum DescribeBatchInferenceJobOutputError: Swift.Error, Swift.Equatable { extension DescribeBatchInferenceJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBatchInferenceJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchInferenceJob = output.batchInferenceJob } else { @@ -6578,9 +6562,8 @@ public enum DescribeBatchSegmentJobOutputError: Swift.Error, Swift.Equatable { extension DescribeBatchSegmentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBatchSegmentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchSegmentJob = output.batchSegmentJob } else { @@ -6691,9 +6674,8 @@ public enum DescribeCampaignOutputError: Swift.Error, Swift.Equatable { extension DescribeCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.campaign = output.campaign } else { @@ -6804,9 +6786,8 @@ public enum DescribeDatasetExportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetExportJob = output.datasetExportJob } else { @@ -6925,9 +6906,8 @@ public enum DescribeDatasetGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetGroup = output.datasetGroup } else { @@ -7038,9 +7018,8 @@ public enum DescribeDatasetImportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetImportJob = output.datasetImportJob } else { @@ -7159,9 +7138,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataset = output.dataset } else { @@ -7272,9 +7250,8 @@ public enum DescribeEventTrackerOutputError: Swift.Error, Swift.Equatable { extension DescribeEventTrackerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventTrackerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTracker = output.eventTracker } else { @@ -7385,9 +7362,8 @@ public enum DescribeFeatureTransformationOutputError: Swift.Error, Swift.Equatab extension DescribeFeatureTransformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFeatureTransformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.featureTransformation = output.featureTransformation } else { @@ -7498,9 +7474,8 @@ public enum DescribeFilterOutputError: Swift.Error, Swift.Equatable { extension DescribeFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.filter = output.filter } else { @@ -7611,9 +7586,8 @@ public enum DescribeMetricAttributionOutputError: Swift.Error, Swift.Equatable { extension DescribeMetricAttributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMetricAttributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricAttribution = output.metricAttribution } else { @@ -7724,9 +7698,8 @@ public enum DescribeRecipeOutputError: Swift.Error, Swift.Equatable { extension DescribeRecipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recipe = output.recipe } else { @@ -7837,9 +7810,8 @@ public enum DescribeRecommenderOutputError: Swift.Error, Swift.Equatable { extension DescribeRecommenderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecommenderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommender = output.recommender } else { @@ -7950,9 +7922,8 @@ public enum DescribeSchemaOutputError: Swift.Error, Swift.Equatable { extension DescribeSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.schema = output.schema } else { @@ -8063,9 +8034,8 @@ public enum DescribeSolutionOutputError: Swift.Error, Swift.Equatable { extension DescribeSolutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSolutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.solution = output.solution } else { @@ -8176,9 +8146,8 @@ public enum DescribeSolutionVersionOutputError: Swift.Error, Swift.Equatable { extension DescribeSolutionVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSolutionVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.solutionVersion = output.solutionVersion } else { @@ -8815,9 +8784,8 @@ public enum GetSolutionMetricsOutputError: Swift.Error, Swift.Equatable { extension GetSolutionMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSolutionMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metrics = output.metrics self.solutionVersionArn = output.solutionVersionArn @@ -9243,9 +9211,8 @@ extension PersonalizeClientTypes { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9259,7 +9226,7 @@ extension InvalidInputException { } /// Provide a valid value for the field or parameter. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9295,9 +9262,8 @@ extension InvalidInputExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9311,7 +9277,7 @@ extension InvalidNextTokenException { } /// The token is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9347,9 +9313,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9363,7 +9328,7 @@ extension LimitExceededException { } /// The limit on the number of requests per second has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9494,9 +9459,8 @@ public enum ListBatchInferenceJobsOutputError: Swift.Error, Swift.Equatable { extension ListBatchInferenceJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBatchInferenceJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchInferenceJobs = output.batchInferenceJobs self.nextToken = output.nextToken @@ -9649,9 +9613,8 @@ public enum ListBatchSegmentJobsOutputError: Swift.Error, Swift.Equatable { extension ListBatchSegmentJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBatchSegmentJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchSegmentJobs = output.batchSegmentJobs self.nextToken = output.nextToken @@ -9804,9 +9767,8 @@ public enum ListCampaignsOutputError: Swift.Error, Swift.Equatable { extension ListCampaignsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCampaignsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.campaigns = output.campaigns self.nextToken = output.nextToken @@ -9959,9 +9921,8 @@ public enum ListDatasetExportJobsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetExportJobs = output.datasetExportJobs self.nextToken = output.nextToken @@ -10100,9 +10061,8 @@ public enum ListDatasetGroupsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetGroups = output.datasetGroups self.nextToken = output.nextToken @@ -10255,9 +10215,8 @@ public enum ListDatasetImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetImportJobs = output.datasetImportJobs self.nextToken = output.nextToken @@ -10410,9 +10369,8 @@ public enum ListDatasetsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasets = output.datasets self.nextToken = output.nextToken @@ -10565,9 +10523,8 @@ public enum ListEventTrackersOutputError: Swift.Error, Swift.Equatable { extension ListEventTrackersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEventTrackersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventTrackers = output.eventTrackers self.nextToken = output.nextToken @@ -10720,9 +10677,8 @@ public enum ListFiltersOutputError: Swift.Error, Swift.Equatable { extension ListFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.filters = output.filters self.nextToken = output.nextToken @@ -10875,9 +10831,8 @@ public enum ListMetricAttributionMetricsOutputError: Swift.Error, Swift.Equatabl extension ListMetricAttributionMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMetricAttributionMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metrics = output.metrics self.nextToken = output.nextToken @@ -11030,9 +10985,8 @@ public enum ListMetricAttributionsOutputError: Swift.Error, Swift.Equatable { extension ListMetricAttributionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMetricAttributionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricAttributions = output.metricAttributions self.nextToken = output.nextToken @@ -11197,9 +11151,8 @@ public enum ListRecipesOutputError: Swift.Error, Swift.Equatable { extension ListRecipesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecipesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recipes = output.recipes @@ -11352,9 +11305,8 @@ public enum ListRecommendersOutputError: Swift.Error, Swift.Equatable { extension ListRecommendersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecommendersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommenders = output.recommenders @@ -11493,9 +11445,8 @@ public enum ListSchemasOutputError: Swift.Error, Swift.Equatable { extension ListSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemas = output.schemas @@ -11650,9 +11601,8 @@ public enum ListSolutionVersionsOutputError: Swift.Error, Swift.Equatable { extension ListSolutionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSolutionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.solutionVersions = output.solutionVersions @@ -11805,9 +11755,8 @@ public enum ListSolutionsOutputError: Swift.Error, Swift.Equatable { extension ListSolutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSolutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.solutions = output.solutions @@ -11939,9 +11888,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -13003,9 +12951,8 @@ extension PersonalizeClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13019,7 +12966,7 @@ extension ResourceAlreadyExistsException { } /// The specified resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13055,9 +13002,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13071,7 +13017,7 @@ extension ResourceInUseException { } /// The specified resource is in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13107,9 +13053,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13123,7 +13068,7 @@ extension ResourceNotFoundException { } /// Could not find the specified resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13910,9 +13855,8 @@ public enum StartRecommenderOutputError: Swift.Error, Swift.Equatable { extension StartRecommenderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartRecommenderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommenderArn = output.recommenderArn } else { @@ -14025,9 +13969,8 @@ public enum StopRecommenderOutputError: Swift.Error, Swift.Equatable { extension StopRecommenderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopRecommenderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommenderArn = output.recommenderArn } else { @@ -14310,9 +14253,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagKeysException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagKeysExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14326,7 +14268,7 @@ extension TooManyTagKeysException { } /// The request contains more tag keys than can be associated with a resource (50 tag keys per resource). -public struct TooManyTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagKeysException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14362,9 +14304,8 @@ extension TooManyTagKeysExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14378,7 +14319,7 @@ extension TooManyTagsException { } /// You have exceeded the maximum number of tags you can apply to this resource. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14714,9 +14655,8 @@ public enum UpdateCampaignOutputError: Swift.Error, Swift.Equatable { extension UpdateCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.campaignArn = output.campaignArn } else { @@ -14890,9 +14830,8 @@ public enum UpdateMetricAttributionOutputError: Swift.Error, Swift.Equatable { extension UpdateMetricAttributionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMetricAttributionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricAttributionArn = output.metricAttributionArn } else { @@ -15018,9 +14957,8 @@ public enum UpdateRecommenderOutputError: Swift.Error, Swift.Equatable { extension UpdateRecommenderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRecommenderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommenderArn = output.recommenderArn } else { diff --git a/Sources/Services/AWSPersonalizeEvents/PersonalizeEventsClient.swift b/Sources/Services/AWSPersonalizeEvents/PersonalizeEventsClient.swift index 2e3b42c48a9..4b46a434104 100644 --- a/Sources/Services/AWSPersonalizeEvents/PersonalizeEventsClient.swift +++ b/Sources/Services/AWSPersonalizeEvents/PersonalizeEventsClient.swift @@ -208,6 +208,7 @@ extension PersonalizeEventsClient: PersonalizeEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension PersonalizeEventsClient: PersonalizeEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension PersonalizeEventsClient: PersonalizeEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension PersonalizeEventsClient: PersonalizeEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension PersonalizeEventsClient: PersonalizeEventsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension PersonalizeEventsClient: PersonalizeEventsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPersonalizeEvents/models/Models.swift b/Sources/Services/AWSPersonalizeEvents/models/Models.swift index 6cf148b038b..b308199b9dc 100644 --- a/Sources/Services/AWSPersonalizeEvents/models/Models.swift +++ b/Sources/Services/AWSPersonalizeEvents/models/Models.swift @@ -139,9 +139,8 @@ extension PersonalizeEventsClientTypes { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -155,7 +154,7 @@ extension InvalidInputException { } /// Provide a valid value for the field or parameter. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -631,9 +630,8 @@ public struct PutUsersOutputResponse: Swift.Equatable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -647,7 +645,7 @@ extension ResourceInUseException { } /// The specified resource is in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -683,9 +681,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -699,7 +696,7 @@ extension ResourceNotFoundException { } /// Could not find the specified resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPersonalizeRuntime/PersonalizeRuntimeClient.swift b/Sources/Services/AWSPersonalizeRuntime/PersonalizeRuntimeClient.swift index 2875c345206..2e31a4ecd33 100644 --- a/Sources/Services/AWSPersonalizeRuntime/PersonalizeRuntimeClient.swift +++ b/Sources/Services/AWSPersonalizeRuntime/PersonalizeRuntimeClient.swift @@ -208,6 +208,7 @@ extension PersonalizeRuntimeClient: PersonalizeRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPersonalizedRanking") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension PersonalizeRuntimeClient: PersonalizeRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -250,6 +251,7 @@ extension PersonalizeRuntimeClient: PersonalizeRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "personalize") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -265,7 +267,7 @@ extension PersonalizeRuntimeClient: PersonalizeRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPersonalizeRuntime/models/Models.swift b/Sources/Services/AWSPersonalizeRuntime/models/Models.swift index 0e21398aabe..b00c2aba4ea 100644 --- a/Sources/Services/AWSPersonalizeRuntime/models/Models.swift +++ b/Sources/Services/AWSPersonalizeRuntime/models/Models.swift @@ -174,9 +174,8 @@ public enum GetPersonalizedRankingOutputError: Swift.Error, Swift.Equatable { extension GetPersonalizedRankingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPersonalizedRankingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.personalizedRanking = output.personalizedRanking self.recommendationId = output.recommendationId @@ -437,9 +436,8 @@ public enum GetRecommendationsOutputError: Swift.Error, Swift.Equatable { extension GetRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.itemList = output.itemList self.recommendationId = output.recommendationId @@ -497,9 +495,8 @@ extension GetRecommendationsOutputResponseBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -513,7 +510,7 @@ extension InvalidInputException { } /// Provide a valid value for the field or parameter. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -681,9 +678,8 @@ extension PersonalizeRuntimeClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -697,7 +693,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPinpoint/PinpointClient.swift b/Sources/Services/AWSPinpoint/PinpointClient.swift index de2deb32d22..5d2de728b89 100644 --- a/Sources/Services/AWSPinpoint/PinpointClient.swift +++ b/Sources/Services/AWSPinpoint/PinpointClient.swift @@ -208,6 +208,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInAppTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJourney") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPushTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRecommenderConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSegment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSmsTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVoiceTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAdmChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -640,7 +653,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -660,6 +673,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApnsChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +686,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +706,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApnsSandboxChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -704,7 +719,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -724,6 +739,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApnsVoipChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +752,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +772,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApnsVoipSandboxChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +785,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +805,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +818,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +838,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBaiduChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -832,7 +851,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -852,6 +871,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -864,7 +884,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -884,6 +904,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEmailChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -896,7 +917,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -916,6 +937,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -929,7 +951,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -949,6 +971,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -961,7 +984,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -981,6 +1004,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -993,7 +1017,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1013,6 +1037,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGcmChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1025,7 +1050,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1070,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInAppTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1058,7 +1084,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1078,6 +1104,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJourney") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1090,7 +1117,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1110,6 +1137,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePushTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1123,7 +1151,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1143,6 +1171,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecommenderConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1155,7 +1184,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1175,6 +1204,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSegment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1187,7 +1217,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1207,6 +1237,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSmsChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1219,7 +1250,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1239,6 +1270,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSmsTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1252,7 +1284,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1272,6 +1304,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1284,7 +1317,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1304,6 +1337,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1316,7 +1350,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1336,6 +1370,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1349,7 +1384,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1369,6 +1404,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAdmChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1381,7 +1417,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1401,6 +1437,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApnsChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1413,7 +1450,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1433,6 +1470,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApnsSandboxChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1445,7 +1483,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1465,6 +1503,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApnsVoipChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1477,7 +1516,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1497,6 +1536,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApnsVoipSandboxChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1509,7 +1549,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1529,6 +1569,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1541,7 +1582,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1561,6 +1602,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplicationDateRangeKpi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1574,7 +1616,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1594,6 +1636,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplicationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1606,7 +1649,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1626,6 +1669,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1639,7 +1683,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1659,6 +1703,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBaiduChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1671,7 +1716,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1691,6 +1736,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1703,7 +1749,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1723,6 +1769,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaignActivities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1783,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1803,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaignDateRangeKpi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1769,7 +1817,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1789,6 +1837,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaignVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1801,7 +1850,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1821,6 +1870,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaignVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1834,7 +1884,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1854,6 +1904,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCampaigns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1867,7 +1918,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1887,6 +1938,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1899,7 +1951,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1919,6 +1971,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEmailChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1931,7 +1984,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1951,6 +2004,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1964,7 +2018,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1984,6 +2038,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1996,7 +2051,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2016,6 +2071,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEventStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2028,7 +2084,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2048,6 +2104,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2060,7 +2117,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2137,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2093,7 +2151,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2113,6 +2171,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGcmChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2125,7 +2184,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2145,6 +2204,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2157,7 +2217,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2177,6 +2237,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2190,7 +2251,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2210,6 +2271,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInAppMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2222,7 +2284,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2242,6 +2304,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInAppTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2255,7 +2318,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2275,6 +2338,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJourney") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2287,7 +2351,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2307,6 +2371,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJourneyDateRangeKpi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2320,7 +2385,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2340,6 +2405,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJourneyExecutionActivityMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2353,7 +2419,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2373,6 +2439,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJourneyExecutionMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2386,7 +2453,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2406,6 +2473,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPushTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2419,7 +2487,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2439,6 +2507,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecommenderConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2451,7 +2520,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2471,6 +2540,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecommenderConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2484,7 +2554,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2504,6 +2574,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSegment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2516,7 +2587,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2536,6 +2607,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSegmentExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2549,7 +2621,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2569,6 +2641,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSegmentImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2582,7 +2655,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2602,6 +2675,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSegmentVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2614,7 +2688,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2634,6 +2708,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSegmentVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2647,7 +2722,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2667,6 +2742,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSegments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2680,7 +2756,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2700,6 +2776,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSmsChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2712,7 +2789,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2732,6 +2809,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSmsTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2745,7 +2823,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2765,6 +2843,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2777,7 +2856,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2797,6 +2876,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2809,7 +2889,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2829,6 +2909,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVoiceTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2842,7 +2923,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2862,6 +2943,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJourneys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2875,7 +2957,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2895,6 +2977,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2907,7 +2990,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2927,6 +3010,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplateVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2940,7 +3024,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2960,6 +3044,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2973,7 +3058,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2993,6 +3078,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "phoneNumberValidate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3008,7 +3094,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3028,6 +3114,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEventStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3043,7 +3130,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3063,6 +3150,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3078,7 +3166,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3098,6 +3186,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3113,7 +3202,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3133,6 +3222,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3148,7 +3238,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3168,6 +3258,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendOTPMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3183,7 +3274,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3203,6 +3294,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendUsersMessages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3218,7 +3310,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3238,6 +3330,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3253,7 +3346,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3273,6 +3366,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3286,7 +3380,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3306,6 +3400,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAdmChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3321,7 +3416,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3341,6 +3436,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApnsChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3356,7 +3452,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3376,6 +3472,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApnsSandboxChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3391,7 +3488,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3411,6 +3508,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApnsVoipChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3426,7 +3524,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3446,6 +3544,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApnsVoipSandboxChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3461,7 +3560,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3481,6 +3580,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplicationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3496,7 +3596,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3516,6 +3616,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBaiduChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3531,7 +3632,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3551,6 +3652,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3566,7 +3668,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3586,6 +3688,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEmailChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3601,7 +3704,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3621,6 +3724,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3637,7 +3741,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3657,6 +3761,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3672,7 +3777,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3692,6 +3797,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEndpointsBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3707,7 +3813,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3727,6 +3833,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGcmChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3742,7 +3849,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3762,6 +3869,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInAppTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3778,7 +3886,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3798,6 +3906,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJourney") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3813,7 +3922,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3833,6 +3942,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJourneyState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3848,7 +3958,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3868,6 +3978,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePushTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3884,7 +3995,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3904,6 +4015,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRecommenderConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3919,7 +4031,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3939,6 +4051,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSegment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3954,7 +4067,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3974,6 +4087,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSmsChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3989,7 +4103,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4009,6 +4123,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSmsTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4025,7 +4140,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4045,6 +4160,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTemplateActiveVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4060,7 +4176,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4080,6 +4196,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVoiceChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4095,7 +4212,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4115,6 +4232,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVoiceTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4131,7 +4249,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4151,6 +4269,7 @@ extension PinpointClient: PinpointClientProtocol { .withRegion(value: config.region) .withSigningName(value: "mobiletargeting") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verifyOTPMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4166,7 +4285,7 @@ extension PinpointClient: PinpointClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPinpoint/models/Models.swift b/Sources/Services/AWSPinpoint/models/Models.swift index 18433e9253d..33e6b226444 100644 --- a/Sources/Services/AWSPinpoint/models/Models.swift +++ b/Sources/Services/AWSPinpoint/models/Models.swift @@ -2956,9 +2956,8 @@ extension PinpointClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestID = output.requestID @@ -2974,7 +2973,7 @@ extension BadRequestException { } /// Provides information about an API request or response. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5043,9 +5042,8 @@ extension PinpointClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestID = output.requestID @@ -5061,7 +5059,7 @@ extension ConflictException { } /// Provides information about an API request or response. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5154,15 +5152,15 @@ public struct CreateAppInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let createApplicationRequest = input.operationInput.createApplicationRequest { - let createApplicationRequestdata = try encoder.encode(createApplicationRequest) - let createApplicationRequestbody = ClientRuntime.HttpBody.data(createApplicationRequestdata) - input.builder.withBody(createApplicationRequestbody) + let createApplicationRequestData = try encoder.encode(createApplicationRequest) + let createApplicationRequestBody = ClientRuntime.HttpBody.data(createApplicationRequestData) + input.builder.withBody(createApplicationRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let createApplicationRequestdata = "{}".data(using: .utf8)! - let createApplicationRequestbody = ClientRuntime.HttpBody.data(createApplicationRequestdata) - input.builder.withBody(createApplicationRequestbody) + let createApplicationRequestData = "{}".data(using: .utf8)! + let createApplicationRequestBody = ClientRuntime.HttpBody.data(createApplicationRequestData) + input.builder.withBody(createApplicationRequestBody) } } } catch let err { @@ -5260,13 +5258,9 @@ public enum CreateAppOutputError: Swift.Error, Swift.Equatable { extension CreateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ApplicationResponse = try responseDecoder.decode(responseBody: data) - self.applicationResponse = output - } else { - self.applicationResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ApplicationResponse = try responseDecoder.decode(responseBody: data) + self.applicationResponse = output } else { self.applicationResponse = nil } @@ -5376,15 +5370,15 @@ public struct CreateCampaignInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let writeCampaignRequest = input.operationInput.writeCampaignRequest { - let writeCampaignRequestdata = try encoder.encode(writeCampaignRequest) - let writeCampaignRequestbody = ClientRuntime.HttpBody.data(writeCampaignRequestdata) - input.builder.withBody(writeCampaignRequestbody) + let writeCampaignRequestData = try encoder.encode(writeCampaignRequest) + let writeCampaignRequestBody = ClientRuntime.HttpBody.data(writeCampaignRequestData) + input.builder.withBody(writeCampaignRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let writeCampaignRequestdata = "{}".data(using: .utf8)! - let writeCampaignRequestbody = ClientRuntime.HttpBody.data(writeCampaignRequestdata) - input.builder.withBody(writeCampaignRequestbody) + let writeCampaignRequestData = "{}".data(using: .utf8)! + let writeCampaignRequestBody = ClientRuntime.HttpBody.data(writeCampaignRequestData) + input.builder.withBody(writeCampaignRequestBody) } } } catch let err { @@ -5490,13 +5484,9 @@ public enum CreateCampaignOutputError: Swift.Error, Swift.Equatable { extension CreateCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) - self.campaignResponse = output - } else { - self.campaignResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) + self.campaignResponse = output } else { self.campaignResponse = nil } @@ -5548,15 +5538,15 @@ public struct CreateEmailTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let emailTemplateRequest = input.operationInput.emailTemplateRequest { - let emailTemplateRequestdata = try encoder.encode(emailTemplateRequest) - let emailTemplateRequestbody = ClientRuntime.HttpBody.data(emailTemplateRequestdata) - input.builder.withBody(emailTemplateRequestbody) + let emailTemplateRequestData = try encoder.encode(emailTemplateRequest) + let emailTemplateRequestBody = ClientRuntime.HttpBody.data(emailTemplateRequestData) + input.builder.withBody(emailTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let emailTemplateRequestdata = "{}".data(using: .utf8)! - let emailTemplateRequestbody = ClientRuntime.HttpBody.data(emailTemplateRequestdata) - input.builder.withBody(emailTemplateRequestbody) + let emailTemplateRequestData = "{}".data(using: .utf8)! + let emailTemplateRequestBody = ClientRuntime.HttpBody.data(emailTemplateRequestData) + input.builder.withBody(emailTemplateRequestBody) } } } catch let err { @@ -5658,13 +5648,9 @@ public enum CreateEmailTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateEmailTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CreateTemplateMessageBody = try responseDecoder.decode(responseBody: data) - self.createTemplateMessageBody = output - } else { - self.createTemplateMessageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CreateTemplateMessageBody = try responseDecoder.decode(responseBody: data) + self.createTemplateMessageBody = output } else { self.createTemplateMessageBody = nil } @@ -5716,15 +5702,15 @@ public struct CreateExportJobInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let exportJobRequest = input.operationInput.exportJobRequest { - let exportJobRequestdata = try encoder.encode(exportJobRequest) - let exportJobRequestbody = ClientRuntime.HttpBody.data(exportJobRequestdata) - input.builder.withBody(exportJobRequestbody) + let exportJobRequestData = try encoder.encode(exportJobRequest) + let exportJobRequestBody = ClientRuntime.HttpBody.data(exportJobRequestData) + input.builder.withBody(exportJobRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let exportJobRequestdata = "{}".data(using: .utf8)! - let exportJobRequestbody = ClientRuntime.HttpBody.data(exportJobRequestdata) - input.builder.withBody(exportJobRequestbody) + let exportJobRequestData = "{}".data(using: .utf8)! + let exportJobRequestBody = ClientRuntime.HttpBody.data(exportJobRequestData) + input.builder.withBody(exportJobRequestBody) } } } catch let err { @@ -5830,13 +5816,9 @@ public enum CreateExportJobOutputError: Swift.Error, Swift.Equatable { extension CreateExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ExportJobResponse = try responseDecoder.decode(responseBody: data) - self.exportJobResponse = output - } else { - self.exportJobResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ExportJobResponse = try responseDecoder.decode(responseBody: data) + self.exportJobResponse = output } else { self.exportJobResponse = nil } @@ -5888,15 +5870,15 @@ public struct CreateImportJobInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let importJobRequest = input.operationInput.importJobRequest { - let importJobRequestdata = try encoder.encode(importJobRequest) - let importJobRequestbody = ClientRuntime.HttpBody.data(importJobRequestdata) - input.builder.withBody(importJobRequestbody) + let importJobRequestData = try encoder.encode(importJobRequest) + let importJobRequestBody = ClientRuntime.HttpBody.data(importJobRequestData) + input.builder.withBody(importJobRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let importJobRequestdata = "{}".data(using: .utf8)! - let importJobRequestbody = ClientRuntime.HttpBody.data(importJobRequestdata) - input.builder.withBody(importJobRequestbody) + let importJobRequestData = "{}".data(using: .utf8)! + let importJobRequestBody = ClientRuntime.HttpBody.data(importJobRequestData) + input.builder.withBody(importJobRequestBody) } } } catch let err { @@ -6002,13 +5984,9 @@ public enum CreateImportJobOutputError: Swift.Error, Swift.Equatable { extension CreateImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ImportJobResponse = try responseDecoder.decode(responseBody: data) - self.importJobResponse = output - } else { - self.importJobResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ImportJobResponse = try responseDecoder.decode(responseBody: data) + self.importJobResponse = output } else { self.importJobResponse = nil } @@ -6060,15 +6038,15 @@ public struct CreateInAppTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let inAppTemplateRequest = input.operationInput.inAppTemplateRequest { - let inAppTemplateRequestdata = try encoder.encode(inAppTemplateRequest) - let inAppTemplateRequestbody = ClientRuntime.HttpBody.data(inAppTemplateRequestdata) - input.builder.withBody(inAppTemplateRequestbody) + let inAppTemplateRequestData = try encoder.encode(inAppTemplateRequest) + let inAppTemplateRequestBody = ClientRuntime.HttpBody.data(inAppTemplateRequestData) + input.builder.withBody(inAppTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let inAppTemplateRequestdata = "{}".data(using: .utf8)! - let inAppTemplateRequestbody = ClientRuntime.HttpBody.data(inAppTemplateRequestdata) - input.builder.withBody(inAppTemplateRequestbody) + let inAppTemplateRequestData = "{}".data(using: .utf8)! + let inAppTemplateRequestBody = ClientRuntime.HttpBody.data(inAppTemplateRequestData) + input.builder.withBody(inAppTemplateRequestBody) } } } catch let err { @@ -6170,13 +6148,9 @@ public enum CreateInAppTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateInAppTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.TemplateCreateMessageBody = try responseDecoder.decode(responseBody: data) - self.templateCreateMessageBody = output - } else { - self.templateCreateMessageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.TemplateCreateMessageBody = try responseDecoder.decode(responseBody: data) + self.templateCreateMessageBody = output } else { self.templateCreateMessageBody = nil } @@ -6228,15 +6202,15 @@ public struct CreateJourneyInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let writeJourneyRequest = input.operationInput.writeJourneyRequest { - let writeJourneyRequestdata = try encoder.encode(writeJourneyRequest) - let writeJourneyRequestbody = ClientRuntime.HttpBody.data(writeJourneyRequestdata) - input.builder.withBody(writeJourneyRequestbody) + let writeJourneyRequestData = try encoder.encode(writeJourneyRequest) + let writeJourneyRequestBody = ClientRuntime.HttpBody.data(writeJourneyRequestData) + input.builder.withBody(writeJourneyRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let writeJourneyRequestdata = "{}".data(using: .utf8)! - let writeJourneyRequestbody = ClientRuntime.HttpBody.data(writeJourneyRequestdata) - input.builder.withBody(writeJourneyRequestbody) + let writeJourneyRequestData = "{}".data(using: .utf8)! + let writeJourneyRequestBody = ClientRuntime.HttpBody.data(writeJourneyRequestData) + input.builder.withBody(writeJourneyRequestBody) } } } catch let err { @@ -6342,13 +6316,9 @@ public enum CreateJourneyOutputError: Swift.Error, Swift.Equatable { extension CreateJourneyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) - self.journeyResponse = output - } else { - self.journeyResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) + self.journeyResponse = output } else { self.journeyResponse = nil } @@ -6400,15 +6370,15 @@ public struct CreatePushTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let pushNotificationTemplateRequest = input.operationInput.pushNotificationTemplateRequest { - let pushNotificationTemplateRequestdata = try encoder.encode(pushNotificationTemplateRequest) - let pushNotificationTemplateRequestbody = ClientRuntime.HttpBody.data(pushNotificationTemplateRequestdata) - input.builder.withBody(pushNotificationTemplateRequestbody) + let pushNotificationTemplateRequestData = try encoder.encode(pushNotificationTemplateRequest) + let pushNotificationTemplateRequestBody = ClientRuntime.HttpBody.data(pushNotificationTemplateRequestData) + input.builder.withBody(pushNotificationTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let pushNotificationTemplateRequestdata = "{}".data(using: .utf8)! - let pushNotificationTemplateRequestbody = ClientRuntime.HttpBody.data(pushNotificationTemplateRequestdata) - input.builder.withBody(pushNotificationTemplateRequestbody) + let pushNotificationTemplateRequestData = "{}".data(using: .utf8)! + let pushNotificationTemplateRequestBody = ClientRuntime.HttpBody.data(pushNotificationTemplateRequestData) + input.builder.withBody(pushNotificationTemplateRequestBody) } } } catch let err { @@ -6510,13 +6480,9 @@ public enum CreatePushTemplateOutputError: Swift.Error, Swift.Equatable { extension CreatePushTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CreateTemplateMessageBody = try responseDecoder.decode(responseBody: data) - self.createTemplateMessageBody = output - } else { - self.createTemplateMessageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CreateTemplateMessageBody = try responseDecoder.decode(responseBody: data) + self.createTemplateMessageBody = output } else { self.createTemplateMessageBody = nil } @@ -6568,15 +6534,15 @@ public struct CreateRecommenderConfigurationInputBodyMiddleware: ClientRuntime.M do { let encoder = context.getEncoder() if let createRecommenderConfiguration = input.operationInput.createRecommenderConfiguration { - let createRecommenderConfigurationdata = try encoder.encode(createRecommenderConfiguration) - let createRecommenderConfigurationbody = ClientRuntime.HttpBody.data(createRecommenderConfigurationdata) - input.builder.withBody(createRecommenderConfigurationbody) + let createRecommenderConfigurationData = try encoder.encode(createRecommenderConfiguration) + let createRecommenderConfigurationBody = ClientRuntime.HttpBody.data(createRecommenderConfigurationData) + input.builder.withBody(createRecommenderConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let createRecommenderConfigurationdata = "{}".data(using: .utf8)! - let createRecommenderConfigurationbody = ClientRuntime.HttpBody.data(createRecommenderConfigurationdata) - input.builder.withBody(createRecommenderConfigurationbody) + let createRecommenderConfigurationData = "{}".data(using: .utf8)! + let createRecommenderConfigurationBody = ClientRuntime.HttpBody.data(createRecommenderConfigurationData) + input.builder.withBody(createRecommenderConfigurationBody) } } } catch let err { @@ -6674,13 +6640,9 @@ public enum CreateRecommenderConfigurationOutputError: Swift.Error, Swift.Equata extension CreateRecommenderConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.RecommenderConfigurationResponse = try responseDecoder.decode(responseBody: data) - self.recommenderConfigurationResponse = output - } else { - self.recommenderConfigurationResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.RecommenderConfigurationResponse = try responseDecoder.decode(responseBody: data) + self.recommenderConfigurationResponse = output } else { self.recommenderConfigurationResponse = nil } @@ -6872,15 +6834,15 @@ public struct CreateSegmentInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let writeSegmentRequest = input.operationInput.writeSegmentRequest { - let writeSegmentRequestdata = try encoder.encode(writeSegmentRequest) - let writeSegmentRequestbody = ClientRuntime.HttpBody.data(writeSegmentRequestdata) - input.builder.withBody(writeSegmentRequestbody) + let writeSegmentRequestData = try encoder.encode(writeSegmentRequest) + let writeSegmentRequestBody = ClientRuntime.HttpBody.data(writeSegmentRequestData) + input.builder.withBody(writeSegmentRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let writeSegmentRequestdata = "{}".data(using: .utf8)! - let writeSegmentRequestbody = ClientRuntime.HttpBody.data(writeSegmentRequestdata) - input.builder.withBody(writeSegmentRequestbody) + let writeSegmentRequestData = "{}".data(using: .utf8)! + let writeSegmentRequestBody = ClientRuntime.HttpBody.data(writeSegmentRequestData) + input.builder.withBody(writeSegmentRequestBody) } } } catch let err { @@ -6986,13 +6948,9 @@ public enum CreateSegmentOutputError: Swift.Error, Swift.Equatable { extension CreateSegmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) - self.segmentResponse = output - } else { - self.segmentResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) + self.segmentResponse = output } else { self.segmentResponse = nil } @@ -7044,15 +7002,15 @@ public struct CreateSmsTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let smsTemplateRequest = input.operationInput.smsTemplateRequest { - let smsTemplateRequestdata = try encoder.encode(smsTemplateRequest) - let smsTemplateRequestbody = ClientRuntime.HttpBody.data(smsTemplateRequestdata) - input.builder.withBody(smsTemplateRequestbody) + let smsTemplateRequestData = try encoder.encode(smsTemplateRequest) + let smsTemplateRequestBody = ClientRuntime.HttpBody.data(smsTemplateRequestData) + input.builder.withBody(smsTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let smsTemplateRequestdata = "{}".data(using: .utf8)! - let smsTemplateRequestbody = ClientRuntime.HttpBody.data(smsTemplateRequestdata) - input.builder.withBody(smsTemplateRequestbody) + let smsTemplateRequestData = "{}".data(using: .utf8)! + let smsTemplateRequestBody = ClientRuntime.HttpBody.data(smsTemplateRequestData) + input.builder.withBody(smsTemplateRequestBody) } } } catch let err { @@ -7154,13 +7112,9 @@ public enum CreateSmsTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateSmsTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CreateTemplateMessageBody = try responseDecoder.decode(responseBody: data) - self.createTemplateMessageBody = output - } else { - self.createTemplateMessageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CreateTemplateMessageBody = try responseDecoder.decode(responseBody: data) + self.createTemplateMessageBody = output } else { self.createTemplateMessageBody = nil } @@ -7267,15 +7221,15 @@ public struct CreateVoiceTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let voiceTemplateRequest = input.operationInput.voiceTemplateRequest { - let voiceTemplateRequestdata = try encoder.encode(voiceTemplateRequest) - let voiceTemplateRequestbody = ClientRuntime.HttpBody.data(voiceTemplateRequestdata) - input.builder.withBody(voiceTemplateRequestbody) + let voiceTemplateRequestData = try encoder.encode(voiceTemplateRequest) + let voiceTemplateRequestBody = ClientRuntime.HttpBody.data(voiceTemplateRequestData) + input.builder.withBody(voiceTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let voiceTemplateRequestdata = "{}".data(using: .utf8)! - let voiceTemplateRequestbody = ClientRuntime.HttpBody.data(voiceTemplateRequestdata) - input.builder.withBody(voiceTemplateRequestbody) + let voiceTemplateRequestData = "{}".data(using: .utf8)! + let voiceTemplateRequestBody = ClientRuntime.HttpBody.data(voiceTemplateRequestData) + input.builder.withBody(voiceTemplateRequestBody) } } } catch let err { @@ -7377,13 +7331,9 @@ public enum CreateVoiceTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateVoiceTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CreateTemplateMessageBody = try responseDecoder.decode(responseBody: data) - self.createTemplateMessageBody = output - } else { - self.createTemplateMessageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CreateTemplateMessageBody = try responseDecoder.decode(responseBody: data) + self.createTemplateMessageBody = output } else { self.createTemplateMessageBody = nil } @@ -8066,13 +8016,9 @@ public enum DeleteAdmChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteAdmChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ADMChannelResponse = try responseDecoder.decode(responseBody: data) - self.admChannelResponse = output - } else { - self.admChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ADMChannelResponse = try responseDecoder.decode(responseBody: data) + self.admChannelResponse = output } else { self.admChannelResponse = nil } @@ -8175,13 +8121,9 @@ public enum DeleteApnsChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteApnsChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsChannelResponse = output - } else { - self.apnsChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsChannelResponse = output } else { self.apnsChannelResponse = nil } @@ -8284,13 +8226,9 @@ public enum DeleteApnsSandboxChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteApnsSandboxChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSSandboxChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsSandboxChannelResponse = output - } else { - self.apnsSandboxChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSSandboxChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsSandboxChannelResponse = output } else { self.apnsSandboxChannelResponse = nil } @@ -8393,13 +8331,9 @@ public enum DeleteApnsVoipChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteApnsVoipChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSVoipChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsVoipChannelResponse = output - } else { - self.apnsVoipChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSVoipChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsVoipChannelResponse = output } else { self.apnsVoipChannelResponse = nil } @@ -8502,13 +8436,9 @@ public enum DeleteApnsVoipSandboxChannelOutputError: Swift.Error, Swift.Equatabl extension DeleteApnsVoipSandboxChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSVoipSandboxChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsVoipSandboxChannelResponse = output - } else { - self.apnsVoipSandboxChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSVoipSandboxChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsVoipSandboxChannelResponse = output } else { self.apnsVoipSandboxChannelResponse = nil } @@ -8611,13 +8541,9 @@ public enum DeleteAppOutputError: Swift.Error, Swift.Equatable { extension DeleteAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ApplicationResponse = try responseDecoder.decode(responseBody: data) - self.applicationResponse = output - } else { - self.applicationResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ApplicationResponse = try responseDecoder.decode(responseBody: data) + self.applicationResponse = output } else { self.applicationResponse = nil } @@ -8720,13 +8646,9 @@ public enum DeleteBaiduChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteBaiduChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.BaiduChannelResponse = try responseDecoder.decode(responseBody: data) - self.baiduChannelResponse = output - } else { - self.baiduChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.BaiduChannelResponse = try responseDecoder.decode(responseBody: data) + self.baiduChannelResponse = output } else { self.baiduChannelResponse = nil } @@ -8837,13 +8759,9 @@ public enum DeleteCampaignOutputError: Swift.Error, Swift.Equatable { extension DeleteCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) - self.campaignResponse = output - } else { - self.campaignResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) + self.campaignResponse = output } else { self.campaignResponse = nil } @@ -8946,13 +8864,9 @@ public enum DeleteEmailChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteEmailChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EmailChannelResponse = try responseDecoder.decode(responseBody: data) - self.emailChannelResponse = output - } else { - self.emailChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EmailChannelResponse = try responseDecoder.decode(responseBody: data) + self.emailChannelResponse = output } else { self.emailChannelResponse = nil } @@ -9078,13 +8992,9 @@ public enum DeleteEmailTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteEmailTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -9195,13 +9105,9 @@ public enum DeleteEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EndpointResponse = try responseDecoder.decode(responseBody: data) - self.endpointResponse = output - } else { - self.endpointResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EndpointResponse = try responseDecoder.decode(responseBody: data) + self.endpointResponse = output } else { self.endpointResponse = nil } @@ -9304,13 +9210,9 @@ public enum DeleteEventStreamOutputError: Swift.Error, Swift.Equatable { extension DeleteEventStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EventStream = try responseDecoder.decode(responseBody: data) - self.eventStream = output - } else { - self.eventStream = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EventStream = try responseDecoder.decode(responseBody: data) + self.eventStream = output } else { self.eventStream = nil } @@ -9413,13 +9315,9 @@ public enum DeleteGcmChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteGcmChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.GCMChannelResponse = try responseDecoder.decode(responseBody: data) - self.gcmChannelResponse = output - } else { - self.gcmChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.GCMChannelResponse = try responseDecoder.decode(responseBody: data) + self.gcmChannelResponse = output } else { self.gcmChannelResponse = nil } @@ -9545,13 +9443,9 @@ public enum DeleteInAppTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteInAppTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -9662,13 +9556,9 @@ public enum DeleteJourneyOutputError: Swift.Error, Swift.Equatable { extension DeleteJourneyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) - self.journeyResponse = output - } else { - self.journeyResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) + self.journeyResponse = output } else { self.journeyResponse = nil } @@ -9794,13 +9684,9 @@ public enum DeletePushTemplateOutputError: Swift.Error, Swift.Equatable { extension DeletePushTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -9903,13 +9789,9 @@ public enum DeleteRecommenderConfigurationOutputError: Swift.Error, Swift.Equata extension DeleteRecommenderConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.RecommenderConfigurationResponse = try responseDecoder.decode(responseBody: data) - self.recommenderConfigurationResponse = output - } else { - self.recommenderConfigurationResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.RecommenderConfigurationResponse = try responseDecoder.decode(responseBody: data) + self.recommenderConfigurationResponse = output } else { self.recommenderConfigurationResponse = nil } @@ -10020,13 +9902,9 @@ public enum DeleteSegmentOutputError: Swift.Error, Swift.Equatable { extension DeleteSegmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) - self.segmentResponse = output - } else { - self.segmentResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) + self.segmentResponse = output } else { self.segmentResponse = nil } @@ -10129,13 +10007,9 @@ public enum DeleteSmsChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteSmsChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SMSChannelResponse = try responseDecoder.decode(responseBody: data) - self.smsChannelResponse = output - } else { - self.smsChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SMSChannelResponse = try responseDecoder.decode(responseBody: data) + self.smsChannelResponse = output } else { self.smsChannelResponse = nil } @@ -10261,13 +10135,9 @@ public enum DeleteSmsTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteSmsTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -10378,13 +10248,9 @@ public enum DeleteUserEndpointsOutputError: Swift.Error, Swift.Equatable { extension DeleteUserEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EndpointsResponse = try responseDecoder.decode(responseBody: data) - self.endpointsResponse = output - } else { - self.endpointsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EndpointsResponse = try responseDecoder.decode(responseBody: data) + self.endpointsResponse = output } else { self.endpointsResponse = nil } @@ -10487,13 +10353,9 @@ public enum DeleteVoiceChannelOutputError: Swift.Error, Swift.Equatable { extension DeleteVoiceChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.VoiceChannelResponse = try responseDecoder.decode(responseBody: data) - self.voiceChannelResponse = output - } else { - self.voiceChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.VoiceChannelResponse = try responseDecoder.decode(responseBody: data) + self.voiceChannelResponse = output } else { self.voiceChannelResponse = nil } @@ -10619,13 +10481,9 @@ public enum DeleteVoiceTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteVoiceTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -13837,9 +13695,8 @@ extension PinpointClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestID = output.requestID @@ -13855,7 +13712,7 @@ extension ForbiddenException { } /// Provides information about an API request or response. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14557,13 +14414,9 @@ public enum GetAdmChannelOutputError: Swift.Error, Swift.Equatable { extension GetAdmChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ADMChannelResponse = try responseDecoder.decode(responseBody: data) - self.admChannelResponse = output - } else { - self.admChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ADMChannelResponse = try responseDecoder.decode(responseBody: data) + self.admChannelResponse = output } else { self.admChannelResponse = nil } @@ -14666,13 +14519,9 @@ public enum GetApnsChannelOutputError: Swift.Error, Swift.Equatable { extension GetApnsChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsChannelResponse = output - } else { - self.apnsChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsChannelResponse = output } else { self.apnsChannelResponse = nil } @@ -14775,13 +14624,9 @@ public enum GetApnsSandboxChannelOutputError: Swift.Error, Swift.Equatable { extension GetApnsSandboxChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSSandboxChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsSandboxChannelResponse = output - } else { - self.apnsSandboxChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSSandboxChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsSandboxChannelResponse = output } else { self.apnsSandboxChannelResponse = nil } @@ -14884,13 +14729,9 @@ public enum GetApnsVoipChannelOutputError: Swift.Error, Swift.Equatable { extension GetApnsVoipChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSVoipChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsVoipChannelResponse = output - } else { - self.apnsVoipChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSVoipChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsVoipChannelResponse = output } else { self.apnsVoipChannelResponse = nil } @@ -14993,13 +14834,9 @@ public enum GetApnsVoipSandboxChannelOutputError: Swift.Error, Swift.Equatable { extension GetApnsVoipSandboxChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSVoipSandboxChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsVoipSandboxChannelResponse = output - } else { - self.apnsVoipSandboxChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSVoipSandboxChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsVoipSandboxChannelResponse = output } else { self.apnsVoipSandboxChannelResponse = nil } @@ -15102,13 +14939,9 @@ public enum GetAppOutputError: Swift.Error, Swift.Equatable { extension GetAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ApplicationResponse = try responseDecoder.decode(responseBody: data) - self.applicationResponse = output - } else { - self.applicationResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ApplicationResponse = try responseDecoder.decode(responseBody: data) + self.applicationResponse = output } else { self.applicationResponse = nil } @@ -15260,13 +15093,9 @@ public enum GetApplicationDateRangeKpiOutputError: Swift.Error, Swift.Equatable extension GetApplicationDateRangeKpiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ApplicationDateRangeKpiResponse = try responseDecoder.decode(responseBody: data) - self.applicationDateRangeKpiResponse = output - } else { - self.applicationDateRangeKpiResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ApplicationDateRangeKpiResponse = try responseDecoder.decode(responseBody: data) + self.applicationDateRangeKpiResponse = output } else { self.applicationDateRangeKpiResponse = nil } @@ -15369,13 +15198,9 @@ public enum GetApplicationSettingsOutputError: Swift.Error, Swift.Equatable { extension GetApplicationSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ApplicationSettingsResource = try responseDecoder.decode(responseBody: data) - self.applicationSettingsResource = output - } else { - self.applicationSettingsResource = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ApplicationSettingsResource = try responseDecoder.decode(responseBody: data) + self.applicationSettingsResource = output } else { self.applicationSettingsResource = nil } @@ -15495,13 +15320,9 @@ public enum GetAppsOutputError: Swift.Error, Swift.Equatable { extension GetAppsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ApplicationsResponse = try responseDecoder.decode(responseBody: data) - self.applicationsResponse = output - } else { - self.applicationsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ApplicationsResponse = try responseDecoder.decode(responseBody: data) + self.applicationsResponse = output } else { self.applicationsResponse = nil } @@ -15604,13 +15425,9 @@ public enum GetBaiduChannelOutputError: Swift.Error, Swift.Equatable { extension GetBaiduChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.BaiduChannelResponse = try responseDecoder.decode(responseBody: data) - self.baiduChannelResponse = output - } else { - self.baiduChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.BaiduChannelResponse = try responseDecoder.decode(responseBody: data) + self.baiduChannelResponse = output } else { self.baiduChannelResponse = nil } @@ -15746,13 +15563,9 @@ public enum GetCampaignActivitiesOutputError: Swift.Error, Swift.Equatable { extension GetCampaignActivitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ActivitiesResponse = try responseDecoder.decode(responseBody: data) - self.activitiesResponse = output - } else { - self.activitiesResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ActivitiesResponse = try responseDecoder.decode(responseBody: data) + self.activitiesResponse = output } else { self.activitiesResponse = nil } @@ -15912,13 +15725,9 @@ public enum GetCampaignDateRangeKpiOutputError: Swift.Error, Swift.Equatable { extension GetCampaignDateRangeKpiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CampaignDateRangeKpiResponse = try responseDecoder.decode(responseBody: data) - self.campaignDateRangeKpiResponse = output - } else { - self.campaignDateRangeKpiResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CampaignDateRangeKpiResponse = try responseDecoder.decode(responseBody: data) + self.campaignDateRangeKpiResponse = output } else { self.campaignDateRangeKpiResponse = nil } @@ -16029,13 +15838,9 @@ public enum GetCampaignOutputError: Swift.Error, Swift.Equatable { extension GetCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) - self.campaignResponse = output - } else { - self.campaignResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) + self.campaignResponse = output } else { self.campaignResponse = nil } @@ -16154,13 +15959,9 @@ public enum GetCampaignVersionOutputError: Swift.Error, Swift.Equatable { extension GetCampaignVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) - self.campaignResponse = output - } else { - self.campaignResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) + self.campaignResponse = output } else { self.campaignResponse = nil } @@ -16296,13 +16097,9 @@ public enum GetCampaignVersionsOutputError: Swift.Error, Swift.Equatable { extension GetCampaignVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CampaignsResponse = try responseDecoder.decode(responseBody: data) - self.campaignsResponse = output - } else { - self.campaignsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CampaignsResponse = try responseDecoder.decode(responseBody: data) + self.campaignsResponse = output } else { self.campaignsResponse = nil } @@ -16430,13 +16227,9 @@ public enum GetCampaignsOutputError: Swift.Error, Swift.Equatable { extension GetCampaignsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CampaignsResponse = try responseDecoder.decode(responseBody: data) - self.campaignsResponse = output - } else { - self.campaignsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CampaignsResponse = try responseDecoder.decode(responseBody: data) + self.campaignsResponse = output } else { self.campaignsResponse = nil } @@ -16539,13 +16332,9 @@ public enum GetChannelsOutputError: Swift.Error, Swift.Equatable { extension GetChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ChannelsResponse = try responseDecoder.decode(responseBody: data) - self.channelsResponse = output - } else { - self.channelsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ChannelsResponse = try responseDecoder.decode(responseBody: data) + self.channelsResponse = output } else { self.channelsResponse = nil } @@ -16648,13 +16437,9 @@ public enum GetEmailChannelOutputError: Swift.Error, Swift.Equatable { extension GetEmailChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EmailChannelResponse = try responseDecoder.decode(responseBody: data) - self.emailChannelResponse = output - } else { - self.emailChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EmailChannelResponse = try responseDecoder.decode(responseBody: data) + self.emailChannelResponse = output } else { self.emailChannelResponse = nil } @@ -16780,13 +16565,9 @@ public enum GetEmailTemplateOutputError: Swift.Error, Swift.Equatable { extension GetEmailTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EmailTemplateResponse = try responseDecoder.decode(responseBody: data) - self.emailTemplateResponse = output - } else { - self.emailTemplateResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EmailTemplateResponse = try responseDecoder.decode(responseBody: data) + self.emailTemplateResponse = output } else { self.emailTemplateResponse = nil } @@ -16897,13 +16678,9 @@ public enum GetEndpointOutputError: Swift.Error, Swift.Equatable { extension GetEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EndpointResponse = try responseDecoder.decode(responseBody: data) - self.endpointResponse = output - } else { - self.endpointResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EndpointResponse = try responseDecoder.decode(responseBody: data) + self.endpointResponse = output } else { self.endpointResponse = nil } @@ -17006,13 +16783,9 @@ public enum GetEventStreamOutputError: Swift.Error, Swift.Equatable { extension GetEventStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EventStream = try responseDecoder.decode(responseBody: data) - self.eventStream = output - } else { - self.eventStream = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EventStream = try responseDecoder.decode(responseBody: data) + self.eventStream = output } else { self.eventStream = nil } @@ -17123,13 +16896,9 @@ public enum GetExportJobOutputError: Swift.Error, Swift.Equatable { extension GetExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ExportJobResponse = try responseDecoder.decode(responseBody: data) - self.exportJobResponse = output - } else { - self.exportJobResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ExportJobResponse = try responseDecoder.decode(responseBody: data) + self.exportJobResponse = output } else { self.exportJobResponse = nil } @@ -17257,13 +17026,9 @@ public enum GetExportJobsOutputError: Swift.Error, Swift.Equatable { extension GetExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ExportJobsResponse = try responseDecoder.decode(responseBody: data) - self.exportJobsResponse = output - } else { - self.exportJobsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ExportJobsResponse = try responseDecoder.decode(responseBody: data) + self.exportJobsResponse = output } else { self.exportJobsResponse = nil } @@ -17366,13 +17131,9 @@ public enum GetGcmChannelOutputError: Swift.Error, Swift.Equatable { extension GetGcmChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.GCMChannelResponse = try responseDecoder.decode(responseBody: data) - self.gcmChannelResponse = output - } else { - self.gcmChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.GCMChannelResponse = try responseDecoder.decode(responseBody: data) + self.gcmChannelResponse = output } else { self.gcmChannelResponse = nil } @@ -17483,13 +17244,9 @@ public enum GetImportJobOutputError: Swift.Error, Swift.Equatable { extension GetImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ImportJobResponse = try responseDecoder.decode(responseBody: data) - self.importJobResponse = output - } else { - self.importJobResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ImportJobResponse = try responseDecoder.decode(responseBody: data) + self.importJobResponse = output } else { self.importJobResponse = nil } @@ -17617,13 +17374,9 @@ public enum GetImportJobsOutputError: Swift.Error, Swift.Equatable { extension GetImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ImportJobsResponse = try responseDecoder.decode(responseBody: data) - self.importJobsResponse = output - } else { - self.importJobsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ImportJobsResponse = try responseDecoder.decode(responseBody: data) + self.importJobsResponse = output } else { self.importJobsResponse = nil } @@ -17734,13 +17487,9 @@ public enum GetInAppMessagesOutputError: Swift.Error, Swift.Equatable { extension GetInAppMessagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.InAppMessagesResponse = try responseDecoder.decode(responseBody: data) - self.inAppMessagesResponse = output - } else { - self.inAppMessagesResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.InAppMessagesResponse = try responseDecoder.decode(responseBody: data) + self.inAppMessagesResponse = output } else { self.inAppMessagesResponse = nil } @@ -17866,13 +17615,9 @@ public enum GetInAppTemplateOutputError: Swift.Error, Swift.Equatable { extension GetInAppTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.InAppTemplateResponse = try responseDecoder.decode(responseBody: data) - self.inAppTemplateResponse = output - } else { - self.inAppTemplateResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.InAppTemplateResponse = try responseDecoder.decode(responseBody: data) + self.inAppTemplateResponse = output } else { self.inAppTemplateResponse = nil } @@ -18032,13 +17777,9 @@ public enum GetJourneyDateRangeKpiOutputError: Swift.Error, Swift.Equatable { extension GetJourneyDateRangeKpiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneyDateRangeKpiResponse = try responseDecoder.decode(responseBody: data) - self.journeyDateRangeKpiResponse = output - } else { - self.journeyDateRangeKpiResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneyDateRangeKpiResponse = try responseDecoder.decode(responseBody: data) + self.journeyDateRangeKpiResponse = output } else { self.journeyDateRangeKpiResponse = nil } @@ -18182,13 +17923,9 @@ public enum GetJourneyExecutionActivityMetricsOutputError: Swift.Error, Swift.Eq extension GetJourneyExecutionActivityMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneyExecutionActivityMetricsResponse = try responseDecoder.decode(responseBody: data) - self.journeyExecutionActivityMetricsResponse = output - } else { - self.journeyExecutionActivityMetricsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneyExecutionActivityMetricsResponse = try responseDecoder.decode(responseBody: data) + self.journeyExecutionActivityMetricsResponse = output } else { self.journeyExecutionActivityMetricsResponse = nil } @@ -18324,13 +18061,9 @@ public enum GetJourneyExecutionMetricsOutputError: Swift.Error, Swift.Equatable extension GetJourneyExecutionMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneyExecutionMetricsResponse = try responseDecoder.decode(responseBody: data) - self.journeyExecutionMetricsResponse = output - } else { - self.journeyExecutionMetricsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneyExecutionMetricsResponse = try responseDecoder.decode(responseBody: data) + self.journeyExecutionMetricsResponse = output } else { self.journeyExecutionMetricsResponse = nil } @@ -18441,13 +18174,9 @@ public enum GetJourneyOutputError: Swift.Error, Swift.Equatable { extension GetJourneyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) - self.journeyResponse = output - } else { - self.journeyResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) + self.journeyResponse = output } else { self.journeyResponse = nil } @@ -18573,13 +18302,9 @@ public enum GetPushTemplateOutputError: Swift.Error, Swift.Equatable { extension GetPushTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.PushNotificationTemplateResponse = try responseDecoder.decode(responseBody: data) - self.pushNotificationTemplateResponse = output - } else { - self.pushNotificationTemplateResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.PushNotificationTemplateResponse = try responseDecoder.decode(responseBody: data) + self.pushNotificationTemplateResponse = output } else { self.pushNotificationTemplateResponse = nil } @@ -18682,13 +18407,9 @@ public enum GetRecommenderConfigurationOutputError: Swift.Error, Swift.Equatable extension GetRecommenderConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.RecommenderConfigurationResponse = try responseDecoder.decode(responseBody: data) - self.recommenderConfigurationResponse = output - } else { - self.recommenderConfigurationResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.RecommenderConfigurationResponse = try responseDecoder.decode(responseBody: data) + self.recommenderConfigurationResponse = output } else { self.recommenderConfigurationResponse = nil } @@ -18808,13 +18529,9 @@ public enum GetRecommenderConfigurationsOutputError: Swift.Error, Swift.Equatabl extension GetRecommenderConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ListRecommenderConfigurationsResponse = try responseDecoder.decode(responseBody: data) - self.listRecommenderConfigurationsResponse = output - } else { - self.listRecommenderConfigurationsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ListRecommenderConfigurationsResponse = try responseDecoder.decode(responseBody: data) + self.listRecommenderConfigurationsResponse = output } else { self.listRecommenderConfigurationsResponse = nil } @@ -18950,13 +18667,9 @@ public enum GetSegmentExportJobsOutputError: Swift.Error, Swift.Equatable { extension GetSegmentExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ExportJobsResponse = try responseDecoder.decode(responseBody: data) - self.exportJobsResponse = output - } else { - self.exportJobsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ExportJobsResponse = try responseDecoder.decode(responseBody: data) + self.exportJobsResponse = output } else { self.exportJobsResponse = nil } @@ -19092,13 +18805,9 @@ public enum GetSegmentImportJobsOutputError: Swift.Error, Swift.Equatable { extension GetSegmentImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ImportJobsResponse = try responseDecoder.decode(responseBody: data) - self.importJobsResponse = output - } else { - self.importJobsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ImportJobsResponse = try responseDecoder.decode(responseBody: data) + self.importJobsResponse = output } else { self.importJobsResponse = nil } @@ -19209,13 +18918,9 @@ public enum GetSegmentOutputError: Swift.Error, Swift.Equatable { extension GetSegmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) - self.segmentResponse = output - } else { - self.segmentResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) + self.segmentResponse = output } else { self.segmentResponse = nil } @@ -19334,13 +19039,9 @@ public enum GetSegmentVersionOutputError: Swift.Error, Swift.Equatable { extension GetSegmentVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) - self.segmentResponse = output - } else { - self.segmentResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) + self.segmentResponse = output } else { self.segmentResponse = nil } @@ -19476,13 +19177,9 @@ public enum GetSegmentVersionsOutputError: Swift.Error, Swift.Equatable { extension GetSegmentVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SegmentsResponse = try responseDecoder.decode(responseBody: data) - self.segmentsResponse = output - } else { - self.segmentsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SegmentsResponse = try responseDecoder.decode(responseBody: data) + self.segmentsResponse = output } else { self.segmentsResponse = nil } @@ -19610,13 +19307,9 @@ public enum GetSegmentsOutputError: Swift.Error, Swift.Equatable { extension GetSegmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SegmentsResponse = try responseDecoder.decode(responseBody: data) - self.segmentsResponse = output - } else { - self.segmentsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SegmentsResponse = try responseDecoder.decode(responseBody: data) + self.segmentsResponse = output } else { self.segmentsResponse = nil } @@ -19719,13 +19412,9 @@ public enum GetSmsChannelOutputError: Swift.Error, Swift.Equatable { extension GetSmsChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SMSChannelResponse = try responseDecoder.decode(responseBody: data) - self.smsChannelResponse = output - } else { - self.smsChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SMSChannelResponse = try responseDecoder.decode(responseBody: data) + self.smsChannelResponse = output } else { self.smsChannelResponse = nil } @@ -19851,13 +19540,9 @@ public enum GetSmsTemplateOutputError: Swift.Error, Swift.Equatable { extension GetSmsTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SMSTemplateResponse = try responseDecoder.decode(responseBody: data) - self.smsTemplateResponse = output - } else { - self.smsTemplateResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SMSTemplateResponse = try responseDecoder.decode(responseBody: data) + self.smsTemplateResponse = output } else { self.smsTemplateResponse = nil } @@ -19968,13 +19653,9 @@ public enum GetUserEndpointsOutputError: Swift.Error, Swift.Equatable { extension GetUserEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EndpointsResponse = try responseDecoder.decode(responseBody: data) - self.endpointsResponse = output - } else { - self.endpointsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EndpointsResponse = try responseDecoder.decode(responseBody: data) + self.endpointsResponse = output } else { self.endpointsResponse = nil } @@ -20077,13 +19758,9 @@ public enum GetVoiceChannelOutputError: Swift.Error, Swift.Equatable { extension GetVoiceChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.VoiceChannelResponse = try responseDecoder.decode(responseBody: data) - self.voiceChannelResponse = output - } else { - self.voiceChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.VoiceChannelResponse = try responseDecoder.decode(responseBody: data) + self.voiceChannelResponse = output } else { self.voiceChannelResponse = nil } @@ -20209,13 +19886,9 @@ public enum GetVoiceTemplateOutputError: Swift.Error, Swift.Equatable { extension GetVoiceTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.VoiceTemplateResponse = try responseDecoder.decode(responseBody: data) - self.voiceTemplateResponse = output - } else { - self.voiceTemplateResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.VoiceTemplateResponse = try responseDecoder.decode(responseBody: data) + self.voiceTemplateResponse = output } else { self.voiceTemplateResponse = nil } @@ -21619,9 +21292,8 @@ extension PinpointClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestID = output.requestID @@ -21637,7 +21309,7 @@ extension InternalServerErrorException { } /// Provides information about an API request or response. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22942,13 +22614,9 @@ public enum ListJourneysOutputError: Swift.Error, Swift.Equatable { extension ListJourneysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneysResponse = try responseDecoder.decode(responseBody: data) - self.journeysResponse = output - } else { - self.journeysResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneysResponse = try responseDecoder.decode(responseBody: data) + self.journeysResponse = output } else { self.journeysResponse = nil } @@ -23095,13 +22763,9 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.TagsModel = try responseDecoder.decode(responseBody: data) - self.tagsModel = output - } else { - self.tagsModel = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.TagsModel = try responseDecoder.decode(responseBody: data) + self.tagsModel = output } else { self.tagsModel = nil } @@ -23237,13 +22901,9 @@ public enum ListTemplateVersionsOutputError: Swift.Error, Swift.Equatable { extension ListTemplateVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.TemplateVersionsResponse = try responseDecoder.decode(responseBody: data) - self.templateVersionsResponse = output - } else { - self.templateVersionsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.TemplateVersionsResponse = try responseDecoder.decode(responseBody: data) + self.templateVersionsResponse = output } else { self.templateVersionsResponse = nil } @@ -23375,13 +23035,9 @@ public enum ListTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.TemplatesResponse = try responseDecoder.decode(responseBody: data) - self.templatesResponse = output - } else { - self.templatesResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.TemplatesResponse = try responseDecoder.decode(responseBody: data) + self.templatesResponse = output } else { self.templatesResponse = nil } @@ -24067,9 +23723,8 @@ extension PinpointClientTypes { extension MethodNotAllowedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MethodNotAllowedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestID = output.requestID @@ -24085,7 +23740,7 @@ extension MethodNotAllowedException { } /// Provides information about an API request or response. -public struct MethodNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MethodNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24321,9 +23976,8 @@ extension PinpointClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestID = output.requestID @@ -24339,7 +23993,7 @@ extension NotFoundException { } /// Provides information about an API request or response. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24902,9 +24556,8 @@ extension PinpointClientTypes { extension PayloadTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PayloadTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestID = output.requestID @@ -24920,7 +24573,7 @@ extension PayloadTooLargeException { } /// Provides information about an API request or response. -public struct PayloadTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PayloadTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24979,15 +24632,15 @@ public struct PhoneNumberValidateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let numberValidateRequest = input.operationInput.numberValidateRequest { - let numberValidateRequestdata = try encoder.encode(numberValidateRequest) - let numberValidateRequestbody = ClientRuntime.HttpBody.data(numberValidateRequestdata) - input.builder.withBody(numberValidateRequestbody) + let numberValidateRequestData = try encoder.encode(numberValidateRequest) + let numberValidateRequestBody = ClientRuntime.HttpBody.data(numberValidateRequestData) + input.builder.withBody(numberValidateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let numberValidateRequestdata = "{}".data(using: .utf8)! - let numberValidateRequestbody = ClientRuntime.HttpBody.data(numberValidateRequestdata) - input.builder.withBody(numberValidateRequestbody) + let numberValidateRequestData = "{}".data(using: .utf8)! + let numberValidateRequestBody = ClientRuntime.HttpBody.data(numberValidateRequestData) + input.builder.withBody(numberValidateRequestBody) } } } catch let err { @@ -25085,13 +24738,9 @@ public enum PhoneNumberValidateOutputError: Swift.Error, Swift.Equatable { extension PhoneNumberValidateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.NumberValidateResponse = try responseDecoder.decode(responseBody: data) - self.numberValidateResponse = output - } else { - self.numberValidateResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.NumberValidateResponse = try responseDecoder.decode(responseBody: data) + self.numberValidateResponse = output } else { self.numberValidateResponse = nil } @@ -25695,15 +25344,15 @@ public struct PutEventStreamInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let writeEventStream = input.operationInput.writeEventStream { - let writeEventStreamdata = try encoder.encode(writeEventStream) - let writeEventStreambody = ClientRuntime.HttpBody.data(writeEventStreamdata) - input.builder.withBody(writeEventStreambody) + let writeEventStreamData = try encoder.encode(writeEventStream) + let writeEventStreamBody = ClientRuntime.HttpBody.data(writeEventStreamData) + input.builder.withBody(writeEventStreamBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let writeEventStreamdata = "{}".data(using: .utf8)! - let writeEventStreambody = ClientRuntime.HttpBody.data(writeEventStreamdata) - input.builder.withBody(writeEventStreambody) + let writeEventStreamData = "{}".data(using: .utf8)! + let writeEventStreamBody = ClientRuntime.HttpBody.data(writeEventStreamData) + input.builder.withBody(writeEventStreamBody) } } } catch let err { @@ -25809,13 +25458,9 @@ public enum PutEventStreamOutputError: Swift.Error, Swift.Equatable { extension PutEventStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EventStream = try responseDecoder.decode(responseBody: data) - self.eventStream = output - } else { - self.eventStream = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EventStream = try responseDecoder.decode(responseBody: data) + self.eventStream = output } else { self.eventStream = nil } @@ -25867,15 +25512,15 @@ public struct PutEventsInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let eventsRequest = input.operationInput.eventsRequest { - let eventsRequestdata = try encoder.encode(eventsRequest) - let eventsRequestbody = ClientRuntime.HttpBody.data(eventsRequestdata) - input.builder.withBody(eventsRequestbody) + let eventsRequestData = try encoder.encode(eventsRequest) + let eventsRequestBody = ClientRuntime.HttpBody.data(eventsRequestData) + input.builder.withBody(eventsRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let eventsRequestdata = "{}".data(using: .utf8)! - let eventsRequestbody = ClientRuntime.HttpBody.data(eventsRequestdata) - input.builder.withBody(eventsRequestbody) + let eventsRequestData = "{}".data(using: .utf8)! + let eventsRequestBody = ClientRuntime.HttpBody.data(eventsRequestData) + input.builder.withBody(eventsRequestBody) } } } catch let err { @@ -25981,13 +25626,9 @@ public enum PutEventsOutputError: Swift.Error, Swift.Equatable { extension PutEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EventsResponse = try responseDecoder.decode(responseBody: data) - self.eventsResponse = output - } else { - self.eventsResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EventsResponse = try responseDecoder.decode(responseBody: data) + self.eventsResponse = output } else { self.eventsResponse = nil } @@ -26456,15 +26097,15 @@ public struct RemoveAttributesInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let updateAttributesRequest = input.operationInput.updateAttributesRequest { - let updateAttributesRequestdata = try encoder.encode(updateAttributesRequest) - let updateAttributesRequestbody = ClientRuntime.HttpBody.data(updateAttributesRequestdata) - input.builder.withBody(updateAttributesRequestbody) + let updateAttributesRequestData = try encoder.encode(updateAttributesRequest) + let updateAttributesRequestBody = ClientRuntime.HttpBody.data(updateAttributesRequestData) + input.builder.withBody(updateAttributesRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let updateAttributesRequestdata = "{}".data(using: .utf8)! - let updateAttributesRequestbody = ClientRuntime.HttpBody.data(updateAttributesRequestdata) - input.builder.withBody(updateAttributesRequestbody) + let updateAttributesRequestData = "{}".data(using: .utf8)! + let updateAttributesRequestBody = ClientRuntime.HttpBody.data(updateAttributesRequestData) + input.builder.withBody(updateAttributesRequestBody) } } } catch let err { @@ -26584,13 +26225,9 @@ public enum RemoveAttributesOutputError: Swift.Error, Swift.Equatable { extension RemoveAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.AttributesResource = try responseDecoder.decode(responseBody: data) - self.attributesResource = output - } else { - self.attributesResource = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.AttributesResource = try responseDecoder.decode(responseBody: data) + self.attributesResource = output } else { self.attributesResource = nil } @@ -28409,15 +28046,15 @@ public struct SendMessagesInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let messageRequest = input.operationInput.messageRequest { - let messageRequestdata = try encoder.encode(messageRequest) - let messageRequestbody = ClientRuntime.HttpBody.data(messageRequestdata) - input.builder.withBody(messageRequestbody) + let messageRequestData = try encoder.encode(messageRequest) + let messageRequestBody = ClientRuntime.HttpBody.data(messageRequestData) + input.builder.withBody(messageRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let messageRequestdata = "{}".data(using: .utf8)! - let messageRequestbody = ClientRuntime.HttpBody.data(messageRequestdata) - input.builder.withBody(messageRequestbody) + let messageRequestData = "{}".data(using: .utf8)! + let messageRequestBody = ClientRuntime.HttpBody.data(messageRequestData) + input.builder.withBody(messageRequestBody) } } } catch let err { @@ -28523,13 +28160,9 @@ public enum SendMessagesOutputError: Swift.Error, Swift.Equatable { extension SendMessagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageResponse = try responseDecoder.decode(responseBody: data) - self.messageResponse = output - } else { - self.messageResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageResponse = try responseDecoder.decode(responseBody: data) + self.messageResponse = output } else { self.messageResponse = nil } @@ -28581,15 +28214,15 @@ public struct SendOTPMessageInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let sendOTPMessageRequestParameters = input.operationInput.sendOTPMessageRequestParameters { - let sendOTPMessageRequestParametersdata = try encoder.encode(sendOTPMessageRequestParameters) - let sendOTPMessageRequestParametersbody = ClientRuntime.HttpBody.data(sendOTPMessageRequestParametersdata) - input.builder.withBody(sendOTPMessageRequestParametersbody) + let sendOTPMessageRequestParametersData = try encoder.encode(sendOTPMessageRequestParameters) + let sendOTPMessageRequestParametersBody = ClientRuntime.HttpBody.data(sendOTPMessageRequestParametersData) + input.builder.withBody(sendOTPMessageRequestParametersBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let sendOTPMessageRequestParametersdata = "{}".data(using: .utf8)! - let sendOTPMessageRequestParametersbody = ClientRuntime.HttpBody.data(sendOTPMessageRequestParametersdata) - input.builder.withBody(sendOTPMessageRequestParametersbody) + let sendOTPMessageRequestParametersData = "{}".data(using: .utf8)! + let sendOTPMessageRequestParametersBody = ClientRuntime.HttpBody.data(sendOTPMessageRequestParametersData) + input.builder.withBody(sendOTPMessageRequestParametersBody) } } } catch let err { @@ -28695,13 +28328,9 @@ public enum SendOTPMessageOutputError: Swift.Error, Swift.Equatable { extension SendOTPMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageResponse = try responseDecoder.decode(responseBody: data) - self.messageResponse = output - } else { - self.messageResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageResponse = try responseDecoder.decode(responseBody: data) + self.messageResponse = output } else { self.messageResponse = nil } @@ -29072,15 +28701,15 @@ public struct SendUsersMessagesInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let sendUsersMessageRequest = input.operationInput.sendUsersMessageRequest { - let sendUsersMessageRequestdata = try encoder.encode(sendUsersMessageRequest) - let sendUsersMessageRequestbody = ClientRuntime.HttpBody.data(sendUsersMessageRequestdata) - input.builder.withBody(sendUsersMessageRequestbody) + let sendUsersMessageRequestData = try encoder.encode(sendUsersMessageRequest) + let sendUsersMessageRequestBody = ClientRuntime.HttpBody.data(sendUsersMessageRequestData) + input.builder.withBody(sendUsersMessageRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let sendUsersMessageRequestdata = "{}".data(using: .utf8)! - let sendUsersMessageRequestbody = ClientRuntime.HttpBody.data(sendUsersMessageRequestdata) - input.builder.withBody(sendUsersMessageRequestbody) + let sendUsersMessageRequestData = "{}".data(using: .utf8)! + let sendUsersMessageRequestBody = ClientRuntime.HttpBody.data(sendUsersMessageRequestData) + input.builder.withBody(sendUsersMessageRequestBody) } } } catch let err { @@ -29186,13 +28815,9 @@ public enum SendUsersMessagesOutputError: Swift.Error, Swift.Equatable { extension SendUsersMessagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SendUsersMessageResponse = try responseDecoder.decode(responseBody: data) - self.sendUsersMessageResponse = output - } else { - self.sendUsersMessageResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SendUsersMessageResponse = try responseDecoder.decode(responseBody: data) + self.sendUsersMessageResponse = output } else { self.sendUsersMessageResponse = nil } @@ -29658,15 +29283,15 @@ public struct TagResourceInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let tagsModel = input.operationInput.tagsModel { - let tagsModeldata = try encoder.encode(tagsModel) - let tagsModelbody = ClientRuntime.HttpBody.data(tagsModeldata) - input.builder.withBody(tagsModelbody) + let tagsModelData = try encoder.encode(tagsModel) + let tagsModelBody = ClientRuntime.HttpBody.data(tagsModelData) + input.builder.withBody(tagsModelBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let tagsModeldata = "{}".data(using: .utf8)! - let tagsModelbody = ClientRuntime.HttpBody.data(tagsModeldata) - input.builder.withBody(tagsModelbody) + let tagsModelData = "{}".data(using: .utf8)! + let tagsModelBody = ClientRuntime.HttpBody.data(tagsModelData) + input.builder.withBody(tagsModelBody) } } } catch let err { @@ -30423,9 +30048,8 @@ extension PinpointClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestID = output.requestID @@ -30441,7 +30065,7 @@ extension TooManyRequestsException { } /// Provides information about an API request or response. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30735,15 +30359,15 @@ public struct UpdateAdmChannelInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let admChannelRequest = input.operationInput.admChannelRequest { - let admChannelRequestdata = try encoder.encode(admChannelRequest) - let admChannelRequestbody = ClientRuntime.HttpBody.data(admChannelRequestdata) - input.builder.withBody(admChannelRequestbody) + let admChannelRequestData = try encoder.encode(admChannelRequest) + let admChannelRequestBody = ClientRuntime.HttpBody.data(admChannelRequestData) + input.builder.withBody(admChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let admChannelRequestdata = "{}".data(using: .utf8)! - let admChannelRequestbody = ClientRuntime.HttpBody.data(admChannelRequestdata) - input.builder.withBody(admChannelRequestbody) + let admChannelRequestData = "{}".data(using: .utf8)! + let admChannelRequestBody = ClientRuntime.HttpBody.data(admChannelRequestData) + input.builder.withBody(admChannelRequestBody) } } } catch let err { @@ -30849,13 +30473,9 @@ public enum UpdateAdmChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateAdmChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ADMChannelResponse = try responseDecoder.decode(responseBody: data) - self.admChannelResponse = output - } else { - self.admChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ADMChannelResponse = try responseDecoder.decode(responseBody: data) + self.admChannelResponse = output } else { self.admChannelResponse = nil } @@ -30907,15 +30527,15 @@ public struct UpdateApnsChannelInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let apnsChannelRequest = input.operationInput.apnsChannelRequest { - let apnsChannelRequestdata = try encoder.encode(apnsChannelRequest) - let apnsChannelRequestbody = ClientRuntime.HttpBody.data(apnsChannelRequestdata) - input.builder.withBody(apnsChannelRequestbody) + let apnsChannelRequestData = try encoder.encode(apnsChannelRequest) + let apnsChannelRequestBody = ClientRuntime.HttpBody.data(apnsChannelRequestData) + input.builder.withBody(apnsChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let apnsChannelRequestdata = "{}".data(using: .utf8)! - let apnsChannelRequestbody = ClientRuntime.HttpBody.data(apnsChannelRequestdata) - input.builder.withBody(apnsChannelRequestbody) + let apnsChannelRequestData = "{}".data(using: .utf8)! + let apnsChannelRequestBody = ClientRuntime.HttpBody.data(apnsChannelRequestData) + input.builder.withBody(apnsChannelRequestBody) } } } catch let err { @@ -31021,13 +30641,9 @@ public enum UpdateApnsChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateApnsChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsChannelResponse = output - } else { - self.apnsChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsChannelResponse = output } else { self.apnsChannelResponse = nil } @@ -31079,15 +30695,15 @@ public struct UpdateApnsSandboxChannelInputBodyMiddleware: ClientRuntime.Middlew do { let encoder = context.getEncoder() if let apnsSandboxChannelRequest = input.operationInput.apnsSandboxChannelRequest { - let apnsSandboxChannelRequestdata = try encoder.encode(apnsSandboxChannelRequest) - let apnsSandboxChannelRequestbody = ClientRuntime.HttpBody.data(apnsSandboxChannelRequestdata) - input.builder.withBody(apnsSandboxChannelRequestbody) + let apnsSandboxChannelRequestData = try encoder.encode(apnsSandboxChannelRequest) + let apnsSandboxChannelRequestBody = ClientRuntime.HttpBody.data(apnsSandboxChannelRequestData) + input.builder.withBody(apnsSandboxChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let apnsSandboxChannelRequestdata = "{}".data(using: .utf8)! - let apnsSandboxChannelRequestbody = ClientRuntime.HttpBody.data(apnsSandboxChannelRequestdata) - input.builder.withBody(apnsSandboxChannelRequestbody) + let apnsSandboxChannelRequestData = "{}".data(using: .utf8)! + let apnsSandboxChannelRequestBody = ClientRuntime.HttpBody.data(apnsSandboxChannelRequestData) + input.builder.withBody(apnsSandboxChannelRequestBody) } } } catch let err { @@ -31193,13 +30809,9 @@ public enum UpdateApnsSandboxChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateApnsSandboxChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSSandboxChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsSandboxChannelResponse = output - } else { - self.apnsSandboxChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSSandboxChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsSandboxChannelResponse = output } else { self.apnsSandboxChannelResponse = nil } @@ -31251,15 +30863,15 @@ public struct UpdateApnsVoipChannelInputBodyMiddleware: ClientRuntime.Middleware do { let encoder = context.getEncoder() if let apnsVoipChannelRequest = input.operationInput.apnsVoipChannelRequest { - let apnsVoipChannelRequestdata = try encoder.encode(apnsVoipChannelRequest) - let apnsVoipChannelRequestbody = ClientRuntime.HttpBody.data(apnsVoipChannelRequestdata) - input.builder.withBody(apnsVoipChannelRequestbody) + let apnsVoipChannelRequestData = try encoder.encode(apnsVoipChannelRequest) + let apnsVoipChannelRequestBody = ClientRuntime.HttpBody.data(apnsVoipChannelRequestData) + input.builder.withBody(apnsVoipChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let apnsVoipChannelRequestdata = "{}".data(using: .utf8)! - let apnsVoipChannelRequestbody = ClientRuntime.HttpBody.data(apnsVoipChannelRequestdata) - input.builder.withBody(apnsVoipChannelRequestbody) + let apnsVoipChannelRequestData = "{}".data(using: .utf8)! + let apnsVoipChannelRequestBody = ClientRuntime.HttpBody.data(apnsVoipChannelRequestData) + input.builder.withBody(apnsVoipChannelRequestBody) } } } catch let err { @@ -31365,13 +30977,9 @@ public enum UpdateApnsVoipChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateApnsVoipChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSVoipChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsVoipChannelResponse = output - } else { - self.apnsVoipChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSVoipChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsVoipChannelResponse = output } else { self.apnsVoipChannelResponse = nil } @@ -31423,15 +31031,15 @@ public struct UpdateApnsVoipSandboxChannelInputBodyMiddleware: ClientRuntime.Mid do { let encoder = context.getEncoder() if let apnsVoipSandboxChannelRequest = input.operationInput.apnsVoipSandboxChannelRequest { - let apnsVoipSandboxChannelRequestdata = try encoder.encode(apnsVoipSandboxChannelRequest) - let apnsVoipSandboxChannelRequestbody = ClientRuntime.HttpBody.data(apnsVoipSandboxChannelRequestdata) - input.builder.withBody(apnsVoipSandboxChannelRequestbody) + let apnsVoipSandboxChannelRequestData = try encoder.encode(apnsVoipSandboxChannelRequest) + let apnsVoipSandboxChannelRequestBody = ClientRuntime.HttpBody.data(apnsVoipSandboxChannelRequestData) + input.builder.withBody(apnsVoipSandboxChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let apnsVoipSandboxChannelRequestdata = "{}".data(using: .utf8)! - let apnsVoipSandboxChannelRequestbody = ClientRuntime.HttpBody.data(apnsVoipSandboxChannelRequestdata) - input.builder.withBody(apnsVoipSandboxChannelRequestbody) + let apnsVoipSandboxChannelRequestData = "{}".data(using: .utf8)! + let apnsVoipSandboxChannelRequestBody = ClientRuntime.HttpBody.data(apnsVoipSandboxChannelRequestData) + input.builder.withBody(apnsVoipSandboxChannelRequestBody) } } } catch let err { @@ -31537,13 +31145,9 @@ public enum UpdateApnsVoipSandboxChannelOutputError: Swift.Error, Swift.Equatabl extension UpdateApnsVoipSandboxChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.APNSVoipSandboxChannelResponse = try responseDecoder.decode(responseBody: data) - self.apnsVoipSandboxChannelResponse = output - } else { - self.apnsVoipSandboxChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.APNSVoipSandboxChannelResponse = try responseDecoder.decode(responseBody: data) + self.apnsVoipSandboxChannelResponse = output } else { self.apnsVoipSandboxChannelResponse = nil } @@ -31595,15 +31199,15 @@ public struct UpdateApplicationSettingsInputBodyMiddleware: ClientRuntime.Middle do { let encoder = context.getEncoder() if let writeApplicationSettingsRequest = input.operationInput.writeApplicationSettingsRequest { - let writeApplicationSettingsRequestdata = try encoder.encode(writeApplicationSettingsRequest) - let writeApplicationSettingsRequestbody = ClientRuntime.HttpBody.data(writeApplicationSettingsRequestdata) - input.builder.withBody(writeApplicationSettingsRequestbody) + let writeApplicationSettingsRequestData = try encoder.encode(writeApplicationSettingsRequest) + let writeApplicationSettingsRequestBody = ClientRuntime.HttpBody.data(writeApplicationSettingsRequestData) + input.builder.withBody(writeApplicationSettingsRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let writeApplicationSettingsRequestdata = "{}".data(using: .utf8)! - let writeApplicationSettingsRequestbody = ClientRuntime.HttpBody.data(writeApplicationSettingsRequestdata) - input.builder.withBody(writeApplicationSettingsRequestbody) + let writeApplicationSettingsRequestData = "{}".data(using: .utf8)! + let writeApplicationSettingsRequestBody = ClientRuntime.HttpBody.data(writeApplicationSettingsRequestData) + input.builder.withBody(writeApplicationSettingsRequestBody) } } } catch let err { @@ -31709,13 +31313,9 @@ public enum UpdateApplicationSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.ApplicationSettingsResource = try responseDecoder.decode(responseBody: data) - self.applicationSettingsResource = output - } else { - self.applicationSettingsResource = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.ApplicationSettingsResource = try responseDecoder.decode(responseBody: data) + self.applicationSettingsResource = output } else { self.applicationSettingsResource = nil } @@ -31814,15 +31414,15 @@ public struct UpdateBaiduChannelInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let baiduChannelRequest = input.operationInput.baiduChannelRequest { - let baiduChannelRequestdata = try encoder.encode(baiduChannelRequest) - let baiduChannelRequestbody = ClientRuntime.HttpBody.data(baiduChannelRequestdata) - input.builder.withBody(baiduChannelRequestbody) + let baiduChannelRequestData = try encoder.encode(baiduChannelRequest) + let baiduChannelRequestBody = ClientRuntime.HttpBody.data(baiduChannelRequestData) + input.builder.withBody(baiduChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let baiduChannelRequestdata = "{}".data(using: .utf8)! - let baiduChannelRequestbody = ClientRuntime.HttpBody.data(baiduChannelRequestdata) - input.builder.withBody(baiduChannelRequestbody) + let baiduChannelRequestData = "{}".data(using: .utf8)! + let baiduChannelRequestBody = ClientRuntime.HttpBody.data(baiduChannelRequestData) + input.builder.withBody(baiduChannelRequestBody) } } } catch let err { @@ -31928,13 +31528,9 @@ public enum UpdateBaiduChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateBaiduChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.BaiduChannelResponse = try responseDecoder.decode(responseBody: data) - self.baiduChannelResponse = output - } else { - self.baiduChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.BaiduChannelResponse = try responseDecoder.decode(responseBody: data) + self.baiduChannelResponse = output } else { self.baiduChannelResponse = nil } @@ -31986,15 +31582,15 @@ public struct UpdateCampaignInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let writeCampaignRequest = input.operationInput.writeCampaignRequest { - let writeCampaignRequestdata = try encoder.encode(writeCampaignRequest) - let writeCampaignRequestbody = ClientRuntime.HttpBody.data(writeCampaignRequestdata) - input.builder.withBody(writeCampaignRequestbody) + let writeCampaignRequestData = try encoder.encode(writeCampaignRequest) + let writeCampaignRequestBody = ClientRuntime.HttpBody.data(writeCampaignRequestData) + input.builder.withBody(writeCampaignRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let writeCampaignRequestdata = "{}".data(using: .utf8)! - let writeCampaignRequestbody = ClientRuntime.HttpBody.data(writeCampaignRequestdata) - input.builder.withBody(writeCampaignRequestbody) + let writeCampaignRequestData = "{}".data(using: .utf8)! + let writeCampaignRequestBody = ClientRuntime.HttpBody.data(writeCampaignRequestData) + input.builder.withBody(writeCampaignRequestBody) } } } catch let err { @@ -32108,13 +31704,9 @@ public enum UpdateCampaignOutputError: Swift.Error, Swift.Equatable { extension UpdateCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) - self.campaignResponse = output - } else { - self.campaignResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.CampaignResponse = try responseDecoder.decode(responseBody: data) + self.campaignResponse = output } else { self.campaignResponse = nil } @@ -32166,15 +31758,15 @@ public struct UpdateEmailChannelInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let emailChannelRequest = input.operationInput.emailChannelRequest { - let emailChannelRequestdata = try encoder.encode(emailChannelRequest) - let emailChannelRequestbody = ClientRuntime.HttpBody.data(emailChannelRequestdata) - input.builder.withBody(emailChannelRequestbody) + let emailChannelRequestData = try encoder.encode(emailChannelRequest) + let emailChannelRequestBody = ClientRuntime.HttpBody.data(emailChannelRequestData) + input.builder.withBody(emailChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let emailChannelRequestdata = "{}".data(using: .utf8)! - let emailChannelRequestbody = ClientRuntime.HttpBody.data(emailChannelRequestdata) - input.builder.withBody(emailChannelRequestbody) + let emailChannelRequestData = "{}".data(using: .utf8)! + let emailChannelRequestBody = ClientRuntime.HttpBody.data(emailChannelRequestData) + input.builder.withBody(emailChannelRequestBody) } } } catch let err { @@ -32280,13 +31872,9 @@ public enum UpdateEmailChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateEmailChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.EmailChannelResponse = try responseDecoder.decode(responseBody: data) - self.emailChannelResponse = output - } else { - self.emailChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.EmailChannelResponse = try responseDecoder.decode(responseBody: data) + self.emailChannelResponse = output } else { self.emailChannelResponse = nil } @@ -32338,15 +31926,15 @@ public struct UpdateEmailTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let emailTemplateRequest = input.operationInput.emailTemplateRequest { - let emailTemplateRequestdata = try encoder.encode(emailTemplateRequest) - let emailTemplateRequestbody = ClientRuntime.HttpBody.data(emailTemplateRequestdata) - input.builder.withBody(emailTemplateRequestbody) + let emailTemplateRequestData = try encoder.encode(emailTemplateRequest) + let emailTemplateRequestBody = ClientRuntime.HttpBody.data(emailTemplateRequestData) + input.builder.withBody(emailTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let emailTemplateRequestdata = "{}".data(using: .utf8)! - let emailTemplateRequestbody = ClientRuntime.HttpBody.data(emailTemplateRequestdata) - input.builder.withBody(emailTemplateRequestbody) + let emailTemplateRequestData = "{}".data(using: .utf8)! + let emailTemplateRequestBody = ClientRuntime.HttpBody.data(emailTemplateRequestData) + input.builder.withBody(emailTemplateRequestBody) } } } catch let err { @@ -32483,13 +32071,9 @@ public enum UpdateEmailTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateEmailTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -32541,15 +32125,15 @@ public struct UpdateEndpointInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let endpointRequest = input.operationInput.endpointRequest { - let endpointRequestdata = try encoder.encode(endpointRequest) - let endpointRequestbody = ClientRuntime.HttpBody.data(endpointRequestdata) - input.builder.withBody(endpointRequestbody) + let endpointRequestData = try encoder.encode(endpointRequest) + let endpointRequestBody = ClientRuntime.HttpBody.data(endpointRequestData) + input.builder.withBody(endpointRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let endpointRequestdata = "{}".data(using: .utf8)! - let endpointRequestbody = ClientRuntime.HttpBody.data(endpointRequestdata) - input.builder.withBody(endpointRequestbody) + let endpointRequestData = "{}".data(using: .utf8)! + let endpointRequestBody = ClientRuntime.HttpBody.data(endpointRequestData) + input.builder.withBody(endpointRequestBody) } } } catch let err { @@ -32663,13 +32247,9 @@ public enum UpdateEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -32721,15 +32301,15 @@ public struct UpdateEndpointsBatchInputBodyMiddleware: ClientRuntime.Middleware do { let encoder = context.getEncoder() if let endpointBatchRequest = input.operationInput.endpointBatchRequest { - let endpointBatchRequestdata = try encoder.encode(endpointBatchRequest) - let endpointBatchRequestbody = ClientRuntime.HttpBody.data(endpointBatchRequestdata) - input.builder.withBody(endpointBatchRequestbody) + let endpointBatchRequestData = try encoder.encode(endpointBatchRequest) + let endpointBatchRequestBody = ClientRuntime.HttpBody.data(endpointBatchRequestData) + input.builder.withBody(endpointBatchRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let endpointBatchRequestdata = "{}".data(using: .utf8)! - let endpointBatchRequestbody = ClientRuntime.HttpBody.data(endpointBatchRequestdata) - input.builder.withBody(endpointBatchRequestbody) + let endpointBatchRequestData = "{}".data(using: .utf8)! + let endpointBatchRequestBody = ClientRuntime.HttpBody.data(endpointBatchRequestData) + input.builder.withBody(endpointBatchRequestBody) } } } catch let err { @@ -32835,13 +32415,9 @@ public enum UpdateEndpointsBatchOutputError: Swift.Error, Swift.Equatable { extension UpdateEndpointsBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -32893,15 +32469,15 @@ public struct UpdateGcmChannelInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let gcmChannelRequest = input.operationInput.gcmChannelRequest { - let gcmChannelRequestdata = try encoder.encode(gcmChannelRequest) - let gcmChannelRequestbody = ClientRuntime.HttpBody.data(gcmChannelRequestdata) - input.builder.withBody(gcmChannelRequestbody) + let gcmChannelRequestData = try encoder.encode(gcmChannelRequest) + let gcmChannelRequestBody = ClientRuntime.HttpBody.data(gcmChannelRequestData) + input.builder.withBody(gcmChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let gcmChannelRequestdata = "{}".data(using: .utf8)! - let gcmChannelRequestbody = ClientRuntime.HttpBody.data(gcmChannelRequestdata) - input.builder.withBody(gcmChannelRequestbody) + let gcmChannelRequestData = "{}".data(using: .utf8)! + let gcmChannelRequestBody = ClientRuntime.HttpBody.data(gcmChannelRequestData) + input.builder.withBody(gcmChannelRequestBody) } } } catch let err { @@ -33007,13 +32583,9 @@ public enum UpdateGcmChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateGcmChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.GCMChannelResponse = try responseDecoder.decode(responseBody: data) - self.gcmChannelResponse = output - } else { - self.gcmChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.GCMChannelResponse = try responseDecoder.decode(responseBody: data) + self.gcmChannelResponse = output } else { self.gcmChannelResponse = nil } @@ -33065,15 +32637,15 @@ public struct UpdateInAppTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let inAppTemplateRequest = input.operationInput.inAppTemplateRequest { - let inAppTemplateRequestdata = try encoder.encode(inAppTemplateRequest) - let inAppTemplateRequestbody = ClientRuntime.HttpBody.data(inAppTemplateRequestdata) - input.builder.withBody(inAppTemplateRequestbody) + let inAppTemplateRequestData = try encoder.encode(inAppTemplateRequest) + let inAppTemplateRequestBody = ClientRuntime.HttpBody.data(inAppTemplateRequestData) + input.builder.withBody(inAppTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let inAppTemplateRequestdata = "{}".data(using: .utf8)! - let inAppTemplateRequestbody = ClientRuntime.HttpBody.data(inAppTemplateRequestdata) - input.builder.withBody(inAppTemplateRequestbody) + let inAppTemplateRequestData = "{}".data(using: .utf8)! + let inAppTemplateRequestBody = ClientRuntime.HttpBody.data(inAppTemplateRequestData) + input.builder.withBody(inAppTemplateRequestBody) } } } catch let err { @@ -33210,13 +32782,9 @@ public enum UpdateInAppTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateInAppTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -33268,15 +32836,15 @@ public struct UpdateJourneyInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let writeJourneyRequest = input.operationInput.writeJourneyRequest { - let writeJourneyRequestdata = try encoder.encode(writeJourneyRequest) - let writeJourneyRequestbody = ClientRuntime.HttpBody.data(writeJourneyRequestdata) - input.builder.withBody(writeJourneyRequestbody) + let writeJourneyRequestData = try encoder.encode(writeJourneyRequest) + let writeJourneyRequestBody = ClientRuntime.HttpBody.data(writeJourneyRequestData) + input.builder.withBody(writeJourneyRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let writeJourneyRequestdata = "{}".data(using: .utf8)! - let writeJourneyRequestbody = ClientRuntime.HttpBody.data(writeJourneyRequestdata) - input.builder.withBody(writeJourneyRequestbody) + let writeJourneyRequestData = "{}".data(using: .utf8)! + let writeJourneyRequestBody = ClientRuntime.HttpBody.data(writeJourneyRequestData) + input.builder.withBody(writeJourneyRequestBody) } } } catch let err { @@ -33392,13 +32960,9 @@ public enum UpdateJourneyOutputError: Swift.Error, Swift.Equatable { extension UpdateJourneyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) - self.journeyResponse = output - } else { - self.journeyResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) + self.journeyResponse = output } else { self.journeyResponse = nil } @@ -33450,15 +33014,15 @@ public struct UpdateJourneyStateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let journeyStateRequest = input.operationInput.journeyStateRequest { - let journeyStateRequestdata = try encoder.encode(journeyStateRequest) - let journeyStateRequestbody = ClientRuntime.HttpBody.data(journeyStateRequestdata) - input.builder.withBody(journeyStateRequestbody) + let journeyStateRequestData = try encoder.encode(journeyStateRequest) + let journeyStateRequestBody = ClientRuntime.HttpBody.data(journeyStateRequestData) + input.builder.withBody(journeyStateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let journeyStateRequestdata = "{}".data(using: .utf8)! - let journeyStateRequestbody = ClientRuntime.HttpBody.data(journeyStateRequestdata) - input.builder.withBody(journeyStateRequestbody) + let journeyStateRequestData = "{}".data(using: .utf8)! + let journeyStateRequestBody = ClientRuntime.HttpBody.data(journeyStateRequestData) + input.builder.withBody(journeyStateRequestBody) } } } catch let err { @@ -33572,13 +33136,9 @@ public enum UpdateJourneyStateOutputError: Swift.Error, Swift.Equatable { extension UpdateJourneyStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) - self.journeyResponse = output - } else { - self.journeyResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.JourneyResponse = try responseDecoder.decode(responseBody: data) + self.journeyResponse = output } else { self.journeyResponse = nil } @@ -33630,15 +33190,15 @@ public struct UpdatePushTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let pushNotificationTemplateRequest = input.operationInput.pushNotificationTemplateRequest { - let pushNotificationTemplateRequestdata = try encoder.encode(pushNotificationTemplateRequest) - let pushNotificationTemplateRequestbody = ClientRuntime.HttpBody.data(pushNotificationTemplateRequestdata) - input.builder.withBody(pushNotificationTemplateRequestbody) + let pushNotificationTemplateRequestData = try encoder.encode(pushNotificationTemplateRequest) + let pushNotificationTemplateRequestBody = ClientRuntime.HttpBody.data(pushNotificationTemplateRequestData) + input.builder.withBody(pushNotificationTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let pushNotificationTemplateRequestdata = "{}".data(using: .utf8)! - let pushNotificationTemplateRequestbody = ClientRuntime.HttpBody.data(pushNotificationTemplateRequestdata) - input.builder.withBody(pushNotificationTemplateRequestbody) + let pushNotificationTemplateRequestData = "{}".data(using: .utf8)! + let pushNotificationTemplateRequestBody = ClientRuntime.HttpBody.data(pushNotificationTemplateRequestData) + input.builder.withBody(pushNotificationTemplateRequestBody) } } } catch let err { @@ -33775,13 +33335,9 @@ public enum UpdatePushTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdatePushTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -33833,15 +33389,15 @@ public struct UpdateRecommenderConfigurationInputBodyMiddleware: ClientRuntime.M do { let encoder = context.getEncoder() if let updateRecommenderConfiguration = input.operationInput.updateRecommenderConfiguration { - let updateRecommenderConfigurationdata = try encoder.encode(updateRecommenderConfiguration) - let updateRecommenderConfigurationbody = ClientRuntime.HttpBody.data(updateRecommenderConfigurationdata) - input.builder.withBody(updateRecommenderConfigurationbody) + let updateRecommenderConfigurationData = try encoder.encode(updateRecommenderConfiguration) + let updateRecommenderConfigurationBody = ClientRuntime.HttpBody.data(updateRecommenderConfigurationData) + input.builder.withBody(updateRecommenderConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let updateRecommenderConfigurationdata = "{}".data(using: .utf8)! - let updateRecommenderConfigurationbody = ClientRuntime.HttpBody.data(updateRecommenderConfigurationdata) - input.builder.withBody(updateRecommenderConfigurationbody) + let updateRecommenderConfigurationData = "{}".data(using: .utf8)! + let updateRecommenderConfigurationBody = ClientRuntime.HttpBody.data(updateRecommenderConfigurationData) + input.builder.withBody(updateRecommenderConfigurationBody) } } } catch let err { @@ -33947,13 +33503,9 @@ public enum UpdateRecommenderConfigurationOutputError: Swift.Error, Swift.Equata extension UpdateRecommenderConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.RecommenderConfigurationResponse = try responseDecoder.decode(responseBody: data) - self.recommenderConfigurationResponse = output - } else { - self.recommenderConfigurationResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.RecommenderConfigurationResponse = try responseDecoder.decode(responseBody: data) + self.recommenderConfigurationResponse = output } else { self.recommenderConfigurationResponse = nil } @@ -34145,15 +33697,15 @@ public struct UpdateSegmentInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let writeSegmentRequest = input.operationInput.writeSegmentRequest { - let writeSegmentRequestdata = try encoder.encode(writeSegmentRequest) - let writeSegmentRequestbody = ClientRuntime.HttpBody.data(writeSegmentRequestdata) - input.builder.withBody(writeSegmentRequestbody) + let writeSegmentRequestData = try encoder.encode(writeSegmentRequest) + let writeSegmentRequestBody = ClientRuntime.HttpBody.data(writeSegmentRequestData) + input.builder.withBody(writeSegmentRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let writeSegmentRequestdata = "{}".data(using: .utf8)! - let writeSegmentRequestbody = ClientRuntime.HttpBody.data(writeSegmentRequestdata) - input.builder.withBody(writeSegmentRequestbody) + let writeSegmentRequestData = "{}".data(using: .utf8)! + let writeSegmentRequestBody = ClientRuntime.HttpBody.data(writeSegmentRequestData) + input.builder.withBody(writeSegmentRequestBody) } } } catch let err { @@ -34267,13 +33819,9 @@ public enum UpdateSegmentOutputError: Swift.Error, Swift.Equatable { extension UpdateSegmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) - self.segmentResponse = output - } else { - self.segmentResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SegmentResponse = try responseDecoder.decode(responseBody: data) + self.segmentResponse = output } else { self.segmentResponse = nil } @@ -34325,15 +33873,15 @@ public struct UpdateSmsChannelInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let smsChannelRequest = input.operationInput.smsChannelRequest { - let smsChannelRequestdata = try encoder.encode(smsChannelRequest) - let smsChannelRequestbody = ClientRuntime.HttpBody.data(smsChannelRequestdata) - input.builder.withBody(smsChannelRequestbody) + let smsChannelRequestData = try encoder.encode(smsChannelRequest) + let smsChannelRequestBody = ClientRuntime.HttpBody.data(smsChannelRequestData) + input.builder.withBody(smsChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let smsChannelRequestdata = "{}".data(using: .utf8)! - let smsChannelRequestbody = ClientRuntime.HttpBody.data(smsChannelRequestdata) - input.builder.withBody(smsChannelRequestbody) + let smsChannelRequestData = "{}".data(using: .utf8)! + let smsChannelRequestBody = ClientRuntime.HttpBody.data(smsChannelRequestData) + input.builder.withBody(smsChannelRequestBody) } } } catch let err { @@ -34439,13 +33987,9 @@ public enum UpdateSmsChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateSmsChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.SMSChannelResponse = try responseDecoder.decode(responseBody: data) - self.smsChannelResponse = output - } else { - self.smsChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.SMSChannelResponse = try responseDecoder.decode(responseBody: data) + self.smsChannelResponse = output } else { self.smsChannelResponse = nil } @@ -34497,15 +34041,15 @@ public struct UpdateSmsTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let smsTemplateRequest = input.operationInput.smsTemplateRequest { - let smsTemplateRequestdata = try encoder.encode(smsTemplateRequest) - let smsTemplateRequestbody = ClientRuntime.HttpBody.data(smsTemplateRequestdata) - input.builder.withBody(smsTemplateRequestbody) + let smsTemplateRequestData = try encoder.encode(smsTemplateRequest) + let smsTemplateRequestBody = ClientRuntime.HttpBody.data(smsTemplateRequestData) + input.builder.withBody(smsTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let smsTemplateRequestdata = "{}".data(using: .utf8)! - let smsTemplateRequestbody = ClientRuntime.HttpBody.data(smsTemplateRequestdata) - input.builder.withBody(smsTemplateRequestbody) + let smsTemplateRequestData = "{}".data(using: .utf8)! + let smsTemplateRequestBody = ClientRuntime.HttpBody.data(smsTemplateRequestData) + input.builder.withBody(smsTemplateRequestBody) } } } catch let err { @@ -34642,13 +34186,9 @@ public enum UpdateSmsTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateSmsTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -34700,15 +34240,15 @@ public struct UpdateTemplateActiveVersionInputBodyMiddleware: ClientRuntime.Midd do { let encoder = context.getEncoder() if let templateActiveVersionRequest = input.operationInput.templateActiveVersionRequest { - let templateActiveVersionRequestdata = try encoder.encode(templateActiveVersionRequest) - let templateActiveVersionRequestbody = ClientRuntime.HttpBody.data(templateActiveVersionRequestdata) - input.builder.withBody(templateActiveVersionRequestbody) + let templateActiveVersionRequestData = try encoder.encode(templateActiveVersionRequest) + let templateActiveVersionRequestBody = ClientRuntime.HttpBody.data(templateActiveVersionRequestData) + input.builder.withBody(templateActiveVersionRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let templateActiveVersionRequestdata = "{}".data(using: .utf8)! - let templateActiveVersionRequestbody = ClientRuntime.HttpBody.data(templateActiveVersionRequestdata) - input.builder.withBody(templateActiveVersionRequestbody) + let templateActiveVersionRequestData = "{}".data(using: .utf8)! + let templateActiveVersionRequestBody = ClientRuntime.HttpBody.data(templateActiveVersionRequestData) + input.builder.withBody(templateActiveVersionRequestBody) } } } catch let err { @@ -34822,13 +34362,9 @@ public enum UpdateTemplateActiveVersionOutputError: Swift.Error, Swift.Equatable extension UpdateTemplateActiveVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -34880,15 +34416,15 @@ public struct UpdateVoiceChannelInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let voiceChannelRequest = input.operationInput.voiceChannelRequest { - let voiceChannelRequestdata = try encoder.encode(voiceChannelRequest) - let voiceChannelRequestbody = ClientRuntime.HttpBody.data(voiceChannelRequestdata) - input.builder.withBody(voiceChannelRequestbody) + let voiceChannelRequestData = try encoder.encode(voiceChannelRequest) + let voiceChannelRequestBody = ClientRuntime.HttpBody.data(voiceChannelRequestData) + input.builder.withBody(voiceChannelRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let voiceChannelRequestdata = "{}".data(using: .utf8)! - let voiceChannelRequestbody = ClientRuntime.HttpBody.data(voiceChannelRequestdata) - input.builder.withBody(voiceChannelRequestbody) + let voiceChannelRequestData = "{}".data(using: .utf8)! + let voiceChannelRequestBody = ClientRuntime.HttpBody.data(voiceChannelRequestData) + input.builder.withBody(voiceChannelRequestBody) } } } catch let err { @@ -34994,13 +34530,9 @@ public enum UpdateVoiceChannelOutputError: Swift.Error, Swift.Equatable { extension UpdateVoiceChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.VoiceChannelResponse = try responseDecoder.decode(responseBody: data) - self.voiceChannelResponse = output - } else { - self.voiceChannelResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.VoiceChannelResponse = try responseDecoder.decode(responseBody: data) + self.voiceChannelResponse = output } else { self.voiceChannelResponse = nil } @@ -35052,15 +34584,15 @@ public struct UpdateVoiceTemplateInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let voiceTemplateRequest = input.operationInput.voiceTemplateRequest { - let voiceTemplateRequestdata = try encoder.encode(voiceTemplateRequest) - let voiceTemplateRequestbody = ClientRuntime.HttpBody.data(voiceTemplateRequestdata) - input.builder.withBody(voiceTemplateRequestbody) + let voiceTemplateRequestData = try encoder.encode(voiceTemplateRequest) + let voiceTemplateRequestBody = ClientRuntime.HttpBody.data(voiceTemplateRequestData) + input.builder.withBody(voiceTemplateRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let voiceTemplateRequestdata = "{}".data(using: .utf8)! - let voiceTemplateRequestbody = ClientRuntime.HttpBody.data(voiceTemplateRequestdata) - input.builder.withBody(voiceTemplateRequestbody) + let voiceTemplateRequestData = "{}".data(using: .utf8)! + let voiceTemplateRequestBody = ClientRuntime.HttpBody.data(voiceTemplateRequestData) + input.builder.withBody(voiceTemplateRequestBody) } } } catch let err { @@ -35197,13 +34729,9 @@ public enum UpdateVoiceTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateVoiceTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) - self.messageBody = output - } else { - self.messageBody = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.MessageBody = try responseDecoder.decode(responseBody: data) + self.messageBody = output } else { self.messageBody = nil } @@ -35290,15 +34818,15 @@ public struct VerifyOTPMessageInputBodyMiddleware: ClientRuntime.Middleware { do { let encoder = context.getEncoder() if let verifyOTPMessageRequestParameters = input.operationInput.verifyOTPMessageRequestParameters { - let verifyOTPMessageRequestParametersdata = try encoder.encode(verifyOTPMessageRequestParameters) - let verifyOTPMessageRequestParametersbody = ClientRuntime.HttpBody.data(verifyOTPMessageRequestParametersdata) - input.builder.withBody(verifyOTPMessageRequestParametersbody) + let verifyOTPMessageRequestParametersData = try encoder.encode(verifyOTPMessageRequestParameters) + let verifyOTPMessageRequestParametersBody = ClientRuntime.HttpBody.data(verifyOTPMessageRequestParametersData) + input.builder.withBody(verifyOTPMessageRequestParametersBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let verifyOTPMessageRequestParametersdata = "{}".data(using: .utf8)! - let verifyOTPMessageRequestParametersbody = ClientRuntime.HttpBody.data(verifyOTPMessageRequestParametersdata) - input.builder.withBody(verifyOTPMessageRequestParametersbody) + let verifyOTPMessageRequestParametersData = "{}".data(using: .utf8)! + let verifyOTPMessageRequestParametersBody = ClientRuntime.HttpBody.data(verifyOTPMessageRequestParametersData) + input.builder.withBody(verifyOTPMessageRequestParametersBody) } } } catch let err { @@ -35404,13 +34932,9 @@ public enum VerifyOTPMessageOutputError: Swift.Error, Swift.Equatable { extension VerifyOTPMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: PinpointClientTypes.VerificationResponse = try responseDecoder.decode(responseBody: data) - self.verificationResponse = output - } else { - self.verificationResponse = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: PinpointClientTypes.VerificationResponse = try responseDecoder.decode(responseBody: data) + self.verificationResponse = output } else { self.verificationResponse = nil } diff --git a/Sources/Services/AWSPinpointEmail/PinpointEmailClient.swift b/Sources/Services/AWSPinpointEmail/PinpointEmailClient.swift index 5548bc5deda..9a4d30cde5d 100644 --- a/Sources/Services/AWSPinpointEmail/PinpointEmailClient.swift +++ b/Sources/Services/AWSPinpointEmail/PinpointEmailClient.swift @@ -208,6 +208,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDedicatedIpPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeliverabilityTestReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEmailIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +401,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +421,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -427,7 +434,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -447,6 +454,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDedicatedIpPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -459,7 +467,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -479,6 +487,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEmailIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -491,7 +500,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -511,6 +520,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +533,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -543,6 +553,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlacklistReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +567,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +587,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +600,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +620,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfigurationSetEventDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +633,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +653,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDedicatedIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -652,7 +666,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -672,6 +686,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDedicatedIps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -685,7 +700,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -705,6 +720,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeliverabilityDashboardOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -717,7 +733,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -737,6 +753,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeliverabilityTestReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -749,7 +766,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -769,6 +786,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainDeliverabilityCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -781,7 +799,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -801,6 +819,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainStatisticsReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +833,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +853,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEmailIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -846,7 +866,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -866,6 +886,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurationSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +900,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +920,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDedicatedIpPools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +934,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +954,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeliverabilityTestReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -945,7 +968,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -965,6 +988,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainDeliverabilityCampaigns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -978,7 +1002,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1022,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEmailIdentities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1011,7 +1036,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1031,6 +1056,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1044,7 +1070,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1064,6 +1090,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountDedicatedIpWarmupAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1079,7 +1106,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1099,6 +1126,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountSendingAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1114,7 +1142,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1134,6 +1162,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetDeliveryOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1149,7 +1178,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1169,6 +1198,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetReputationOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1184,7 +1214,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1204,6 +1234,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetSendingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1219,7 +1250,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1239,6 +1270,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetTrackingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1254,7 +1286,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1274,6 +1306,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDedicatedIpInPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1289,7 +1322,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1309,6 +1342,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDedicatedIpWarmupAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1324,7 +1358,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1344,6 +1378,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDeliverabilityDashboardOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1359,7 +1394,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1379,6 +1414,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailIdentityDkimAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1394,7 +1430,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1414,6 +1450,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailIdentityFeedbackAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1429,7 +1466,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1449,6 +1486,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailIdentityMailFromAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1464,7 +1502,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1488,6 +1526,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1503,7 +1542,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1523,6 +1562,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1538,7 +1578,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1558,6 +1598,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1571,7 +1612,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1591,6 +1632,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1606,7 +1648,7 @@ extension PinpointEmailClient: PinpointEmailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPinpointEmail/models/Models.swift b/Sources/Services/AWSPinpointEmail/models/Models.swift index 202aa9f589a..9309811eb8b 100644 --- a/Sources/Services/AWSPinpointEmail/models/Models.swift +++ b/Sources/Services/AWSPinpointEmail/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccountSuspendedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountSuspendedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccountSuspendedException { } /// The message can't be sent because the account's ability to send email has been permanently restricted. -public struct AccountSuspendedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountSuspendedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AccountSuspendedExceptionBody: Swift.Decodable { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension AlreadyExistsException { } /// The resource specified in your request already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -108,9 +106,8 @@ extension AlreadyExistsExceptionBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -124,7 +121,7 @@ extension BadRequestException { } /// The input you provided is invalid. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -407,9 +404,8 @@ extension PinpointEmailClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -423,7 +419,7 @@ extension ConcurrentModificationException { } /// The resource is being modified by another operation or thread. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1030,9 +1026,8 @@ public enum CreateDeliverabilityTestReportOutputError: Swift.Error, Swift.Equata extension CreateDeliverabilityTestReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeliverabilityTestReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliverabilityTestStatus = output.deliverabilityTestStatus self.reportId = output.reportId @@ -1185,9 +1180,8 @@ public enum CreateEmailIdentityOutputError: Swift.Error, Swift.Equatable { extension CreateEmailIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEmailIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dkimAttributes = output.dkimAttributes self.identityType = output.identityType @@ -2821,9 +2815,8 @@ public enum GetAccountOutputError: Swift.Error, Swift.Equatable { extension GetAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIpAutoWarmupEnabled = output.dedicatedIpAutoWarmupEnabled self.enforcementStatus = output.enforcementStatus @@ -2981,9 +2974,8 @@ public enum GetBlacklistReportsOutputError: Swift.Error, Swift.Equatable { extension GetBlacklistReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlacklistReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blacklistReport = output.blacklistReport } else { @@ -3098,9 +3090,8 @@ public enum GetConfigurationSetEventDestinationsOutputError: Swift.Error, Swift. extension GetConfigurationSetEventDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigurationSetEventDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventDestinations = output.eventDestinations } else { @@ -3207,9 +3198,8 @@ public enum GetConfigurationSetOutputError: Swift.Error, Swift.Equatable { extension GetConfigurationSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigurationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.configurationSetName self.deliveryOptions = output.deliveryOptions @@ -3366,9 +3356,8 @@ public enum GetDedicatedIpOutputError: Swift.Error, Swift.Equatable { extension GetDedicatedIpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDedicatedIpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIp = output.dedicatedIp } else { @@ -3491,9 +3480,8 @@ public enum GetDedicatedIpsOutputError: Swift.Error, Swift.Equatable { extension GetDedicatedIpsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDedicatedIpsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIps = output.dedicatedIps self.nextToken = output.nextToken @@ -3599,9 +3587,8 @@ public enum GetDeliverabilityDashboardOptionsOutputError: Swift.Error, Swift.Equ extension GetDeliverabilityDashboardOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeliverabilityDashboardOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountStatus = output.accountStatus self.activeSubscribedDomains = output.activeSubscribedDomains @@ -3758,9 +3745,8 @@ public enum GetDeliverabilityTestReportOutputError: Swift.Error, Swift.Equatable extension GetDeliverabilityTestReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeliverabilityTestReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliverabilityTestReport = output.deliverabilityTestReport self.ispPlacements = output.ispPlacements @@ -3919,9 +3905,8 @@ public enum GetDomainDeliverabilityCampaignOutputError: Swift.Error, Swift.Equat extension GetDomainDeliverabilityCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainDeliverabilityCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainDeliverabilityCampaign = output.domainDeliverabilityCampaign } else { @@ -4051,9 +4036,8 @@ public enum GetDomainStatisticsReportOutputError: Swift.Error, Swift.Equatable { extension GetDomainStatisticsReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainStatisticsReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dailyVolumes = output.dailyVolumes self.overallVolume = output.overallVolume @@ -4172,9 +4156,8 @@ public enum GetEmailIdentityOutputError: Swift.Error, Swift.Equatable { extension GetEmailIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEmailIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dkimAttributes = output.dkimAttributes self.feedbackForwardingStatus = output.feedbackForwardingStatus @@ -4523,9 +4506,8 @@ extension PinpointEmailClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4539,7 +4521,7 @@ extension LimitExceededException { } /// There are too many instances of the specified resource type. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4648,9 +4630,8 @@ public enum ListConfigurationSetsOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSets = output.configurationSets self.nextToken = output.nextToken @@ -4782,9 +4763,8 @@ public enum ListDedicatedIpPoolsOutputError: Swift.Error, Swift.Equatable { extension ListDedicatedIpPoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDedicatedIpPoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIpPools = output.dedicatedIpPools self.nextToken = output.nextToken @@ -4918,9 +4898,8 @@ public enum ListDeliverabilityTestReportsOutputError: Swift.Error, Swift.Equatab extension ListDeliverabilityTestReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeliverabilityTestReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliverabilityTestReports = output.deliverabilityTestReports self.nextToken = output.nextToken @@ -5085,9 +5064,8 @@ public enum ListDomainDeliverabilityCampaignsOutputError: Swift.Error, Swift.Equ extension ListDomainDeliverabilityCampaignsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainDeliverabilityCampaignsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainDeliverabilityCampaigns = output.domainDeliverabilityCampaigns self.nextToken = output.nextToken @@ -5220,9 +5198,8 @@ public enum ListEmailIdentitiesOutputError: Swift.Error, Swift.Equatable { extension ListEmailIdentitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEmailIdentitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.emailIdentities = output.emailIdentities self.nextToken = output.nextToken @@ -5350,9 +5327,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5467,9 +5443,8 @@ extension PinpointEmailClientTypes { extension MailFromDomainNotVerifiedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MailFromDomainNotVerifiedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5483,7 +5458,7 @@ extension MailFromDomainNotVerifiedException { } /// The message can't be sent because the sending domain isn't verified. -public struct MailFromDomainNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MailFromDomainNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5613,9 +5588,8 @@ extension PinpointEmailClientTypes { extension MessageRejected { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MessageRejectedBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5629,7 +5603,7 @@ extension MessageRejected { } /// The message can't be sent because it contains invalid content. -public struct MessageRejected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MessageRejected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5720,9 +5694,8 @@ extension PinpointEmailClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5736,7 +5709,7 @@ extension NotFoundException { } /// The resource you attempted to access doesn't exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7375,9 +7348,8 @@ public enum SendEmailOutputError: Swift.Error, Swift.Equatable { extension SendEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -7507,9 +7479,8 @@ extension PinpointEmailClientTypes { extension SendingPausedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendingPausedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7523,7 +7494,7 @@ extension SendingPausedException { } /// The message can't be sent because the account's ability to send email is currently paused. -public struct SendingPausedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SendingPausedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7838,9 +7809,8 @@ extension PinpointEmailClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7854,7 +7824,7 @@ extension TooManyRequestsException { } /// Too many requests have been made to the operation. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPinpointSMSVoice/PinpointSMSVoiceClient.swift b/Sources/Services/AWSPinpointSMSVoice/PinpointSMSVoiceClient.swift index f86ce77c84d..c4fd4f90f75 100644 --- a/Sources/Services/AWSPinpointSMSVoice/PinpointSMSVoiceClient.swift +++ b/Sources/Services/AWSPinpointSMSVoice/PinpointSMSVoiceClient.swift @@ -208,6 +208,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -322,7 +326,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -342,6 +346,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfigurationSetEventDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -354,7 +359,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -374,6 +379,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurationSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -387,7 +393,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +413,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendVoiceMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -422,7 +429,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +449,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -457,7 +465,7 @@ extension PinpointSMSVoiceClient: PinpointSMSVoiceClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPinpointSMSVoice/models/Models.swift b/Sources/Services/AWSPinpointSMSVoice/models/Models.swift index b0df45abc97..a9e079b9917 100644 --- a/Sources/Services/AWSPinpointSMSVoice/models/Models.swift +++ b/Sources/Services/AWSPinpointSMSVoice/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AlreadyExistsException { } /// The resource specified in your request already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AlreadyExistsExceptionBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension BadRequestException { } /// The input you provided is invalid. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -827,9 +825,8 @@ public enum GetConfigurationSetEventDestinationsOutputError: Swift.Error, Swift. extension GetConfigurationSetEventDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigurationSetEventDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventDestinations = output.eventDestinations } else { @@ -878,9 +875,8 @@ extension GetConfigurationSetEventDestinationsOutputResponseBody: Swift.Decodabl extension InternalServiceErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -894,7 +890,7 @@ extension InternalServiceErrorException { } /// The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -975,9 +971,8 @@ extension PinpointSMSVoiceClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -991,7 +986,7 @@ extension LimitExceededException { } /// There are too many instances of the specified resource type. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1101,9 +1096,8 @@ public enum ListConfigurationSetsOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSets = output.configurationSets self.nextToken = output.nextToken @@ -1162,9 +1156,8 @@ extension ListConfigurationSetsOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1178,7 +1171,7 @@ extension NotFoundException { } /// The resource you attempted to access doesn't exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1446,9 +1439,8 @@ public enum SendVoiceMessageOutputError: Swift.Error, Swift.Equatable { extension SendVoiceMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendVoiceMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -1523,9 +1515,8 @@ extension PinpointSMSVoiceClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1539,7 +1530,7 @@ extension TooManyRequestsException { } /// You've issued too many requests to the resource. Wait a few minutes, and then try again. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPinpointSMSVoiceV2/PinpointSMSVoiceV2Client.swift b/Sources/Services/AWSPinpointSMSVoiceV2/PinpointSMSVoiceV2Client.swift index e539fd79eb6..695a8663591 100644 --- a/Sources/Services/AWSPinpointSMSVoiceV2/PinpointSMSVoiceV2Client.swift +++ b/Sources/Services/AWSPinpointSMSVoiceV2/PinpointSMSVoiceV2Client.swift @@ -208,6 +208,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateOriginationIdentity") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -276,7 +278,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -296,6 +298,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventDestination") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -320,7 +323,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +343,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOptOutList") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -364,7 +368,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +388,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPool") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -408,7 +413,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -428,6 +433,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -444,7 +450,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +470,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDefaultMessageType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -480,7 +487,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -500,6 +507,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDefaultSenderId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -516,7 +524,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -536,6 +544,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -552,7 +561,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -572,6 +581,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKeyword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +598,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +618,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOptOutList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -624,7 +635,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -644,6 +655,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOptedOutNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -660,7 +672,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +692,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -696,7 +709,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -716,6 +729,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTextMessageSpendLimitOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -732,7 +746,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -752,6 +766,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVoiceMessageSpendLimitOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +783,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +803,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +820,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +840,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -840,7 +857,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -860,6 +877,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -876,7 +894,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -896,6 +914,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeKeywords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +931,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +951,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOptOutLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -948,7 +968,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -968,6 +988,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOptedOutNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1005,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1025,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePhoneNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1020,7 +1042,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1040,6 +1062,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1056,7 +1079,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1076,6 +1099,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSenderIds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1092,7 +1116,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1112,6 +1136,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpendLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1128,7 +1153,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1148,6 +1173,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateOriginationIdentity") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1172,7 +1198,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1192,6 +1218,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPoolOriginationIdentities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1208,7 +1235,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1228,6 +1255,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1244,7 +1272,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1264,6 +1292,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putKeyword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1309,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1329,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putOptedOutNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1316,7 +1346,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1336,6 +1366,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "releasePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1352,7 +1383,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1372,6 +1403,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "requestPhoneNumber") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1396,7 +1428,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1416,6 +1448,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendTextMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1432,7 +1465,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1452,6 +1485,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendVoiceMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1468,7 +1502,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1488,6 +1522,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setDefaultMessageType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1504,7 +1539,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1524,6 +1559,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setDefaultSenderId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1540,7 +1576,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1560,6 +1596,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setTextMessageSpendLimitOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1576,7 +1613,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1596,6 +1633,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setVoiceMessageSpendLimitOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1612,7 +1650,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1632,6 +1670,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1648,7 +1687,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1668,6 +1707,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1684,7 +1724,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1704,6 +1744,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1720,7 +1761,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1740,6 +1781,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1756,7 +1798,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1776,6 +1818,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms-voice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1792,7 +1835,7 @@ extension PinpointSMSVoiceV2Client: PinpointSMSVoiceV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPinpointSMSVoiceV2/models/Models.swift b/Sources/Services/AWSPinpointSMSVoiceV2/models/Models.swift index 510fc6d11c0..3c27f5a18c4 100644 --- a/Sources/Services/AWSPinpointSMSVoiceV2/models/Models.swift +++ b/Sources/Services/AWSPinpointSMSVoiceV2/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// The request was denied because you don't have sufficient permissions to access the resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -390,9 +389,8 @@ public enum AssociateOriginationIdentityOutputError: Swift.Error, Swift.Equatabl extension AssociateOriginationIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateOriginationIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isoCountryCode = output.isoCountryCode self.originationIdentity = output.originationIdentity @@ -716,9 +714,8 @@ extension PinpointSMSVoiceV2ClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -738,7 +735,7 @@ extension ConflictException { } /// Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn't valid for the current state or configuration of the resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -997,9 +994,8 @@ public enum CreateConfigurationSetOutputError: Swift.Error, Swift.Equatable { extension CreateConfigurationSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConfigurationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -1245,9 +1241,8 @@ public enum CreateEventDestinationOutputError: Swift.Error, Swift.Equatable { extension CreateEventDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -1422,9 +1417,8 @@ public enum CreateOptOutListOutputError: Swift.Error, Swift.Equatable { extension CreateOptOutListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOptOutListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.optOutListArn = output.optOutListArn @@ -1658,9 +1652,8 @@ public enum CreatePoolOutputError: Swift.Error, Swift.Equatable { extension CreatePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.deletionProtectionEnabled = output.deletionProtectionEnabled @@ -1902,9 +1895,8 @@ public enum DeleteConfigurationSetOutputError: Swift.Error, Swift.Equatable { extension DeleteConfigurationSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteConfigurationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -2080,9 +2072,8 @@ public enum DeleteDefaultMessageTypeOutputError: Swift.Error, Swift.Equatable { extension DeleteDefaultMessageTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDefaultMessageTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -2219,9 +2210,8 @@ public enum DeleteDefaultSenderIdOutputError: Swift.Error, Swift.Equatable { extension DeleteDefaultSenderIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDefaultSenderIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -2371,9 +2361,8 @@ public enum DeleteEventDestinationOutputError: Swift.Error, Swift.Equatable { extension DeleteEventDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEventDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -2525,9 +2514,8 @@ public enum DeleteKeywordOutputError: Swift.Error, Swift.Equatable { extension DeleteKeywordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteKeywordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyword = output.keyword self.keywordAction = output.keywordAction @@ -2686,9 +2674,8 @@ public enum DeleteOptOutListOutputError: Swift.Error, Swift.Equatable { extension DeleteOptOutListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteOptOutListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.optOutListArn = output.optOutListArn @@ -2840,9 +2827,8 @@ public enum DeleteOptedOutNumberOutputError: Swift.Error, Swift.Equatable { extension DeleteOptedOutNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteOptedOutNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endUserOptedOut = output.endUserOptedOut self.optOutListArn = output.optOutListArn @@ -3001,9 +2987,8 @@ public enum DeletePoolOutputError: Swift.Error, Swift.Equatable { extension DeletePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.messageType = output.messageType @@ -3194,9 +3179,8 @@ public enum DeleteTextMessageSpendLimitOverrideOutputError: Swift.Error, Swift.E extension DeleteTextMessageSpendLimitOverrideOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTextMessageSpendLimitOverrideOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monthlyLimit = output.monthlyLimit } else { @@ -3291,9 +3275,8 @@ public enum DeleteVoiceMessageSpendLimitOverrideOutputError: Swift.Error, Swift. extension DeleteVoiceMessageSpendLimitOverrideOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVoiceMessageSpendLimitOverrideOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monthlyLimit = output.monthlyLimit } else { @@ -3419,9 +3402,8 @@ public enum DescribeAccountAttributesOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAttributes = output.accountAttributes self.nextToken = output.nextToken @@ -3566,9 +3548,8 @@ public enum DescribeAccountLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountLimits = output.accountLimits self.nextToken = output.nextToken @@ -3763,9 +3744,8 @@ public enum DescribeConfigurationSetsOutputError: Swift.Error, Swift.Equatable { extension DescribeConfigurationSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSets = output.configurationSets self.nextToken = output.nextToken @@ -3973,9 +3953,8 @@ public enum DescribeKeywordsOutputError: Swift.Error, Swift.Equatable { extension DescribeKeywordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeKeywordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keywords = output.keywords self.nextToken = output.nextToken @@ -4166,9 +4145,8 @@ public enum DescribeOptOutListsOutputError: Swift.Error, Swift.Equatable { extension DescribeOptOutListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOptOutListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.optOutLists = output.optOutLists @@ -4376,9 +4354,8 @@ public enum DescribeOptedOutNumbersOutputError: Swift.Error, Swift.Equatable { extension DescribeOptedOutNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOptedOutNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.optOutListArn = output.optOutListArn @@ -4593,9 +4570,8 @@ public enum DescribePhoneNumbersOutputError: Swift.Error, Swift.Equatable { extension DescribePhoneNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePhoneNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumbers = output.phoneNumbers @@ -4790,9 +4766,8 @@ public enum DescribePoolsOutputError: Swift.Error, Swift.Equatable { extension DescribePoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pools = output.pools @@ -4987,9 +4962,8 @@ public enum DescribeSenderIdsOutputError: Swift.Error, Swift.Equatable { extension DescribeSenderIdsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSenderIdsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.senderIds = output.senderIds @@ -5134,9 +5108,8 @@ public enum DescribeSpendLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeSpendLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpendLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.spendLimits = output.spendLimits @@ -5344,9 +5317,8 @@ public enum DisassociateOriginationIdentityOutputError: Swift.Error, Swift.Equat extension DisassociateOriginationIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateOriginationIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isoCountryCode = output.isoCountryCode self.originationIdentity = output.originationIdentity @@ -5626,9 +5598,8 @@ extension PinpointSMSVoiceV2ClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -5644,7 +5615,7 @@ extension InternalServerException { } /// The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6042,9 +6013,8 @@ public enum ListPoolOriginationIdentitiesOutputError: Swift.Error, Swift.Equatab extension ListPoolOriginationIdentitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPoolOriginationIdentitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.originationIdentities = output.originationIdentities @@ -6200,9 +6170,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.tags = output.tags @@ -7513,9 +7482,8 @@ public enum PutKeywordOutputError: Swift.Error, Swift.Equatable { extension PutKeywordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutKeywordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keyword = output.keyword self.keywordAction = output.keywordAction @@ -7685,9 +7653,8 @@ public enum PutOptedOutNumberOutputError: Swift.Error, Swift.Equatable { extension PutOptedOutNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutOptedOutNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endUserOptedOut = output.endUserOptedOut self.optOutListArn = output.optOutListArn @@ -7846,9 +7813,8 @@ public enum ReleasePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension ReleasePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReleasePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.isoCountryCode = output.isoCountryCode @@ -8243,9 +8209,8 @@ public enum RequestPhoneNumberOutputError: Swift.Error, Swift.Equatable { extension RequestPhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestPhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.deletionProtectionEnabled = output.deletionProtectionEnabled @@ -8497,9 +8462,8 @@ extension PinpointSMSVoiceV2ClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -8517,7 +8481,7 @@ extension ResourceNotFoundException { } /// A requested resource couldn't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8851,9 +8815,8 @@ public enum SendTextMessageOutputError: Swift.Error, Swift.Equatable { extension SendTextMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendTextMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -9099,9 +9062,8 @@ public enum SendVoiceMessageOutputError: Swift.Error, Swift.Equatable { extension SendVoiceMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendVoiceMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -9373,9 +9335,8 @@ extension PinpointSMSVoiceV2ClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -9391,7 +9352,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9591,9 +9552,8 @@ public enum SetDefaultMessageTypeOutputError: Swift.Error, Swift.Equatable { extension SetDefaultMessageTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetDefaultMessageTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -9743,9 +9703,8 @@ public enum SetDefaultSenderIdOutputError: Swift.Error, Swift.Equatable { extension SetDefaultSenderIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetDefaultSenderIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -9880,9 +9839,8 @@ public enum SetTextMessageSpendLimitOverrideOutputError: Swift.Error, Swift.Equa extension SetTextMessageSpendLimitOverrideOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetTextMessageSpendLimitOverrideOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monthlyLimit = output.monthlyLimit } else { @@ -9997,9 +9955,8 @@ public enum SetVoiceMessageSpendLimitOverrideOutputError: Swift.Error, Swift.Equ extension SetVoiceMessageSpendLimitOverrideOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetVoiceMessageSpendLimitOverrideOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monthlyLimit = output.monthlyLimit } else { @@ -10337,9 +10294,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10353,7 +10309,7 @@ extension ThrottlingException { } /// An error that occurred because too many requests were sent during a certain amount of time. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10667,9 +10623,8 @@ public enum UpdateEventDestinationOutputError: Swift.Error, Swift.Equatable { extension UpdateEventDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEventDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetArn = output.configurationSetArn self.configurationSetName = output.configurationSetName @@ -10868,9 +10823,8 @@ public enum UpdatePhoneNumberOutputError: Swift.Error, Swift.Equatable { extension UpdatePhoneNumberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePhoneNumberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.deletionProtectionEnabled = output.deletionProtectionEnabled @@ -11210,9 +11164,8 @@ public enum UpdatePoolOutputError: Swift.Error, Swift.Equatable { extension UpdatePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdTimestamp = output.createdTimestamp self.deletionProtectionEnabled = output.deletionProtectionEnabled @@ -11351,9 +11304,8 @@ extension UpdatePoolOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -11371,7 +11323,7 @@ extension ValidationException { } /// A validation exception for a field. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPipes/PipesClient.swift b/Sources/Services/AWSPipes/PipesClient.swift index ae46d960374..9918ebe49e0 100644 --- a/Sources/Services/AWSPipes/PipesClient.swift +++ b/Sources/Services/AWSPipes/PipesClient.swift @@ -208,6 +208,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +357,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +377,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startPipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +390,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +410,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopPipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -416,7 +423,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -436,6 +443,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -451,7 +459,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +479,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +493,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +513,7 @@ extension PipesClient: PipesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pipes") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePipe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +529,7 @@ extension PipesClient: PipesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPipes/models/Models.swift b/Sources/Services/AWSPipes/models/Models.swift index 43f3eb7886e..16c3ce5f88b 100644 --- a/Sources/Services/AWSPipes/models/Models.swift +++ b/Sources/Services/AWSPipes/models/Models.swift @@ -552,9 +552,8 @@ extension PipesClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -572,7 +571,7 @@ extension ConflictException { } /// An action you attempted resulted in an exception. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -842,9 +841,8 @@ public enum CreatePipeOutputError: Swift.Error, Swift.Equatable { extension CreatePipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -1029,9 +1027,8 @@ public enum DeletePipeOutputError: Swift.Error, Swift.Equatable { extension DeletePipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -1184,9 +1181,8 @@ extension DescribePipeOutputResponse: Swift.CustomDebugStringConvertible { extension DescribePipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -2069,9 +2065,8 @@ extension InternalException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2085,7 +2080,7 @@ extension InternalException { } /// This exception occurs due to unexpected causes. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2320,9 +2315,8 @@ extension ListPipesOutputResponse: Swift.CustomDebugStringConvertible { extension ListPipesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pipes = output.pipes @@ -2437,9 +2431,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2638,9 +2631,8 @@ extension PipesClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2654,7 +2646,7 @@ extension NotFoundException { } /// An entity that you specified does not exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5355,9 +5347,8 @@ extension PipesClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -5379,7 +5370,7 @@ extension ServiceQuotaExceededException { } /// A quota has been exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5513,9 +5504,8 @@ public enum StartPipeOutputError: Swift.Error, Swift.Equatable { extension StartPipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartPipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -5665,9 +5655,8 @@ public enum StopPipeOutputError: Swift.Error, Swift.Equatable { extension StopPipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopPipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -5917,9 +5906,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -5937,7 +5925,7 @@ extension ThrottlingException { } /// An action was throttled. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6258,9 +6246,8 @@ public enum UpdatePipeOutputError: Swift.Error, Swift.Equatable { extension UpdatePipeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePipeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -6931,9 +6918,8 @@ extension PipesClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -6949,7 +6935,7 @@ extension ValidationException { } /// Indicates that an error has occurred while performing a validate operation. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPolly/PollyClient.swift b/Sources/Services/AWSPolly/PollyClient.swift index eed3cb1b932..450237f3f3d 100644 --- a/Sources/Services/AWSPolly/PollyClient.swift +++ b/Sources/Services/AWSPolly/PollyClient.swift @@ -208,6 +208,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLexicon") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVoices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -253,7 +255,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -273,6 +275,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLexicon") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -285,7 +288,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -305,6 +308,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSpeechSynthesisTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -317,7 +321,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +341,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLexicons") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -350,7 +355,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -370,6 +375,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSpeechSynthesisTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -383,7 +389,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -403,6 +409,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLexicon") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +425,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -438,6 +445,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSpeechSynthesisTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -453,7 +461,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -473,6 +481,7 @@ extension PollyClient: PollyClientProtocol { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "synthesizeSpeech") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +497,7 @@ extension PollyClient: PollyClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPolly/models/Models.swift b/Sources/Services/AWSPolly/models/Models.swift index df82315ff50..0289fafe58a 100644 --- a/Sources/Services/AWSPolly/models/Models.swift +++ b/Sources/Services/AWSPolly/models/Models.swift @@ -158,9 +158,8 @@ public enum DescribeVoicesOutputError: Swift.Error, Swift.Equatable { extension DescribeVoicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVoicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.voices = output.voices @@ -250,9 +249,8 @@ extension PollyClientTypes { extension EngineNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EngineNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -266,7 +264,7 @@ extension EngineNotSupportedException { } /// This engine is not compatible with the voice that you have designated. Choose a new voice that is compatible with the engine or change the engine and restart the operation. -public struct EngineNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EngineNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -389,9 +387,8 @@ public enum GetLexiconOutputError: Swift.Error, Swift.Equatable { extension GetLexiconOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLexiconOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lexicon = output.lexicon self.lexiconAttributes = output.lexiconAttributes @@ -497,9 +494,8 @@ public enum GetSpeechSynthesisTaskOutputError: Swift.Error, Swift.Equatable { extension GetSpeechSynthesisTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSpeechSynthesisTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.synthesisTask = output.synthesisTask } else { @@ -538,9 +534,8 @@ extension GetSpeechSynthesisTaskOutputResponseBody: Swift.Decodable { extension InvalidLexiconException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLexiconExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -554,7 +549,7 @@ extension InvalidLexiconException { } /// Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled correctly, and then try again. -public struct InvalidLexiconException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLexiconException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -590,9 +585,8 @@ extension InvalidLexiconExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -606,7 +600,7 @@ extension InvalidNextTokenException { } /// The NextToken is invalid. Verify that it's spelled correctly, and then try again. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -642,9 +636,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidS3BucketException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidS3BucketExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -658,7 +651,7 @@ extension InvalidS3BucketException { } /// The provided Amazon S3 bucket name is invalid. Please check your input with S3 bucket naming requirements and try again. -public struct InvalidS3BucketException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3BucketException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -694,9 +687,8 @@ extension InvalidS3BucketExceptionBody: Swift.Decodable { extension InvalidS3KeyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidS3KeyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -710,7 +702,7 @@ extension InvalidS3KeyException { } /// The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object key name. -public struct InvalidS3KeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3KeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -746,9 +738,8 @@ extension InvalidS3KeyExceptionBody: Swift.Decodable { extension InvalidSampleRateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSampleRateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -762,7 +753,7 @@ extension InvalidSampleRateException { } /// The specified sample rate is not valid. -public struct InvalidSampleRateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSampleRateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -798,9 +789,8 @@ extension InvalidSampleRateExceptionBody: Swift.Decodable { extension InvalidSnsTopicArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSnsTopicArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -814,7 +804,7 @@ extension InvalidSnsTopicArnException { } /// The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN and try again. -public struct InvalidSnsTopicArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSnsTopicArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -850,9 +840,8 @@ extension InvalidSnsTopicArnExceptionBody: Swift.Decodable { extension InvalidSsmlException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSsmlExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -866,7 +855,7 @@ extension InvalidSsmlException { } /// The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again. -public struct InvalidSsmlException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSsmlException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -902,9 +891,8 @@ extension InvalidSsmlExceptionBody: Swift.Decodable { extension InvalidTaskIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTaskIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -918,7 +906,7 @@ extension InvalidTaskIdException { } /// The provided Task ID is not valid. Please provide a valid Task ID and try again. -public struct InvalidTaskIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTaskIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1088,9 +1076,8 @@ extension PollyClientTypes { extension LanguageNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LanguageNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1104,7 +1091,7 @@ extension LanguageNotSupportedException { } /// The language specified is not currently supported by Amazon Polly in this capacity. -public struct LanguageNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LanguageNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1320,9 +1307,8 @@ extension PollyClientTypes { extension LexiconNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LexiconNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1336,7 +1322,7 @@ extension LexiconNotFoundException { } /// Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that is missing, its name is misspelled or specifying a lexicon that is in a different region. Verify that the lexicon exists, is in the region (see [ListLexicons]) and that you spelled its name is spelled correctly. Then try again. -public struct LexiconNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LexiconNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1372,9 +1358,8 @@ extension LexiconNotFoundExceptionBody: Swift.Decodable { extension LexiconSizeExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LexiconSizeExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1388,7 +1373,7 @@ extension LexiconSizeExceededException { } /// The maximum size of the specified lexicon would be exceeded by this operation. -public struct LexiconSizeExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LexiconSizeExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1488,9 +1473,8 @@ public enum ListLexiconsOutputError: Swift.Error, Swift.Equatable { extension ListLexiconsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLexiconsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lexicons = output.lexicons self.nextToken = output.nextToken @@ -1628,9 +1612,8 @@ public enum ListSpeechSynthesisTasksOutputError: Swift.Error, Swift.Equatable { extension ListSpeechSynthesisTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSpeechSynthesisTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.synthesisTasks = output.synthesisTasks @@ -1688,9 +1671,8 @@ extension ListSpeechSynthesisTasksOutputResponseBody: Swift.Decodable { extension MarksNotSupportedForFormatException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MarksNotSupportedForFormatExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1704,7 +1686,7 @@ extension MarksNotSupportedForFormatException { } /// Speech marks are not supported for the OutputFormat selected. Speech marks are only available for content in json format. -public struct MarksNotSupportedForFormatException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MarksNotSupportedForFormatException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1740,9 +1722,8 @@ extension MarksNotSupportedForFormatExceptionBody: Swift.Decodable { extension MaxLexemeLengthExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxLexemeLengthExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1756,7 +1737,7 @@ extension MaxLexemeLengthExceededException { } /// The maximum size of the lexeme would be exceeded by this operation. -public struct MaxLexemeLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxLexemeLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1792,9 +1773,8 @@ extension MaxLexemeLengthExceededExceptionBody: Swift.Decodable { extension MaxLexiconsNumberExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxLexiconsNumberExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1808,7 +1788,7 @@ extension MaxLexiconsNumberExceededException { } /// The maximum number of lexicons would be exceeded by this operation. -public struct MaxLexiconsNumberExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxLexiconsNumberExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1987,9 +1967,8 @@ public struct PutLexiconOutputResponse: Swift.Equatable { extension ServiceFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2003,7 +1982,7 @@ extension ServiceFailureException { } /// An unknown condition has caused a service failure. -public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2077,9 +2056,8 @@ extension PollyClientTypes { extension SsmlMarksNotSupportedForTextTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SsmlMarksNotSupportedForTextTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2093,7 +2071,7 @@ extension SsmlMarksNotSupportedForTextTypeException { } /// SSML speech marks are not supported for plain text-type input. -public struct SsmlMarksNotSupportedForTextTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SsmlMarksNotSupportedForTextTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2380,9 +2358,8 @@ public enum StartSpeechSynthesisTaskOutputError: Swift.Error, Swift.Equatable { extension StartSpeechSynthesisTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSpeechSynthesisTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.synthesisTask = output.synthesisTask } else { @@ -2620,9 +2597,8 @@ extension PollyClientTypes { extension SynthesisTaskNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SynthesisTaskNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2636,7 +2612,7 @@ extension SynthesisTaskNotFoundException { } /// The Speech Synthesis task with requested Task ID cannot be found. -public struct SynthesisTaskNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SynthesisTaskNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2744,6 +2720,7 @@ extension SynthesizeSpeechInput { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "synthesizeSpeech") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2755,7 +2732,7 @@ extension SynthesizeSpeechInput { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build(), let presignedURL = builtRequest.endpoint.url else { return nil } @@ -2786,6 +2763,7 @@ extension SynthesizeSpeechInput { .withRegion(value: config.region) .withSigningName(value: "polly") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "synthesizeSpeech") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2801,7 +2779,7 @@ extension SynthesizeSpeechInput { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } @@ -3039,9 +3017,12 @@ extension SynthesizeSpeechOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.requestCharacters = 0 } - if let data = httpResponse.body.toBytes()?.getData() { - self.audioStream = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.audioStream = .data(data) + case .stream(let stream): + self.audioStream = .stream(stream) + case .none: self.audioStream = nil } } @@ -3131,9 +3112,8 @@ extension PollyClientTypes { extension TextLengthExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TextLengthExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3147,7 +3127,7 @@ extension TextLengthExceededException { } /// The value of the "Text" parameter is longer than the accepted limits. For the SynthesizeSpeech API, the limit for input text is a maximum of 6000 characters total, of which no more than 3000 can be billed characters. For the StartSpeechSynthesisTask API, the maximum is 200,000 characters, of which no more than 100,000 can be billed characters. SSML tags are not counted as billed characters. -public struct TextLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TextLengthExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3215,9 +3195,8 @@ extension PollyClientTypes { extension UnsupportedPlsAlphabetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedPlsAlphabetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3231,7 +3210,7 @@ extension UnsupportedPlsAlphabetException { } /// The alphabet specified by the lexicon is not a supported alphabet. Valid values are x-sampa and ipa. -public struct UnsupportedPlsAlphabetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedPlsAlphabetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3267,9 +3246,8 @@ extension UnsupportedPlsAlphabetExceptionBody: Swift.Decodable { extension UnsupportedPlsLanguageException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedPlsLanguageExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3283,7 +3261,7 @@ extension UnsupportedPlsLanguageException { } /// The language specified in the lexicon is unsupported. For a list of supported languages, see [Lexicon Attributes](https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html). -public struct UnsupportedPlsLanguageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedPlsLanguageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPricing/PricingClient.swift b/Sources/Services/AWSPricing/PricingClient.swift index 34e325ca58e..481836b520a 100644 --- a/Sources/Services/AWSPricing/PricingClient.swift +++ b/Sources/Services/AWSPricing/PricingClient.swift @@ -208,6 +208,7 @@ extension PricingClient: PricingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pricing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension PricingClient: PricingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension PricingClient: PricingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pricing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAttributeValues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension PricingClient: PricingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension PricingClient: PricingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pricing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPriceListFileUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension PricingClient: PricingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension PricingClient: PricingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pricing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProducts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension PricingClient: PricingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension PricingClient: PricingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "pricing") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPriceLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension PricingClient: PricingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPricing/models/Models.swift b/Sources/Services/AWSPricing/models/Models.swift index d2b5955de8a..5cd3b03bde7 100644 --- a/Sources/Services/AWSPricing/models/Models.swift +++ b/Sources/Services/AWSPricing/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// General authentication failure. The request wasn't signed correctly. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -204,9 +203,8 @@ public enum DescribeServicesOutputError: Swift.Error, Swift.Equatable { extension DescribeServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.formatVersion = output.formatVersion self.nextToken = output.nextToken @@ -274,9 +272,8 @@ extension DescribeServicesOutputResponseBody: Swift.Decodable { extension ExpiredNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -290,7 +287,7 @@ extension ExpiredNextTokenException { } /// The pagination token expired. Try again without a pagination token. -public struct ExpiredNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -528,9 +525,8 @@ public enum GetAttributeValuesOutputError: Swift.Error, Swift.Equatable { extension GetAttributeValuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAttributeValuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributeValues = output.attributeValues self.nextToken = output.nextToken @@ -677,9 +673,8 @@ public enum GetPriceListFileUrlOutputError: Swift.Error, Swift.Equatable { extension GetPriceListFileUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPriceListFileUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.url = output.url } else { @@ -856,9 +851,8 @@ public enum GetProductsOutputError: Swift.Error, Swift.Equatable { extension GetProductsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProductsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.formatVersion = output.formatVersion self.nextToken = output.nextToken @@ -926,9 +920,8 @@ extension GetProductsOutputResponseBody: Swift.Decodable { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -942,7 +935,7 @@ extension InternalErrorException { } /// An error on the server occurred during the processing of your request. Try again later. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -978,9 +971,8 @@ extension InternalErrorExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -994,7 +986,7 @@ extension InvalidNextTokenException { } /// The pagination token is invalid. Try again without a pagination token. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1030,9 +1022,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1046,7 +1037,7 @@ extension InvalidParameterException { } /// One or more parameters had an invalid value. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1224,9 +1215,8 @@ public enum ListPriceListsOutputError: Swift.Error, Swift.Equatable { extension ListPriceListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPriceListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.priceLists = output.priceLists @@ -1284,9 +1274,8 @@ extension ListPriceListsOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1300,7 +1289,7 @@ extension NotFoundException { } /// The requested resource can't be found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSPrivateNetworks/PrivateNetworksClient.swift b/Sources/Services/AWSPrivateNetworks/PrivateNetworksClient.swift index 6421031f49b..ceb7d627648 100644 --- a/Sources/Services/AWSPrivateNetworks/PrivateNetworksClient.swift +++ b/Sources/Services/AWSPrivateNetworks/PrivateNetworksClient.swift @@ -208,6 +208,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acknowledgeOrderReceipt") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateDeviceIdentifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateNetworkSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "configureAccessPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateDeviceIdentifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -466,7 +474,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -486,6 +494,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeviceIdentifier") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -531,7 +541,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -551,6 +561,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -563,7 +574,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -583,6 +594,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -595,7 +607,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -615,6 +627,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -627,7 +640,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -647,6 +660,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOrder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -659,7 +673,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -679,6 +693,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceIdentifiers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -694,7 +709,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -714,6 +729,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNetworkResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -729,7 +745,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -749,6 +765,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNetworkSites") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +781,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +801,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNetworks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -799,7 +817,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -819,6 +837,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -834,7 +853,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -854,6 +873,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -866,7 +886,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -886,6 +906,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "ping") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -898,7 +919,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -918,6 +939,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startNetworkResourceUpdate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -933,7 +955,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -953,6 +975,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -968,7 +991,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -988,6 +1011,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1001,7 +1025,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1021,6 +1045,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNetworkSite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1036,7 +1061,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1056,6 +1081,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { .withRegion(value: config.region) .withSigningName(value: "private-networks") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNetworkSitePlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1071,7 +1097,7 @@ extension PrivateNetworksClient: PrivateNetworksClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSPrivateNetworks/models/Models.swift b/Sources/Services/AWSPrivateNetworks/models/Models.swift index fb3c5a903df..2fdb5df9d31 100644 --- a/Sources/Services/AWSPrivateNetworks/models/Models.swift +++ b/Sources/Services/AWSPrivateNetworks/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have permission to perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -130,9 +129,8 @@ public enum AcknowledgeOrderReceiptOutputError: Swift.Error, Swift.Equatable { extension AcknowledgeOrderReceiptOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcknowledgeOrderReceiptOutputResponseBody = try responseDecoder.decode(responseBody: data) self.order = output.order } else { @@ -298,9 +296,8 @@ extension ActivateDeviceIdentifierOutputResponse: Swift.CustomDebugStringConvert extension ActivateDeviceIdentifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivateDeviceIdentifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceIdentifier = output.deviceIdentifier self.tags = output.tags @@ -458,9 +455,8 @@ public enum ActivateNetworkSiteOutputError: Swift.Error, Swift.Equatable { extension ActivateNetworkSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivateNetworkSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSite = output.networkSite } else { @@ -774,9 +770,8 @@ public enum ConfigureAccessPointOutputError: Swift.Error, Swift.Equatable { extension ConfigureAccessPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfigureAccessPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPoint = output.accessPoint } else { @@ -948,9 +943,8 @@ extension CreateNetworkOutputResponse: Swift.CustomDebugStringConvertible { extension CreateNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.network = output.network self.tags = output.tags @@ -1190,9 +1184,8 @@ extension CreateNetworkSiteOutputResponse: Swift.CustomDebugStringConvertible { extension CreateNetworkSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSite = output.networkSite self.tags = output.tags @@ -1336,9 +1329,8 @@ public enum DeactivateDeviceIdentifierOutputError: Swift.Error, Swift.Equatable extension DeactivateDeviceIdentifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeactivateDeviceIdentifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceIdentifier = output.deviceIdentifier } else { @@ -1454,9 +1446,8 @@ public enum DeleteNetworkOutputError: Swift.Error, Swift.Equatable { extension DeleteNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.network = output.network } else { @@ -1572,9 +1563,8 @@ public enum DeleteNetworkSiteOutputError: Swift.Error, Swift.Equatable { extension DeleteNetworkSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNetworkSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSite = output.networkSite } else { @@ -1924,9 +1914,8 @@ extension GetDeviceIdentifierOutputResponse: Swift.CustomDebugStringConvertible extension GetDeviceIdentifierOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceIdentifierOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceIdentifier = output.deviceIdentifier self.tags = output.tags @@ -2046,9 +2035,8 @@ extension GetNetworkOutputResponse: Swift.CustomDebugStringConvertible { extension GetNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.network = output.network self.tags = output.tags @@ -2169,9 +2157,8 @@ extension GetNetworkResourceOutputResponse: Swift.CustomDebugStringConvertible { extension GetNetworkResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkResource = output.networkResource self.tags = output.tags @@ -2292,9 +2279,8 @@ extension GetNetworkSiteOutputResponse: Swift.CustomDebugStringConvertible { extension GetNetworkSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSite = output.networkSite self.tags = output.tags @@ -2414,9 +2400,8 @@ extension GetOrderOutputResponse: Swift.CustomDebugStringConvertible { extension GetOrderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOrderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.order = output.order self.tags = output.tags @@ -2515,9 +2500,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2531,7 +2515,7 @@ extension InternalServerException { } /// Information about an internal error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2573,9 +2557,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2589,7 +2572,7 @@ extension LimitExceededException { } /// The limit was exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2767,9 +2750,8 @@ public enum ListDeviceIdentifiersOutputError: Swift.Error, Swift.Equatable { extension ListDeviceIdentifiersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceIdentifiersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceIdentifiers = output.deviceIdentifiers self.nextToken = output.nextToken @@ -2966,9 +2948,8 @@ public enum ListNetworkResourcesOutputError: Swift.Error, Swift.Equatable { extension ListNetworkResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNetworkResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkResources = output.networkResources self.nextToken = output.nextToken @@ -3163,9 +3144,8 @@ public enum ListNetworkSitesOutputError: Swift.Error, Swift.Equatable { extension ListNetworkSitesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNetworkSitesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSites = output.networkSites self.nextToken = output.nextToken @@ -3347,9 +3327,8 @@ public enum ListNetworksOutputError: Swift.Error, Swift.Equatable { extension ListNetworksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNetworksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networks = output.networks self.nextToken = output.nextToken @@ -3546,9 +3525,8 @@ public enum ListOrdersOutputError: Swift.Error, Swift.Equatable { extension ListOrdersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrdersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.orders = output.orders @@ -3672,9 +3650,8 @@ extension ListTagsForResourceOutputResponse: Swift.CustomDebugStringConvertible extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4728,9 +4705,8 @@ public enum PingOutputError: Swift.Error, Swift.Equatable { extension PingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -4844,9 +4820,8 @@ extension PrivateNetworksClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -4864,7 +4839,7 @@ extension ResourceNotFoundException { } /// The resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5169,9 +5144,8 @@ public enum StartNetworkResourceUpdateOutputError: Swift.Error, Swift.Equatable extension StartNetworkResourceUpdateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartNetworkResourceUpdateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkResource = output.networkResource } else { @@ -5323,9 +5297,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5339,7 +5312,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5611,9 +5584,8 @@ extension UpdateNetworkSiteOutputResponse: Swift.CustomDebugStringConvertible { extension UpdateNetworkSiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNetworkSiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSite = output.networkSite self.tags = output.tags @@ -5775,9 +5747,8 @@ extension UpdateNetworkSitePlanOutputResponse: Swift.CustomDebugStringConvertibl extension UpdateNetworkSitePlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNetworkSitePlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSite = output.networkSite self.tags = output.tags @@ -5867,9 +5838,8 @@ extension PrivateNetworksClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -5887,7 +5857,7 @@ extension ValidationException { } /// The request failed validation. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSProton/ProtonClient.swift b/Sources/Services/AWSProton/ProtonClient.swift index 224a86757b7..5eb944ab8fe 100644 --- a/Sources/Services/AWSProton/ProtonClient.swift +++ b/Sources/Services/AWSProton/ProtonClient.swift @@ -208,6 +208,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptEnvironmentAccountConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelComponentDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelEnvironmentDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -302,7 +305,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -328,6 +331,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelServiceInstanceDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -344,7 +348,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -370,6 +374,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelServicePipelineDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -386,7 +391,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -406,6 +411,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -430,7 +436,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -457,6 +463,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -473,7 +480,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -493,6 +500,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironmentAccountConnection") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -517,7 +525,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -541,6 +549,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironmentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -557,7 +566,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -577,6 +586,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEnvironmentTemplateVersion") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -601,7 +611,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -621,6 +631,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -637,7 +648,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +668,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -673,7 +685,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -693,6 +705,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -717,7 +730,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -737,6 +750,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceSyncConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -753,7 +767,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -773,6 +787,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -789,7 +804,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -809,6 +824,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceTemplateVersion") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -833,7 +849,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -853,6 +869,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTemplateSyncConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -869,7 +886,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -889,6 +906,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -905,7 +923,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -925,6 +943,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -941,7 +960,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -961,6 +980,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironmentAccountConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -977,7 +997,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -997,6 +1017,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironmentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1013,7 +1034,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1033,6 +1054,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEnvironmentTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1049,7 +1071,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1069,6 +1091,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1085,7 +1108,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1105,6 +1128,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1121,7 +1145,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1141,6 +1165,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceSyncConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1182,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1177,6 +1202,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1193,7 +1219,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1213,6 +1239,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1229,7 +1256,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1249,6 +1276,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTemplateSyncConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1265,7 +1293,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1285,6 +1313,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1301,7 +1330,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1321,6 +1350,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1337,7 +1367,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1357,6 +1387,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1373,7 +1404,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1393,6 +1424,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironmentAccountConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1409,7 +1441,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1429,6 +1461,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironmentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1445,7 +1478,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1465,6 +1498,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnvironmentTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1481,7 +1515,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1501,6 +1535,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1517,7 +1552,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1537,6 +1572,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRepositorySyncStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1553,7 +1589,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1573,6 +1609,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcesSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1589,7 +1626,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1609,6 +1646,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1625,7 +1663,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1645,6 +1683,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1661,7 +1700,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1681,6 +1720,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceInstanceSyncStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1697,7 +1737,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1717,6 +1757,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceSyncBlockerSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1733,7 +1774,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1753,6 +1794,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceSyncConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1769,7 +1811,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1789,6 +1831,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1805,7 +1848,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1825,6 +1868,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1841,7 +1885,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1861,6 +1905,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplateSyncConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1877,7 +1922,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1897,6 +1942,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplateSyncStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1913,7 +1959,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1933,6 +1979,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponentOutputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1949,7 +1996,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1969,6 +2016,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponentProvisionedResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1985,7 +2033,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2005,6 +2053,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2021,7 +2070,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2041,6 +2090,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironmentAccountConnections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2057,7 +2107,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2077,6 +2127,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironmentOutputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2093,7 +2144,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2113,6 +2164,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironmentProvisionedResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2129,7 +2181,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2149,6 +2201,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironmentTemplateVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2165,7 +2218,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2185,6 +2238,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironmentTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2201,7 +2255,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2221,6 +2275,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnvironments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2237,7 +2292,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2257,6 +2312,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2273,7 +2329,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2293,6 +2349,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRepositorySyncDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2309,7 +2366,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2329,6 +2386,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceInstanceOutputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2345,7 +2403,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2365,6 +2423,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceInstanceProvisionedResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2381,7 +2440,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2401,6 +2460,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2417,7 +2477,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2437,6 +2497,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServicePipelineOutputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2453,7 +2514,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2473,6 +2534,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServicePipelineProvisionedResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2489,7 +2551,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2509,6 +2571,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceTemplateVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2525,7 +2588,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2545,6 +2608,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2561,7 +2625,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2581,6 +2645,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2597,7 +2662,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2617,6 +2682,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2633,7 +2699,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2653,6 +2719,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyResourceDeploymentStatusChange") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2669,7 +2736,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2689,6 +2756,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectEnvironmentAccountConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2705,7 +2773,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2725,6 +2793,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2741,7 +2810,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2761,6 +2830,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2777,7 +2847,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2797,6 +2867,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2813,7 +2884,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2833,6 +2904,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2857,7 +2929,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2877,6 +2949,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2893,7 +2966,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2913,6 +2986,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironmentAccountConnection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2929,7 +3003,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2949,6 +3023,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironmentTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2965,7 +3040,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2985,6 +3060,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEnvironmentTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3001,7 +3077,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3021,6 +3097,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3037,7 +3114,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3057,6 +3134,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3081,7 +3159,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3101,6 +3179,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServicePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3117,7 +3196,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3137,6 +3216,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceSyncBlocker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3153,7 +3233,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3173,6 +3253,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceSyncConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3189,7 +3270,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3209,6 +3290,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3225,7 +3307,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3245,6 +3327,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceTemplateVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3261,7 +3344,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3281,6 +3364,7 @@ extension ProtonClient: ProtonClientProtocol { .withRegion(value: config.region) .withSigningName(value: "proton") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTemplateSyncConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3297,7 +3381,7 @@ extension ProtonClient: ProtonClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSProton/models/Models.swift b/Sources/Services/AWSProton/models/Models.swift index b3e793c65a9..58e9d20c65e 100644 --- a/Sources/Services/AWSProton/models/Models.swift +++ b/Sources/Services/AWSProton/models/Models.swift @@ -84,9 +84,8 @@ public enum AcceptEnvironmentAccountConnectionOutputError: Swift.Error, Swift.Eq extension AcceptEnvironmentAccountConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptEnvironmentAccountConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentAccountConnection = output.environmentAccountConnection } else { @@ -131,9 +130,8 @@ extension AccessDeniedException: Swift.CustomDebugStringConvertible { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -147,7 +145,7 @@ extension AccessDeniedException { } /// There isn't sufficient access for performing this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -380,9 +378,8 @@ public enum CancelComponentDeploymentOutputError: Swift.Error, Swift.Equatable { extension CancelComponentDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelComponentDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.component = output.component } else { @@ -502,9 +499,8 @@ public enum CancelEnvironmentDeploymentOutputError: Swift.Error, Swift.Equatable extension CancelEnvironmentDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelEnvironmentDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environment = output.environment } else { @@ -637,9 +633,8 @@ public enum CancelServiceInstanceDeploymentOutputError: Swift.Error, Swift.Equat extension CancelServiceInstanceDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelServiceInstanceDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceInstance = output.serviceInstance } else { @@ -759,9 +754,8 @@ public enum CancelServicePipelineDeploymentOutputError: Swift.Error, Swift.Equat extension CancelServicePipelineDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelServicePipelineDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline } else { @@ -1254,9 +1248,8 @@ extension ConflictException: Swift.CustomDebugStringConvertible { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1270,7 +1263,7 @@ extension ConflictException { } /// The request couldn't be made due to a conflicting operation or resource. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1611,9 +1604,8 @@ public enum CreateComponentOutputError: Swift.Error, Swift.Equatable { extension CreateComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.component = output.component } else { @@ -1818,9 +1810,8 @@ public enum CreateEnvironmentAccountConnectionOutputError: Swift.Error, Swift.Eq extension CreateEnvironmentAccountConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentAccountConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentAccountConnection = output.environmentAccountConnection } else { @@ -2094,9 +2085,8 @@ public enum CreateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension CreateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environment = output.environment } else { @@ -2293,9 +2283,8 @@ public enum CreateEnvironmentTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateEnvironmentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentTemplate = output.environmentTemplate } else { @@ -2495,9 +2484,8 @@ public enum CreateEnvironmentTemplateVersionOutputError: Swift.Error, Swift.Equa extension CreateEnvironmentTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEnvironmentTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentTemplateVersion = output.environmentTemplateVersion } else { @@ -2679,9 +2667,8 @@ public enum CreateRepositoryOutputError: Swift.Error, Swift.Equatable { extension CreateRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -3068,9 +3055,8 @@ public enum CreateServiceInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateServiceInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceInstance = output.serviceInstance } else { @@ -3144,9 +3130,8 @@ public enum CreateServiceOutputError: Swift.Error, Swift.Equatable { extension CreateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -3318,9 +3303,8 @@ public enum CreateServiceSyncConfigOutputError: Swift.Error, Swift.Equatable { extension CreateServiceSyncConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceSyncConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSyncConfig = output.serviceSyncConfig } else { @@ -3516,9 +3500,8 @@ public enum CreateServiceTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateServiceTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceTemplate = output.serviceTemplate } else { @@ -3767,9 +3750,8 @@ public enum CreateServiceTemplateVersionOutputError: Swift.Error, Swift.Equatabl extension CreateServiceTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceTemplateVersion = output.serviceTemplateVersion } else { @@ -3953,9 +3935,8 @@ public enum CreateTemplateSyncConfigOutputError: Swift.Error, Swift.Equatable { extension CreateTemplateSyncConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTemplateSyncConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.templateSyncConfig = output.templateSyncConfig } else { @@ -4074,9 +4055,8 @@ public enum DeleteComponentOutputError: Swift.Error, Swift.Equatable { extension DeleteComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.component = output.component } else { @@ -4195,9 +4175,8 @@ public enum DeleteEnvironmentAccountConnectionOutputError: Swift.Error, Swift.Eq extension DeleteEnvironmentAccountConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEnvironmentAccountConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentAccountConnection = output.environmentAccountConnection } else { @@ -4316,9 +4295,8 @@ public enum DeleteEnvironmentOutputError: Swift.Error, Swift.Equatable { extension DeleteEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environment = output.environment } else { @@ -4437,9 +4415,8 @@ public enum DeleteEnvironmentTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteEnvironmentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEnvironmentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentTemplate = output.environmentTemplate } else { @@ -4584,9 +4561,8 @@ public enum DeleteEnvironmentTemplateVersionOutputError: Swift.Error, Swift.Equa extension DeleteEnvironmentTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEnvironmentTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentTemplateVersion = output.environmentTemplateVersion } else { @@ -4718,9 +4694,8 @@ public enum DeleteRepositoryOutputError: Swift.Error, Swift.Equatable { extension DeleteRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -4839,9 +4814,8 @@ public enum DeleteServiceOutputError: Swift.Error, Swift.Equatable { extension DeleteServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -4960,9 +4934,8 @@ public enum DeleteServiceSyncConfigOutputError: Swift.Error, Swift.Equatable { extension DeleteServiceSyncConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceSyncConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSyncConfig = output.serviceSyncConfig } else { @@ -5081,9 +5054,8 @@ public enum DeleteServiceTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteServiceTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceTemplate = output.serviceTemplate } else { @@ -5228,9 +5200,8 @@ public enum DeleteServiceTemplateVersionOutputError: Swift.Error, Swift.Equatabl extension DeleteServiceTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceTemplateVersion = output.serviceTemplateVersion } else { @@ -5362,9 +5333,8 @@ public enum DeleteTemplateSyncConfigOutputError: Swift.Error, Swift.Equatable { extension DeleteTemplateSyncConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTemplateSyncConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.templateSyncConfig = output.templateSyncConfig } else { @@ -6891,9 +6861,8 @@ public enum GetAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension GetAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettings = output.accountSettings } else { @@ -7010,9 +6979,8 @@ public enum GetComponentOutputError: Swift.Error, Swift.Equatable { extension GetComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.component = output.component } else { @@ -7129,9 +7097,8 @@ public enum GetEnvironmentAccountConnectionOutputError: Swift.Error, Swift.Equat extension GetEnvironmentAccountConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentAccountConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentAccountConnection = output.environmentAccountConnection } else { @@ -7249,9 +7216,8 @@ public enum GetEnvironmentOutputError: Swift.Error, Swift.Equatable { extension GetEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environment = output.environment } else { @@ -7369,9 +7335,8 @@ public enum GetEnvironmentTemplateOutputError: Swift.Error, Swift.Equatable { extension GetEnvironmentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentTemplate = output.environmentTemplate } else { @@ -7515,9 +7480,8 @@ public enum GetEnvironmentTemplateVersionOutputError: Swift.Error, Swift.Equatab extension GetEnvironmentTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnvironmentTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentTemplateVersion = output.environmentTemplateVersion } else { @@ -7648,9 +7612,8 @@ public enum GetRepositoryOutputError: Swift.Error, Swift.Equatable { extension GetRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.repository = output.repository } else { @@ -7807,9 +7770,8 @@ public enum GetRepositorySyncStatusOutputError: Swift.Error, Swift.Equatable { extension GetRepositorySyncStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRepositorySyncStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.latestSync = output.latestSync } else { @@ -7904,9 +7866,8 @@ public enum GetResourcesSummaryOutputError: Swift.Error, Swift.Equatable { extension GetResourcesSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcesSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.counts = output.counts } else { @@ -8085,9 +8046,8 @@ public enum GetServiceInstanceOutputError: Swift.Error, Swift.Equatable { extension GetServiceInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceInstance = output.serviceInstance } else { @@ -8218,9 +8178,8 @@ public enum GetServiceInstanceSyncStatusOutputError: Swift.Error, Swift.Equatabl extension GetServiceInstanceSyncStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceInstanceSyncStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.desiredState = output.desiredState self.latestSuccessfulSync = output.latestSuccessfulSync @@ -8309,9 +8268,8 @@ public enum GetServiceOutputError: Swift.Error, Swift.Equatable { extension GetServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -8440,9 +8398,8 @@ public enum GetServiceSyncBlockerSummaryOutputError: Swift.Error, Swift.Equatabl extension GetServiceSyncBlockerSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceSyncBlockerSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSyncBlockerSummary = output.serviceSyncBlockerSummary } else { @@ -8559,9 +8516,8 @@ public enum GetServiceSyncConfigOutputError: Swift.Error, Swift.Equatable { extension GetServiceSyncConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceSyncConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSyncConfig = output.serviceSyncConfig } else { @@ -8678,9 +8634,8 @@ public enum GetServiceTemplateOutputError: Swift.Error, Swift.Equatable { extension GetServiceTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceTemplate = output.serviceTemplate } else { @@ -8824,9 +8779,8 @@ public enum GetServiceTemplateVersionOutputError: Swift.Error, Swift.Equatable { extension GetServiceTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceTemplateVersion = output.serviceTemplateVersion } else { @@ -8957,9 +8911,8 @@ public enum GetTemplateSyncConfigOutputError: Swift.Error, Swift.Equatable { extension GetTemplateSyncConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateSyncConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.templateSyncConfig = output.templateSyncConfig } else { @@ -9102,9 +9055,8 @@ public enum GetTemplateSyncStatusOutputError: Swift.Error, Swift.Equatable { extension GetTemplateSyncStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateSyncStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.desiredState = output.desiredState self.latestSuccessfulSync = output.latestSuccessfulSync @@ -9168,9 +9120,8 @@ extension InternalServerException: Swift.CustomDebugStringConvertible { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9184,7 +9135,7 @@ extension InternalServerException { } /// The request failed to register with the service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9311,9 +9262,8 @@ public enum ListComponentOutputsOutputError: Swift.Error, Swift.Equatable { extension ListComponentOutputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentOutputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.outputs = output.outputs @@ -9462,9 +9412,8 @@ public enum ListComponentProvisionedResourcesOutputError: Swift.Error, Swift.Equ extension ListComponentProvisionedResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentProvisionedResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.provisionedResources = output.provisionedResources @@ -9646,9 +9595,8 @@ public enum ListComponentsOutputError: Swift.Error, Swift.Equatable { extension ListComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.components = output.components self.nextToken = output.nextToken @@ -9843,9 +9791,8 @@ public enum ListEnvironmentAccountConnectionsOutputError: Swift.Error, Swift.Equ extension ListEnvironmentAccountConnectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentAccountConnectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentAccountConnections = output.environmentAccountConnections self.nextToken = output.nextToken @@ -9994,9 +9941,8 @@ public enum ListEnvironmentOutputsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentOutputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentOutputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.outputs = output.outputs @@ -10145,9 +10091,8 @@ public enum ListEnvironmentProvisionedResourcesOutputError: Swift.Error, Swift.E extension ListEnvironmentProvisionedResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentProvisionedResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.provisionedResources = output.provisionedResources @@ -10320,9 +10265,8 @@ public enum ListEnvironmentTemplateVersionsOutputError: Swift.Error, Swift.Equat extension ListEnvironmentTemplateVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentTemplateVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templateVersions = output.templateVersions @@ -10468,9 +10412,8 @@ public enum ListEnvironmentTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templates = output.templates @@ -10642,9 +10585,8 @@ public enum ListEnvironmentsOutputError: Swift.Error, Swift.Equatable { extension ListEnvironmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnvironmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environments = output.environments self.nextToken = output.nextToken @@ -10792,9 +10734,8 @@ public enum ListRepositoriesOutputError: Swift.Error, Swift.Equatable { extension ListRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.repositories = output.repositories @@ -10967,9 +10908,8 @@ public enum ListRepositorySyncDefinitionsOutputError: Swift.Error, Swift.Equatab extension ListRepositorySyncDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRepositorySyncDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.syncDefinitions = output.syncDefinitions @@ -11131,9 +11071,8 @@ public enum ListServiceInstanceOutputsOutputError: Swift.Error, Swift.Equatable extension ListServiceInstanceOutputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceInstanceOutputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.outputs = output.outputs @@ -11295,9 +11234,8 @@ public enum ListServiceInstanceProvisionedResourcesOutputError: Swift.Error, Swi extension ListServiceInstanceProvisionedResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceInstanceProvisionedResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.provisionedResources = output.provisionedResources @@ -11606,9 +11544,8 @@ public enum ListServiceInstancesOutputError: Swift.Error, Swift.Equatable { extension ListServiceInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceInstances = output.serviceInstances @@ -11804,9 +11741,8 @@ public enum ListServicePipelineOutputsOutputError: Swift.Error, Swift.Equatable extension ListServicePipelineOutputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicePipelineOutputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.outputs = output.outputs @@ -11955,9 +11891,8 @@ public enum ListServicePipelineProvisionedResourcesOutputError: Swift.Error, Swi extension ListServicePipelineProvisionedResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicePipelineProvisionedResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.provisionedResources = output.provisionedResources @@ -12130,9 +12065,8 @@ public enum ListServiceTemplateVersionsOutputError: Swift.Error, Swift.Equatable extension ListServiceTemplateVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceTemplateVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templateVersions = output.templateVersions @@ -12278,9 +12212,8 @@ public enum ListServiceTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListServiceTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templates = output.templates @@ -12426,9 +12359,8 @@ public enum ListServicesOutputError: Swift.Error, Swift.Equatable { extension ListServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.services = output.services @@ -12561,9 +12493,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -13027,9 +12958,8 @@ public enum RejectEnvironmentAccountConnectionOutputError: Swift.Error, Swift.Eq extension RejectEnvironmentAccountConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectEnvironmentAccountConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentAccountConnection = output.environmentAccountConnection } else { @@ -13749,9 +13679,8 @@ extension ResourceNotFoundException: Swift.CustomDebugStringConvertible { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13765,7 +13694,7 @@ extension ResourceNotFoundException { } /// The requested resource wasn't found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14794,9 +14723,8 @@ extension ServiceQuotaExceededException: Swift.CustomDebugStringConvertible { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14810,7 +14738,7 @@ extension ServiceQuotaExceededException { } /// A quota was exceeded. For more information, see [Proton Quotas](https://docs.aws.amazon.com/proton/latest/userguide/ag-limits.html) in the Proton User Guide. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16366,9 +16294,8 @@ extension ThrottlingException: Swift.CustomDebugStringConvertible { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16382,7 +16309,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16639,9 +16566,8 @@ public enum UpdateAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettings = output.accountSettings } else { @@ -16853,9 +16779,8 @@ public enum UpdateComponentOutputError: Swift.Error, Swift.Equatable { extension UpdateComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.component = output.component } else { @@ -17011,9 +16936,8 @@ public enum UpdateEnvironmentAccountConnectionOutputError: Swift.Error, Swift.Eq extension UpdateEnvironmentAccountConnectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentAccountConnectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentAccountConnection = output.environmentAccountConnection } else { @@ -17259,9 +17183,8 @@ public enum UpdateEnvironmentOutputError: Swift.Error, Swift.Equatable { extension UpdateEnvironmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environment = output.environment } else { @@ -17410,9 +17333,8 @@ public enum UpdateEnvironmentTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateEnvironmentTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentTemplate = output.environmentTemplate } else { @@ -17587,9 +17509,8 @@ public enum UpdateEnvironmentTemplateVersionOutputError: Swift.Error, Swift.Equa extension UpdateEnvironmentTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEnvironmentTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.environmentTemplateVersion = output.environmentTemplateVersion } else { @@ -17865,9 +17786,8 @@ public enum UpdateServiceInstanceOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceInstance = output.serviceInstance } else { @@ -17941,9 +17861,8 @@ public enum UpdateServiceOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -18118,9 +18037,8 @@ public enum UpdateServicePipelineOutputError: Swift.Error, Swift.Equatable { extension UpdateServicePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServicePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipeline = output.pipeline } else { @@ -18253,9 +18171,8 @@ public enum UpdateServiceSyncBlockerOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceSyncBlockerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceSyncBlockerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceInstanceName = output.serviceInstanceName self.serviceName = output.serviceName @@ -18448,9 +18365,8 @@ public enum UpdateServiceSyncConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceSyncConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceSyncConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSyncConfig = output.serviceSyncConfig } else { @@ -18598,9 +18514,8 @@ public enum UpdateServiceTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceTemplate = output.serviceTemplate } else { @@ -18823,9 +18738,8 @@ public enum UpdateServiceTemplateVersionOutputError: Swift.Error, Swift.Equatabl extension UpdateServiceTemplateVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceTemplateVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceTemplateVersion = output.serviceTemplateVersion } else { @@ -19009,9 +18923,8 @@ public enum UpdateTemplateSyncConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateTemplateSyncConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTemplateSyncConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.templateSyncConfig = output.templateSyncConfig } else { @@ -19055,9 +18968,8 @@ extension ValidationException: Swift.CustomDebugStringConvertible { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19071,7 +18983,7 @@ extension ValidationException { } /// The input is invalid or an out-of-range value was supplied for the input parameter. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSQLDB/QLDBClient.swift b/Sources/Services/AWSQLDB/QLDBClient.swift index 54f3b092c9c..616085d16a7 100644 --- a/Sources/Services/AWSQLDB/QLDBClient.swift +++ b/Sources/Services/AWSQLDB/QLDBClient.swift @@ -208,6 +208,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJournalKinesisStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLedger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLedger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJournalKinesisStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -319,7 +323,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +343,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJournalS3Export") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -351,7 +356,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -371,6 +376,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLedger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -383,7 +389,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -403,6 +409,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportJournalToS3") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +425,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -438,6 +445,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -453,7 +461,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -473,6 +481,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDigest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +494,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +514,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +530,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +550,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJournalKinesisStreamsForLedger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -553,7 +564,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -573,6 +584,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJournalS3Exports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -586,7 +598,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -606,6 +618,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJournalS3ExportsForLedger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -619,7 +632,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -639,6 +652,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLedgers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -652,7 +666,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -672,6 +686,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -684,7 +699,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -704,6 +719,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "streamJournalToKinesis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -719,7 +735,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -739,6 +755,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -754,7 +771,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -774,6 +791,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -787,7 +805,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -807,6 +825,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLedger") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -822,7 +841,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -842,6 +861,7 @@ extension QLDBClient: QLDBClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLedgerPermissionsMode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -857,7 +877,7 @@ extension QLDBClient: QLDBClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSQLDB/models/Models.swift b/Sources/Services/AWSQLDB/models/Models.swift index 385501daaa2..3ad9b66f65b 100644 --- a/Sources/Services/AWSQLDB/models/Models.swift +++ b/Sources/Services/AWSQLDB/models/Models.swift @@ -69,9 +69,8 @@ public enum CancelJournalKinesisStreamOutputError: Swift.Error, Swift.Equatable extension CancelJournalKinesisStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelJournalKinesisStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamId = output.streamId } else { @@ -276,9 +275,8 @@ public enum CreateLedgerOutputError: Swift.Error, Swift.Equatable { extension CreateLedgerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLedgerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -511,9 +509,8 @@ public enum DescribeJournalKinesisStreamOutputError: Swift.Error, Swift.Equatabl extension DescribeJournalKinesisStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJournalKinesisStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stream = output.stream } else { @@ -613,9 +610,8 @@ public enum DescribeJournalS3ExportOutputError: Swift.Error, Swift.Equatable { extension DescribeJournalS3ExportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJournalS3ExportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportDescription = output.exportDescription } else { @@ -710,9 +706,8 @@ public enum DescribeLedgerOutputError: Swift.Error, Swift.Equatable { extension DescribeLedgerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLedgerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -1016,9 +1011,8 @@ public enum ExportJournalToS3OutputError: Swift.Error, Swift.Equatable { extension ExportJournalToS3OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportJournalToS3OutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportId = output.exportId } else { @@ -1197,9 +1191,8 @@ extension GetBlockOutputResponse: Swift.CustomDebugStringConvertible { extension GetBlockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.block = output.block self.proof = output.proof @@ -1311,9 +1304,8 @@ extension GetDigestOutputResponse: Swift.CustomDebugStringConvertible { extension GetDigestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDigestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.digest = output.digest self.digestTipAddress = output.digestTipAddress @@ -1481,9 +1473,8 @@ extension GetRevisionOutputResponse: Swift.CustomDebugStringConvertible { extension GetRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.proof = output.proof self.revision = output.revision @@ -1533,9 +1524,8 @@ extension GetRevisionOutputResponseBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.parameterName = output.parameterName @@ -1551,7 +1541,7 @@ extension InvalidParameterException { } /// One or more parameters in the request aren't valid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2065,9 +2055,8 @@ extension QLDBClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -2083,7 +2072,7 @@ extension LimitExceededException { } /// You have reached the limit on the maximum number of resources allowed. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2209,9 +2198,8 @@ public enum ListJournalKinesisStreamsForLedgerOutputError: Swift.Error, Swift.Eq extension ListJournalKinesisStreamsForLedgerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJournalKinesisStreamsForLedgerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streams = output.streams @@ -2347,9 +2335,8 @@ public enum ListJournalS3ExportsForLedgerOutputError: Swift.Error, Swift.Equatab extension ListJournalS3ExportsForLedgerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJournalS3ExportsForLedgerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.journalS3Exports = output.journalS3Exports self.nextToken = output.nextToken @@ -2477,9 +2464,8 @@ public enum ListJournalS3ExportsOutputError: Swift.Error, Swift.Equatable { extension ListJournalS3ExportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJournalS3ExportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.journalS3Exports = output.journalS3Exports self.nextToken = output.nextToken @@ -2607,9 +2593,8 @@ public enum ListLedgersOutputError: Swift.Error, Swift.Equatable { extension ListLedgersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLedgersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ledgers = output.ledgers self.nextToken = output.nextToken @@ -2726,9 +2711,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2841,9 +2825,8 @@ extension QLDBClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -2861,7 +2844,7 @@ extension ResourceAlreadyExistsException { } /// The specified resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2913,9 +2896,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -2933,7 +2915,7 @@ extension ResourceInUseException { } /// The specified resource can't be modified at this time. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2985,9 +2967,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -3005,7 +2986,7 @@ extension ResourceNotFoundException { } /// The specified resource doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3057,9 +3038,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourcePreconditionNotMetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourcePreconditionNotMetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -3077,7 +3057,7 @@ extension ResourcePreconditionNotMetException { } /// The operation failed because a condition wasn't satisfied in advance. -public struct ResourcePreconditionNotMetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourcePreconditionNotMetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3433,9 +3413,8 @@ public enum StreamJournalToKinesisOutputError: Swift.Error, Swift.Equatable { extension StreamJournalToKinesisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StreamJournalToKinesisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamId = output.streamId } else { @@ -3817,9 +3796,8 @@ public enum UpdateLedgerOutputError: Swift.Error, Swift.Equatable { extension UpdateLedgerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLedgerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDateTime = output.creationDateTime @@ -3995,9 +3973,8 @@ public enum UpdateLedgerPermissionsModeOutputError: Swift.Error, Swift.Equatable extension UpdateLedgerPermissionsModeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLedgerPermissionsModeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name diff --git a/Sources/Services/AWSQLDBSession/QLDBSessionClient.swift b/Sources/Services/AWSQLDBSession/QLDBSessionClient.swift index 3bb92e86c8e..5fff8c9119d 100644 --- a/Sources/Services/AWSQLDBSession/QLDBSessionClient.swift +++ b/Sources/Services/AWSQLDBSession/QLDBSessionClient.swift @@ -212,6 +212,7 @@ extension QLDBSessionClient: QLDBSessionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "qldb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendCommand") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -228,7 +229,7 @@ extension QLDBSessionClient: QLDBSessionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSQLDBSession/models/Models.swift b/Sources/Services/AWSQLDBSession/models/Models.swift index cf5c60ebb38..3b4ab329cf3 100644 --- a/Sources/Services/AWSQLDBSession/models/Models.swift +++ b/Sources/Services/AWSQLDBSession/models/Models.swift @@ -59,9 +59,8 @@ extension QLDBSessionClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -77,7 +76,7 @@ extension BadRequestException { } /// Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -120,9 +119,8 @@ extension BadRequestExceptionBody: Swift.Decodable { extension CapacityExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CapacityExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -136,7 +134,7 @@ extension CapacityExceededException { } /// Returned when the request exceeds the processing capacity of the ledger. -public struct CapacityExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CapacityExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -610,9 +608,8 @@ extension QLDBSessionClientTypes { extension InvalidSessionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidSessionExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -628,7 +625,7 @@ extension InvalidSessionException { } /// Returned if the session doesn't exist anymore because it timed out or expired. -public struct InvalidSessionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSessionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -671,9 +668,8 @@ extension InvalidSessionExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -687,7 +683,7 @@ extension LimitExceededException { } /// Returned if a resource limit such as number of active sessions is exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -723,9 +719,8 @@ extension LimitExceededExceptionBody: Swift.Decodable { extension OccConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OccConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -739,7 +734,7 @@ extension OccConflictException { } /// Returned when a transaction cannot be written to the journal due to a failure in the verification phase of optimistic concurrency control (OCC). -public struct OccConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OccConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -832,9 +827,8 @@ extension QLDBSessionClientTypes { extension RateExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RateExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -848,7 +842,7 @@ extension RateExceededException { } /// Returned when the rate of requests exceeds the allowed throughput. -public struct RateExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RateExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1047,9 +1041,8 @@ public enum SendCommandOutputError: Swift.Error, Swift.Equatable { extension SendCommandOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendCommandOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abortTransaction = output.abortTransaction self.commitTransaction = output.commitTransaction diff --git a/Sources/Services/AWSQuickSight/QuickSightClient.swift b/Sources/Services/AWSQuickSight/QuickSightClient.swift index da2041c6c25..f80988345fb 100644 --- a/Sources/Services/AWSQuickSight/QuickSightClient.swift +++ b/Sources/Services/AWSQuickSight/QuickSightClient.swift @@ -208,6 +208,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelIngestion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccountCustomization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -256,7 +258,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -276,6 +278,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccountSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -291,7 +294,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -311,6 +314,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -326,7 +330,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -346,6 +350,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDashboard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -361,7 +366,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -381,6 +386,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -396,7 +402,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -416,6 +422,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -431,7 +438,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -451,6 +458,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -466,7 +474,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -486,6 +494,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFolderMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -498,7 +507,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -518,6 +527,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -533,7 +543,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -553,6 +563,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroupMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -565,7 +576,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -585,6 +596,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIAMPolicyAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -600,7 +612,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -620,6 +632,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIngestion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -635,7 +648,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -655,6 +668,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -670,7 +684,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -690,6 +704,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRefreshSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -705,7 +720,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -725,6 +740,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -740,7 +756,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -760,6 +776,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTemplateAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -775,7 +792,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -795,6 +812,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTheme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -810,7 +828,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -830,6 +848,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createThemeAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -845,7 +864,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -865,6 +884,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccountCustomization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -878,7 +898,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -898,6 +918,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccountSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -910,7 +931,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -930,6 +951,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -943,7 +965,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -963,6 +985,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDashboard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -976,7 +999,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -996,6 +1019,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1008,7 +1032,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1028,6 +1052,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataSetRefreshProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1040,7 +1065,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1060,6 +1085,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1072,7 +1098,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1092,6 +1118,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1131,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1151,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFolderMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1136,7 +1164,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1156,6 +1184,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1168,7 +1197,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1188,6 +1217,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroupMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1200,7 +1230,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1220,6 +1250,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIAMPolicyAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1263,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1283,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1264,7 +1296,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1284,6 +1316,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRefreshSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1296,7 +1329,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1316,6 +1349,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1329,7 +1363,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1349,6 +1383,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTemplateAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1361,7 +1396,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1381,6 +1416,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTheme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1394,7 +1430,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1414,6 +1450,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteThemeAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1426,7 +1463,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1446,6 +1483,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1458,7 +1496,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1478,6 +1516,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserByPrincipalId") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1490,7 +1529,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1527,6 +1566,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountCustomization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1540,7 +1580,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1560,6 +1600,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1572,7 +1613,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1592,6 +1633,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1604,7 +1646,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1624,6 +1666,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1636,7 +1679,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1656,6 +1699,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAnalysisDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1668,7 +1712,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1688,6 +1732,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAnalysisPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1745,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1765,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDashboard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1733,7 +1779,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1753,6 +1799,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDashboardDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1766,7 +1813,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1786,6 +1833,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDashboardPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1798,7 +1846,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1818,6 +1866,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1830,7 +1879,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1850,6 +1899,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSetPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1862,7 +1912,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1882,6 +1932,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSetRefreshProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1894,7 +1945,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1914,6 +1965,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1926,7 +1978,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1946,6 +1998,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSourcePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1958,7 +2011,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1978,6 +2031,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1990,7 +2044,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2010,6 +2064,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFolderPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2022,7 +2077,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2042,6 +2097,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFolderResolvedPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2054,7 +2110,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2074,6 +2130,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2086,7 +2143,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2106,6 +2163,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGroupMembership") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2118,7 +2176,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2138,6 +2196,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIAMPolicyAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2150,7 +2209,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2170,6 +2229,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIngestion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2182,7 +2242,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2202,6 +2262,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIpRestriction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2214,7 +2275,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2234,6 +2295,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2246,7 +2308,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2266,6 +2328,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRefreshSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2278,7 +2341,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2298,6 +2361,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2311,7 +2375,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2331,6 +2395,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTemplateAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2343,7 +2408,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2363,6 +2428,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTemplateDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2376,7 +2442,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2396,6 +2462,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTemplatePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2408,7 +2475,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2428,6 +2495,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTheme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2441,7 +2509,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2461,6 +2529,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeThemeAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2473,7 +2542,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2493,6 +2562,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeThemePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2505,7 +2575,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2525,6 +2595,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2537,7 +2608,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2566,6 +2637,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateEmbedUrlForAnonymousUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2581,7 +2653,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2610,6 +2682,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateEmbedUrlForRegisteredUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2625,7 +2698,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2658,6 +2731,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDashboardEmbedUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2671,7 +2745,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2695,6 +2769,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSessionEmbedUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2708,7 +2783,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2728,6 +2803,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnalyses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2741,7 +2817,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2761,6 +2837,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDashboardVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2774,7 +2851,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2794,6 +2871,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDashboards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2807,7 +2885,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2827,6 +2905,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2840,7 +2919,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2860,6 +2939,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2873,7 +2953,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2893,6 +2973,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFolderMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2906,7 +2987,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2926,6 +3007,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFolders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2939,7 +3021,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2959,6 +3041,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupMemberships") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2972,7 +3055,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2992,6 +3075,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3005,7 +3089,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3025,6 +3109,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIAMPolicyAssignments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3041,7 +3126,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3061,6 +3146,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIAMPolicyAssignmentsForUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3074,7 +3160,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3094,6 +3180,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIngestions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3107,7 +3194,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3127,6 +3214,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNamespaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3140,7 +3228,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3160,6 +3248,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRefreshSchedules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3172,7 +3261,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3192,6 +3281,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3204,7 +3294,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3224,6 +3314,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplateAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3237,7 +3328,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3257,6 +3348,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplateVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3270,7 +3362,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3290,6 +3382,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3303,7 +3396,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3323,6 +3416,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThemeAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3336,7 +3430,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3356,6 +3450,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThemeVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3369,7 +3464,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3389,6 +3484,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listThemes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3402,7 +3498,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3422,6 +3518,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3435,7 +3532,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3455,6 +3552,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3468,7 +3566,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3488,6 +3586,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDataSetRefreshProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3503,7 +3602,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3523,6 +3622,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3538,7 +3638,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3558,6 +3658,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3570,7 +3671,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3590,6 +3691,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchAnalyses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3605,7 +3707,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3625,6 +3727,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchDashboards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3640,7 +3743,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3660,6 +3763,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchDataSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3675,7 +3779,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3695,6 +3799,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchDataSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3710,7 +3815,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3730,6 +3835,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchFolders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3745,7 +3851,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3765,6 +3871,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3781,7 +3888,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3805,6 +3912,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3820,7 +3928,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3840,6 +3948,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3853,7 +3962,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3873,6 +3982,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountCustomization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3889,7 +3999,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3909,6 +4019,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3924,7 +4035,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3944,6 +4055,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3959,7 +4071,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3979,6 +4091,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAnalysisPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3994,7 +4107,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4014,6 +4127,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDashboard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4029,7 +4143,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4049,6 +4163,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDashboardPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4064,7 +4179,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4084,6 +4199,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDashboardPublishedVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4096,7 +4212,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4116,6 +4232,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4131,7 +4248,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4151,6 +4268,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataSetPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4166,7 +4284,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4186,6 +4304,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4201,7 +4320,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4221,6 +4340,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDataSourcePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4236,7 +4356,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4256,6 +4376,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4271,7 +4392,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4291,6 +4412,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFolderPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4306,7 +4428,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4326,6 +4448,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4341,7 +4464,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4361,6 +4484,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIAMPolicyAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4376,7 +4500,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4396,6 +4520,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIpRestriction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4411,7 +4536,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4431,6 +4556,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePublicSharingSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4446,7 +4572,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4466,6 +4592,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRefreshSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4481,7 +4608,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4501,6 +4628,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4516,7 +4644,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4536,6 +4664,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTemplateAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4551,7 +4680,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4571,6 +4700,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTemplatePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4586,7 +4716,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4606,6 +4736,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTheme") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4621,7 +4752,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4641,6 +4772,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThemeAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4656,7 +4788,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4718,6 +4850,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateThemePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4733,7 +4866,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4753,6 +4886,7 @@ extension QuickSightClient: QuickSightClientProtocol { .withRegion(value: config.region) .withSigningName(value: "quicksight") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4768,7 +4902,7 @@ extension QuickSightClient: QuickSightClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSQuickSight/models/Models.swift b/Sources/Services/AWSQuickSight/models/Models.swift index aacdb82325f..7a863610c37 100644 --- a/Sources/Services/AWSQuickSight/models/Models.swift +++ b/Sources/Services/AWSQuickSight/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon QuickSight service, that your policies have the correct permissions, and that you are using the correct credentials. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4362,9 +4361,8 @@ public enum CancelIngestionOutputError: Swift.Error, Swift.Equatable { extension CancelIngestionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelIngestionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.ingestionId = output.ingestionId @@ -6754,9 +6752,8 @@ extension QuickSightClientTypes { extension ConcurrentUpdatingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentUpdatingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -6772,7 +6769,7 @@ extension ConcurrentUpdatingException { } /// A resource is already in a state that indicates an operation is happening that must complete before a new update can be applied. -public struct ConcurrentUpdatingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentUpdatingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7299,9 +7296,8 @@ extension QuickSightClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -7317,7 +7313,7 @@ extension ConflictException { } /// Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7553,9 +7549,8 @@ public enum CreateAccountCustomizationOutputError: Swift.Error, Swift.Equatable extension CreateAccountCustomizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccountCustomizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountCustomization = output.accountCustomization self.arn = output.arn @@ -7940,9 +7935,8 @@ public enum CreateAccountSubscriptionOutputError: Swift.Error, Swift.Equatable { extension CreateAccountSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccountSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.signupResponse = output.signupResponse @@ -8196,9 +8190,8 @@ public enum CreateAnalysisOutputError: Swift.Error, Swift.Equatable { extension CreateAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisId = output.analysisId self.arn = output.arn @@ -8550,9 +8543,8 @@ public enum CreateDashboardOutputError: Swift.Error, Swift.Equatable { extension CreateDashboardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDashboardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationStatus = output.creationStatus @@ -8965,9 +8957,8 @@ public enum CreateDataSetOutputError: Swift.Error, Swift.Equatable { extension CreateDataSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.dataSetId = output.dataSetId @@ -9274,9 +9265,8 @@ public enum CreateDataSourceOutputError: Swift.Error, Swift.Equatable { extension CreateDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationStatus = output.creationStatus @@ -9580,9 +9570,8 @@ public enum CreateFolderMembershipOutputError: Swift.Error, Swift.Equatable { extension CreateFolderMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFolderMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.folderMember = output.folderMember self.requestId = output.requestId @@ -9679,9 +9668,8 @@ public enum CreateFolderOutputError: Swift.Error, Swift.Equatable { extension CreateFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.folderId = output.folderId @@ -9915,9 +9903,8 @@ public enum CreateGroupMembershipOutputError: Swift.Error, Swift.Equatable { extension CreateGroupMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupMember = output.groupMember self.requestId = output.requestId @@ -10013,9 +10000,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group self.requestId = output.requestId @@ -10237,9 +10223,8 @@ public enum CreateIAMPolicyAssignmentOutputError: Swift.Error, Swift.Equatable { extension CreateIAMPolicyAssignmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIAMPolicyAssignmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assignmentId = output.assignmentId self.assignmentName = output.assignmentName @@ -10464,9 +10449,8 @@ public enum CreateIngestionOutputError: Swift.Error, Swift.Equatable { extension CreateIngestionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIngestionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.ingestionId = output.ingestionId @@ -10677,9 +10661,8 @@ public enum CreateNamespaceOutputError: Swift.Error, Swift.Equatable { extension CreateNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.capacityRegion = output.capacityRegion @@ -10877,9 +10860,8 @@ public enum CreateRefreshScheduleOutputError: Swift.Error, Swift.Equatable { extension CreateRefreshScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRefreshScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.requestId = output.requestId @@ -11053,9 +11035,8 @@ public enum CreateTemplateAliasOutputError: Swift.Error, Swift.Equatable { extension CreateTemplateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTemplateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.templateAlias = output.templateAlias @@ -11298,9 +11279,8 @@ public enum CreateTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationStatus = output.creationStatus @@ -11496,9 +11476,8 @@ public enum CreateThemeAliasOutputError: Swift.Error, Swift.Equatable { extension CreateThemeAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateThemeAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.themeAlias = output.themeAlias @@ -11742,9 +11721,8 @@ public enum CreateThemeOutputError: Swift.Error, Swift.Equatable { extension CreateThemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateThemeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationStatus = output.creationStatus @@ -18055,9 +18033,8 @@ public enum DeleteAccountCustomizationOutputError: Swift.Error, Swift.Equatable extension DeleteAccountCustomizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAccountCustomizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -18170,9 +18147,8 @@ public enum DeleteAccountSubscriptionOutputError: Swift.Error, Swift.Equatable { extension DeleteAccountSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAccountSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -18316,9 +18292,8 @@ public enum DeleteAnalysisOutputError: Swift.Error, Swift.Equatable { extension DeleteAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisId = output.analysisId self.arn = output.arn @@ -18484,9 +18459,8 @@ public enum DeleteDashboardOutputError: Swift.Error, Swift.Equatable { extension DeleteDashboardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDashboardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.dashboardId = output.dashboardId @@ -18623,9 +18597,8 @@ public enum DeleteDataSetOutputError: Swift.Error, Swift.Equatable { extension DeleteDataSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDataSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.dataSetId = output.dataSetId @@ -18766,9 +18739,8 @@ public enum DeleteDataSetRefreshPropertiesOutputError: Swift.Error, Swift.Equata extension DeleteDataSetRefreshPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDataSetRefreshPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -18885,9 +18857,8 @@ public enum DeleteDataSourceOutputError: Swift.Error, Swift.Equatable { extension DeleteDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.dataSourceId = output.dataSourceId @@ -19081,9 +19052,8 @@ public enum DeleteFolderMembershipOutputError: Swift.Error, Swift.Equatable { extension DeleteFolderMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFolderMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.status = output.status @@ -19168,9 +19138,8 @@ public enum DeleteFolderOutputError: Swift.Error, Swift.Equatable { extension DeleteFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.folderId = output.folderId @@ -19374,9 +19343,8 @@ public enum DeleteGroupMembershipOutputError: Swift.Error, Swift.Equatable { extension DeleteGroupMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGroupMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -19458,9 +19426,8 @@ public enum DeleteGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -19589,9 +19556,8 @@ public enum DeleteIAMPolicyAssignmentOutputError: Swift.Error, Swift.Equatable { extension DeleteIAMPolicyAssignmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIAMPolicyAssignmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assignmentName = output.assignmentName self.requestId = output.requestId @@ -19722,9 +19688,8 @@ public enum DeleteNamespaceOutputError: Swift.Error, Swift.Equatable { extension DeleteNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -19851,9 +19816,8 @@ public enum DeleteRefreshScheduleOutputError: Swift.Error, Swift.Equatable { extension DeleteRefreshScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRefreshScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.requestId = output.requestId @@ -19998,9 +19962,8 @@ public enum DeleteTemplateAliasOutputError: Swift.Error, Swift.Equatable { extension DeleteTemplateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTemplateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliasName = output.aliasName self.arn = output.arn @@ -20168,9 +20131,8 @@ public enum DeleteTemplateOutputError: Swift.Error, Swift.Equatable { extension DeleteTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.requestId = output.requestId @@ -20317,9 +20279,8 @@ public enum DeleteThemeAliasOutputError: Swift.Error, Swift.Equatable { extension DeleteThemeAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteThemeAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliasName = output.aliasName self.arn = output.arn @@ -20487,9 +20448,8 @@ public enum DeleteThemeOutputError: Swift.Error, Swift.Equatable { extension DeleteThemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteThemeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.requestId = output.requestId @@ -20639,9 +20599,8 @@ public enum DeleteUserByPrincipalIdOutputError: Swift.Error, Swift.Equatable { extension DeleteUserByPrincipalIdOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteUserByPrincipalIdOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -20770,9 +20729,8 @@ public enum DeleteUserOutputError: Swift.Error, Swift.Equatable { extension DeleteUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -20908,9 +20866,8 @@ public enum DescribeAccountCustomizationOutputError: Swift.Error, Swift.Equatabl extension DescribeAccountCustomizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountCustomizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountCustomization = output.accountCustomization self.arn = output.arn @@ -21061,9 +21018,8 @@ public enum DescribeAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettings = output.accountSettings self.requestId = output.requestId @@ -21184,9 +21140,8 @@ public enum DescribeAccountSubscriptionOutputError: Swift.Error, Swift.Equatable extension DescribeAccountSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountInfo = output.accountInfo self.requestId = output.requestId @@ -21329,9 +21284,8 @@ public enum DescribeAnalysisDefinitionOutputError: Swift.Error, Swift.Equatable extension DescribeAnalysisDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAnalysisDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisId = output.analysisId self.definition = output.definition @@ -21533,9 +21487,8 @@ public enum DescribeAnalysisOutputError: Swift.Error, Swift.Equatable { extension DescribeAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysis = output.analysis self.requestId = output.requestId @@ -21662,9 +21615,8 @@ public enum DescribeAnalysisPermissionsOutputError: Swift.Error, Swift.Equatable extension DescribeAnalysisPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAnalysisPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisArn = output.analysisArn self.analysisId = output.analysisId @@ -21851,9 +21803,8 @@ public enum DescribeDashboardDefinitionOutputError: Swift.Error, Swift.Equatable extension DescribeDashboardDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDashboardDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardId = output.dashboardId self.dashboardPublishOptions = output.dashboardPublishOptions @@ -22096,9 +22047,8 @@ public enum DescribeDashboardOutputError: Swift.Error, Swift.Equatable { extension DescribeDashboardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDashboardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboard = output.dashboard self.requestId = output.requestId @@ -22225,9 +22175,8 @@ public enum DescribeDashboardPermissionsOutputError: Swift.Error, Swift.Equatabl extension DescribeDashboardPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDashboardPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardArn = output.dashboardArn self.dashboardId = output.dashboardId @@ -22393,9 +22342,8 @@ public enum DescribeDataSetOutputError: Swift.Error, Swift.Equatable { extension DescribeDataSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSet = output.dataSet self.requestId = output.requestId @@ -22522,9 +22470,8 @@ public enum DescribeDataSetPermissionsOutputError: Swift.Error, Swift.Equatable extension DescribeDataSetPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSetPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSetArn = output.dataSetArn self.dataSetId = output.dataSetId @@ -22684,9 +22631,8 @@ public enum DescribeDataSetRefreshPropertiesOutputError: Swift.Error, Swift.Equa extension DescribeDataSetRefreshPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSetRefreshPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSetRefreshProperties = output.dataSetRefreshProperties self.requestId = output.requestId @@ -22813,9 +22759,8 @@ public enum DescribeDataSourceOutputError: Swift.Error, Swift.Equatable { extension DescribeDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSource = output.dataSource self.requestId = output.requestId @@ -22942,9 +22887,8 @@ public enum DescribeDataSourcePermissionsOutputError: Swift.Error, Swift.Equatab extension DescribeDataSourcePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSourcePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceArn = output.dataSourceArn self.dataSourceId = output.dataSourceId @@ -23102,9 +23046,8 @@ public enum DescribeFolderOutputError: Swift.Error, Swift.Equatable { extension DescribeFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.folder = output.folder self.requestId = output.requestId @@ -23233,9 +23176,8 @@ public enum DescribeFolderPermissionsOutputError: Swift.Error, Swift.Equatable { extension DescribeFolderPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFolderPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.folderId = output.folderId @@ -23393,9 +23335,8 @@ public enum DescribeFolderResolvedPermissionsOutputError: Swift.Error, Swift.Equ extension DescribeFolderResolvedPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFolderResolvedPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.folderId = output.folderId @@ -23618,9 +23559,8 @@ public enum DescribeGroupMembershipOutputError: Swift.Error, Swift.Equatable { extension DescribeGroupMembershipOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGroupMembershipOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupMember = output.groupMember self.requestId = output.requestId @@ -23712,9 +23652,8 @@ public enum DescribeGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group self.requestId = output.requestId @@ -23851,9 +23790,8 @@ public enum DescribeIAMPolicyAssignmentOutputError: Swift.Error, Swift.Equatable extension DescribeIAMPolicyAssignmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIAMPolicyAssignmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iamPolicyAssignment = output.iamPolicyAssignment self.requestId = output.requestId @@ -23990,9 +23928,8 @@ public enum DescribeIngestionOutputError: Swift.Error, Swift.Equatable { extension DescribeIngestionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIngestionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ingestion = output.ingestion self.requestId = output.requestId @@ -24111,9 +24048,8 @@ public enum DescribeIpRestrictionOutputError: Swift.Error, Swift.Equatable { extension DescribeIpRestrictionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIpRestrictionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsAccountId = output.awsAccountId self.enabled = output.enabled @@ -24271,9 +24207,8 @@ public enum DescribeNamespaceOutputError: Swift.Error, Swift.Equatable { extension DescribeNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespace = output.namespace self.requestId = output.requestId @@ -24410,9 +24345,8 @@ public enum DescribeRefreshScheduleOutputError: Swift.Error, Swift.Equatable { extension DescribeRefreshScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRefreshScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.refreshSchedule = output.refreshSchedule @@ -24555,9 +24489,8 @@ public enum DescribeTemplateAliasOutputError: Swift.Error, Swift.Equatable { extension DescribeTemplateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTemplateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.templateAlias = output.templateAlias @@ -24715,9 +24648,8 @@ public enum DescribeTemplateDefinitionOutputError: Swift.Error, Swift.Equatable extension DescribeTemplateDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTemplateDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definition = output.definition self.errors = output.errors @@ -24948,9 +24880,8 @@ public enum DescribeTemplateOutputError: Swift.Error, Swift.Equatable { extension DescribeTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.template = output.template @@ -25079,9 +25010,8 @@ public enum DescribeTemplatePermissionsOutputError: Swift.Error, Swift.Equatable extension DescribeTemplatePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTemplatePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissions = output.permissions self.requestId = output.requestId @@ -25247,9 +25177,8 @@ public enum DescribeThemeAliasOutputError: Swift.Error, Swift.Equatable { extension DescribeThemeAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeThemeAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.themeAlias = output.themeAlias @@ -25405,9 +25334,8 @@ public enum DescribeThemeOutputError: Swift.Error, Swift.Equatable { extension DescribeThemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeThemeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.theme = output.theme @@ -25536,9 +25464,8 @@ public enum DescribeThemePermissionsOutputError: Swift.Error, Swift.Equatable { extension DescribeThemePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeThemePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissions = output.permissions self.requestId = output.requestId @@ -25706,9 +25633,8 @@ public enum DescribeUserOutputError: Swift.Error, Swift.Equatable { extension DescribeUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.user = output.user @@ -25886,9 +25812,8 @@ extension QuickSightClientTypes { extension DomainNotWhitelistedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DomainNotWhitelistedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -25904,7 +25829,7 @@ extension DomainNotWhitelistedException { } /// The domain specified isn't on the allow list. All domains for embedded dashboards must be added to the approved list by an Amazon QuickSight admin. -public struct DomainNotWhitelistedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DomainNotWhitelistedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31548,9 +31473,8 @@ extension GenerateEmbedUrlForAnonymousUserOutputResponse: Swift.CustomDebugStrin extension GenerateEmbedUrlForAnonymousUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateEmbedUrlForAnonymousUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.anonymousUserArn = output.anonymousUserArn self.embedUrl = output.embedUrl @@ -31770,9 +31694,8 @@ extension GenerateEmbedUrlForRegisteredUserOutputResponse: Swift.CustomDebugStri extension GenerateEmbedUrlForRegisteredUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateEmbedUrlForRegisteredUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.embedUrl = output.embedUrl self.requestId = output.requestId @@ -32710,9 +32633,8 @@ extension GetDashboardEmbedUrlOutputResponse: Swift.CustomDebugStringConvertible extension GetDashboardEmbedUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDashboardEmbedUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.embedUrl = output.embedUrl self.requestId = output.requestId @@ -32899,9 +32821,8 @@ extension GetSessionEmbedUrlOutputResponse: Swift.CustomDebugStringConvertible { extension GetSessionEmbedUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSessionEmbedUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.embedUrl = output.embedUrl self.requestId = output.requestId @@ -34891,9 +34812,8 @@ extension QuickSightClientTypes { extension IdentityTypeNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdentityTypeNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -34909,7 +34829,7 @@ extension IdentityTypeNotSupportedException { } /// The identity type specified isn't supported. Supported identity types include IAM and QUICKSIGHT. -public struct IdentityTypeNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdentityTypeNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35923,9 +35843,8 @@ extension QuickSightClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -35941,7 +35860,7 @@ extension InternalFailureException { } /// An internal failure occurred. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35985,9 +35904,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -36003,7 +35921,7 @@ extension InvalidNextTokenException { } /// The NextToken value isn't valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36047,9 +35965,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -36065,7 +35982,7 @@ extension InvalidParameterValueException { } /// One or more parameters has a value that isn't valid. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36109,9 +36026,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -36127,7 +36043,7 @@ extension InvalidRequestException { } /// You don't have this feature activated for your account. To fix this issue, contact Amazon Web Services support. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37303,9 +37219,8 @@ extension QuickSightClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -37323,7 +37238,7 @@ extension LimitExceededException { } /// A limit is exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -38581,9 +38496,8 @@ public enum ListAnalysesOutputError: Swift.Error, Swift.Equatable { extension ListAnalysesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnalysesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisSummaryList = output.analysisSummaryList self.nextToken = output.nextToken @@ -38881,9 +38795,8 @@ public enum ListDashboardVersionsOutputError: Swift.Error, Swift.Equatable { extension ListDashboardVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDashboardVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardVersionSummaryList = output.dashboardVersionSummaryList self.nextToken = output.nextToken @@ -39044,9 +38957,8 @@ public enum ListDashboardsOutputError: Swift.Error, Swift.Equatable { extension ListDashboardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDashboardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardSummaryList = output.dashboardSummaryList self.nextToken = output.nextToken @@ -39209,9 +39121,8 @@ public enum ListDataSetsOutputError: Swift.Error, Swift.Equatable { extension ListDataSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSetSummaries = output.dataSetSummaries self.nextToken = output.nextToken @@ -39374,9 +39285,8 @@ public enum ListDataSourcesOutputError: Swift.Error, Swift.Equatable { extension ListDataSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSources = output.dataSources self.nextToken = output.nextToken @@ -39551,9 +39461,8 @@ public enum ListFolderMembersOutputError: Swift.Error, Swift.Equatable { extension ListFolderMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFolderMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.folderMemberList = output.folderMemberList self.nextToken = output.nextToken @@ -39720,9 +39629,8 @@ public enum ListFoldersOutputError: Swift.Error, Swift.Equatable { extension ListFoldersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFoldersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.folderSummaryList = output.folderSummaryList self.nextToken = output.nextToken @@ -39907,9 +39815,8 @@ public enum ListGroupMembershipsOutputError: Swift.Error, Swift.Equatable { extension ListGroupMembershipsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupMembershipsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupMemberList = output.groupMemberList self.nextToken = output.nextToken @@ -40086,9 +39993,8 @@ public enum ListGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupList = output.groupList self.nextToken = output.nextToken @@ -40271,9 +40177,8 @@ public enum ListIAMPolicyAssignmentsForUserOutputError: Swift.Error, Swift.Equat extension ListIAMPolicyAssignmentsForUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIAMPolicyAssignmentsForUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeAssignments = output.activeAssignments self.nextToken = output.nextToken @@ -40470,9 +40375,8 @@ public enum ListIAMPolicyAssignmentsOutputError: Swift.Error, Swift.Equatable { extension ListIAMPolicyAssignmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIAMPolicyAssignmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.iamPolicyAssignments = output.iamPolicyAssignments self.nextToken = output.nextToken @@ -40647,9 +40551,8 @@ public enum ListIngestionsOutputError: Swift.Error, Swift.Equatable { extension ListIngestionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIngestionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ingestions = output.ingestions self.nextToken = output.nextToken @@ -40818,9 +40721,8 @@ public enum ListNamespacesOutputError: Swift.Error, Swift.Equatable { extension ListNamespacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNamespacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespaces = output.namespaces self.nextToken = output.nextToken @@ -40968,9 +40870,8 @@ public enum ListRefreshSchedulesOutputError: Swift.Error, Swift.Equatable { extension ListRefreshSchedulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRefreshSchedulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.refreshSchedules = output.refreshSchedules self.requestId = output.requestId @@ -41098,9 +40999,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.tags = output.tags @@ -41261,9 +41161,8 @@ public enum ListTemplateAliasesOutputError: Swift.Error, Swift.Equatable { extension ListTemplateAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplateAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestId = output.requestId @@ -41436,9 +41335,8 @@ public enum ListTemplateVersionsOutputError: Swift.Error, Swift.Equatable { extension ListTemplateVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplateVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestId = output.requestId @@ -41603,9 +41501,8 @@ public enum ListTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestId = output.requestId @@ -41780,9 +41677,8 @@ public enum ListThemeAliasesOutputError: Swift.Error, Swift.Equatable { extension ListThemeAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThemeAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestId = output.requestId @@ -41957,9 +41853,8 @@ public enum ListThemeVersionsOutputError: Swift.Error, Swift.Equatable { extension ListThemeVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThemeVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestId = output.requestId @@ -42140,9 +42035,8 @@ public enum ListThemesOutputError: Swift.Error, Swift.Equatable { extension ListThemesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListThemesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestId = output.requestId @@ -42325,9 +42219,8 @@ public enum ListUserGroupsOutputError: Swift.Error, Swift.Equatable { extension ListUserGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupList = output.groupList self.nextToken = output.nextToken @@ -42504,9 +42397,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestId = output.requestId @@ -48442,9 +48334,8 @@ extension QuickSightClientTypes { extension PreconditionNotMetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionNotMetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -48460,7 +48351,7 @@ extension PreconditionNotMetException { } /// One or more preconditions aren't met. -public struct PreconditionNotMetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionNotMetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -48861,9 +48752,8 @@ public enum PutDataSetRefreshPropertiesOutputError: Swift.Error, Swift.Equatable extension PutDataSetRefreshPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutDataSetRefreshPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -48958,9 +48848,8 @@ extension QuickSightClientTypes { extension QuickSightUserNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QuickSightUserNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -48976,7 +48865,7 @@ extension QuickSightUserNotFoundException { } /// The user with the provided name isn't found. This error can happen in any operation that requires finding a user based on a provided user name, such as DeleteUser, DescribeUser, and so on. -public struct QuickSightUserNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QuickSightUserNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -50837,9 +50726,8 @@ public enum RegisterUserOutputError: Swift.Error, Swift.Equatable { extension RegisterUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.user = output.user @@ -51666,9 +51554,8 @@ extension QuickSightClientTypes { extension ResourceExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -51686,7 +51573,7 @@ extension ResourceExistsException { } /// The resource specified already exists. -public struct ResourceExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -51738,9 +51625,8 @@ extension ResourceExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -51758,7 +51644,7 @@ extension ResourceNotFoundException { } /// One or more resources can't be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -51922,9 +51808,8 @@ extension QuickSightClientTypes { extension ResourceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -51942,7 +51827,7 @@ extension ResourceUnavailableException { } /// This resource is currently unavailable. -public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -52065,9 +51950,8 @@ public enum RestoreAnalysisOutputError: Swift.Error, Swift.Equatable { extension RestoreAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisId = output.analysisId self.arn = output.arn @@ -53801,9 +53685,8 @@ public enum SearchAnalysesOutputError: Swift.Error, Swift.Equatable { extension SearchAnalysesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchAnalysesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisSummaryList = output.analysisSummaryList self.nextToken = output.nextToken @@ -54004,9 +53887,8 @@ public enum SearchDashboardsOutputError: Swift.Error, Swift.Equatable { extension SearchDashboardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchDashboardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardSummaryList = output.dashboardSummaryList self.nextToken = output.nextToken @@ -54207,9 +54089,8 @@ public enum SearchDataSetsOutputError: Swift.Error, Swift.Equatable { extension SearchDataSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchDataSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSetSummaries = output.dataSetSummaries self.nextToken = output.nextToken @@ -54410,9 +54291,8 @@ public enum SearchDataSourcesOutputError: Swift.Error, Swift.Equatable { extension SearchDataSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchDataSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceSummaries = output.dataSourceSummaries self.nextToken = output.nextToken @@ -54617,9 +54497,8 @@ public enum SearchFoldersOutputError: Swift.Error, Swift.Equatable { extension SearchFoldersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchFoldersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.folderSummaryList = output.folderSummaryList self.nextToken = output.nextToken @@ -54833,9 +54712,8 @@ public enum SearchGroupsOutputError: Swift.Error, Swift.Equatable { extension SearchGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupList = output.groupList self.nextToken = output.nextToken @@ -55547,9 +55425,8 @@ extension QuickSightClientTypes { extension SessionLifetimeInMinutesInvalidException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SessionLifetimeInMinutesInvalidExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -55565,7 +55442,7 @@ extension SessionLifetimeInMinutesInvalidException { } /// The number of minutes specified for the lifetime of a session isn't valid. The session lifetime must be 15-600 minutes. -public struct SessionLifetimeInMinutesInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SessionLifetimeInMinutesInvalidException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -59398,9 +59275,8 @@ public enum TagResourceOutputError: Swift.Error, Swift.Equatable { extension TagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -61303,9 +61179,8 @@ extension QuickSightClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -61321,7 +61196,7 @@ extension ThrottlingException { } /// Access is throttled. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -63517,9 +63392,8 @@ extension QuickSightClientTypes { extension UnsupportedPricingPlanException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedPricingPlanExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -63535,7 +63409,7 @@ extension UnsupportedPricingPlanException { } /// This error indicates that you are calling an embedding operation in Amazon QuickSight without the required pricing plan on your Amazon Web Services account. Before you can use embedding for anonymous users, a QuickSight administrator needs to add capacity pricing to Amazon QuickSight. You can do this on the Manage Amazon QuickSight page. After capacity pricing is added, you can use the [GetDashboardEmbedUrl](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_GetDashboardEmbedUrl.html) API operation with the --identity-type ANONYMOUS option. -public struct UnsupportedPricingPlanException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedPricingPlanException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -63579,9 +63453,8 @@ extension UnsupportedPricingPlanExceptionBody: Swift.Decodable { extension UnsupportedUserEditionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedUserEditionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.requestId = output.requestId @@ -63597,7 +63470,7 @@ extension UnsupportedUserEditionException { } /// This error indicates that you are calling an operation on an Amazon QuickSight subscription where the edition doesn't include support for that operation. Amazon Amazon QuickSight currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition. -public struct UnsupportedUserEditionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedUserEditionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -63783,9 +63656,8 @@ public enum UntagResourceOutputError: Swift.Error, Swift.Equatable { extension UntagResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UntagResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -63940,9 +63812,8 @@ public enum UpdateAccountCustomizationOutputError: Swift.Error, Swift.Equatable extension UpdateAccountCustomizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccountCustomizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountCustomization = output.accountCustomization self.arn = output.arn @@ -64142,9 +64013,8 @@ public enum UpdateAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -64338,9 +64208,8 @@ public enum UpdateAnalysisOutputError: Swift.Error, Swift.Equatable { extension UpdateAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisId = output.analysisId self.arn = output.arn @@ -64551,9 +64420,8 @@ public enum UpdateAnalysisPermissionsOutputError: Swift.Error, Swift.Equatable { extension UpdateAnalysisPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAnalysisPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analysisArn = output.analysisArn self.analysisId = output.analysisId @@ -64816,9 +64684,8 @@ public enum UpdateDashboardOutputError: Swift.Error, Swift.Equatable { extension UpdateDashboardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDashboardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationStatus = output.creationStatus @@ -65088,9 +64955,8 @@ public enum UpdateDashboardPermissionsOutputError: Swift.Error, Swift.Equatable extension UpdateDashboardPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDashboardPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardArn = output.dashboardArn self.dashboardId = output.dashboardId @@ -65266,9 +65132,8 @@ public enum UpdateDashboardPublishedVersionOutputError: Swift.Error, Swift.Equat extension UpdateDashboardPublishedVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDashboardPublishedVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dashboardArn = output.dashboardArn self.dashboardId = output.dashboardId @@ -65606,9 +65471,8 @@ public enum UpdateDataSetOutputError: Swift.Error, Swift.Equatable { extension UpdateDataSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.dataSetId = output.dataSetId @@ -65827,9 +65691,8 @@ public enum UpdateDataSetPermissionsOutputError: Swift.Error, Swift.Equatable { extension UpdateDataSetPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataSetPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSetArn = output.dataSetArn self.dataSetId = output.dataSetId @@ -66046,9 +65909,8 @@ public enum UpdateDataSourceOutputError: Swift.Error, Swift.Equatable { extension UpdateDataSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.dataSourceId = output.dataSourceId @@ -66257,9 +66119,8 @@ public enum UpdateDataSourcePermissionsOutputError: Swift.Error, Swift.Equatable extension UpdateDataSourcePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDataSourcePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataSourceArn = output.dataSourceArn self.dataSourceId = output.dataSourceId @@ -66427,9 +66288,8 @@ public enum UpdateFolderOutputError: Swift.Error, Swift.Equatable { extension UpdateFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.folderId = output.folderId @@ -66630,9 +66490,8 @@ public enum UpdateFolderPermissionsOutputError: Swift.Error, Swift.Equatable { extension UpdateFolderPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFolderPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.folderId = output.folderId @@ -66825,9 +66684,8 @@ public enum UpdateGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group self.requestId = output.requestId @@ -67042,9 +66900,8 @@ public enum UpdateIAMPolicyAssignmentOutputError: Swift.Error, Swift.Equatable { extension UpdateIAMPolicyAssignmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIAMPolicyAssignmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assignmentId = output.assignmentId self.assignmentName = output.assignmentName @@ -67275,9 +67132,8 @@ public enum UpdateIpRestrictionOutputError: Swift.Error, Swift.Equatable { extension UpdateIpRestrictionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIpRestrictionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.awsAccountId = output.awsAccountId self.requestId = output.requestId @@ -67422,9 +67278,8 @@ public enum UpdatePublicSharingSettingsOutputError: Swift.Error, Swift.Equatable extension UpdatePublicSharingSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePublicSharingSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId } else { @@ -67570,9 +67425,8 @@ public enum UpdateRefreshScheduleOutputError: Swift.Error, Swift.Equatable { extension UpdateRefreshScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRefreshScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.requestId = output.requestId @@ -67742,9 +67596,8 @@ public enum UpdateTemplateAliasOutputError: Swift.Error, Swift.Equatable { extension UpdateTemplateAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTemplateAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.templateAlias = output.templateAlias @@ -67937,9 +67790,8 @@ public enum UpdateTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationStatus = output.creationStatus @@ -68160,9 +68012,8 @@ public enum UpdateTemplatePermissionsOutputError: Swift.Error, Swift.Equatable { extension UpdateTemplatePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTemplatePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissions = output.permissions self.requestId = output.requestId @@ -68355,9 +68206,8 @@ public enum UpdateThemeAliasOutputError: Swift.Error, Swift.Equatable { extension UpdateThemeAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateThemeAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.themeAlias = output.themeAlias @@ -68551,9 +68401,8 @@ public enum UpdateThemeOutputError: Swift.Error, Swift.Equatable { extension UpdateThemeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateThemeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationStatus = output.creationStatus @@ -68774,9 +68623,8 @@ public enum UpdateThemePermissionsOutputError: Swift.Error, Swift.Equatable { extension UpdateThemePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateThemePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissions = output.permissions self.requestId = output.requestId @@ -69068,9 +68916,8 @@ public enum UpdateUserOutputError: Swift.Error, Swift.Equatable { extension UpdateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestId = output.requestId self.user = output.user diff --git a/Sources/Services/AWSRAM/RAMClient.swift b/Sources/Services/AWSRAM/RAMClient.swift index f8a4d56dc72..a308716589f 100644 --- a/Sources/Services/AWSRAM/RAMClient.swift +++ b/Sources/Services/AWSRAM/RAMClient.swift @@ -208,6 +208,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptResourceShareInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateResourceShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateResourceSharePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourceShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourceShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -361,7 +366,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -381,6 +386,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateResourceShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -396,7 +402,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -416,6 +422,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateResourceSharePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -431,7 +438,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -451,6 +458,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableSharingWithAwsOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -463,7 +471,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -483,6 +491,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -498,7 +507,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -518,6 +527,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -533,7 +543,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -553,6 +563,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceShareAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -568,7 +579,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -588,6 +599,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceShareInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -603,7 +615,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -623,6 +635,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -638,7 +651,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -658,6 +671,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPendingInvitationResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -673,7 +687,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -693,6 +707,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissionVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +723,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +743,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -743,7 +759,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -763,6 +779,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPrincipals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -778,7 +795,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -798,6 +815,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceSharePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -813,7 +831,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -833,6 +851,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -848,7 +867,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -868,6 +887,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -883,7 +903,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -903,6 +923,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "promoteResourceShareCreatedFromPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +937,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +957,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectResourceShareInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -951,7 +973,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -971,6 +993,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -986,7 +1009,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1006,6 +1029,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1021,7 +1045,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1041,6 +1065,7 @@ extension RAMClient: RAMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ram") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1056,7 +1081,7 @@ extension RAMClient: RAMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRAM/models/Models.swift b/Sources/Services/AWSRAM/models/Models.swift index 154d1fca626..fd4d2ca114e 100644 --- a/Sources/Services/AWSRAM/models/Models.swift +++ b/Sources/Services/AWSRAM/models/Models.swift @@ -104,9 +104,8 @@ public enum AcceptResourceShareInvitationOutputError: Swift.Error, Swift.Equatab extension AcceptResourceShareInvitationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptResourceShareInvitationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.resourceShareInvitation = output.resourceShareInvitation @@ -318,9 +317,8 @@ public enum AssociateResourceShareOutputError: Swift.Error, Swift.Equatable { extension AssociateResourceShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateResourceShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.resourceShareAssociations = output.resourceShareAssociations @@ -509,9 +507,8 @@ public enum AssociateResourceSharePermissionOutputError: Swift.Error, Swift.Equa extension AssociateResourceSharePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateResourceSharePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.returnValue = output.returnValue @@ -783,9 +780,8 @@ public enum CreateResourceShareOutputError: Swift.Error, Swift.Equatable { extension CreateResourceShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.resourceShare = output.resourceShare @@ -923,9 +919,8 @@ public enum DeleteResourceShareOutputError: Swift.Error, Swift.Equatable { extension DeleteResourceShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResourceShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.returnValue = output.returnValue @@ -1135,9 +1130,8 @@ public enum DisassociateResourceShareOutputError: Swift.Error, Swift.Equatable { extension DisassociateResourceShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateResourceShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.resourceShareAssociations = output.resourceShareAssociations @@ -1304,9 +1298,8 @@ public enum DisassociateResourceSharePermissionOutputError: Swift.Error, Swift.E extension DisassociateResourceSharePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateResourceSharePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.returnValue = output.returnValue @@ -1401,9 +1394,8 @@ public enum EnableSharingWithAwsOrganizationOutputError: Swift.Error, Swift.Equa extension EnableSharingWithAwsOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableSharingWithAwsOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -1534,9 +1526,8 @@ public enum GetPermissionOutputError: Swift.Error, Swift.Equatable { extension GetPermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permission = output.permission } else { @@ -1703,9 +1694,8 @@ public enum GetResourcePoliciesOutputError: Swift.Error, Swift.Equatable { extension GetResourcePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.policies = output.policies @@ -1933,9 +1923,8 @@ public enum GetResourceShareAssociationsOutputError: Swift.Error, Swift.Equatabl extension GetResourceShareAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceShareAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceShareAssociations = output.resourceShareAssociations @@ -2136,9 +2125,8 @@ public enum GetResourceShareInvitationsOutputError: Swift.Error, Swift.Equatable extension GetResourceShareInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceShareInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceShareInvitations = output.resourceShareInvitations @@ -2388,9 +2376,8 @@ public enum GetResourceSharesOutputError: Swift.Error, Swift.Equatable { extension GetResourceSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceShares = output.resourceShares @@ -2448,9 +2435,8 @@ extension GetResourceSharesOutputResponseBody: Swift.Decodable { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2464,7 +2450,7 @@ extension IdempotentParameterMismatchException { } /// The client token input parameter was matched one used with a previous call to the operation, but at least one of the other input parameters is different from the previous call. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2501,9 +2487,8 @@ extension IdempotentParameterMismatchExceptionBody: Swift.Decodable { extension InvalidClientTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClientTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2517,7 +2502,7 @@ extension InvalidClientTokenException { } /// The client token is not valid. -public struct InvalidClientTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClientTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2554,9 +2539,8 @@ extension InvalidClientTokenExceptionBody: Swift.Decodable { extension InvalidMaxResultsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidMaxResultsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2570,7 +2554,7 @@ extension InvalidMaxResultsException { } /// The specified value for MaxResults is not valid. -public struct InvalidMaxResultsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMaxResultsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2607,9 +2591,8 @@ extension InvalidMaxResultsExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2623,7 +2606,7 @@ extension InvalidNextTokenException { } /// The specified value for NextToken is not valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2660,9 +2643,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2676,7 +2658,7 @@ extension InvalidParameterException { } /// A parameter is not valid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2713,9 +2695,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidResourceTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2729,7 +2710,7 @@ extension InvalidResourceTypeException { } /// The specified resource type is not valid. -public struct InvalidResourceTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2766,9 +2747,8 @@ extension InvalidResourceTypeExceptionBody: Swift.Decodable { extension InvalidStateTransitionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateTransitionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2782,7 +2762,7 @@ extension InvalidStateTransitionException { } /// The requested state transition is not valid. -public struct InvalidStateTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateTransitionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2950,9 +2930,8 @@ public enum ListPendingInvitationResourcesOutputError: Swift.Error, Swift.Equata extension ListPendingInvitationResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPendingInvitationResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resources = output.resources @@ -3116,9 +3095,8 @@ public enum ListPermissionVersionsOutputError: Swift.Error, Swift.Equatable { extension ListPermissionVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -3277,9 +3255,8 @@ public enum ListPermissionsOutputError: Swift.Error, Swift.Equatable { extension ListPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -3530,9 +3507,8 @@ public enum ListPrincipalsOutputError: Swift.Error, Swift.Equatable { extension ListPrincipalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPrincipalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.principals = output.principals @@ -3696,9 +3672,8 @@ public enum ListResourceSharePermissionsOutputError: Swift.Error, Swift.Equatabl extension ListResourceSharePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceSharePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -3864,9 +3839,8 @@ public enum ListResourceTypesOutputError: Swift.Error, Swift.Equatable { extension ListResourceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceTypes = output.resourceTypes @@ -4127,9 +4101,8 @@ public enum ListResourcesOutputError: Swift.Error, Swift.Equatable { extension ListResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resources = output.resources @@ -4187,9 +4160,8 @@ extension ListResourcesOutputResponseBody: Swift.Decodable { extension MalformedArnException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedArnExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4203,7 +4175,7 @@ extension MalformedArnException { } /// The format of an Amazon Resource Name (ARN) is not valid. -public struct MalformedArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedArnException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4240,9 +4212,8 @@ extension MalformedArnExceptionBody: Swift.Decodable { extension MissingRequiredParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingRequiredParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4256,7 +4227,7 @@ extension MissingRequiredParameterException { } /// A required input parameter is missing. -public struct MissingRequiredParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingRequiredParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4293,9 +4264,8 @@ extension MissingRequiredParameterExceptionBody: Swift.Decodable { extension OperationNotPermittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotPermittedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4309,7 +4279,7 @@ extension OperationNotPermittedException { } /// The requested operation is not permitted. -public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4500,9 +4470,8 @@ public enum PromoteResourceShareCreatedFromPolicyOutputError: Swift.Error, Swift extension PromoteResourceShareCreatedFromPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PromoteResourceShareCreatedFromPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -4641,9 +4610,8 @@ public enum RejectResourceShareInvitationOutputError: Swift.Error, Swift.Equatab extension RejectResourceShareInvitationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectResourceShareInvitationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.resourceShareInvitation = output.resourceShareInvitation @@ -4811,9 +4779,8 @@ extension RAMClientTypes { extension ResourceArnNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceArnNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4827,7 +4794,7 @@ extension ResourceArnNotFoundException { } /// The specified Amazon Resource Name (ARN) was not found. -public struct ResourceArnNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceArnNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5471,9 +5438,8 @@ extension RAMClientTypes { extension ResourceShareInvitationAlreadyAcceptedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceShareInvitationAlreadyAcceptedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5487,7 +5453,7 @@ extension ResourceShareInvitationAlreadyAcceptedException { } /// The specified invitation was already accepted. -public struct ResourceShareInvitationAlreadyAcceptedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceShareInvitationAlreadyAcceptedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5524,9 +5490,8 @@ extension ResourceShareInvitationAlreadyAcceptedExceptionBody: Swift.Decodable { extension ResourceShareInvitationAlreadyRejectedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceShareInvitationAlreadyRejectedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5540,7 +5505,7 @@ extension ResourceShareInvitationAlreadyRejectedException { } /// The specified invitation was already rejected. -public struct ResourceShareInvitationAlreadyRejectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceShareInvitationAlreadyRejectedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5577,9 +5542,8 @@ extension ResourceShareInvitationAlreadyRejectedExceptionBody: Swift.Decodable { extension ResourceShareInvitationArnNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceShareInvitationArnNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5593,7 +5557,7 @@ extension ResourceShareInvitationArnNotFoundException { } /// The specified Amazon Resource Name (ARN) for an invitation was not found. -public struct ResourceShareInvitationArnNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceShareInvitationArnNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5630,9 +5594,8 @@ extension ResourceShareInvitationArnNotFoundExceptionBody: Swift.Decodable { extension ResourceShareInvitationExpiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceShareInvitationExpiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5646,7 +5609,7 @@ extension ResourceShareInvitationExpiredException { } /// The specified invitation is expired. -public struct ResourceShareInvitationExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceShareInvitationExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5721,9 +5684,8 @@ extension RAMClientTypes { extension ResourceShareLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceShareLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5737,7 +5699,7 @@ extension ResourceShareLimitExceededException { } /// This request would exceed the limit for resource shares for your account. -public struct ResourceShareLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceShareLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6086,9 +6048,8 @@ extension RAMClientTypes { extension ServerInternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerInternalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6102,7 +6063,7 @@ extension ServerInternalException { } /// The service could not respond to the request due to an internal problem. -public struct ServerInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerInternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6198,9 +6159,8 @@ extension RAMClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6214,7 +6174,7 @@ extension ServiceUnavailableException { } /// The service is not available. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6353,9 +6313,8 @@ extension RAMClientTypes { extension TagLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6369,7 +6328,7 @@ extension TagLimitExceededException { } /// This request would exceed the limit for tags for your account. -public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6406,9 +6365,8 @@ extension TagLimitExceededExceptionBody: Swift.Decodable { extension TagPolicyViolationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagPolicyViolationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6422,7 +6380,7 @@ extension TagPolicyViolationException { } /// The specified tag key is a reserved word and can't be used. -public struct TagPolicyViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagPolicyViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6578,9 +6536,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6594,7 +6551,7 @@ extension ThrottlingException { } /// You exceeded the rate at which you are allowed to perform this operation. Please try again later. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6631,9 +6588,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension UnknownResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnknownResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6647,7 +6603,7 @@ extension UnknownResourceException { } /// A specified resource was not found. -public struct UnknownResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnknownResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6915,9 +6871,8 @@ public enum UpdateResourceShareOutputError: Swift.Error, Swift.Equatable { extension UpdateResourceShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResourceShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientToken = output.clientToken self.resourceShare = output.resourceShare diff --git a/Sources/Services/AWSRDS/RDSClient.swift b/Sources/Services/AWSRDS/RDSClient.swift index 5e712d1ff9a..1ed10e2f65e 100644 --- a/Sources/Services/AWSRDS/RDSClient.swift +++ b/Sources/Services/AWSRDS/RDSClient.swift @@ -204,6 +204,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addRoleToDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addRoleToDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addSourceIdentifierToSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "applyPendingMaintenanceAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeDBSecurityGroupIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "backtrackDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelExportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -528,6 +537,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -543,7 +553,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -563,6 +573,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -578,7 +589,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -598,6 +609,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyDBSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -613,7 +625,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -633,6 +645,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyOptionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -648,7 +661,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -668,6 +681,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBlueGreenDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -683,7 +697,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -703,6 +717,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomDBEngineVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -718,7 +733,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -738,6 +753,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -753,7 +769,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -773,6 +789,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBClusterEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -788,7 +805,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -808,6 +825,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -823,7 +841,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -843,6 +861,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -858,7 +877,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -878,6 +897,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -893,7 +913,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -913,6 +933,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBInstanceReadReplica") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -928,7 +949,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -948,6 +969,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -963,7 +985,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -983,6 +1005,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -998,7 +1021,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1018,6 +1041,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBProxyEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1033,7 +1057,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1053,6 +1077,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1068,7 +1093,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1088,6 +1113,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1103,7 +1129,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1123,6 +1149,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1138,7 +1165,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1158,6 +1185,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1173,7 +1201,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1193,6 +1221,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1208,7 +1237,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1228,6 +1257,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOptionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1243,7 +1273,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1263,6 +1293,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBlueGreenDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1278,7 +1309,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1305,6 +1336,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomDBEngineVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1320,7 +1352,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1372,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1355,7 +1388,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1375,6 +1408,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBClusterEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1390,7 +1424,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1410,6 +1444,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1425,7 +1460,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1445,6 +1480,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1460,7 +1496,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1487,6 +1523,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1502,7 +1539,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1522,6 +1559,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBInstanceAutomatedBackup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1537,7 +1575,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1557,6 +1595,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1572,7 +1611,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1592,6 +1631,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1607,7 +1647,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1627,6 +1667,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBProxyEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1642,7 +1683,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1662,6 +1703,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1677,7 +1719,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1697,6 +1739,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1712,7 +1755,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1732,6 +1775,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1747,7 +1791,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1767,6 +1811,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1782,7 +1827,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1802,6 +1847,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1817,7 +1863,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1837,6 +1883,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOptionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1852,7 +1899,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1919,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterDBProxyTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1887,7 +1935,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1907,6 +1955,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1922,7 +1971,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1942,6 +1991,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBlueGreenDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1957,7 +2007,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1977,6 +2027,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1992,7 +2043,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2012,6 +2063,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterBacktracks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2027,7 +2079,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2047,6 +2099,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2062,7 +2115,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2082,6 +2135,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2097,7 +2151,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2117,6 +2171,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2132,7 +2187,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2152,6 +2207,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterSnapshotAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2167,7 +2223,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2187,6 +2243,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusterSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2202,7 +2259,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2222,6 +2279,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2237,7 +2295,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2257,6 +2315,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBEngineVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2272,7 +2331,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2292,6 +2351,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBInstanceAutomatedBackups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2307,7 +2367,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2327,6 +2387,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2342,7 +2403,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2362,6 +2423,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBLogFiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2377,7 +2439,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2397,6 +2459,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2412,7 +2475,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2432,6 +2495,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2447,7 +2511,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2467,6 +2531,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBProxies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2482,7 +2547,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2502,6 +2567,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBProxyEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2517,7 +2583,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2537,6 +2603,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBProxyTargetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2552,7 +2619,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2572,6 +2639,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBProxyTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2587,7 +2655,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2607,6 +2675,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2622,7 +2691,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2642,6 +2711,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBSnapshotAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2657,7 +2727,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2677,6 +2747,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2692,7 +2763,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2712,6 +2783,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDBSubnetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2727,7 +2799,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2747,6 +2819,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEngineDefaultClusterParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2762,7 +2835,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2782,6 +2855,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEngineDefaultParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2797,7 +2871,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2817,6 +2891,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventCategories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2832,7 +2907,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2852,6 +2927,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2867,7 +2943,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2887,6 +2963,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2902,7 +2979,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2922,6 +2999,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExportTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2937,7 +3015,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2957,6 +3035,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGlobalClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2972,7 +3051,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2992,6 +3071,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOptionGroupOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3007,7 +3087,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3027,6 +3107,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOptionGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3042,7 +3123,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3062,6 +3143,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrderableDBInstanceOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3077,7 +3159,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3097,6 +3179,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePendingMaintenanceActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3112,7 +3195,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3132,6 +3215,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedDBInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3147,7 +3231,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3167,6 +3251,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedDBInstancesOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3182,7 +3267,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3202,6 +3287,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSourceRegions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3217,7 +3303,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3237,6 +3323,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeValidDBInstanceModifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3252,7 +3339,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3272,6 +3359,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "downloadDBLogFilePortion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3287,7 +3375,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3307,6 +3395,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "failoverDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3322,7 +3411,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3342,6 +3431,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "failoverGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3357,7 +3447,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3377,6 +3467,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3392,7 +3483,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3412,6 +3503,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyActivityStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3427,7 +3519,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3454,6 +3546,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3469,7 +3562,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3489,6 +3582,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCurrentDBClusterCapacity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3504,7 +3598,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3524,6 +3618,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCustomDBEngineVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3539,7 +3634,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3559,6 +3654,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3574,7 +3670,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3594,6 +3690,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBClusterEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3609,7 +3706,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3629,6 +3726,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3644,7 +3742,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3664,6 +3762,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBClusterSnapshotAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3679,7 +3778,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3699,6 +3798,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3714,7 +3814,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3734,6 +3834,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3749,7 +3850,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3769,6 +3870,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBProxy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3784,7 +3886,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3804,6 +3906,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBProxyEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3819,7 +3922,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3839,6 +3942,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBProxyTargetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3854,7 +3958,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3874,6 +3978,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3889,7 +3994,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3909,6 +4014,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBSnapshotAttribute") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3924,7 +4030,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3944,6 +4050,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDBSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3959,7 +4066,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3979,6 +4086,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3994,7 +4102,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4014,6 +4122,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4029,7 +4138,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4049,6 +4158,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyOptionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4064,7 +4174,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4088,6 +4198,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "promoteReadReplica") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4103,7 +4214,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4123,6 +4234,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "promoteReadReplicaDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4138,7 +4250,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4158,6 +4270,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseReservedDBInstancesOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4173,7 +4286,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4193,6 +4306,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4208,7 +4322,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4228,6 +4342,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4243,7 +4358,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4263,6 +4378,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerDBProxyTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4278,7 +4394,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4298,6 +4414,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeFromGlobalCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4313,7 +4430,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4333,6 +4450,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeRoleFromDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4348,7 +4466,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4368,6 +4486,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeRoleFromDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4383,7 +4502,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4403,6 +4522,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeSourceIdentifierFromSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4418,7 +4538,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4438,6 +4558,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4453,7 +4574,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4473,6 +4594,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetDBClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4488,7 +4610,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4508,6 +4630,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetDBParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4523,7 +4646,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4543,6 +4666,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBClusterFromS3") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4558,7 +4682,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4578,6 +4702,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBClusterFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4593,7 +4718,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4613,6 +4738,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBClusterToPointInTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4628,7 +4754,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4648,6 +4774,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBInstanceFromDBSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4663,7 +4790,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4683,6 +4810,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBInstanceFromS3") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4698,7 +4826,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4718,6 +4846,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDBInstanceToPointInTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4733,7 +4862,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4753,6 +4882,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeDBSecurityGroupIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4768,7 +4898,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4788,6 +4918,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startActivityStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4803,7 +4934,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4823,6 +4954,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4838,7 +4970,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4858,6 +4990,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4873,7 +5006,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4893,6 +5026,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDBInstanceAutomatedBackupsReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4908,7 +5042,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4928,6 +5062,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startExportTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4943,7 +5078,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4963,6 +5098,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopActivityStream") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4978,7 +5114,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4998,6 +5134,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDBCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5013,7 +5150,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5033,6 +5170,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDBInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5048,7 +5186,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5068,6 +5206,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDBInstanceAutomatedBackupsReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5083,7 +5222,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5103,6 +5242,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "switchoverBlueGreenDeployment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5118,7 +5258,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5138,6 +5278,7 @@ extension RDSClient: RDSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "switchoverReadReplica") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5153,7 +5294,7 @@ extension RDSClient: RDSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRDS/models/Models.swift b/Sources/Services/AWSRDS/models/Models.swift index 2f5f414d473..8785488aefa 100644 --- a/Sources/Services/AWSRDS/models/Models.swift +++ b/Sources/Services/AWSRDS/models/Models.swift @@ -515,9 +515,8 @@ public enum AddSourceIdentifierToSubscriptionOutputError: Swift.Error, Swift.Equ extension AddSourceIdentifierToSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddSourceIdentifierToSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -817,9 +816,8 @@ public enum ApplyPendingMaintenanceActionOutputError: Swift.Error, Swift.Equatab extension ApplyPendingMaintenanceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ApplyPendingMaintenanceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePendingMaintenanceActions = output.resourcePendingMaintenanceActions } else { @@ -920,7 +918,7 @@ extension RDSClientTypes { extension AuthorizationAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -935,7 +933,7 @@ extension AuthorizationAlreadyExistsFault { } /// The specified CIDR IP range or Amazon EC2 security group is already authorized for the specified DB security group. -public struct AuthorizationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -971,7 +969,7 @@ extension AuthorizationAlreadyExistsFaultBody: Swift.Decodable { extension AuthorizationNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -986,7 +984,7 @@ extension AuthorizationNotFoundFault { } /// The specified CIDR IP range or Amazon EC2 security group might not be authorized for the specified DB security group. Or, RDS might not be authorized to perform necessary actions using IAM on your behalf. -public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1022,7 +1020,7 @@ extension AuthorizationNotFoundFaultBody: Swift.Decodable { extension AuthorizationQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1037,7 +1035,7 @@ extension AuthorizationQuotaExceededFault { } /// The DB security group authorization quota has been reached. -public struct AuthorizationQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1191,9 +1189,8 @@ public enum AuthorizeDBSecurityGroupIngressOutputError: Swift.Error, Swift.Equat extension AuthorizeDBSecurityGroupIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeDBSecurityGroupIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSecurityGroup = output.dbSecurityGroup } else { @@ -1475,9 +1472,8 @@ public enum BacktrackDBClusterOutputError: Swift.Error, Swift.Equatable { extension BacktrackDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BacktrackDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.backtrackIdentifier = output.backtrackIdentifier self.backtrackRequestCreationTime = output.backtrackRequestCreationTime @@ -1576,7 +1572,7 @@ extension BacktrackDBClusterOutputResponseBody: Swift.Decodable { extension BackupPolicyNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1591,7 +1587,7 @@ extension BackupPolicyNotFoundFault { } @available(*, deprecated, message: "Please avoid using this fault") -public struct BackupPolicyNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BackupPolicyNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1854,7 +1850,7 @@ extension RDSClientTypes { extension BlueGreenDeploymentAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1869,7 +1865,7 @@ extension BlueGreenDeploymentAlreadyExistsFault { } /// A blue/green deployment with the specified name already exists. -public struct BlueGreenDeploymentAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BlueGreenDeploymentAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1905,7 +1901,7 @@ extension BlueGreenDeploymentAlreadyExistsFaultBody: Swift.Decodable { extension BlueGreenDeploymentNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1920,7 +1916,7 @@ extension BlueGreenDeploymentNotFoundFault { } /// BlueGreenDeploymentIdentifier doesn't refer to an existing blue/green deployment. -public struct BlueGreenDeploymentNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BlueGreenDeploymentNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2078,9 +2074,8 @@ public enum CancelExportTaskOutputError: Swift.Error, Swift.Equatable { extension CancelExportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelExportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportOnly = output.exportOnly self.exportTaskIdentifier = output.exportTaskIdentifier @@ -2458,7 +2453,7 @@ extension RDSClientTypes { extension CertificateNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2473,7 +2468,7 @@ extension CertificateNotFoundFault { } /// CertificateIdentifier doesn't refer to an existing certificate. -public struct CertificateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CertificateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3141,9 +3136,8 @@ public enum CopyDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatable extension CopyDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroup = output.dbClusterParameterGroup } else { @@ -3370,9 +3364,8 @@ public enum CopyDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CopyDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -3558,9 +3551,8 @@ public enum CopyDBParameterGroupOutputError: Swift.Error, Swift.Equatable { extension CopyDBParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroup = output.dbParameterGroup } else { @@ -3818,9 +3810,8 @@ public enum CopyDBSnapshotOutputError: Swift.Error, Swift.Equatable { extension CopyDBSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyDBSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSnapshot = output.dbSnapshot } else { @@ -4006,9 +3997,8 @@ public enum CopyOptionGroupOutputError: Swift.Error, Swift.Equatable { extension CopyOptionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyOptionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.optionGroup = output.optionGroup } else { @@ -4219,9 +4209,8 @@ public enum CreateBlueGreenDeploymentOutputError: Swift.Error, Swift.Equatable { extension CreateBlueGreenDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBlueGreenDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueGreenDeployment = output.blueGreenDeployment } else { @@ -4261,7 +4250,7 @@ extension CreateBlueGreenDeploymentOutputResponseBody: Swift.Decodable { extension CreateCustomDBEngineVersionFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4276,7 +4265,7 @@ extension CreateCustomDBEngineVersionFault { } /// An error occurred while trying to create the CEV. -public struct CreateCustomDBEngineVersionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CreateCustomDBEngineVersionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4502,9 +4491,8 @@ public enum CreateCustomDBEngineVersionOutputError: Swift.Error, Swift.Equatable extension CreateCustomDBEngineVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomDBEngineVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.customDBEngineVersionManifest = output.customDBEngineVersionManifest @@ -5210,9 +5198,8 @@ public enum CreateDBClusterEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateDBClusterEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customEndpointType = output.customEndpointType self.dbClusterEndpointArn = output.dbClusterEndpointArn @@ -6258,9 +6245,8 @@ public enum CreateDBClusterOutputError: Swift.Error, Swift.Equatable { extension CreateDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -6446,9 +6432,8 @@ public enum CreateDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatab extension CreateDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroup = output.dbClusterParameterGroup } else { @@ -6627,9 +6612,8 @@ public enum CreateDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -7748,9 +7732,8 @@ public enum CreateDBInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -8499,9 +8482,8 @@ public enum CreateDBInstanceReadReplicaOutputError: Swift.Error, Swift.Equatable extension CreateDBInstanceReadReplicaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBInstanceReadReplicaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -8709,9 +8691,8 @@ public enum CreateDBParameterGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDBParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroup = output.dbParameterGroup } else { @@ -8961,9 +8942,8 @@ public enum CreateDBProxyEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateDBProxyEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBProxyEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxyEndpoint = output.dbProxyEndpoint } else { @@ -9281,9 +9261,8 @@ public enum CreateDBProxyOutputError: Swift.Error, Swift.Equatable { extension CreateDBProxyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBProxyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxy = output.dbProxy } else { @@ -9455,9 +9434,8 @@ public enum CreateDBSecurityGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDBSecurityGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBSecurityGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSecurityGroup = output.dbSecurityGroup } else { @@ -9633,9 +9611,8 @@ public enum CreateDBSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateDBSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSnapshot = output.dbSnapshot } else { @@ -9847,9 +9824,8 @@ public enum CreateDBSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateDBSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDBSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroup = output.dbSubnetGroup } else { @@ -10130,9 +10106,8 @@ public enum CreateEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension CreateEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -10310,9 +10285,8 @@ public enum CreateGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension CreateGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -10526,9 +10500,8 @@ public enum CreateOptionGroupOutputError: Swift.Error, Swift.Equatable { extension CreateOptionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOptionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.optionGroup = output.optionGroup } else { @@ -10568,7 +10541,7 @@ extension CreateOptionGroupOutputResponseBody: Swift.Decodable { extension CustomAvailabilityZoneNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10583,7 +10556,7 @@ extension CustomAvailabilityZoneNotFoundFault { } /// CustomAvailabilityZoneId doesn't refer to an existing custom Availability Zone identifier. -public struct CustomAvailabilityZoneNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomAvailabilityZoneNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10664,7 +10637,7 @@ extension RDSClientTypes { extension CustomDBEngineVersionAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10679,7 +10652,7 @@ extension CustomDBEngineVersionAlreadyExistsFault { } /// A CEV with the specified name already exists. -public struct CustomDBEngineVersionAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomDBEngineVersionAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10715,7 +10688,7 @@ extension CustomDBEngineVersionAlreadyExistsFaultBody: Swift.Decodable { extension CustomDBEngineVersionNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10730,7 +10703,7 @@ extension CustomDBEngineVersionNotFoundFault { } /// The specified CEV was not found. -public struct CustomDBEngineVersionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomDBEngineVersionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10766,7 +10739,7 @@ extension CustomDBEngineVersionNotFoundFaultBody: Swift.Decodable { extension CustomDBEngineVersionQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10781,7 +10754,7 @@ extension CustomDBEngineVersionQuotaExceededFault { } /// You have exceeded your CEV quota. -public struct CustomDBEngineVersionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomDBEngineVersionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11874,7 +11847,7 @@ extension RDSClientTypes { extension DBClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11889,7 +11862,7 @@ extension DBClusterAlreadyExistsFault { } /// The user already has a DB cluster with the given identifier. -public struct DBClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12018,7 +11991,7 @@ extension RDSClientTypes { extension DBClusterBacktrackNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12033,7 +12006,7 @@ extension DBClusterBacktrackNotFoundFault { } /// BacktrackIdentifier doesn't refer to an existing backtrack. -public struct DBClusterBacktrackNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterBacktrackNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12257,7 +12230,7 @@ extension RDSClientTypes { extension DBClusterEndpointAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12272,7 +12245,7 @@ extension DBClusterEndpointAlreadyExistsFault { } /// The specified custom endpoint can't be created because it already exists. -public struct DBClusterEndpointAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterEndpointAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12308,7 +12281,7 @@ extension DBClusterEndpointAlreadyExistsFaultBody: Swift.Decodable { extension DBClusterEndpointNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12323,7 +12296,7 @@ extension DBClusterEndpointNotFoundFault { } /// The specified custom endpoint doesn't exist. -public struct DBClusterEndpointNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterEndpointNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12359,7 +12332,7 @@ extension DBClusterEndpointNotFoundFaultBody: Swift.Decodable { extension DBClusterEndpointQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12374,7 +12347,7 @@ extension DBClusterEndpointQuotaExceededFault { } /// The cluster already has the maximum number of custom endpoints. -public struct DBClusterEndpointQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterEndpointQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12475,7 +12448,7 @@ extension RDSClientTypes { extension DBClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12490,7 +12463,7 @@ extension DBClusterNotFoundFault { } /// DBClusterIdentifier doesn't refer to an existing DB cluster. -public struct DBClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12636,7 +12609,7 @@ extension RDSClientTypes { extension DBClusterParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12651,7 +12624,7 @@ extension DBClusterParameterGroupNotFoundFault { } /// DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter group. -public struct DBClusterParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12687,7 +12660,7 @@ extension DBClusterParameterGroupNotFoundFaultBody: Swift.Decodable { extension DBClusterQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12702,7 +12675,7 @@ extension DBClusterQuotaExceededFault { } /// The user attempted to create a new DB cluster and the user has already reached the maximum allowed DB cluster quota. -public struct DBClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12799,7 +12772,7 @@ extension RDSClientTypes { extension DBClusterRoleAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12814,7 +12787,7 @@ extension DBClusterRoleAlreadyExistsFault { } /// The specified IAM role Amazon Resource Name (ARN) is already associated with the specified DB cluster. -public struct DBClusterRoleAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterRoleAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12850,7 +12823,7 @@ extension DBClusterRoleAlreadyExistsFaultBody: Swift.Decodable { extension DBClusterRoleNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12865,7 +12838,7 @@ extension DBClusterRoleNotFoundFault { } /// The specified IAM role Amazon Resource Name (ARN) isn't associated with the specified DB cluster. -public struct DBClusterRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12901,7 +12874,7 @@ extension DBClusterRoleNotFoundFaultBody: Swift.Decodable { extension DBClusterRoleQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12916,7 +12889,7 @@ extension DBClusterRoleQuotaExceededFault { } /// You have exceeded the maximum number of IAM roles that can be associated with the specified DB cluster. -public struct DBClusterRoleQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterRoleQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13265,7 +13238,7 @@ extension RDSClientTypes { extension DBClusterSnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13280,7 +13253,7 @@ extension DBClusterSnapshotAlreadyExistsFault { } /// The user already has a DB cluster snapshot with the given identifier. -public struct DBClusterSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13458,7 +13431,7 @@ extension RDSClientTypes { extension DBClusterSnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -13473,7 +13446,7 @@ extension DBClusterSnapshotNotFoundFault { } /// DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. -public struct DBClusterSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBClusterSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15290,7 +15263,7 @@ extension RDSClientTypes { extension DBInstanceAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15305,7 +15278,7 @@ extension DBInstanceAlreadyExistsFault { } /// The user already has a DB instance with the given identifier. -public struct DBInstanceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15678,7 +15651,7 @@ extension RDSClientTypes { extension DBInstanceAutomatedBackupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15693,7 +15666,7 @@ extension DBInstanceAutomatedBackupNotFoundFault { } /// No automated backup for this DB instance was found. -public struct DBInstanceAutomatedBackupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceAutomatedBackupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15729,7 +15702,7 @@ extension DBInstanceAutomatedBackupNotFoundFaultBody: Swift.Decodable { extension DBInstanceAutomatedBackupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15744,7 +15717,7 @@ extension DBInstanceAutomatedBackupQuotaExceededFault { } /// The quota for retained automated backups was exceeded. This prevents you from retaining any additional automated backups. The retained automated backups quota is the same as your DB Instance quota. -public struct DBInstanceAutomatedBackupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceAutomatedBackupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15815,7 +15788,7 @@ extension RDSClientTypes { extension DBInstanceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15830,7 +15803,7 @@ extension DBInstanceNotFoundFault { } /// DBInstanceIdentifier doesn't refer to an existing DB instance. -public struct DBInstanceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15927,7 +15900,7 @@ extension RDSClientTypes { extension DBInstanceRoleAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15942,7 +15915,7 @@ extension DBInstanceRoleAlreadyExistsFault { } /// The specified RoleArn or FeatureName value is already associated with the DB instance. -public struct DBInstanceRoleAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceRoleAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15978,7 +15951,7 @@ extension DBInstanceRoleAlreadyExistsFaultBody: Swift.Decodable { extension DBInstanceRoleNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15993,7 +15966,7 @@ extension DBInstanceRoleNotFoundFault { } /// The specified RoleArn value doesn't match the specified feature for the DB instance. -public struct DBInstanceRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16029,7 +16002,7 @@ extension DBInstanceRoleNotFoundFaultBody: Swift.Decodable { extension DBInstanceRoleQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16044,7 +16017,7 @@ extension DBInstanceRoleQuotaExceededFault { } /// You can't associate any more Amazon Web Services Identity and Access Management (IAM) roles with the DB instance because the quota has been reached. -public struct DBInstanceRoleQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBInstanceRoleQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16145,7 +16118,7 @@ extension RDSClientTypes { extension DBLogFileNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16160,7 +16133,7 @@ extension DBLogFileNotFoundFault { } /// LogFileName doesn't refer to an existing DB log file. -public struct DBLogFileNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBLogFileNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16261,7 +16234,7 @@ extension RDSClientTypes { extension DBParameterGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16276,7 +16249,7 @@ extension DBParameterGroupAlreadyExistsFault { } /// A DB parameter group with the same name exists. -public struct DBParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16312,7 +16285,7 @@ extension DBParameterGroupAlreadyExistsFaultBody: Swift.Decodable { extension DBParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16327,7 +16300,7 @@ extension DBParameterGroupNotFoundFault { } /// DBParameterGroupName doesn't refer to an existing DB parameter group. -public struct DBParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16363,7 +16336,7 @@ extension DBParameterGroupNotFoundFaultBody: Swift.Decodable { extension DBParameterGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16378,7 +16351,7 @@ extension DBParameterGroupQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of DB parameter groups. -public struct DBParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16724,7 +16697,7 @@ extension RDSClientTypes { extension DBProxyAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16739,7 +16712,7 @@ extension DBProxyAlreadyExistsFault { } /// The specified proxy name must be unique for all proxies owned by your Amazon Web Services account in the specified Amazon Web Services Region. -public struct DBProxyAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16962,7 +16935,7 @@ extension RDSClientTypes { extension DBProxyEndpointAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16977,7 +16950,7 @@ extension DBProxyEndpointAlreadyExistsFault { } /// The specified DB proxy endpoint name must be unique for all DB proxy endpoints owned by your Amazon Web Services account in the specified Amazon Web Services Region. -public struct DBProxyEndpointAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyEndpointAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17013,7 +16986,7 @@ extension DBProxyEndpointAlreadyExistsFaultBody: Swift.Decodable { extension DBProxyEndpointNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17028,7 +17001,7 @@ extension DBProxyEndpointNotFoundFault { } /// The DB proxy endpoint doesn't exist. -public struct DBProxyEndpointNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyEndpointNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17064,7 +17037,7 @@ extension DBProxyEndpointNotFoundFaultBody: Swift.Decodable { extension DBProxyEndpointQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17079,7 +17052,7 @@ extension DBProxyEndpointQuotaExceededFault { } /// The DB proxy already has the maximum number of endpoints. -public struct DBProxyEndpointQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyEndpointQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17191,7 +17164,7 @@ extension RDSClientTypes { extension DBProxyNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17206,7 +17179,7 @@ extension DBProxyNotFoundFault { } /// The specified proxy name doesn't correspond to a proxy owned by your Amazon Web Services account in the specified Amazon Web Services Region. -public struct DBProxyNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17242,7 +17215,7 @@ extension DBProxyNotFoundFaultBody: Swift.Decodable { extension DBProxyQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17257,7 +17230,7 @@ extension DBProxyQuotaExceededFault { } /// Your Amazon Web Services account already has the maximum number of proxies in the specified Amazon Web Services Region. -public struct DBProxyQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17451,7 +17424,7 @@ extension RDSClientTypes { extension DBProxyTargetAlreadyRegisteredFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17466,7 +17439,7 @@ extension DBProxyTargetAlreadyRegisteredFault { } /// The proxy is already associated with the specified RDS DB instance or Aurora DB cluster. -public struct DBProxyTargetAlreadyRegisteredFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyTargetAlreadyRegisteredFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17607,7 +17580,7 @@ extension RDSClientTypes { extension DBProxyTargetGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17622,7 +17595,7 @@ extension DBProxyTargetGroupNotFoundFault { } /// The specified target group isn't available for a proxy owned by your Amazon Web Services account in the specified Amazon Web Services Region. -public struct DBProxyTargetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyTargetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17658,7 +17631,7 @@ extension DBProxyTargetGroupNotFoundFaultBody: Swift.Decodable { extension DBProxyTargetNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17673,7 +17646,7 @@ extension DBProxyTargetNotFoundFault { } /// The specified RDS DB instance or Aurora DB cluster isn't available for a proxy owned by your Amazon Web Services account in the specified Amazon Web Services Region. -public struct DBProxyTargetNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBProxyTargetNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17856,7 +17829,7 @@ extension RDSClientTypes { extension DBSecurityGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17871,7 +17844,7 @@ extension DBSecurityGroupAlreadyExistsFault { } /// A DB security group with the name specified in DBSecurityGroupName already exists. -public struct DBSecurityGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSecurityGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17960,7 +17933,7 @@ extension RDSClientTypes { extension DBSecurityGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17975,7 +17948,7 @@ extension DBSecurityGroupNotFoundFault { } /// DBSecurityGroupName doesn't refer to an existing DB security group. -public struct DBSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18011,7 +17984,7 @@ extension DBSecurityGroupNotFoundFaultBody: Swift.Decodable { extension DBSecurityGroupNotSupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18026,7 +17999,7 @@ extension DBSecurityGroupNotSupportedFault { } /// A DB security group isn't allowed for this action. -public struct DBSecurityGroupNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSecurityGroupNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18062,7 +18035,7 @@ extension DBSecurityGroupNotSupportedFaultBody: Swift.Decodable { extension DBSecurityGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18077,7 +18050,7 @@ extension DBSecurityGroupQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of DB security groups. -public struct DBSecurityGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSecurityGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18520,7 +18493,7 @@ extension RDSClientTypes { extension DBSnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18535,7 +18508,7 @@ extension DBSnapshotAlreadyExistsFault { } /// DBSnapshotIdentifier is already used by an existing snapshot. -public struct DBSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18713,7 +18686,7 @@ extension RDSClientTypes { extension DBSnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18728,7 +18701,7 @@ extension DBSnapshotNotFoundFault { } /// DBSnapshotIdentifier doesn't refer to an existing DB snapshot. -public struct DBSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18918,7 +18891,7 @@ extension RDSClientTypes { extension DBSubnetGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18933,7 +18906,7 @@ extension DBSubnetGroupAlreadyExistsFault { } /// DBSubnetGroupName is already used by an existing DB subnet group. -public struct DBSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18969,7 +18942,7 @@ extension DBSubnetGroupAlreadyExistsFaultBody: Swift.Decodable { extension DBSubnetGroupDoesNotCoverEnoughAZs { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18984,7 +18957,7 @@ extension DBSubnetGroupDoesNotCoverEnoughAZs { } /// Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone. -public struct DBSubnetGroupDoesNotCoverEnoughAZs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupDoesNotCoverEnoughAZs: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19020,7 +18993,7 @@ extension DBSubnetGroupDoesNotCoverEnoughAZsBody: Swift.Decodable { extension DBSubnetGroupNotAllowedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19035,7 +19008,7 @@ extension DBSubnetGroupNotAllowedFault { } /// The DBSubnetGroup shouldn't be specified while creating read replicas that lie in the same region as the source instance. -public struct DBSubnetGroupNotAllowedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupNotAllowedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19071,7 +19044,7 @@ extension DBSubnetGroupNotAllowedFaultBody: Swift.Decodable { extension DBSubnetGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19086,7 +19059,7 @@ extension DBSubnetGroupNotFoundFault { } /// DBSubnetGroupName doesn't refer to an existing DB subnet group. -public struct DBSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19122,7 +19095,7 @@ extension DBSubnetGroupNotFoundFaultBody: Swift.Decodable { extension DBSubnetGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19137,7 +19110,7 @@ extension DBSubnetGroupQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of DB subnet groups. -public struct DBSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19173,7 +19146,7 @@ extension DBSubnetGroupQuotaExceededFaultBody: Swift.Decodable { extension DBSubnetQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19188,7 +19161,7 @@ extension DBSubnetQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of subnets in a DB subnet groups. -public struct DBSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19224,7 +19197,7 @@ extension DBSubnetQuotaExceededFaultBody: Swift.Decodable { extension DBUpgradeDependencyFailureFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19239,7 +19212,7 @@ extension DBUpgradeDependencyFailureFault { } /// The DB upgrade failed because a resource the DB depends on can't be modified. -public struct DBUpgradeDependencyFailureFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DBUpgradeDependencyFailureFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19357,9 +19330,8 @@ public enum DeleteBlueGreenDeploymentOutputError: Swift.Error, Swift.Equatable { extension DeleteBlueGreenDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBlueGreenDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueGreenDeployment = output.blueGreenDeployment } else { @@ -19480,9 +19452,8 @@ public enum DeleteCustomDBEngineVersionOutputError: Swift.Error, Swift.Equatable extension DeleteCustomDBEngineVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCustomDBEngineVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.customDBEngineVersionManifest = output.customDBEngineVersionManifest @@ -20047,9 +20018,8 @@ public enum DeleteDBClusterEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteDBClusterEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBClusterEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customEndpointType = output.customEndpointType self.dbClusterEndpointArn = output.dbClusterEndpointArn @@ -20331,9 +20301,8 @@ public enum DeleteDBClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -20529,9 +20498,8 @@ public enum DeleteDBClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteDBClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshot = output.dbClusterSnapshot } else { @@ -20651,9 +20619,8 @@ public enum DeleteDBInstanceAutomatedBackupOutputError: Swift.Error, Swift.Equat extension DeleteDBInstanceAutomatedBackupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBInstanceAutomatedBackupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstanceAutomatedBackup = output.dbInstanceAutomatedBackup } else { @@ -20814,9 +20781,8 @@ public enum DeleteDBInstanceOutputError: Swift.Error, Swift.Equatable { extension DeleteDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -21011,9 +20977,8 @@ public enum DeleteDBProxyEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteDBProxyEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBProxyEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxyEndpoint = output.dbProxyEndpoint } else { @@ -21122,9 +21087,8 @@ public enum DeleteDBProxyOutputError: Swift.Error, Swift.Equatable { extension DeleteDBProxyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBProxyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxy = output.dbProxy } else { @@ -21322,9 +21286,8 @@ public enum DeleteDBSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteDBSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDBSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSnapshot = output.dbSnapshot } else { @@ -21516,9 +21479,8 @@ public enum DeleteEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension DeleteEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -21627,9 +21589,8 @@ public enum DeleteGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -21956,9 +21917,8 @@ public enum DescribeAccountAttributesOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountQuotas = output.accountQuotas } else { @@ -22151,9 +22111,8 @@ public enum DescribeBlueGreenDeploymentsOutputError: Swift.Error, Swift.Equatabl extension DescribeBlueGreenDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBlueGreenDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueGreenDeployments = output.blueGreenDeployments self.marker = output.marker @@ -22348,9 +22307,8 @@ public enum DescribeCertificatesOutputError: Swift.Error, Swift.Equatable { extension DescribeCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.marker = output.marker @@ -22587,9 +22545,8 @@ public enum DescribeDBClusterBacktracksOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterBacktracksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterBacktracksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterBacktracks = output.dbClusterBacktracks self.marker = output.marker @@ -22793,9 +22750,8 @@ public enum DescribeDBClusterEndpointsOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterEndpoints = output.dbClusterEndpoints self.marker = output.marker @@ -22990,9 +22946,8 @@ public enum DescribeDBClusterParameterGroupsOutputError: Swift.Error, Swift.Equa extension DescribeDBClusterParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroups = output.dbClusterParameterGroups self.marker = output.marker @@ -23200,9 +23155,8 @@ public enum DescribeDBClusterParametersOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.parameters = output.parameters @@ -23338,9 +23292,8 @@ public enum DescribeDBClusterSnapshotAttributesOutputError: Swift.Error, Swift.E extension DescribeDBClusterSnapshotAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterSnapshotAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshotAttributesResult = output.dbClusterSnapshotAttributesResult } else { @@ -23587,9 +23540,8 @@ public enum DescribeDBClusterSnapshotsOutputError: Swift.Error, Swift.Equatable extension DescribeDBClusterSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClusterSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshots = output.dbClusterSnapshots self.marker = output.marker @@ -23818,9 +23770,8 @@ public enum DescribeDBClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeDBClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusters = output.dbClusters self.marker = output.marker @@ -24132,9 +24083,8 @@ public enum DescribeDBEngineVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBEngineVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBEngineVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbEngineVersions = output.dbEngineVersions self.marker = output.marker @@ -24368,9 +24318,8 @@ public enum DescribeDBInstanceAutomatedBackupsOutputError: Swift.Error, Swift.Eq extension DescribeDBInstanceAutomatedBackupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBInstanceAutomatedBackupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstanceAutomatedBackups = output.dbInstanceAutomatedBackups self.marker = output.marker @@ -24588,9 +24537,8 @@ public enum DescribeDBInstancesOutputError: Swift.Error, Swift.Equatable { extension DescribeDBInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstances = output.dbInstances self.marker = output.marker @@ -24875,9 +24823,8 @@ public enum DescribeDBLogFilesOutputError: Swift.Error, Swift.Equatable { extension DescribeDBLogFilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBLogFilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.describeDBLogFiles = output.describeDBLogFiles self.marker = output.marker @@ -25073,9 +25020,8 @@ public enum DescribeDBParameterGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroups = output.dbParameterGroups self.marker = output.marker @@ -25282,9 +25228,8 @@ public enum DescribeDBParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeDBParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.parameters = output.parameters @@ -25477,9 +25422,8 @@ public enum DescribeDBProxiesOutputError: Swift.Error, Swift.Equatable { extension DescribeDBProxiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBProxiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxies = output.dbProxies self.marker = output.marker @@ -25684,9 +25628,8 @@ public enum DescribeDBProxyEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBProxyEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBProxyEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxyEndpoints = output.dbProxyEndpoints self.marker = output.marker @@ -25894,9 +25837,8 @@ public enum DescribeDBProxyTargetGroupsOutputError: Swift.Error, Swift.Equatable extension DescribeDBProxyTargetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBProxyTargetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.targetGroups = output.targetGroups @@ -26106,9 +26048,8 @@ public enum DescribeDBProxyTargetsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBProxyTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBProxyTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.targets = output.targets @@ -26301,9 +26242,8 @@ public enum DescribeDBSecurityGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBSecurityGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBSecurityGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSecurityGroups = output.dbSecurityGroups self.marker = output.marker @@ -26439,9 +26379,8 @@ public enum DescribeDBSnapshotAttributesOutputError: Swift.Error, Swift.Equatabl extension DescribeDBSnapshotAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBSnapshotAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSnapshotAttributesResult = output.dbSnapshotAttributesResult } else { @@ -26703,9 +26642,8 @@ public enum DescribeDBSnapshotsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSnapshots = output.dbSnapshots self.marker = output.marker @@ -26899,9 +26837,8 @@ public enum DescribeDBSubnetGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeDBSubnetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDBSubnetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroups = output.dbSubnetGroups self.marker = output.marker @@ -27094,9 +27031,8 @@ public enum DescribeEngineDefaultClusterParametersOutputError: Swift.Error, Swif extension DescribeEngineDefaultClusterParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEngineDefaultClusterParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineDefaults = output.engineDefaults } else { @@ -27355,9 +27291,8 @@ public enum DescribeEngineDefaultParametersOutputError: Swift.Error, Swift.Equat extension DescribeEngineDefaultParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEngineDefaultParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineDefaults = output.engineDefaults } else { @@ -27499,9 +27434,8 @@ public enum DescribeEventCategoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeEventCategoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventCategoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventCategoriesMapList = output.eventCategoriesMapList } else { @@ -27685,9 +27619,8 @@ public enum DescribeEventSubscriptionsOutputError: Swift.Error, Swift.Equatable extension DescribeEventSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscriptionsList = output.eventSubscriptionsList self.marker = output.marker @@ -27978,9 +27911,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.marker = output.marker @@ -28215,9 +28147,8 @@ public enum DescribeExportTasksOutputError: Swift.Error, Swift.Equatable { extension DescribeExportTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExportTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportTasks = output.exportTasks self.marker = output.marker @@ -28411,9 +28342,8 @@ public enum DescribeGlobalClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeGlobalClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGlobalClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalClusters = output.globalClusters self.marker = output.marker @@ -28638,9 +28568,8 @@ public enum DescribeOptionGroupOptionsOutputError: Swift.Error, Swift.Equatable extension DescribeOptionGroupOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOptionGroupOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.optionGroupOptions = output.optionGroupOptions @@ -28878,9 +28807,8 @@ public enum DescribeOptionGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeOptionGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOptionGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.optionGroupsList = output.optionGroupsList @@ -29154,9 +29082,8 @@ public enum DescribeOrderableDBInstanceOptionsOutputError: Swift.Error, Swift.Eq extension DescribeOrderableDBInstanceOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrderableDBInstanceOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.orderableDBInstanceOptions = output.orderableDBInstanceOptions @@ -29354,9 +29281,8 @@ public enum DescribePendingMaintenanceActionsOutputError: Swift.Error, Swift.Equ extension DescribePendingMaintenanceActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePendingMaintenanceActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.pendingMaintenanceActions = output.pendingMaintenanceActions @@ -29787,9 +29713,8 @@ public enum DescribeReservedDBInstancesOfferingsOutputError: Swift.Error, Swift. extension DescribeReservedDBInstancesOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedDBInstancesOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedDBInstancesOfferings = output.reservedDBInstancesOfferings @@ -29878,9 +29803,8 @@ public enum DescribeReservedDBInstancesOutputError: Swift.Error, Swift.Equatable extension DescribeReservedDBInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedDBInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedDBInstances = output.reservedDBInstances @@ -30074,9 +29998,8 @@ public enum DescribeSourceRegionsOutputError: Swift.Error, Swift.Equatable { extension DescribeSourceRegionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSourceRegionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.sourceRegions = output.sourceRegions @@ -30214,9 +30137,8 @@ public enum DescribeValidDBInstanceModificationsOutputError: Swift.Error, Swift. extension DescribeValidDBInstanceModificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeValidDBInstanceModificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.validDBInstanceModificationsMessage = output.validDBInstanceModificationsMessage } else { @@ -30321,7 +30243,7 @@ extension RDSClientTypes { extension DomainNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30336,7 +30258,7 @@ extension DomainNotFoundFault { } /// Domain doesn't refer to an existing Active Directory domain. -public struct DomainNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DomainNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30531,9 +30453,8 @@ public enum DownloadDBLogFilePortionOutputError: Swift.Error, Swift.Equatable { extension DownloadDBLogFilePortionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DownloadDBLogFilePortionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalDataPending = output.additionalDataPending self.logFileData = output.logFileData @@ -30665,7 +30586,7 @@ extension RDSClientTypes { extension Ec2ImagePropertiesNotSupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30680,7 +30601,7 @@ extension Ec2ImagePropertiesNotSupportedFault { } /// The AMI configuration prerequisite has not been met. -public struct Ec2ImagePropertiesNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct Ec2ImagePropertiesNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31255,7 +31176,7 @@ extension RDSClientTypes { extension EventSubscriptionQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31270,7 +31191,7 @@ extension EventSubscriptionQuotaExceededFault { } /// You have reached the maximum number of event subscriptions. -public struct EventSubscriptionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventSubscriptionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31569,7 +31490,7 @@ extension RDSClientTypes { extension ExportTaskAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31584,7 +31505,7 @@ extension ExportTaskAlreadyExistsFault { } /// You can't start an export task that's already running. -public struct ExportTaskAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExportTaskAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31620,7 +31541,7 @@ extension ExportTaskAlreadyExistsFaultBody: Swift.Decodable { extension ExportTaskNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31635,7 +31556,7 @@ extension ExportTaskNotFoundFault { } /// The export task doesn't exist. -public struct ExportTaskNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExportTaskNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31756,9 +31677,8 @@ public enum FailoverDBClusterOutputError: Swift.Error, Swift.Equatable { extension FailoverDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailoverDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -31885,9 +31805,8 @@ public enum FailoverGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension FailoverGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailoverGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -32267,7 +32186,7 @@ extension RDSClientTypes { extension GlobalClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32282,7 +32201,7 @@ extension GlobalClusterAlreadyExistsFault { } /// The GlobalClusterIdentifier already exists. Choose a new global database identifier (unique name) to create a new global database cluster. -public struct GlobalClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32409,7 +32328,7 @@ extension RDSClientTypes { extension GlobalClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32424,7 +32343,7 @@ extension GlobalClusterNotFoundFault { } /// The GlobalClusterIdentifier doesn't refer to an existing global database cluster. -public struct GlobalClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32460,7 +32379,7 @@ extension GlobalClusterNotFoundFaultBody: Swift.Decodable { extension GlobalClusterQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32475,7 +32394,7 @@ extension GlobalClusterQuotaExceededFault { } /// The number of global database clusters for this account is already at the maximum allowed. -public struct GlobalClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GlobalClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32591,7 +32510,7 @@ extension RDSClientTypes { extension IamRoleMissingPermissionsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32606,7 +32525,7 @@ extension IamRoleMissingPermissionsFault { } /// The IAM role requires additional permissions to export to an Amazon S3 bucket. -public struct IamRoleMissingPermissionsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IamRoleMissingPermissionsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32642,7 +32561,7 @@ extension IamRoleMissingPermissionsFaultBody: Swift.Decodable { extension IamRoleNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32657,7 +32576,7 @@ extension IamRoleNotFoundFault { } /// The IAM role is missing for exporting to an Amazon S3 bucket. -public struct IamRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IamRoleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32693,7 +32612,7 @@ extension IamRoleNotFoundFaultBody: Swift.Decodable { extension InstanceQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32708,7 +32627,7 @@ extension InstanceQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of DB instances. -public struct InstanceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32744,7 +32663,7 @@ extension InstanceQuotaExceededFaultBody: Swift.Decodable { extension InsufficientAvailableIPsInSubnetFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32759,7 +32678,7 @@ extension InsufficientAvailableIPsInSubnetFault { } /// The requested operation can't be performed because there aren't enough available IP addresses in the proxy's subnets. Add more CIDR blocks to the VPC or remove IP address that aren't required from the subnets. -public struct InsufficientAvailableIPsInSubnetFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientAvailableIPsInSubnetFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32795,7 +32714,7 @@ extension InsufficientAvailableIPsInSubnetFaultBody: Swift.Decodable { extension InsufficientDBClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32810,7 +32729,7 @@ extension InsufficientDBClusterCapacityFault { } /// The DB cluster doesn't have enough capacity for the current operation. -public struct InsufficientDBClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientDBClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32846,7 +32765,7 @@ extension InsufficientDBClusterCapacityFaultBody: Swift.Decodable { extension InsufficientDBInstanceCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32861,7 +32780,7 @@ extension InsufficientDBInstanceCapacityFault { } /// The specified DB instance class isn't available in the specified Availability Zone. -public struct InsufficientDBInstanceCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientDBInstanceCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32897,7 +32816,7 @@ extension InsufficientDBInstanceCapacityFaultBody: Swift.Decodable { extension InsufficientStorageClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32912,7 +32831,7 @@ extension InsufficientStorageClusterCapacityFault { } /// There is insufficient storage available for the current action. You might be able to resolve this error by updating your subnet group to use different Availability Zones that have more storage available. -public struct InsufficientStorageClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientStorageClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32948,7 +32867,7 @@ extension InsufficientStorageClusterCapacityFaultBody: Swift.Decodable { extension InvalidBlueGreenDeploymentStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -32963,7 +32882,7 @@ extension InvalidBlueGreenDeploymentStateFault { } /// The blue/green deployment can't be switched over or deleted because there is an invalid configuration in the green environment. -public struct InvalidBlueGreenDeploymentStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidBlueGreenDeploymentStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32999,7 +32918,7 @@ extension InvalidBlueGreenDeploymentStateFaultBody: Swift.Decodable { extension InvalidCustomDBEngineVersionStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33014,7 +32933,7 @@ extension InvalidCustomDBEngineVersionStateFault { } /// You can't delete the CEV. -public struct InvalidCustomDBEngineVersionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCustomDBEngineVersionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33050,7 +32969,7 @@ extension InvalidCustomDBEngineVersionStateFaultBody: Swift.Decodable { extension InvalidDBClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33065,7 +32984,7 @@ extension InvalidDBClusterCapacityFault { } /// Capacity isn't a valid Aurora Serverless DB cluster capacity. Valid capacity values are 2, 4, 8, 16, 32, 64, 128, and 256. -public struct InvalidDBClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33101,7 +33020,7 @@ extension InvalidDBClusterCapacityFaultBody: Swift.Decodable { extension InvalidDBClusterEndpointStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33116,7 +33035,7 @@ extension InvalidDBClusterEndpointStateFault { } /// The requested operation can't be performed on the endpoint while the endpoint is in this state. -public struct InvalidDBClusterEndpointStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterEndpointStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33152,7 +33071,7 @@ extension InvalidDBClusterEndpointStateFaultBody: Swift.Decodable { extension InvalidDBClusterSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33167,7 +33086,7 @@ extension InvalidDBClusterSnapshotStateFault { } /// The supplied value isn't a valid DB cluster snapshot state. -public struct InvalidDBClusterSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33203,7 +33122,7 @@ extension InvalidDBClusterSnapshotStateFaultBody: Swift.Decodable { extension InvalidDBClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33218,7 +33137,7 @@ extension InvalidDBClusterStateFault { } /// The requested operation can't be performed while the cluster is in this state. -public struct InvalidDBClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33254,7 +33173,7 @@ extension InvalidDBClusterStateFaultBody: Swift.Decodable { extension InvalidDBInstanceAutomatedBackupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33269,7 +33188,7 @@ extension InvalidDBInstanceAutomatedBackupStateFault { } /// The automated backup is in an invalid state. For example, this automated backup is associated with an active instance. -public struct InvalidDBInstanceAutomatedBackupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBInstanceAutomatedBackupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33305,7 +33224,7 @@ extension InvalidDBInstanceAutomatedBackupStateFaultBody: Swift.Decodable { extension InvalidDBInstanceStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33320,7 +33239,7 @@ extension InvalidDBInstanceStateFault { } /// The DB instance isn't in a valid state. -public struct InvalidDBInstanceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBInstanceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33356,7 +33275,7 @@ extension InvalidDBInstanceStateFaultBody: Swift.Decodable { extension InvalidDBParameterGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33371,7 +33290,7 @@ extension InvalidDBParameterGroupStateFault { } /// The DB parameter group is in use or is in an invalid state. If you are attempting to delete the parameter group, you can't delete it when the parameter group is in this state. -public struct InvalidDBParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33407,7 +33326,7 @@ extension InvalidDBParameterGroupStateFaultBody: Swift.Decodable { extension InvalidDBProxyEndpointStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33422,7 +33341,7 @@ extension InvalidDBProxyEndpointStateFault { } /// You can't perform this operation while the DB proxy endpoint is in a particular state. -public struct InvalidDBProxyEndpointStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBProxyEndpointStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33458,7 +33377,7 @@ extension InvalidDBProxyEndpointStateFaultBody: Swift.Decodable { extension InvalidDBProxyStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33473,7 +33392,7 @@ extension InvalidDBProxyStateFault { } /// The requested operation can't be performed while the proxy is in this state. -public struct InvalidDBProxyStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBProxyStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33509,7 +33428,7 @@ extension InvalidDBProxyStateFaultBody: Swift.Decodable { extension InvalidDBSecurityGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33524,7 +33443,7 @@ extension InvalidDBSecurityGroupStateFault { } /// The state of the DB security group doesn't allow deletion. -public struct InvalidDBSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33560,7 +33479,7 @@ extension InvalidDBSecurityGroupStateFaultBody: Swift.Decodable { extension InvalidDBSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33575,7 +33494,7 @@ extension InvalidDBSnapshotStateFault { } /// The state of the DB snapshot doesn't allow deletion. -public struct InvalidDBSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33611,7 +33530,7 @@ extension InvalidDBSnapshotStateFaultBody: Swift.Decodable { extension InvalidDBSubnetGroupFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33626,7 +33545,7 @@ extension InvalidDBSubnetGroupFault { } /// The DBSubnetGroup doesn't belong to the same VPC as that of an existing cross-region read replica of the same source instance. -public struct InvalidDBSubnetGroupFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSubnetGroupFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33662,7 +33581,7 @@ extension InvalidDBSubnetGroupFaultBody: Swift.Decodable { extension InvalidDBSubnetGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33677,7 +33596,7 @@ extension InvalidDBSubnetGroupStateFault { } /// The DB subnet group cannot be deleted because it's in use. -public struct InvalidDBSubnetGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSubnetGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33713,7 +33632,7 @@ extension InvalidDBSubnetGroupStateFaultBody: Swift.Decodable { extension InvalidDBSubnetStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33728,7 +33647,7 @@ extension InvalidDBSubnetStateFault { } /// The DB subnet isn't in the available state. -public struct InvalidDBSubnetStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDBSubnetStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33764,7 +33683,7 @@ extension InvalidDBSubnetStateFaultBody: Swift.Decodable { extension InvalidEventSubscriptionStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33779,7 +33698,7 @@ extension InvalidEventSubscriptionStateFault { } /// This error can occur if someone else is modifying a subscription. You should retry the action. -public struct InvalidEventSubscriptionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEventSubscriptionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33815,7 +33734,7 @@ extension InvalidEventSubscriptionStateFaultBody: Swift.Decodable { extension InvalidExportOnlyFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33830,7 +33749,7 @@ extension InvalidExportOnlyFault { } /// The export is invalid for exporting to an Amazon S3 bucket. -public struct InvalidExportOnlyFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidExportOnlyFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33866,7 +33785,7 @@ extension InvalidExportOnlyFaultBody: Swift.Decodable { extension InvalidExportSourceStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33881,7 +33800,7 @@ extension InvalidExportSourceStateFault { } /// The state of the export snapshot is invalid for exporting to an Amazon S3 bucket. -public struct InvalidExportSourceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidExportSourceStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33917,7 +33836,7 @@ extension InvalidExportSourceStateFaultBody: Swift.Decodable { extension InvalidExportTaskStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33932,7 +33851,7 @@ extension InvalidExportTaskStateFault { } /// You can't cancel an export task that has completed. -public struct InvalidExportTaskStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidExportTaskStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33968,7 +33887,7 @@ extension InvalidExportTaskStateFaultBody: Swift.Decodable { extension InvalidGlobalClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33983,7 +33902,7 @@ extension InvalidGlobalClusterStateFault { } /// The global cluster is in an invalid state and can't perform the requested operation. -public struct InvalidGlobalClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGlobalClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34019,7 +33938,7 @@ extension InvalidGlobalClusterStateFaultBody: Swift.Decodable { extension InvalidOptionGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34034,7 +33953,7 @@ extension InvalidOptionGroupStateFault { } /// The option group isn't in the available state. -public struct InvalidOptionGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOptionGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34070,7 +33989,7 @@ extension InvalidOptionGroupStateFaultBody: Swift.Decodable { extension InvalidRestoreFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34085,7 +34004,7 @@ extension InvalidRestoreFault { } /// Cannot restore from VPC backup to non-VPC DB instance. -public struct InvalidRestoreFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRestoreFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34121,7 +34040,7 @@ extension InvalidRestoreFaultBody: Swift.Decodable { extension InvalidS3BucketFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34136,7 +34055,7 @@ extension InvalidS3BucketFault { } /// The specified Amazon S3 bucket name can't be found or Amazon RDS isn't authorized to access the specified Amazon S3 bucket. Verify the SourceS3BucketName and S3IngestionRoleArn values and try again. -public struct InvalidS3BucketFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3BucketFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34172,7 +34091,7 @@ extension InvalidS3BucketFaultBody: Swift.Decodable { extension InvalidSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34187,7 +34106,7 @@ extension InvalidSubnet { } /// The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC. -public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34223,7 +34142,7 @@ extension InvalidSubnetBody: Swift.Decodable { extension InvalidVPCNetworkStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34238,7 +34157,7 @@ extension InvalidVPCNetworkStateFault { } /// The DB subnet group doesn't cover all Availability Zones after it's created because of users' change. -public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34274,7 +34193,7 @@ extension InvalidVPCNetworkStateFaultBody: Swift.Decodable { extension KMSKeyNotAccessibleFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34289,7 +34208,7 @@ extension KMSKeyNotAccessibleFault { } /// An error occurred accessing an Amazon Web Services KMS key. -public struct KMSKeyNotAccessibleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSKeyNotAccessibleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34440,9 +34359,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -34689,9 +34607,8 @@ public enum ModifyActivityStreamOutputError: Swift.Error, Swift.Equatable { extension ModifyActivityStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyActivityStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engineNativeAuditFieldsIncluded = output.engineNativeAuditFieldsIncluded self.kinesisStreamName = output.kinesisStreamName @@ -34858,9 +34775,8 @@ public enum ModifyCertificatesOutputError: Swift.Error, Swift.Equatable { extension ModifyCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate } else { @@ -35010,9 +34926,8 @@ public enum ModifyCurrentDBClusterCapacityOutputError: Swift.Error, Swift.Equata extension ModifyCurrentDBClusterCapacityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyCurrentDBClusterCapacityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currentCapacity = output.currentCapacity self.dbClusterIdentifier = output.dbClusterIdentifier @@ -35195,9 +35110,8 @@ public enum ModifyCustomDBEngineVersionOutputError: Swift.Error, Swift.Equatable extension ModifyCustomDBEngineVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyCustomDBEngineVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.customDBEngineVersionManifest = output.customDBEngineVersionManifest @@ -35851,9 +35765,8 @@ public enum ModifyDBClusterEndpointOutputError: Swift.Error, Swift.Equatable { extension ModifyDBClusterEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customEndpointType = output.customEndpointType self.dbClusterEndpointArn = output.dbClusterEndpointArn @@ -36670,9 +36583,8 @@ public enum ModifyDBClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -36820,9 +36732,8 @@ public enum ModifyDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatab extension ModifyDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroupName = output.dbClusterParameterGroupName } else { @@ -37030,9 +36941,8 @@ public enum ModifyDBClusterSnapshotAttributeOutputError: Swift.Error, Swift.Equa extension ModifyDBClusterSnapshotAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBClusterSnapshotAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterSnapshotAttributesResult = output.dbClusterSnapshotAttributesResult } else { @@ -37900,9 +37810,8 @@ public enum ModifyDBInstanceOutputError: Swift.Error, Swift.Equatable { extension ModifyDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -38052,9 +37961,8 @@ public enum ModifyDBParameterGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyDBParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroupName = output.dbParameterGroupName } else { @@ -38216,9 +38124,8 @@ public enum ModifyDBProxyEndpointOutputError: Swift.Error, Swift.Equatable { extension ModifyDBProxyEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBProxyEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxyEndpoint = output.dbProxyEndpoint } else { @@ -38458,9 +38365,8 @@ public enum ModifyDBProxyOutputError: Swift.Error, Swift.Equatable { extension ModifyDBProxyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBProxyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxy = output.dbProxy } else { @@ -38605,9 +38511,8 @@ public enum ModifyDBProxyTargetGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyDBProxyTargetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBProxyTargetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxyTargetGroup = output.dbProxyTargetGroup } else { @@ -38805,9 +38710,8 @@ public enum ModifyDBSnapshotAttributeOutputError: Swift.Error, Swift.Equatable { extension ModifyDBSnapshotAttributeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBSnapshotAttributeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSnapshotAttributesResult = output.dbSnapshotAttributesResult } else { @@ -38950,9 +38854,8 @@ public enum ModifyDBSnapshotOutputError: Swift.Error, Swift.Equatable { extension ModifyDBSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSnapshot = output.dbSnapshot } else { @@ -39117,9 +39020,8 @@ public enum ModifyDBSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyDBSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyDBSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSubnetGroup = output.dbSubnetGroup } else { @@ -39307,9 +39209,8 @@ public enum ModifyEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension ModifyEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -39476,9 +39377,8 @@ public enum ModifyGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -39673,9 +39573,8 @@ public enum ModifyOptionGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyOptionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyOptionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.optionGroup = output.optionGroup } else { @@ -39715,7 +39614,7 @@ extension ModifyOptionGroupOutputResponseBody: Swift.Decodable { extension NetworkTypeNotSupported { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -39730,7 +39629,7 @@ extension NetworkTypeNotSupported { } /// The network type is invalid for the DB instance. Valid nework type values are IPV4 and DUAL. -public struct NetworkTypeNotSupported: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NetworkTypeNotSupported: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -40284,7 +40183,7 @@ extension RDSClientTypes { extension OptionGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -40299,7 +40198,7 @@ extension OptionGroupAlreadyExistsFault { } /// The option group you are trying to create already exists. -public struct OptionGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OptionGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -40380,7 +40279,7 @@ extension RDSClientTypes { extension OptionGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -40395,7 +40294,7 @@ extension OptionGroupNotFoundFault { } /// The specified option group could not be found. -public struct OptionGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OptionGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -40861,7 +40760,7 @@ extension RDSClientTypes { extension OptionGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -40876,7 +40775,7 @@ extension OptionGroupQuotaExceededFault { } /// The quota of 20 option groups was exceeded for this Amazon Web Services account. -public struct OptionGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OptionGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42196,7 +42095,7 @@ extension RDSClientTypes { extension PointInTimeRestoreNotEnabledFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -42211,7 +42110,7 @@ extension PointInTimeRestoreNotEnabledFault { } /// SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod equal to 0. -public struct PointInTimeRestoreNotEnabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PointInTimeRestoreNotEnabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42398,9 +42297,8 @@ public enum PromoteReadReplicaDBClusterOutputError: Swift.Error, Swift.Equatable extension PromoteReadReplicaDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PromoteReadReplicaDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -42549,9 +42447,8 @@ public enum PromoteReadReplicaOutputError: Swift.Error, Swift.Equatable { extension PromoteReadReplicaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PromoteReadReplicaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -42591,7 +42488,7 @@ extension PromoteReadReplicaOutputResponseBody: Swift.Decodable { extension ProvisionedIopsNotAvailableInAZFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -42606,7 +42503,7 @@ extension ProvisionedIopsNotAvailableInAZFault { } /// Provisioned IOPS not available in the specified Availability Zone. -public struct ProvisionedIopsNotAvailableInAZFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProvisionedIopsNotAvailableInAZFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42773,9 +42670,8 @@ public enum PurchaseReservedDBInstancesOfferingOutputError: Swift.Error, Swift.E extension PurchaseReservedDBInstancesOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseReservedDBInstancesOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedDBInstance = output.reservedDBInstance } else { @@ -42943,9 +42839,8 @@ public enum RebootDBClusterOutputError: Swift.Error, Swift.Equatable { extension RebootDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -43068,9 +42963,8 @@ public enum RebootDBInstanceOutputError: Swift.Error, Swift.Equatable { extension RebootDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -43323,9 +43217,8 @@ public enum RegisterDBProxyTargetsOutputError: Swift.Error, Swift.Equatable { extension RegisterDBProxyTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterDBProxyTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbProxyTargets = output.dbProxyTargets } else { @@ -43463,9 +43356,8 @@ public enum RemoveFromGlobalClusterOutputError: Swift.Error, Swift.Equatable { extension RemoveFromGlobalClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveFromGlobalClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.globalCluster = output.globalCluster } else { @@ -43796,9 +43688,8 @@ public enum RemoveSourceIdentifierFromSubscriptionOutputError: Swift.Error, Swif extension RemoveSourceIdentifierFromSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveSourceIdentifierFromSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -44207,7 +44098,7 @@ extension RDSClientTypes { extension ReservedDBInstanceAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -44222,7 +44113,7 @@ extension ReservedDBInstanceAlreadyExistsFault { } /// User already has a reservation with the given identifier. -public struct ReservedDBInstanceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedDBInstanceAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -44258,7 +44149,7 @@ extension ReservedDBInstanceAlreadyExistsFaultBody: Swift.Decodable { extension ReservedDBInstanceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -44273,7 +44164,7 @@ extension ReservedDBInstanceNotFoundFault { } /// The specified reserved DB Instance not found. -public struct ReservedDBInstanceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedDBInstanceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -44309,7 +44200,7 @@ extension ReservedDBInstanceNotFoundFaultBody: Swift.Decodable { extension ReservedDBInstanceQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -44324,7 +44215,7 @@ extension ReservedDBInstanceQuotaExceededFault { } /// Request would exceed the user's DB Instance quota. -public struct ReservedDBInstanceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedDBInstanceQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -44511,7 +44402,7 @@ extension RDSClientTypes { extension ReservedDBInstancesOfferingNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -44526,7 +44417,7 @@ extension ReservedDBInstancesOfferingNotFoundFault { } /// Specified offering does not exist. -public struct ReservedDBInstancesOfferingNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedDBInstancesOfferingNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -44680,9 +44571,8 @@ public enum ResetDBClusterParameterGroupOutputError: Swift.Error, Swift.Equatabl extension ResetDBClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetDBClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbClusterParameterGroupName = output.dbClusterParameterGroupName } else { @@ -44852,9 +44742,8 @@ public enum ResetDBParameterGroupOutputError: Swift.Error, Swift.Equatable { extension ResetDBParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetDBParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbParameterGroupName = output.dbParameterGroupName } else { @@ -44895,7 +44784,7 @@ extension ResetDBParameterGroupOutputResponseBody: Swift.Decodable { extension ResourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -44910,7 +44799,7 @@ extension ResourceNotFoundFault { } /// The specified resource ID was not found. -public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -45636,9 +45525,8 @@ public enum RestoreDBClusterFromS3OutputError: Swift.Error, Swift.Equatable { extension RestoreDBClusterFromS3OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBClusterFromS3OutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -46241,9 +46129,8 @@ public enum RestoreDBClusterFromSnapshotOutputError: Swift.Error, Swift.Equatabl extension RestoreDBClusterFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBClusterFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -46826,9 +46713,8 @@ public enum RestoreDBClusterToPointInTimeOutputError: Swift.Error, Swift.Equatab extension RestoreDBClusterToPointInTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBClusterToPointInTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -47531,9 +47417,8 @@ public enum RestoreDBInstanceFromDBSnapshotOutputError: Swift.Error, Swift.Equat extension RestoreDBInstanceFromDBSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBInstanceFromDBSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -48389,9 +48274,8 @@ public enum RestoreDBInstanceFromS3OutputError: Swift.Error, Swift.Equatable { extension RestoreDBInstanceFromS3OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBInstanceFromS3OutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -49126,9 +49010,8 @@ public enum RestoreDBInstanceToPointInTimeOutputError: Swift.Error, Swift.Equata extension RestoreDBInstanceToPointInTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreDBInstanceToPointInTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -49329,9 +49212,8 @@ public enum RevokeDBSecurityGroupIngressOutputError: Swift.Error, Swift.Equatabl extension RevokeDBSecurityGroupIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeDBSecurityGroupIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbSecurityGroup = output.dbSecurityGroup } else { @@ -49371,7 +49253,7 @@ extension RevokeDBSecurityGroupIngressOutputResponseBody: Swift.Decodable { extension SNSInvalidTopicFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -49386,7 +49268,7 @@ extension SNSInvalidTopicFault { } /// SNS has responded that there is a problem with the SNS topic specified. -public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49422,7 +49304,7 @@ extension SNSInvalidTopicFaultBody: Swift.Decodable { extension SNSNoAuthorizationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -49437,7 +49319,7 @@ extension SNSNoAuthorizationFault { } /// You do not have permission to publish to the SNS topic ARN. -public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49473,7 +49355,7 @@ extension SNSNoAuthorizationFaultBody: Swift.Decodable { extension SNSTopicArnNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -49488,7 +49370,7 @@ extension SNSTopicArnNotFoundFault { } /// The SNS topic ARN does not exist. -public struct SNSTopicArnNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSTopicArnNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49784,7 +49666,7 @@ extension RDSClientTypes { extension SharedSnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -49799,7 +49681,7 @@ extension SharedSnapshotQuotaExceededFault { } /// You have exceeded the maximum number of accounts that you can share a manual DB snapshot with. -public struct SharedSnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SharedSnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49835,7 +49717,7 @@ extension SharedSnapshotQuotaExceededFaultBody: Swift.Decodable { extension SnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -49850,7 +49732,7 @@ extension SnapshotQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of DB snapshots. -public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49886,7 +49768,7 @@ extension SnapshotQuotaExceededFaultBody: Swift.Decodable { extension SourceClusterNotSupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -49901,7 +49783,7 @@ extension SourceClusterNotSupportedFault { } /// The source DB cluster isn't supported for a blue/green deployment. -public struct SourceClusterNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceClusterNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49937,7 +49819,7 @@ extension SourceClusterNotSupportedFaultBody: Swift.Decodable { extension SourceDatabaseNotSupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -49952,7 +49834,7 @@ extension SourceDatabaseNotSupportedFault { } /// The source DB instance isn't supported for a blue/green deployment. -public struct SourceDatabaseNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceDatabaseNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -49988,7 +49870,7 @@ extension SourceDatabaseNotSupportedFaultBody: Swift.Decodable { extension SourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -50003,7 +49885,7 @@ extension SourceNotFoundFault { } /// The requested source could not be found. -public struct SourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -50280,9 +50162,8 @@ public enum StartActivityStreamOutputError: Swift.Error, Swift.Equatable { extension StartActivityStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartActivityStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applyImmediately = output.applyImmediately self.engineNativeAuditFieldsIncluded = output.engineNativeAuditFieldsIncluded @@ -50443,9 +50324,8 @@ public enum StartDBClusterOutputError: Swift.Error, Swift.Equatable { extension StartDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -50593,9 +50473,8 @@ public enum StartDBInstanceAutomatedBackupsReplicationOutputError: Swift.Error, extension StartDBInstanceAutomatedBackupsReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDBInstanceAutomatedBackupsReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstanceAutomatedBackup = output.dbInstanceAutomatedBackup } else { @@ -50722,9 +50601,8 @@ public enum StartDBInstanceOutputError: Swift.Error, Swift.Equatable { extension StartDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -50988,9 +50866,8 @@ public enum StartExportTaskOutputError: Swift.Error, Swift.Equatable { extension StartExportTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartExportTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exportOnly = output.exportOnly self.exportTaskIdentifier = output.exportTaskIdentifier @@ -51304,9 +51181,8 @@ public enum StopActivityStreamOutputError: Swift.Error, Swift.Equatable { extension StopActivityStreamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopActivityStreamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.kinesisStreamName = output.kinesisStreamName self.kmsKeyId = output.kmsKeyId @@ -51437,9 +51313,8 @@ public enum StopDBClusterOutputError: Swift.Error, Swift.Equatable { extension StopDBClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDBClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbCluster = output.dbCluster } else { @@ -51548,9 +51423,8 @@ public enum StopDBInstanceAutomatedBackupsReplicationOutputError: Swift.Error, S extension StopDBInstanceAutomatedBackupsReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDBInstanceAutomatedBackupsReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstanceAutomatedBackup = output.dbInstanceAutomatedBackup } else { @@ -51676,9 +51550,8 @@ public enum StopDBInstanceOutputError: Swift.Error, Swift.Equatable { extension StopDBInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDBInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { @@ -51718,7 +51591,7 @@ extension StopDBInstanceOutputResponseBody: Swift.Decodable { extension StorageQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -51733,7 +51606,7 @@ extension StorageQuotaExceededFault { } /// The request would result in the user exceeding the allowed amount of storage available across all DB instances. -public struct StorageQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -51769,7 +51642,7 @@ extension StorageQuotaExceededFaultBody: Swift.Decodable { extension StorageTypeNotSupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -51784,7 +51657,7 @@ extension StorageTypeNotSupportedFault { } /// Storage of the StorageType specified can't be associated with the DB instance. -public struct StorageTypeNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageTypeNotSupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -51885,7 +51758,7 @@ extension RDSClientTypes { extension SubnetAlreadyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -51900,7 +51773,7 @@ extension SubnetAlreadyInUse { } /// The DB subnet is already in use in the Availability Zone. -public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -51936,7 +51809,7 @@ extension SubnetAlreadyInUseBody: Swift.Decodable { extension SubscriptionAlreadyExistFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -51951,7 +51824,7 @@ extension SubscriptionAlreadyExistFault { } /// The supplied subscription name already exists. -public struct SubscriptionAlreadyExistFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionAlreadyExistFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -51987,7 +51860,7 @@ extension SubscriptionAlreadyExistFaultBody: Swift.Decodable { extension SubscriptionCategoryNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -52002,7 +51875,7 @@ extension SubscriptionCategoryNotFoundFault { } /// The supplied category does not exist. -public struct SubscriptionCategoryNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionCategoryNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -52038,7 +51911,7 @@ extension SubscriptionCategoryNotFoundFaultBody: Swift.Decodable { extension SubscriptionNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -52053,7 +51926,7 @@ extension SubscriptionNotFoundFault { } /// The subscription name does not exist. -public struct SubscriptionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -52171,9 +52044,8 @@ public enum SwitchoverBlueGreenDeploymentOutputError: Swift.Error, Swift.Equatab extension SwitchoverBlueGreenDeploymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SwitchoverBlueGreenDeploymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blueGreenDeployment = output.blueGreenDeployment } else { @@ -52353,9 +52225,8 @@ public enum SwitchoverReadReplicaOutputError: Swift.Error, Swift.Equatable { extension SwitchoverReadReplicaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SwitchoverReadReplicaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbInstance = output.dbInstance } else { diff --git a/Sources/Services/AWSRDSData/RDSDataClient.swift b/Sources/Services/AWSRDSData/RDSDataClient.swift index 767f4e525e9..b729ed97255 100644 --- a/Sources/Services/AWSRDSData/RDSDataClient.swift +++ b/Sources/Services/AWSRDSData/RDSDataClient.swift @@ -208,6 +208,7 @@ extension RDSDataClient: RDSDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchExecuteStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension RDSDataClient: RDSDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension RDSDataClient: RDSDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "beginTransaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension RDSDataClient: RDSDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension RDSDataClient: RDSDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "commitTransaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension RDSDataClient: RDSDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -314,6 +317,7 @@ extension RDSDataClient: RDSDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeSql") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -329,7 +333,7 @@ extension RDSDataClient: RDSDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -349,6 +353,7 @@ extension RDSDataClient: RDSDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -364,7 +369,7 @@ extension RDSDataClient: RDSDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +389,7 @@ extension RDSDataClient: RDSDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rds-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rollbackTransaction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -399,7 +405,7 @@ extension RDSDataClient: RDSDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRDSData/models/Models.swift b/Sources/Services/AWSRDSData/models/Models.swift index 02fb82daa31..86020a5d19c 100644 --- a/Sources/Services/AWSRDSData/models/Models.swift +++ b/Sources/Services/AWSRDSData/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -193,9 +192,8 @@ extension RDSDataClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -209,7 +207,7 @@ extension BadRequestException { } /// There is an error in the call or in a SQL statement. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -432,9 +430,8 @@ public enum BatchExecuteStatementOutputError: Swift.Error, Swift.Equatable { extension BatchExecuteStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchExecuteStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.updateResults = output.updateResults } else { @@ -601,9 +598,8 @@ public enum BeginTransactionOutputError: Swift.Error, Swift.Equatable { extension BeginTransactionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BeginTransactionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transactionId = output.transactionId } else { @@ -917,9 +913,8 @@ public enum CommitTransactionOutputError: Swift.Error, Swift.Equatable { extension CommitTransactionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CommitTransactionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transactionStatus = output.transactionStatus } else { @@ -1120,9 +1115,8 @@ public enum ExecuteSqlOutputError: Swift.Error, Swift.Equatable { extension ExecuteSqlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteSqlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sqlStatementResults = output.sqlStatementResults } else { @@ -1386,9 +1380,8 @@ public enum ExecuteStatementOutputError: Swift.Error, Swift.Equatable { extension ExecuteStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnMetadata = output.columnMetadata self.formattedRecords = output.formattedRecords @@ -1601,9 +1594,8 @@ extension RDSDataClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1617,7 +1609,7 @@ extension ForbiddenException { } /// There are insufficient privileges to make the call. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1662,7 +1654,7 @@ extension InternalServerErrorException { } /// An internal error occurred. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1708,9 +1700,8 @@ extension RDSDataClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1724,7 +1715,7 @@ extension NotFoundException { } /// The resourceArn, secretArn, or transactionId value can't be found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2108,9 +2099,8 @@ public enum RollbackTransactionOutputError: Swift.Error, Swift.Equatable { extension RollbackTransactionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RollbackTransactionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transactionStatus = output.transactionStatus } else { @@ -2158,7 +2148,7 @@ extension ServiceUnavailableError { } /// The service specified by the resourceArn parameter is not available. -public struct ServiceUnavailableError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2284,9 +2274,8 @@ extension RDSDataClientTypes { extension StatementTimeoutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StatementTimeoutExceptionBody = try responseDecoder.decode(responseBody: data) self.dbConnectionId = output.dbConnectionId self.message = output.message @@ -2302,7 +2291,7 @@ extension StatementTimeoutException { } /// The execution of the SQL statement timed out. -public struct StatementTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StatementTimeoutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRUM/RUMClient.swift b/Sources/Services/AWSRUM/RUMClient.swift index 6b3c2cc6f7e..93c5e6cbdf4 100644 --- a/Sources/Services/AWSRUM/RUMClient.swift +++ b/Sources/Services/AWSRUM/RUMClient.swift @@ -215,6 +215,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchCreateRumMetricDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -230,7 +231,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -250,6 +251,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteRumMetricDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -263,7 +265,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetRumMetricDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -331,7 +335,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -351,6 +355,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRumMetricsDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -396,7 +402,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -416,6 +422,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -428,7 +435,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -448,6 +455,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppMonitorData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -463,7 +471,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -483,6 +491,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppMonitors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -496,7 +505,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -516,6 +525,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRumMetricsDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -529,7 +539,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -549,6 +559,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -561,7 +572,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -581,6 +592,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRumEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "dataplane.")) @@ -596,7 +608,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +628,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRumMetricsDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -631,7 +644,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -651,6 +664,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -666,7 +680,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -686,6 +700,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -699,7 +714,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -719,6 +734,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppMonitor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -734,7 +750,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -754,6 +770,7 @@ extension RUMClient: RUMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rum") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRumMetricDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -769,7 +786,7 @@ extension RUMClient: RUMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRUM/models/Models.swift b/Sources/Services/AWSRUM/models/Models.swift index 6a7c90c09c4..cb6f07b0106 100644 --- a/Sources/Services/AWSRUM/models/Models.swift +++ b/Sources/Services/AWSRUM/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient permissions to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -678,9 +677,8 @@ public enum BatchCreateRumMetricDefinitionsOutputError: Swift.Error, Swift.Equat extension BatchCreateRumMetricDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchCreateRumMetricDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.metricDefinitions = output.metricDefinitions @@ -910,9 +908,8 @@ public enum BatchDeleteRumMetricDefinitionsOutputError: Swift.Error, Swift.Equat extension BatchDeleteRumMetricDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteRumMetricDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.metricDefinitionIds = output.metricDefinitionIds @@ -1083,9 +1080,8 @@ public enum BatchGetRumMetricDefinitionsOutputError: Swift.Error, Swift.Equatabl extension BatchGetRumMetricDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetRumMetricDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metricDefinitions = output.metricDefinitions self.nextToken = output.nextToken @@ -1143,9 +1139,8 @@ extension BatchGetRumMetricDefinitionsOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -1163,7 +1158,7 @@ extension ConflictException { } /// This operation attempted to create a resource that already exists. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1372,9 +1367,8 @@ public enum CreateAppMonitorOutputError: Swift.Error, Swift.Equatable { extension CreateAppMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -1868,9 +1862,8 @@ public enum GetAppMonitorDataOutputError: Swift.Error, Swift.Equatable { extension GetAppMonitorDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppMonitorDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -1989,9 +1982,8 @@ public enum GetAppMonitorOutputError: Swift.Error, Swift.Equatable { extension GetAppMonitorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppMonitorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appMonitor = output.appMonitor } else { @@ -2035,9 +2027,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2051,7 +2042,7 @@ extension InternalServerException { } /// Internal service exception. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2168,9 +2159,8 @@ public enum ListAppMonitorsOutputError: Swift.Error, Swift.Equatable { extension ListAppMonitorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppMonitorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appMonitorSummaries = output.appMonitorSummaries self.nextToken = output.nextToken @@ -2312,9 +2302,8 @@ public enum ListRumMetricsDestinationsOutputError: Swift.Error, Swift.Equatable extension ListRumMetricsDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRumMetricsDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinations = output.destinations self.nextToken = output.nextToken @@ -2429,9 +2418,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.tags = output.tags @@ -3238,9 +3226,8 @@ extension RUMClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -3258,7 +3245,7 @@ extension ResourceNotFoundException { } /// Resource not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3391,9 +3378,8 @@ extension RUMClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3407,7 +3393,7 @@ extension ServiceQuotaExceededException { } /// This request exceeds a service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3626,9 +3612,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -3646,7 +3631,7 @@ extension ThrottlingException { } /// The request was throttled because of quota limits. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4154,9 +4139,8 @@ extension RUMClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4170,7 +4154,7 @@ extension ValidationException { } /// One of the arguments for the request is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRbin/RbinClient.swift b/Sources/Services/AWSRbin/RbinClient.swift index 941cb320cc1..a24b6117c26 100644 --- a/Sources/Services/AWSRbin/RbinClient.swift +++ b/Sources/Services/AWSRbin/RbinClient.swift @@ -208,6 +208,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -322,7 +326,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -342,6 +346,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -354,7 +359,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -374,6 +379,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "lockRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +431,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +451,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unlockRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +464,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +484,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -489,7 +498,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -509,6 +518,7 @@ extension RbinClient: RbinClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rbin") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -524,7 +534,7 @@ extension RbinClient: RbinClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRbin/models/Models.swift b/Sources/Services/AWSRbin/models/Models.swift index 8587648efc1..a78746208c1 100644 --- a/Sources/Services/AWSRbin/models/Models.swift +++ b/Sources/Services/AWSRbin/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -22,7 +21,7 @@ extension ConflictException { } /// The specified retention rule lock request can't be completed. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -254,9 +253,8 @@ public enum CreateRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.identifier = output.identifier @@ -527,9 +525,8 @@ public enum GetRuleOutputError: Swift.Error, Swift.Equatable { extension GetRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.identifier = output.identifier @@ -665,9 +662,8 @@ extension GetRuleOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -681,7 +677,7 @@ extension InternalServerException { } /// The service could not respond to the request due to an internal problem. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -849,9 +845,8 @@ public enum ListRulesOutputError: Swift.Error, Swift.Equatable { extension ListRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rules = output.rules @@ -966,9 +961,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1136,9 +1130,8 @@ public enum LockRuleOutputError: Swift.Error, Swift.Equatable { extension LockRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LockRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.identifier = output.identifier @@ -1299,9 +1292,8 @@ extension RbinClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -1317,7 +1309,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1649,9 +1641,8 @@ extension RbinClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -1667,7 +1658,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota for the number of tags per resource to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2028,9 +2019,8 @@ public enum UnlockRuleOutputError: Swift.Error, Swift.Equatable { extension UnlockRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnlockRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.identifier = output.identifier @@ -2386,9 +2376,8 @@ public enum UpdateRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.identifier = output.identifier @@ -2514,9 +2503,8 @@ extension UpdateRuleOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -2532,7 +2520,7 @@ extension ValidationException { } /// One or more of the parameters in the request is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRedshift/RedshiftClient.swift b/Sources/Services/AWSRedshift/RedshiftClient.swift index 134203192d1..5de4a978cfc 100644 --- a/Sources/Services/AWSRedshift/RedshiftClient.swift +++ b/Sources/Services/AWSRedshift/RedshiftClient.swift @@ -204,6 +204,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptReservedNodeExchange") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addPartner") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDataShareConsumer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeClusterSecurityGroupIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeDataShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeSnapshotAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteClusterSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchModifyClusterSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelResize") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +580,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +600,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAuthenticationProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +616,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +636,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +688,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClusterSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +724,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +744,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +760,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +780,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createClusterSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -779,7 +796,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -799,6 +816,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +832,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +852,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +868,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +888,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHsmClientCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +904,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +924,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHsmConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -919,7 +940,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -939,6 +960,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createScheduledAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +976,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +996,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshotCopyGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1012,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1032,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshotSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1048,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1068,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1084,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1104,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUsageLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1120,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1114,6 +1140,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deauthorizeDataShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1129,7 +1156,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1149,6 +1176,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAuthenticationProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1164,7 +1192,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1184,6 +1212,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1199,7 +1228,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1219,6 +1248,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1234,7 +1264,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1254,6 +1284,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClusterSecurityGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1269,7 +1300,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1289,6 +1320,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1336,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1356,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClusterSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1339,7 +1372,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1359,6 +1392,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1374,7 +1408,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1394,6 +1428,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1409,7 +1444,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1429,6 +1464,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHsmClientCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1444,7 +1480,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1464,6 +1500,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHsmConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1479,7 +1516,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1499,6 +1536,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePartner") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1514,7 +1552,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1534,6 +1572,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScheduledAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1549,7 +1588,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1569,6 +1608,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshotCopyGrant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1584,7 +1624,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1604,6 +1644,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshotSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1619,7 +1660,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1639,6 +1680,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1654,7 +1696,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1674,6 +1716,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUsageLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1689,7 +1732,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1709,6 +1752,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1724,7 +1768,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1744,6 +1788,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAuthenticationProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1759,7 +1804,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1779,6 +1824,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterDbRevisions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1794,7 +1840,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1814,6 +1860,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterParameterGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1829,7 +1876,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1849,6 +1896,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1864,7 +1912,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1884,6 +1932,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterSecurityGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1899,7 +1948,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1919,6 +1968,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1934,7 +1984,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1954,6 +2004,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterSubnetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1969,7 +2020,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1989,6 +2040,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterTracks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2004,7 +2056,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2024,6 +2076,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusterVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2039,7 +2092,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2059,6 +2112,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2074,7 +2128,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2094,6 +2148,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2109,7 +2164,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2129,6 +2184,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSharesForConsumer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2144,7 +2200,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2164,6 +2220,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataSharesForProducer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2179,7 +2236,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2199,6 +2256,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDefaultClusterParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2214,7 +2272,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2234,6 +2292,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2249,7 +2308,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2269,6 +2328,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpointAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2284,7 +2344,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2304,6 +2364,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventCategories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2319,7 +2380,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2339,6 +2400,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEventSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2354,7 +2416,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2374,6 +2436,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2389,7 +2452,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2409,6 +2472,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHsmClientCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2424,7 +2488,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2444,6 +2508,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHsmConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2459,7 +2524,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2479,6 +2544,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLoggingStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2494,7 +2560,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2514,6 +2580,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNodeConfigurationOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2529,7 +2596,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2549,6 +2616,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrderableClusterOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2564,7 +2632,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2584,6 +2652,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePartners") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2599,7 +2668,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2619,6 +2688,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedNodeExchangeStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2634,7 +2704,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2654,6 +2724,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedNodeOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2669,7 +2740,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2689,6 +2760,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReservedNodes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2704,7 +2776,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2724,6 +2796,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResize") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2739,7 +2812,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2759,6 +2832,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScheduledActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2774,7 +2848,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2794,6 +2868,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshotCopyGrants") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2809,7 +2884,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2829,6 +2904,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshotSchedules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2844,7 +2920,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2864,6 +2940,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2879,7 +2956,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2899,6 +2976,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTableRestoreStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2914,7 +2992,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2943,6 +3021,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2958,7 +3037,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2986,6 +3065,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUsageLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3001,7 +3081,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3021,6 +3101,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableLogging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3036,7 +3117,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3056,6 +3137,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableSnapshotCopy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3071,7 +3153,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3091,6 +3173,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDataShareConsumer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3106,7 +3189,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3126,6 +3209,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableLogging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3141,7 +3225,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3161,6 +3245,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableSnapshotCopy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3176,7 +3261,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3196,6 +3281,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClusterCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3211,7 +3297,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3231,6 +3317,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getClusterCredentialsWithIAM") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3246,7 +3333,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3266,6 +3353,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReservedNodeExchangeConfigurationOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3281,7 +3369,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3301,6 +3389,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReservedNodeExchangeOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3316,7 +3405,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3336,6 +3425,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyAquaConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3351,7 +3441,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3371,6 +3461,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyAuthenticationProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3386,7 +3477,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3406,6 +3497,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3421,7 +3513,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3441,6 +3533,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClusterDbRevision") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3456,7 +3549,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3476,6 +3569,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClusterIamRoles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3491,7 +3585,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3511,6 +3605,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClusterMaintenance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3526,7 +3621,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3546,6 +3641,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3561,7 +3657,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3581,6 +3677,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3596,7 +3693,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3616,6 +3713,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClusterSnapshotSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3631,7 +3729,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3651,6 +3749,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClusterSubnetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3666,7 +3765,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3686,6 +3785,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3701,7 +3801,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3721,6 +3821,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyEventSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3736,7 +3837,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3756,6 +3857,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyScheduledAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3771,7 +3873,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3791,6 +3893,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySnapshotCopyRetentionPeriod") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3806,7 +3909,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3826,6 +3929,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySnapshotSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3841,7 +3945,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3861,6 +3965,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyUsageLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3876,7 +3981,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3896,6 +4001,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pauseCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3911,7 +4017,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3931,6 +4037,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purchaseReservedNodeOffering") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3946,7 +4053,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3966,6 +4073,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3981,7 +4089,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4001,6 +4109,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectDataShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4016,7 +4125,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4036,6 +4145,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetClusterParameterGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4051,7 +4161,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4096,6 +4206,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resizeCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4111,7 +4222,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4131,6 +4242,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreFromClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4146,7 +4258,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4166,6 +4278,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreTableFromClusterSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4181,7 +4294,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4201,6 +4314,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4216,7 +4330,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4236,6 +4350,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeClusterSecurityGroupIngress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4251,7 +4366,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4271,6 +4386,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4286,7 +4402,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4306,6 +4422,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeSnapshotAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4321,7 +4438,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4341,6 +4458,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rotateEncryptionKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4356,7 +4474,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4376,6 +4494,7 @@ extension RedshiftClient: RedshiftClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePartnerStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4391,7 +4510,7 @@ extension RedshiftClient: RedshiftClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRedshift/models/Models.swift b/Sources/Services/AWSRedshift/models/Models.swift index 789f8776e43..46a3af5fc1f 100644 --- a/Sources/Services/AWSRedshift/models/Models.swift +++ b/Sources/Services/AWSRedshift/models/Models.swift @@ -95,9 +95,8 @@ public enum AcceptReservedNodeExchangeOutputError: Swift.Error, Swift.Equatable extension AcceptReservedNodeExchangeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptReservedNodeExchangeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exchangedReservedNode = output.exchangedReservedNode } else { @@ -137,7 +136,7 @@ extension AcceptReservedNodeExchangeOutputResponseBody: Swift.Decodable { extension AccessToClusterDeniedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -152,7 +151,7 @@ extension AccessToClusterDeniedFault { } /// You are not authorized to access the cluster. -public struct AccessToClusterDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessToClusterDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -188,7 +187,7 @@ extension AccessToClusterDeniedFaultBody: Swift.Decodable { extension AccessToSnapshotDeniedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -203,7 +202,7 @@ extension AccessToSnapshotDeniedFault { } /// The owner of the specified snapshot has not authorized your account to access the snapshot. -public struct AccessToSnapshotDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessToSnapshotDeniedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -497,9 +496,8 @@ public enum AddPartnerOutputError: Swift.Error, Swift.Equatable { extension AddPartnerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddPartnerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databaseName = output.databaseName self.partnerName = output.partnerName @@ -766,9 +764,8 @@ public enum AssociateDataShareConsumerOutputError: Swift.Error, Swift.Equatable extension AssociateDataShareConsumerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateDataShareConsumerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowPubliclyAccessibleConsumers = output.allowPubliclyAccessibleConsumers self.dataShareArn = output.dataShareArn @@ -945,7 +942,7 @@ extension RedshiftClientTypes { extension AuthenticationProfileAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -960,7 +957,7 @@ extension AuthenticationProfileAlreadyExistsFault { } /// The authentication profile already exists. -public struct AuthenticationProfileAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthenticationProfileAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -996,7 +993,7 @@ extension AuthenticationProfileAlreadyExistsFaultBody: Swift.Decodable { extension AuthenticationProfileNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1011,7 +1008,7 @@ extension AuthenticationProfileNotFoundFault { } /// The authentication profile can't be found. -public struct AuthenticationProfileNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthenticationProfileNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1047,7 +1044,7 @@ extension AuthenticationProfileNotFoundFaultBody: Swift.Decodable { extension AuthenticationProfileQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1062,7 +1059,7 @@ extension AuthenticationProfileQuotaExceededFault { } /// The size or number of authentication profiles has exceeded the quota. The maximum length of the JSON string and maximum number of authentication profiles is determined by a quota for your account. -public struct AuthenticationProfileQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthenticationProfileQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1098,7 +1095,7 @@ extension AuthenticationProfileQuotaExceededFaultBody: Swift.Decodable { extension AuthorizationAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1113,7 +1110,7 @@ extension AuthorizationAlreadyExistsFault { } /// The specified CIDR block or EC2 security group is already authorized for the specified cluster security group. -public struct AuthorizationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1149,7 +1146,7 @@ extension AuthorizationAlreadyExistsFaultBody: Swift.Decodable { extension AuthorizationNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1164,7 +1161,7 @@ extension AuthorizationNotFoundFault { } /// The specified CIDR IP range or EC2 security group is not authorized for the specified cluster security group. -public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1200,7 +1197,7 @@ extension AuthorizationNotFoundFaultBody: Swift.Decodable { extension AuthorizationQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1215,7 +1212,7 @@ extension AuthorizationQuotaExceededFault { } /// The authorization quota for the cluster security group has been reached. -public struct AuthorizationQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1390,9 +1387,8 @@ public enum AuthorizeClusterSecurityGroupIngressOutputError: Swift.Error, Swift. extension AuthorizeClusterSecurityGroupIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeClusterSecurityGroupIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterSecurityGroup = output.clusterSecurityGroup } else { @@ -1511,9 +1507,8 @@ public enum AuthorizeDataShareOutputError: Swift.Error, Swift.Equatable { extension AuthorizeDataShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeDataShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowPubliclyAccessibleConsumers = output.allowPubliclyAccessibleConsumers self.dataShareArn = output.dataShareArn @@ -1735,9 +1730,8 @@ public enum AuthorizeEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension AuthorizeEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowedAllVPCs = output.allowedAllVPCs self.allowedVPCs = output.allowedVPCs @@ -1988,9 +1982,8 @@ public enum AuthorizeSnapshotAccessOutputError: Swift.Error, Swift.Equatable { extension AuthorizeSnapshotAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizeSnapshotAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -2194,9 +2187,8 @@ public enum BatchDeleteClusterSnapshotsOutputError: Swift.Error, Swift.Equatable extension BatchDeleteClusterSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteClusterSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.resources = output.resources @@ -2280,7 +2272,7 @@ extension BatchDeleteClusterSnapshotsOutputResponseBody: Swift.Decodable { extension BatchDeleteRequestSizeExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2295,7 +2287,7 @@ extension BatchDeleteRequestSizeExceededFault { } /// The maximum number for a batch delete of snapshots has been reached. The limit is 100. -public struct BatchDeleteRequestSizeExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchDeleteRequestSizeExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2425,7 +2417,7 @@ extension BatchModifyClusterSnapshotsInputBody: Swift.Decodable { extension BatchModifyClusterSnapshotsLimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2440,7 +2432,7 @@ extension BatchModifyClusterSnapshotsLimitExceededFault { } /// The maximum number for snapshot identifiers has been reached. The limit is 100. -public struct BatchModifyClusterSnapshotsLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchModifyClusterSnapshotsLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2499,9 +2491,8 @@ public enum BatchModifyClusterSnapshotsOutputError: Swift.Error, Swift.Equatable extension BatchModifyClusterSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchModifyClusterSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.resources = output.resources @@ -2585,7 +2576,7 @@ extension BatchModifyClusterSnapshotsOutputResponseBody: Swift.Decodable { extension BucketNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2600,7 +2591,7 @@ extension BucketNotFoundFault { } /// Could not find the specified S3 bucket. -public struct BucketNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BucketNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2709,9 +2700,8 @@ public enum CancelResizeOutputError: Swift.Error, Swift.Equatable { extension CancelResizeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelResizeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.avgResizeRateInMegaBytesPerSecond = output.avgResizeRateInMegaBytesPerSecond self.dataTransferProgressPercent = output.dataTransferProgressPercent @@ -3764,7 +3754,7 @@ extension RedshiftClientTypes { extension ClusterAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3779,7 +3769,7 @@ extension ClusterAlreadyExistsFault { } /// The account already has a cluster with the given identifier. -public struct ClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4057,7 +4047,7 @@ extension RedshiftClientTypes { extension ClusterNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4072,7 +4062,7 @@ extension ClusterNotFoundFault { } /// The ClusterIdentifier parameter does not refer to an existing cluster. -public struct ClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4108,7 +4098,7 @@ extension ClusterNotFoundFaultBody: Swift.Decodable { extension ClusterOnLatestRevisionFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4123,7 +4113,7 @@ extension ClusterOnLatestRevisionFault { } /// Cluster is already on the latest database revision. -public struct ClusterOnLatestRevisionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterOnLatestRevisionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4250,7 +4240,7 @@ extension RedshiftClientTypes { extension ClusterParameterGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4265,7 +4255,7 @@ extension ClusterParameterGroupAlreadyExistsFault { } /// A cluster parameter group with the same name already exists. -public struct ClusterParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterParameterGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4301,7 +4291,7 @@ extension ClusterParameterGroupAlreadyExistsFaultBody: Swift.Decodable { extension ClusterParameterGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4316,7 +4306,7 @@ extension ClusterParameterGroupNotFoundFault { } /// The parameter group name does not refer to an existing parameter group. -public struct ClusterParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterParameterGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4352,7 +4342,7 @@ extension ClusterParameterGroupNotFoundFaultBody: Swift.Decodable { extension ClusterParameterGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4367,7 +4357,7 @@ extension ClusterParameterGroupQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of cluster parameter groups. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct ClusterParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterParameterGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4553,7 +4543,7 @@ extension RedshiftClientTypes { extension ClusterQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4568,7 +4558,7 @@ extension ClusterQuotaExceededFault { } /// The request would exceed the allowed number of cluster instances for this account. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct ClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4757,7 +4747,7 @@ extension RedshiftClientTypes { extension ClusterSecurityGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4772,7 +4762,7 @@ extension ClusterSecurityGroupAlreadyExistsFault { } /// A cluster security group with the same name already exists. -public struct ClusterSecurityGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSecurityGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4853,7 +4843,7 @@ extension RedshiftClientTypes { extension ClusterSecurityGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4868,7 +4858,7 @@ extension ClusterSecurityGroupNotFoundFault { } /// The cluster security group name does not refer to an existing cluster security group. -public struct ClusterSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSecurityGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4904,7 +4894,7 @@ extension ClusterSecurityGroupNotFoundFaultBody: Swift.Decodable { extension ClusterSecurityGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4919,7 +4909,7 @@ extension ClusterSecurityGroupQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of cluster security groups. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct ClusterSecurityGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSecurityGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4955,7 +4945,7 @@ extension ClusterSecurityGroupQuotaExceededFaultBody: Swift.Decodable { extension ClusterSnapshotAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4970,7 +4960,7 @@ extension ClusterSnapshotAlreadyExistsFault { } /// The value specified as a snapshot identifier is already used by an existing snapshot. -public struct ClusterSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSnapshotAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5071,7 +5061,7 @@ extension RedshiftClientTypes { extension ClusterSnapshotNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5086,7 +5076,7 @@ extension ClusterSnapshotNotFoundFault { } /// The snapshot identifier does not refer to an existing cluster snapshot. -public struct ClusterSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSnapshotNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5122,7 +5112,7 @@ extension ClusterSnapshotNotFoundFaultBody: Swift.Decodable { extension ClusterSnapshotQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5137,7 +5127,7 @@ extension ClusterSnapshotQuotaExceededFault { } /// The request would result in the user exceeding the allowed number of cluster snapshots. -public struct ClusterSnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSnapshotQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5310,7 +5300,7 @@ extension RedshiftClientTypes { extension ClusterSubnetGroupAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5325,7 +5315,7 @@ extension ClusterSubnetGroupAlreadyExistsFault { } /// A ClusterSubnetGroupName is already used by an existing cluster subnet group. -public struct ClusterSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSubnetGroupAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5361,7 +5351,7 @@ extension ClusterSubnetGroupAlreadyExistsFaultBody: Swift.Decodable { extension ClusterSubnetGroupNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5376,7 +5366,7 @@ extension ClusterSubnetGroupNotFoundFault { } /// The cluster subnet group name does not refer to an existing cluster subnet group. -public struct ClusterSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSubnetGroupNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5412,7 +5402,7 @@ extension ClusterSubnetGroupNotFoundFaultBody: Swift.Decodable { extension ClusterSubnetGroupQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5427,7 +5417,7 @@ extension ClusterSubnetGroupQuotaExceededFault { } /// The request would result in user exceeding the allowed number of cluster subnet groups. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct ClusterSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSubnetGroupQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5463,7 +5453,7 @@ extension ClusterSubnetGroupQuotaExceededFaultBody: Swift.Decodable { extension ClusterSubnetQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5478,7 +5468,7 @@ extension ClusterSubnetQuotaExceededFault { } /// The request would result in user exceeding the allowed number of subnets in a cluster subnet groups. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct ClusterSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterSubnetQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5693,9 +5683,8 @@ public enum CopyClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CopyClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -5735,7 +5724,7 @@ extension CopyClusterSnapshotOutputResponseBody: Swift.Decodable { extension CopyToRegionDisabledFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5750,7 +5739,7 @@ extension CopyToRegionDisabledFault { } /// Cross-region snapshot copy was temporarily disabled. Try your request again. -public struct CopyToRegionDisabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CopyToRegionDisabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5869,9 +5858,8 @@ public enum CreateAuthenticationProfileOutputError: Swift.Error, Swift.Equatable extension CreateAuthenticationProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAuthenticationProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationProfileContent = output.authenticationProfileContent self.authenticationProfileName = output.authenticationProfileName @@ -6553,9 +6541,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -6741,9 +6728,8 @@ public enum CreateClusterParameterGroupOutputError: Swift.Error, Swift.Equatable extension CreateClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterParameterGroup = output.clusterParameterGroup } else { @@ -6915,9 +6901,8 @@ public enum CreateClusterSecurityGroupOutputError: Swift.Error, Swift.Equatable extension CreateClusterSecurityGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterSecurityGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterSecurityGroup = output.clusterSecurityGroup } else { @@ -7108,9 +7093,8 @@ public enum CreateClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -7328,9 +7312,8 @@ public enum CreateClusterSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateClusterSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterSubnetGroup = output.clusterSubnetGroup } else { @@ -7526,9 +7509,8 @@ public enum CreateEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address self.clusterIdentifier = output.clusterIdentifier @@ -7928,9 +7910,8 @@ public enum CreateEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension CreateEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -8081,9 +8062,8 @@ public enum CreateHsmClientCertificateOutputError: Swift.Error, Swift.Equatable extension CreateHsmClientCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHsmClientCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsmClientCertificate = output.hsmClientCertificate } else { @@ -8294,9 +8274,8 @@ public enum CreateHsmConfigurationOutputError: Swift.Error, Swift.Equatable { extension CreateHsmConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHsmConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsmConfiguration = output.hsmConfiguration } else { @@ -8493,9 +8472,8 @@ public enum CreateScheduledActionOutputError: Swift.Error, Swift.Equatable { extension CreateScheduledActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScheduledActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endTime = output.endTime self.iamRole = output.iamRole @@ -8769,9 +8747,8 @@ public enum CreateSnapshotCopyGrantOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotCopyGrantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotCopyGrantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotCopyGrant = output.snapshotCopyGrant } else { @@ -8994,9 +8971,8 @@ public enum CreateSnapshotScheduleOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedClusterCount = output.associatedClusterCount self.associatedClusters = output.associatedClusters @@ -9461,9 +9437,8 @@ public enum CreateUsageLimitOutputError: Swift.Error, Swift.Equatable { extension CreateUsageLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUsageLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.amount = output.amount self.breachAction = output.breachAction @@ -10053,9 +10028,8 @@ public enum DeauthorizeDataShareOutputError: Swift.Error, Swift.Equatable { extension DeauthorizeDataShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeauthorizeDataShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowPubliclyAccessibleConsumers = output.allowPubliclyAccessibleConsumers self.dataShareArn = output.dataShareArn @@ -10357,9 +10331,8 @@ public enum DeleteAuthenticationProfileOutputError: Swift.Error, Swift.Equatable extension DeleteAuthenticationProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAuthenticationProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationProfileName = output.authenticationProfileName } else { @@ -10522,9 +10495,8 @@ public enum DeleteClusterOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -10855,9 +10827,8 @@ public enum DeleteClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -11054,9 +11025,8 @@ public enum DeleteEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension DeleteEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address self.clusterIdentifier = output.clusterIdentifier @@ -11551,9 +11521,8 @@ public enum DeletePartnerOutputError: Swift.Error, Swift.Equatable { extension DeletePartnerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePartnerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databaseName = output.databaseName self.partnerName = output.partnerName @@ -12038,7 +12007,7 @@ public struct DeleteUsageLimitOutputResponse: Swift.Equatable { extension DependentServiceRequestThrottlingFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12053,7 +12022,7 @@ extension DependentServiceRequestThrottlingFault { } /// The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request. -public struct DependentServiceRequestThrottlingFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependentServiceRequestThrottlingFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12089,7 +12058,7 @@ extension DependentServiceRequestThrottlingFaultBody: Swift.Decodable { extension DependentServiceUnavailableFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12104,7 +12073,7 @@ extension DependentServiceUnavailableFault { } /// Your request cannot be completed because a dependent internal service is temporarily unavailable. Wait 30 to 60 seconds and try again. -public struct DependentServiceUnavailableFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependentServiceUnavailableFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12230,9 +12199,8 @@ public enum DescribeAccountAttributesOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAttributes = output.accountAttributes } else { @@ -12357,9 +12325,8 @@ public enum DescribeAuthenticationProfilesOutputError: Swift.Error, Swift.Equata extension DescribeAuthenticationProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAuthenticationProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationProfiles = output.authenticationProfiles } else { @@ -12506,9 +12473,8 @@ public enum DescribeClusterDbRevisionsOutputError: Swift.Error, Swift.Equatable extension DescribeClusterDbRevisionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterDbRevisionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterDbRevisions = output.clusterDbRevisions self.marker = output.marker @@ -12740,9 +12706,8 @@ public enum DescribeClusterParameterGroupsOutputError: Swift.Error, Swift.Equata extension DescribeClusterParameterGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterParameterGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.parameterGroups = output.parameterGroups @@ -12911,9 +12876,8 @@ public enum DescribeClusterParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.parameters = output.parameters @@ -13146,9 +13110,8 @@ public enum DescribeClusterSecurityGroupsOutputError: Swift.Error, Swift.Equatab extension DescribeClusterSecurityGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterSecurityGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterSecurityGroups = output.clusterSecurityGroups self.marker = output.marker @@ -13507,9 +13470,8 @@ public enum DescribeClusterSnapshotsOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.snapshots = output.snapshots @@ -13742,9 +13704,8 @@ public enum DescribeClusterSubnetGroupsOutputError: Swift.Error, Swift.Equatable extension DescribeClusterSubnetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterSubnetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterSubnetGroups = output.clusterSubnetGroups self.marker = output.marker @@ -13902,9 +13863,8 @@ public enum DescribeClusterTracksOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterTracksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterTracksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.maintenanceTracks = output.maintenanceTracks self.marker = output.marker @@ -14075,9 +14035,8 @@ public enum DescribeClusterVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterVersions = output.clusterVersions self.marker = output.marker @@ -14323,9 +14282,8 @@ public enum DescribeClustersOutputError: Swift.Error, Swift.Equatable { extension DescribeClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.marker = output.marker @@ -14492,9 +14450,8 @@ public enum DescribeDataSharesForConsumerOutputError: Swift.Error, Swift.Equatab extension DescribeDataSharesForConsumerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSharesForConsumerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataShares = output.dataShares self.marker = output.marker @@ -14660,9 +14617,8 @@ public enum DescribeDataSharesForProducerOutputError: Swift.Error, Swift.Equatab extension DescribeDataSharesForProducerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSharesForProducerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataShares = output.dataShares self.marker = output.marker @@ -14817,9 +14773,8 @@ public enum DescribeDataSharesOutputError: Swift.Error, Swift.Equatable { extension DescribeDataSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataShares = output.dataShares self.marker = output.marker @@ -14974,9 +14929,8 @@ public enum DescribeDefaultClusterParametersOutputError: Swift.Error, Swift.Equa extension DescribeDefaultClusterParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDefaultClusterParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.defaultClusterParameters = output.defaultClusterParameters } else { @@ -15141,9 +15095,8 @@ public enum DescribeEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointAccessList = output.endpointAccessList self.marker = output.marker @@ -15322,9 +15275,8 @@ public enum DescribeEndpointAuthorizationOutputError: Swift.Error, Swift.Equatab extension DescribeEndpointAuthorizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointAuthorizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointAuthorizationList = output.endpointAuthorizationList self.marker = output.marker @@ -15456,9 +15408,8 @@ public enum DescribeEventCategoriesOutputError: Swift.Error, Swift.Equatable { extension DescribeEventCategoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventCategoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventCategoriesMapList = output.eventCategoriesMapList } else { @@ -15681,9 +15632,8 @@ public enum DescribeEventSubscriptionsOutputError: Swift.Error, Swift.Equatable extension DescribeEventSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscriptionsList = output.eventSubscriptionsList self.marker = output.marker @@ -15898,9 +15848,8 @@ public enum DescribeEventsOutputError: Swift.Error, Swift.Equatable { extension DescribeEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.marker = output.marker @@ -16133,9 +16082,8 @@ public enum DescribeHsmClientCertificatesOutputError: Swift.Error, Swift.Equatab extension DescribeHsmClientCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHsmClientCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsmClientCertificates = output.hsmClientCertificates self.marker = output.marker @@ -16368,9 +16316,8 @@ public enum DescribeHsmConfigurationsOutputError: Swift.Error, Swift.Equatable { extension DescribeHsmConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHsmConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hsmConfigurations = output.hsmConfigurations self.marker = output.marker @@ -16506,9 +16453,8 @@ public enum DescribeLoggingStatusOutputError: Swift.Error, Swift.Equatable { extension DescribeLoggingStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLoggingStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucketName = output.bucketName self.lastFailureMessage = output.lastFailureMessage @@ -16814,9 +16760,8 @@ public enum DescribeNodeConfigurationOptionsOutputError: Swift.Error, Swift.Equa extension DescribeNodeConfigurationOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNodeConfigurationOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.nodeConfigurationOptionList = output.nodeConfigurationOptionList @@ -16981,9 +16926,8 @@ public enum DescribeOrderableClusterOptionsOutputError: Swift.Error, Swift.Equat extension DescribeOrderableClusterOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrderableClusterOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.orderableClusterOptions = output.orderableClusterOptions @@ -17154,9 +17098,8 @@ public enum DescribePartnersOutputError: Swift.Error, Swift.Equatable { extension DescribePartnersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePartnersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.partnerIntegrationInfoList = output.partnerIntegrationInfoList } else { @@ -17316,9 +17259,8 @@ public enum DescribeReservedNodeExchangeStatusOutputError: Swift.Error, Swift.Eq extension DescribeReservedNodeExchangeStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedNodeExchangeStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedNodeExchangeStatusDetails = output.reservedNodeExchangeStatusDetails @@ -17478,9 +17420,8 @@ public enum DescribeReservedNodeOfferingsOutputError: Swift.Error, Swift.Equatab extension DescribeReservedNodeOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedNodeOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedNodeOfferings = output.reservedNodeOfferings @@ -17639,9 +17580,8 @@ public enum DescribeReservedNodesOutputError: Swift.Error, Swift.Equatable { extension DescribeReservedNodesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReservedNodesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedNodes = output.reservedNodes @@ -17779,9 +17719,8 @@ public enum DescribeResizeOutputError: Swift.Error, Swift.Equatable { extension DescribeResizeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResizeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.avgResizeRateInMegaBytesPerSecond = output.avgResizeRateInMegaBytesPerSecond self.dataTransferProgressPercent = output.dataTransferProgressPercent @@ -18194,9 +18133,8 @@ public enum DescribeScheduledActionsOutputError: Swift.Error, Swift.Equatable { extension DescribeScheduledActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduledActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.scheduledActions = output.scheduledActions @@ -18428,9 +18366,8 @@ public enum DescribeSnapshotCopyGrantsOutputError: Swift.Error, Swift.Equatable extension DescribeSnapshotCopyGrantsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotCopyGrantsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.snapshotCopyGrants = output.snapshotCopyGrants @@ -18669,9 +18606,8 @@ public enum DescribeSnapshotSchedulesOutputError: Swift.Error, Swift.Equatable { extension DescribeSnapshotSchedulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotSchedulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.snapshotSchedules = output.snapshotSchedules @@ -18776,9 +18712,8 @@ public enum DescribeStorageOutputError: Swift.Error, Swift.Equatable { extension DescribeStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.totalBackupSizeInMegaBytes = output.totalBackupSizeInMegaBytes self.totalProvisionedStorageInMegaBytes = output.totalProvisionedStorageInMegaBytes @@ -18930,9 +18865,8 @@ public enum DescribeTableRestoreStatusOutputError: Swift.Error, Swift.Equatable extension DescribeTableRestoreStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTableRestoreStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.tableRestoreStatusDetails = output.tableRestoreStatusDetails @@ -19199,9 +19133,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.taggedResources = output.taggedResources @@ -19455,9 +19388,8 @@ public enum DescribeUsageLimitsOutputError: Swift.Error, Swift.Equatable { extension DescribeUsageLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUsageLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.usageLimits = output.usageLimits @@ -19594,9 +19526,8 @@ public enum DisableLoggingOutputError: Swift.Error, Swift.Equatable { extension DisableLoggingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableLoggingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucketName = output.bucketName self.lastFailureMessage = output.lastFailureMessage @@ -19798,9 +19729,8 @@ public enum DisableSnapshotCopyOutputError: Swift.Error, Swift.Equatable { extension DisableSnapshotCopyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableSnapshotCopyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -19942,9 +19872,8 @@ public enum DisassociateDataShareConsumerOutputError: Swift.Error, Swift.Equatab extension DisassociateDataShareConsumerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateDataShareConsumerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowPubliclyAccessibleConsumers = output.allowPubliclyAccessibleConsumers self.dataShareArn = output.dataShareArn @@ -20343,9 +20272,8 @@ public enum EnableLoggingOutputError: Swift.Error, Swift.Equatable { extension EnableLoggingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableLoggingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucketName = output.bucketName self.lastFailureMessage = output.lastFailureMessage @@ -20606,9 +20534,8 @@ public enum EnableSnapshotCopyOutputError: Swift.Error, Swift.Equatable { extension EnableSnapshotCopyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableSnapshotCopyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -20880,7 +20807,7 @@ extension RedshiftClientTypes { extension EndpointAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -20895,7 +20822,7 @@ extension EndpointAlreadyExistsFault { } /// The account already has a Redshift-managed VPC endpoint with the given identifier. -public struct EndpointAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21072,7 +20999,7 @@ extension RedshiftClientTypes { extension EndpointAuthorizationAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21087,7 +21014,7 @@ extension EndpointAuthorizationAlreadyExistsFault { } /// The authorization already exists for this endpoint. -public struct EndpointAuthorizationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointAuthorizationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21123,7 +21050,7 @@ extension EndpointAuthorizationAlreadyExistsFaultBody: Swift.Decodable { extension EndpointAuthorizationNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21138,7 +21065,7 @@ extension EndpointAuthorizationNotFoundFault { } /// The authorization for this endpoint can't be found. -public struct EndpointAuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointAuthorizationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21174,7 +21101,7 @@ extension EndpointAuthorizationNotFoundFaultBody: Swift.Decodable { extension EndpointAuthorizationsPerClusterLimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21189,7 +21116,7 @@ extension EndpointAuthorizationsPerClusterLimitExceededFault { } /// The number of endpoint authorizations per cluster has exceeded its limit. -public struct EndpointAuthorizationsPerClusterLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointAuthorizationsPerClusterLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21225,7 +21152,7 @@ extension EndpointAuthorizationsPerClusterLimitExceededFaultBody: Swift.Decodabl extension EndpointNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21240,7 +21167,7 @@ extension EndpointNotFoundFault { } /// The endpoint name doesn't refer to an existing endpoint. -public struct EndpointNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21276,7 +21203,7 @@ extension EndpointNotFoundFaultBody: Swift.Decodable { extension EndpointsPerAuthorizationLimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21291,7 +21218,7 @@ extension EndpointsPerAuthorizationLimitExceededFault { } /// The number of Redshift-managed VPC endpoints per authorization has exceeded its limit. -public struct EndpointsPerAuthorizationLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointsPerAuthorizationLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21327,7 +21254,7 @@ extension EndpointsPerAuthorizationLimitExceededFaultBody: Swift.Decodable { extension EndpointsPerClusterLimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21342,7 +21269,7 @@ extension EndpointsPerClusterLimitExceededFault { } /// The number of Redshift-managed VPC endpoints per cluster has exceeded its limit. -public struct EndpointsPerClusterLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointsPerClusterLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21878,7 +21805,7 @@ extension RedshiftClientTypes { extension EventSubscriptionQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -21893,7 +21820,7 @@ extension EventSubscriptionQuotaExceededFault { } /// The request would exceed the allowed number of event subscriptions for this account. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct EventSubscriptionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventSubscriptionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22116,9 +22043,8 @@ extension GetClusterCredentialsOutputResponse: Swift.CustomDebugStringConvertibl extension GetClusterCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClusterCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbPassword = output.dbPassword self.dbUser = output.dbUser @@ -22275,9 +22201,8 @@ extension GetClusterCredentialsWithIAMOutputResponse: Swift.CustomDebugStringCon extension GetClusterCredentialsWithIAMOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetClusterCredentialsWithIAMOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbPassword = output.dbPassword self.dbUser = output.dbUser @@ -22472,9 +22397,8 @@ public enum GetReservedNodeExchangeConfigurationOptionsOutputError: Swift.Error, extension GetReservedNodeExchangeConfigurationOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReservedNodeExchangeConfigurationOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedNodeConfigurationOptionList = output.reservedNodeConfigurationOptionList @@ -22641,9 +22565,8 @@ public enum GetReservedNodeExchangeOfferingsOutputError: Swift.Error, Swift.Equa extension GetReservedNodeExchangeOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReservedNodeExchangeOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.reservedNodeOfferings = output.reservedNodeOfferings @@ -22791,7 +22714,7 @@ extension RedshiftClientTypes { extension HsmClientCertificateAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22806,7 +22729,7 @@ extension HsmClientCertificateAlreadyExistsFault { } /// There is already an existing Amazon Redshift HSM client certificate with the specified identifier. -public struct HsmClientCertificateAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HsmClientCertificateAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22842,7 +22765,7 @@ extension HsmClientCertificateAlreadyExistsFaultBody: Swift.Decodable { extension HsmClientCertificateNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22857,7 +22780,7 @@ extension HsmClientCertificateNotFoundFault { } /// There is no Amazon Redshift HSM client certificate with the specified identifier. -public struct HsmClientCertificateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HsmClientCertificateNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -22893,7 +22816,7 @@ extension HsmClientCertificateNotFoundFaultBody: Swift.Decodable { extension HsmClientCertificateQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -22908,7 +22831,7 @@ extension HsmClientCertificateQuotaExceededFault { } /// The quota for HSM client certificates has been reached. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct HsmClientCertificateQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HsmClientCertificateQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23045,7 +22968,7 @@ extension RedshiftClientTypes { extension HsmConfigurationAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23060,7 +22983,7 @@ extension HsmConfigurationAlreadyExistsFault { } /// There is already an existing Amazon Redshift HSM configuration with the specified identifier. -public struct HsmConfigurationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HsmConfigurationAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23096,7 +23019,7 @@ extension HsmConfigurationAlreadyExistsFaultBody: Swift.Decodable { extension HsmConfigurationNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23111,7 +23034,7 @@ extension HsmConfigurationNotFoundFault { } /// There is no Amazon Redshift HSM configuration with the specified identifier. -public struct HsmConfigurationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HsmConfigurationNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23147,7 +23070,7 @@ extension HsmConfigurationNotFoundFaultBody: Swift.Decodable { extension HsmConfigurationQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23162,7 +23085,7 @@ extension HsmConfigurationQuotaExceededFault { } /// The quota for HSM configurations has been reached. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct HsmConfigurationQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HsmConfigurationQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23334,7 +23257,7 @@ extension RedshiftClientTypes { extension InProgressTableRestoreQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23349,7 +23272,7 @@ extension InProgressTableRestoreQuotaExceededFault { } /// You have exceeded the allowed number of table restore requests. Wait for your current table restore requests to complete before making a new request. -public struct InProgressTableRestoreQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InProgressTableRestoreQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23385,7 +23308,7 @@ extension InProgressTableRestoreQuotaExceededFaultBody: Swift.Decodable { extension IncompatibleOrderableOptions { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23400,7 +23323,7 @@ extension IncompatibleOrderableOptions { } /// The specified options are incompatible. -public struct IncompatibleOrderableOptions: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleOrderableOptions: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23436,7 +23359,7 @@ extension IncompatibleOrderableOptionsBody: Swift.Decodable { extension InsufficientClusterCapacityFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23451,7 +23374,7 @@ extension InsufficientClusterCapacityFault { } /// The number of nodes specified exceeds the allotted capacity of the cluster. -public struct InsufficientClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientClusterCapacityFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23487,7 +23410,7 @@ extension InsufficientClusterCapacityFaultBody: Swift.Decodable { extension InsufficientS3BucketPolicyFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23502,7 +23425,7 @@ extension InsufficientS3BucketPolicyFault { } /// The cluster does not have read bucket or put object permissions on the S3 bucket specified when enabling logging. -public struct InsufficientS3BucketPolicyFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientS3BucketPolicyFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23538,7 +23461,7 @@ extension InsufficientS3BucketPolicyFaultBody: Swift.Decodable { extension InvalidAuthenticationProfileRequestFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23553,7 +23476,7 @@ extension InvalidAuthenticationProfileRequestFault { } /// The authentication profile request is not valid. The profile name can't be null or empty. The authentication profile API operation must be available in the Amazon Web Services Region. -public struct InvalidAuthenticationProfileRequestFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAuthenticationProfileRequestFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23589,7 +23512,7 @@ extension InvalidAuthenticationProfileRequestFaultBody: Swift.Decodable { extension InvalidAuthorizationStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23604,7 +23527,7 @@ extension InvalidAuthorizationStateFault { } /// The status of the authorization is not valid. -public struct InvalidAuthorizationStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAuthorizationStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23640,7 +23563,7 @@ extension InvalidAuthorizationStateFaultBody: Swift.Decodable { extension InvalidClusterParameterGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23655,7 +23578,7 @@ extension InvalidClusterParameterGroupStateFault { } /// The cluster parameter group action can not be completed because another task is in progress that involves the parameter group. Wait a few moments and try the operation again. -public struct InvalidClusterParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterParameterGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23691,7 +23614,7 @@ extension InvalidClusterParameterGroupStateFaultBody: Swift.Decodable { extension InvalidClusterSecurityGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23706,7 +23629,7 @@ extension InvalidClusterSecurityGroupStateFault { } /// The state of the cluster security group is not available. -public struct InvalidClusterSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterSecurityGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23742,7 +23665,7 @@ extension InvalidClusterSecurityGroupStateFaultBody: Swift.Decodable { extension InvalidClusterSnapshotScheduleStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23757,7 +23680,7 @@ extension InvalidClusterSnapshotScheduleStateFault { } /// The cluster snapshot schedule state is not valid. -public struct InvalidClusterSnapshotScheduleStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterSnapshotScheduleStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23793,7 +23716,7 @@ extension InvalidClusterSnapshotScheduleStateFaultBody: Swift.Decodable { extension InvalidClusterSnapshotStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23808,7 +23731,7 @@ extension InvalidClusterSnapshotStateFault { } /// The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot. -public struct InvalidClusterSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterSnapshotStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23844,7 +23767,7 @@ extension InvalidClusterSnapshotStateFaultBody: Swift.Decodable { extension InvalidClusterStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23859,7 +23782,7 @@ extension InvalidClusterStateFault { } /// The specified cluster is not in the available state. -public struct InvalidClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23895,7 +23818,7 @@ extension InvalidClusterStateFaultBody: Swift.Decodable { extension InvalidClusterSubnetGroupStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23910,7 +23833,7 @@ extension InvalidClusterSubnetGroupStateFault { } /// The cluster subnet group cannot be deleted because it is in use. -public struct InvalidClusterSubnetGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterSubnetGroupStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23946,7 +23869,7 @@ extension InvalidClusterSubnetGroupStateFaultBody: Swift.Decodable { extension InvalidClusterSubnetStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -23961,7 +23884,7 @@ extension InvalidClusterSubnetStateFault { } /// The state of the subnet is invalid. -public struct InvalidClusterSubnetStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterSubnetStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -23997,7 +23920,7 @@ extension InvalidClusterSubnetStateFaultBody: Swift.Decodable { extension InvalidClusterTrackFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24012,7 +23935,7 @@ extension InvalidClusterTrackFault { } /// The provided cluster track name is not valid. -public struct InvalidClusterTrackFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClusterTrackFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24048,7 +23971,7 @@ extension InvalidClusterTrackFaultBody: Swift.Decodable { extension InvalidDataShareFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24063,7 +23986,7 @@ extension InvalidDataShareFault { } /// There is an error with the datashare. -public struct InvalidDataShareFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDataShareFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24099,7 +24022,7 @@ extension InvalidDataShareFaultBody: Swift.Decodable { extension InvalidElasticIpFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24114,7 +24037,7 @@ extension InvalidElasticIpFault { } /// The Elastic IP (EIP) is invalid or cannot be found. -public struct InvalidElasticIpFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidElasticIpFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24150,7 +24073,7 @@ extension InvalidElasticIpFaultBody: Swift.Decodable { extension InvalidEndpointStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24165,7 +24088,7 @@ extension InvalidEndpointStateFault { } /// The status of the endpoint is not valid. -public struct InvalidEndpointStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEndpointStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24201,7 +24124,7 @@ extension InvalidEndpointStateFaultBody: Swift.Decodable { extension InvalidHsmClientCertificateStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24216,7 +24139,7 @@ extension InvalidHsmClientCertificateStateFault { } /// The specified HSM client certificate is not in the available state, or it is still in use by one or more Amazon Redshift clusters. -public struct InvalidHsmClientCertificateStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidHsmClientCertificateStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24252,7 +24175,7 @@ extension InvalidHsmClientCertificateStateFaultBody: Swift.Decodable { extension InvalidHsmConfigurationStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24267,7 +24190,7 @@ extension InvalidHsmConfigurationStateFault { } /// The specified HSM configuration is not in the available state, or it is still in use by one or more Amazon Redshift clusters. -public struct InvalidHsmConfigurationStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidHsmConfigurationStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24303,7 +24226,7 @@ extension InvalidHsmConfigurationStateFaultBody: Swift.Decodable { extension InvalidNamespaceFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24318,7 +24241,7 @@ extension InvalidNamespaceFault { } /// The namespace isn't valid because the namespace doesn't exist. Provide a valid namespace. -public struct InvalidNamespaceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNamespaceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24354,7 +24277,7 @@ extension InvalidNamespaceFaultBody: Swift.Decodable { extension InvalidReservedNodeStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24369,7 +24292,7 @@ extension InvalidReservedNodeStateFault { } /// Indicates that the Reserved Node being exchanged is not in an active state. -public struct InvalidReservedNodeStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidReservedNodeStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24405,7 +24328,7 @@ extension InvalidReservedNodeStateFaultBody: Swift.Decodable { extension InvalidRestoreFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24420,7 +24343,7 @@ extension InvalidRestoreFault { } /// The restore is invalid. -public struct InvalidRestoreFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRestoreFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24456,7 +24379,7 @@ extension InvalidRestoreFaultBody: Swift.Decodable { extension InvalidRetentionPeriodFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24471,7 +24394,7 @@ extension InvalidRetentionPeriodFault { } /// The retention period specified is either in the past or is not a valid value. The value must be either -1 or an integer between 1 and 3,653. -public struct InvalidRetentionPeriodFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRetentionPeriodFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24507,7 +24430,7 @@ extension InvalidRetentionPeriodFaultBody: Swift.Decodable { extension InvalidS3BucketNameFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24522,7 +24445,7 @@ extension InvalidS3BucketNameFault { } /// The S3 bucket name is invalid. For more information about naming rules, go to [Bucket Restrictions and Limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html) in the Amazon Simple Storage Service (S3) Developer Guide. -public struct InvalidS3BucketNameFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3BucketNameFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24558,7 +24481,7 @@ extension InvalidS3BucketNameFaultBody: Swift.Decodable { extension InvalidS3KeyPrefixFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24573,7 +24496,7 @@ extension InvalidS3KeyPrefixFault { } /// The string specified for the logging S3 key prefix does not comply with the documented constraints. -public struct InvalidS3KeyPrefixFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3KeyPrefixFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24609,7 +24532,7 @@ extension InvalidS3KeyPrefixFaultBody: Swift.Decodable { extension InvalidScheduleFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24624,7 +24547,7 @@ extension InvalidScheduleFault { } /// The schedule you submitted isn't valid. -public struct InvalidScheduleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidScheduleFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24660,7 +24583,7 @@ extension InvalidScheduleFaultBody: Swift.Decodable { extension InvalidScheduledActionFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24675,7 +24598,7 @@ extension InvalidScheduledActionFault { } /// The scheduled action is not valid. -public struct InvalidScheduledActionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidScheduledActionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24711,7 +24634,7 @@ extension InvalidScheduledActionFaultBody: Swift.Decodable { extension InvalidSnapshotCopyGrantStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24726,7 +24649,7 @@ extension InvalidSnapshotCopyGrantStateFault { } /// The snapshot copy grant can't be deleted because it is used by one or more clusters. -public struct InvalidSnapshotCopyGrantStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSnapshotCopyGrantStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24762,7 +24685,7 @@ extension InvalidSnapshotCopyGrantStateFaultBody: Swift.Decodable { extension InvalidSubnet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24777,7 +24700,7 @@ extension InvalidSubnet { } /// The requested subnet is not valid, or not all of the subnets are in the same VPC. -public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubnet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24813,7 +24736,7 @@ extension InvalidSubnetBody: Swift.Decodable { extension InvalidSubscriptionStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24828,7 +24751,7 @@ extension InvalidSubscriptionStateFault { } /// The subscription request is invalid because it is a duplicate request. This subscription request is already in progress. -public struct InvalidSubscriptionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSubscriptionStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24864,7 +24787,7 @@ extension InvalidSubscriptionStateFaultBody: Swift.Decodable { extension InvalidTableRestoreArgumentFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24879,7 +24802,7 @@ extension InvalidTableRestoreArgumentFault { } /// The value specified for the sourceDatabaseName, sourceSchemaName, or sourceTableName parameter, or a combination of these, doesn't exist in the snapshot. -public struct InvalidTableRestoreArgumentFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTableRestoreArgumentFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24915,7 +24838,7 @@ extension InvalidTableRestoreArgumentFaultBody: Swift.Decodable { extension InvalidTagFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24930,7 +24853,7 @@ extension InvalidTagFault { } /// The tag is invalid. -public struct InvalidTagFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24966,7 +24889,7 @@ extension InvalidTagFaultBody: Swift.Decodable { extension InvalidUsageLimitFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -24981,7 +24904,7 @@ extension InvalidUsageLimitFault { } /// The usage limit is not valid. -public struct InvalidUsageLimitFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUsageLimitFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25017,7 +24940,7 @@ extension InvalidUsageLimitFaultBody: Swift.Decodable { extension InvalidVPCNetworkStateFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -25032,7 +24955,7 @@ extension InvalidVPCNetworkStateFault { } /// The cluster subnet group does not cover all Availability Zones. -public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVPCNetworkStateFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25068,7 +24991,7 @@ extension InvalidVPCNetworkStateFaultBody: Swift.Decodable { extension LimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -25083,7 +25006,7 @@ extension LimitExceededFault { } /// The encryption key has exceeded its grant limit in Amazon Web Services KMS. -public struct LimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25346,9 +25269,8 @@ public enum ModifyAquaConfigurationOutputError: Swift.Error, Swift.Equatable { extension ModifyAquaConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyAquaConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aquaConfiguration = output.aquaConfiguration } else { @@ -25471,9 +25393,8 @@ public enum ModifyAuthenticationProfileOutputError: Swift.Error, Swift.Equatable extension ModifyAuthenticationProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyAuthenticationProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationProfileContent = output.authenticationProfileContent self.authenticationProfileName = output.authenticationProfileName @@ -25606,9 +25527,8 @@ public enum ModifyClusterDbRevisionOutputError: Swift.Error, Swift.Equatable { extension ModifyClusterDbRevisionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterDbRevisionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -25803,9 +25723,8 @@ public enum ModifyClusterIamRolesOutputError: Swift.Error, Swift.Equatable { extension ModifyClusterIamRolesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterIamRolesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -26361,9 +26280,8 @@ public enum ModifyClusterMaintenanceOutputError: Swift.Error, Swift.Equatable { extension ModifyClusterMaintenanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterMaintenanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -26460,9 +26378,8 @@ public enum ModifyClusterOutputError: Swift.Error, Swift.Equatable { extension ModifyClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -26610,9 +26527,8 @@ public enum ModifyClusterParameterGroupOutputError: Swift.Error, Swift.Equatable extension ModifyClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterGroupName = output.parameterGroupName self.parameterGroupStatus = output.parameterGroupStatus @@ -26756,9 +26672,8 @@ public enum ModifyClusterSnapshotOutputError: Swift.Error, Swift.Equatable { extension ModifyClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -27028,9 +26943,8 @@ public enum ModifyClusterSubnetGroupOutputError: Swift.Error, Swift.Equatable { extension ModifyClusterSubnetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyClusterSubnetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterSubnetGroup = output.clusterSubnetGroup } else { @@ -27184,9 +27098,8 @@ public enum ModifyEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension ModifyEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address self.clusterIdentifier = output.clusterIdentifier @@ -27536,9 +27449,8 @@ public enum ModifyEventSubscriptionOutputError: Swift.Error, Swift.Equatable { extension ModifyEventSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyEventSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSubscription = output.eventSubscription } else { @@ -27730,9 +27642,8 @@ public enum ModifyScheduledActionOutputError: Swift.Error, Swift.Equatable { extension ModifyScheduledActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyScheduledActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endTime = output.endTime self.iamRole = output.iamRole @@ -27969,9 +27880,8 @@ public enum ModifySnapshotCopyRetentionPeriodOutputError: Swift.Error, Swift.Equ extension ModifySnapshotCopyRetentionPeriodOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifySnapshotCopyRetentionPeriodOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -28120,9 +28030,8 @@ public enum ModifySnapshotScheduleOutputError: Swift.Error, Swift.Equatable { extension ModifySnapshotScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifySnapshotScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedClusterCount = output.associatedClusterCount self.associatedClusters = output.associatedClusters @@ -28384,9 +28293,8 @@ public enum ModifyUsageLimitOutputError: Swift.Error, Swift.Equatable { extension ModifyUsageLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModifyUsageLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.amount = output.amount self.breachAction = output.breachAction @@ -28769,7 +28677,7 @@ extension RedshiftClientTypes { extension NumberOfNodesPerClusterLimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -28784,7 +28692,7 @@ extension NumberOfNodesPerClusterLimitExceededFault { } /// The operation would exceed the number of nodes allowed for a cluster. -public struct NumberOfNodesPerClusterLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NumberOfNodesPerClusterLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -28820,7 +28728,7 @@ extension NumberOfNodesPerClusterLimitExceededFaultBody: Swift.Decodable { extension NumberOfNodesQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -28835,7 +28743,7 @@ extension NumberOfNodesQuotaExceededFault { } /// The operation would exceed the number of nodes allotted to the account. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct NumberOfNodesQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NumberOfNodesQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29279,7 +29187,7 @@ extension RedshiftClientTypes { extension PartnerNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -29294,7 +29202,7 @@ extension PartnerNotFoundFault { } /// The name of the partner was not found. -public struct PartnerNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PartnerNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29436,9 +29344,8 @@ public enum PauseClusterOutputError: Swift.Error, Swift.Equatable { extension PauseClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PauseClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -29698,9 +29605,8 @@ public enum PurchaseReservedNodeOfferingOutputError: Swift.Error, Swift.Equatabl extension PurchaseReservedNodeOfferingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PurchaseReservedNodeOfferingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.reservedNode = output.reservedNode } else { @@ -29810,9 +29716,8 @@ public enum RebootClusterOutputError: Swift.Error, Swift.Equatable { extension RebootClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -29964,9 +29869,8 @@ public enum RejectDataShareOutputError: Swift.Error, Swift.Equatable { extension RejectDataShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectDataShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowPubliclyAccessibleConsumers = output.allowPubliclyAccessibleConsumers self.dataShareArn = output.dataShareArn @@ -30254,7 +30158,7 @@ extension RedshiftClientTypes { extension ReservedNodeAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30269,7 +30173,7 @@ extension ReservedNodeAlreadyExistsFault { } /// User already has a reservation with the given identifier. -public struct ReservedNodeAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30305,7 +30209,7 @@ extension ReservedNodeAlreadyExistsFaultBody: Swift.Decodable { extension ReservedNodeAlreadyMigratedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30320,7 +30224,7 @@ extension ReservedNodeAlreadyMigratedFault { } /// Indicates that the reserved node has already been exchanged. -public struct ReservedNodeAlreadyMigratedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeAlreadyMigratedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30443,7 +30347,7 @@ extension RedshiftClientTypes { extension ReservedNodeExchangeNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30458,7 +30362,7 @@ extension ReservedNodeExchangeNotFoundFault { } /// The reserved-node exchange status wasn't found. -public struct ReservedNodeExchangeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeExchangeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30653,7 +30557,7 @@ extension RedshiftClientTypes { extension ReservedNodeNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30668,7 +30572,7 @@ extension ReservedNodeNotFoundFault { } /// The specified reserved compute node not found. -public struct ReservedNodeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30845,7 +30749,7 @@ extension RedshiftClientTypes { extension ReservedNodeOfferingNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30860,7 +30764,7 @@ extension ReservedNodeOfferingNotFoundFault { } /// Specified offering does not exist. -public struct ReservedNodeOfferingNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeOfferingNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -30928,7 +30832,7 @@ extension RedshiftClientTypes { extension ReservedNodeQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -30943,7 +30847,7 @@ extension ReservedNodeQuotaExceededFault { } /// Request would exceed the user's compute node quota. For information about increasing your quota, go to [Limits in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide. -public struct ReservedNodeQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNodeQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31097,9 +31001,8 @@ public enum ResetClusterParameterGroupOutputError: Swift.Error, Swift.Equatable extension ResetClusterParameterGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetClusterParameterGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameterGroupName = output.parameterGroupName self.parameterGroupStatus = output.parameterGroupStatus @@ -31408,9 +31311,8 @@ public enum ResizeClusterOutputError: Swift.Error, Swift.Equatable { extension ResizeClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResizeClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -31495,7 +31397,7 @@ extension RedshiftClientTypes { extension ResizeNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31510,7 +31412,7 @@ extension ResizeNotFoundFault { } /// A resize operation for the specified cluster is not found. -public struct ResizeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResizeNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -31546,7 +31448,7 @@ extension ResizeNotFoundFaultBody: Swift.Decodable { extension ResourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -31561,7 +31463,7 @@ extension ResourceNotFoundFault { } /// The resource could not be found. -public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -32173,9 +32075,8 @@ public enum RestoreFromClusterSnapshotOutputError: Swift.Error, Swift.Equatable extension RestoreFromClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreFromClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -32472,9 +32373,8 @@ public enum RestoreTableFromClusterSnapshotOutputError: Swift.Error, Swift.Equat extension RestoreTableFromClusterSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreTableFromClusterSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableRestoreStatus = output.tableRestoreStatus } else { @@ -32622,9 +32522,8 @@ public enum ResumeClusterOutputError: Swift.Error, Swift.Equatable { extension ResumeClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResumeClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -32824,9 +32723,8 @@ public enum RevokeClusterSecurityGroupIngressOutputError: Swift.Error, Swift.Equ extension RevokeClusterSecurityGroupIngressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeClusterSecurityGroupIngressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterSecurityGroup = output.clusterSecurityGroup } else { @@ -33003,9 +32901,8 @@ public enum RevokeEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension RevokeEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowedAllVPCs = output.allowedAllVPCs self.allowedVPCs = output.allowedVPCs @@ -33250,9 +33147,8 @@ public enum RevokeSnapshotAccessOutputError: Swift.Error, Swift.Equatable { extension RevokeSnapshotAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RevokeSnapshotAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -33364,9 +33260,8 @@ public enum RotateEncryptionKeyOutputError: Swift.Error, Swift.Equatable { extension RotateEncryptionKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RotateEncryptionKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -33406,7 +33301,7 @@ extension RotateEncryptionKeyOutputResponseBody: Swift.Decodable { extension SNSInvalidTopicFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33421,7 +33316,7 @@ extension SNSInvalidTopicFault { } /// Amazon SNS has responded that there is a problem with the specified Amazon SNS topic. -public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSInvalidTopicFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33457,7 +33352,7 @@ extension SNSInvalidTopicFaultBody: Swift.Decodable { extension SNSNoAuthorizationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33472,7 +33367,7 @@ extension SNSNoAuthorizationFault { } /// You do not have permission to publish to the specified Amazon SNS topic. -public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSNoAuthorizationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33508,7 +33403,7 @@ extension SNSNoAuthorizationFaultBody: Swift.Decodable { extension SNSTopicArnNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33523,7 +33418,7 @@ extension SNSTopicArnNotFoundFault { } /// An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not exist. -public struct SNSTopicArnNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SNSTopicArnNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33559,7 +33454,7 @@ extension SNSTopicArnNotFoundFaultBody: Swift.Decodable { extension ScheduleDefinitionTypeUnsupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33574,7 +33469,7 @@ extension ScheduleDefinitionTypeUnsupportedFault { } /// The definition you submitted is not supported. -public struct ScheduleDefinitionTypeUnsupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ScheduleDefinitionTypeUnsupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33786,7 +33681,7 @@ extension RedshiftClientTypes { extension ScheduledActionAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33801,7 +33696,7 @@ extension ScheduledActionAlreadyExistsFault { } /// The scheduled action already exists. -public struct ScheduledActionAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ScheduledActionAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33942,7 +33837,7 @@ extension RedshiftClientTypes { extension ScheduledActionNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -33957,7 +33852,7 @@ extension ScheduledActionNotFoundFault { } /// The scheduled action cannot be found. -public struct ScheduledActionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ScheduledActionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -33993,7 +33888,7 @@ extension ScheduledActionNotFoundFaultBody: Swift.Decodable { extension ScheduledActionQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34008,7 +33903,7 @@ extension ScheduledActionQuotaExceededFault { } /// The quota for scheduled actions exceeded. -public struct ScheduledActionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ScheduledActionQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34131,7 +34026,7 @@ extension RedshiftClientTypes { extension ScheduledActionTypeUnsupportedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34146,7 +34041,7 @@ extension ScheduledActionTypeUnsupportedFault { } /// The action type specified for a scheduled action is not supported. -public struct ScheduledActionTypeUnsupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ScheduledActionTypeUnsupportedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34701,7 +34596,7 @@ extension RedshiftClientTypes { extension SnapshotCopyAlreadyDisabledFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34716,7 +34611,7 @@ extension SnapshotCopyAlreadyDisabledFault { } /// The cluster already has cross-region snapshot copy disabled. -public struct SnapshotCopyAlreadyDisabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotCopyAlreadyDisabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34752,7 +34647,7 @@ extension SnapshotCopyAlreadyDisabledFaultBody: Swift.Decodable { extension SnapshotCopyAlreadyEnabledFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34767,7 +34662,7 @@ extension SnapshotCopyAlreadyEnabledFault { } /// The cluster already has cross-region snapshot copy enabled. -public struct SnapshotCopyAlreadyEnabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotCopyAlreadyEnabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34803,7 +34698,7 @@ extension SnapshotCopyAlreadyEnabledFaultBody: Swift.Decodable { extension SnapshotCopyDisabledFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34818,7 +34713,7 @@ extension SnapshotCopyDisabledFault { } /// Cross-region snapshot copy was temporarily disabled. Try your request again. -public struct SnapshotCopyDisabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotCopyDisabledFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34935,7 +34830,7 @@ extension RedshiftClientTypes { extension SnapshotCopyGrantAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -34950,7 +34845,7 @@ extension SnapshotCopyGrantAlreadyExistsFault { } /// The snapshot copy grant can't be created because a grant with the same name already exists. -public struct SnapshotCopyGrantAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotCopyGrantAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -34986,7 +34881,7 @@ extension SnapshotCopyGrantAlreadyExistsFaultBody: Swift.Decodable { extension SnapshotCopyGrantNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35001,7 +34896,7 @@ extension SnapshotCopyGrantNotFoundFault { } /// The specified snapshot copy grant can't be found. Make sure that the name is typed correctly and that the grant exists in the destination region. -public struct SnapshotCopyGrantNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotCopyGrantNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35037,7 +34932,7 @@ extension SnapshotCopyGrantNotFoundFaultBody: Swift.Decodable { extension SnapshotCopyGrantQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35052,7 +34947,7 @@ extension SnapshotCopyGrantQuotaExceededFault { } /// The Amazon Web Services account has exceeded the maximum number of snapshot copy grants in this region. -public struct SnapshotCopyGrantQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotCopyGrantQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35352,7 +35247,7 @@ extension RedshiftClientTypes { extension SnapshotScheduleAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35367,7 +35262,7 @@ extension SnapshotScheduleAlreadyExistsFault { } /// The specified snapshot schedule already exists. -public struct SnapshotScheduleAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotScheduleAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35403,7 +35298,7 @@ extension SnapshotScheduleAlreadyExistsFaultBody: Swift.Decodable { extension SnapshotScheduleNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35418,7 +35313,7 @@ extension SnapshotScheduleNotFoundFault { } /// We could not find the specified snapshot schedule. -public struct SnapshotScheduleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotScheduleNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35454,7 +35349,7 @@ extension SnapshotScheduleNotFoundFaultBody: Swift.Decodable { extension SnapshotScheduleQuotaExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35469,7 +35364,7 @@ extension SnapshotScheduleQuotaExceededFault { } /// You have exceeded the quota of snapshot schedules. -public struct SnapshotScheduleQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotScheduleQuotaExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35505,7 +35400,7 @@ extension SnapshotScheduleQuotaExceededFaultBody: Swift.Decodable { extension SnapshotScheduleUpdateInProgressFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35520,7 +35415,7 @@ extension SnapshotScheduleUpdateInProgressFault { } /// The specified snapshot schedule is already being updated. -public struct SnapshotScheduleUpdateInProgressFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SnapshotScheduleUpdateInProgressFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35634,7 +35529,7 @@ extension RedshiftClientTypes { extension SourceNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35649,7 +35544,7 @@ extension SourceNotFoundFault { } /// The specified Amazon Redshift event source could not be found. -public struct SourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SourceNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35781,7 +35676,7 @@ extension RedshiftClientTypes { extension SubnetAlreadyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35796,7 +35691,7 @@ extension SubnetAlreadyInUse { } /// A specified subnet is already in use by another cluster. -public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubnetAlreadyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35832,7 +35727,7 @@ extension SubnetAlreadyInUseBody: Swift.Decodable { extension SubscriptionAlreadyExistFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35847,7 +35742,7 @@ extension SubscriptionAlreadyExistFault { } /// There is already an existing event notification subscription with the specified name. -public struct SubscriptionAlreadyExistFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionAlreadyExistFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35883,7 +35778,7 @@ extension SubscriptionAlreadyExistFaultBody: Swift.Decodable { extension SubscriptionCategoryNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35898,7 +35793,7 @@ extension SubscriptionCategoryNotFoundFault { } /// The value specified for the event category was not one of the allowed values, or it specified a category that does not apply to the specified source type. The allowed values are Configuration, Management, Monitoring, and Security. -public struct SubscriptionCategoryNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionCategoryNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35934,7 +35829,7 @@ extension SubscriptionCategoryNotFoundFaultBody: Swift.Decodable { extension SubscriptionEventIdNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -35949,7 +35844,7 @@ extension SubscriptionEventIdNotFoundFault { } /// An Amazon Redshift event with the specified event ID does not exist. -public struct SubscriptionEventIdNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionEventIdNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35985,7 +35880,7 @@ extension SubscriptionEventIdNotFoundFaultBody: Swift.Decodable { extension SubscriptionNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36000,7 +35895,7 @@ extension SubscriptionNotFoundFault { } /// An Amazon Redshift event notification subscription with the specified name does not exist. -public struct SubscriptionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36036,7 +35931,7 @@ extension SubscriptionNotFoundFaultBody: Swift.Decodable { extension SubscriptionSeverityNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36051,7 +35946,7 @@ extension SubscriptionSeverityNotFoundFault { } /// The value specified for the event severity was not one of the allowed values, or it specified a severity that does not apply to the specified source type. The allowed values are ERROR and INFO. -public struct SubscriptionSeverityNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionSeverityNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36157,7 +36052,7 @@ extension RedshiftClientTypes { extension TableLimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36172,7 +36067,7 @@ extension TableLimitExceededFault { } /// The number of tables in the cluster exceeds the limit for the requested new cluster node type. -public struct TableLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TableLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36208,7 +36103,7 @@ extension TableLimitExceededFaultBody: Swift.Decodable { extension TableRestoreNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36223,7 +36118,7 @@ extension TableRestoreNotFoundFault { } /// The specified TableRestoreRequestId value was not found. -public struct TableRestoreNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TableRestoreNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36510,7 +36405,7 @@ extension RedshiftClientTypes { extension TagLimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36525,7 +36420,7 @@ extension TagLimitExceededFault { } /// You have exceeded the number of tags allowed. -public struct TagLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagLimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36637,7 +36532,7 @@ extension RedshiftClientTypes { extension UnauthorizedOperation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36652,7 +36547,7 @@ extension UnauthorizedOperation { } /// Your account is not authorized to perform the requested operation. -public struct UnauthorizedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36688,7 +36583,7 @@ extension UnauthorizedOperationBody: Swift.Decodable { extension UnauthorizedPartnerIntegrationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36703,7 +36598,7 @@ extension UnauthorizedPartnerIntegrationFault { } /// The partner integration is not authorized. -public struct UnauthorizedPartnerIntegrationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedPartnerIntegrationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36739,7 +36634,7 @@ extension UnauthorizedPartnerIntegrationFaultBody: Swift.Decodable { extension UnknownSnapshotCopyRegionFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36754,7 +36649,7 @@ extension UnknownSnapshotCopyRegionFault { } /// The specified region is incorrect or does not exist. -public struct UnknownSnapshotCopyRegionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnknownSnapshotCopyRegionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36790,7 +36685,7 @@ extension UnknownSnapshotCopyRegionFaultBody: Swift.Decodable { extension UnsupportedOperationFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36805,7 +36700,7 @@ extension UnsupportedOperationFault { } /// The requested operation isn't supported. -public struct UnsupportedOperationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36841,7 +36736,7 @@ extension UnsupportedOperationFaultBody: Swift.Decodable { extension UnsupportedOptionFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -36856,7 +36751,7 @@ extension UnsupportedOptionFault { } /// A request option was specified that is not supported. -public struct UnsupportedOptionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOptionFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37022,9 +36917,8 @@ public enum UpdatePartnerStatusOutputError: Swift.Error, Swift.Equatable { extension UpdatePartnerStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePartnerStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databaseName = output.databaseName self.partnerName = output.partnerName @@ -37292,7 +37186,7 @@ extension RedshiftClientTypes { extension UsageLimitAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -37307,7 +37201,7 @@ extension UsageLimitAlreadyExistsFault { } /// The usage limit already exists. -public struct UsageLimitAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UsageLimitAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37445,7 +37339,7 @@ extension RedshiftClientTypes { extension UsageLimitNotFoundFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -37460,7 +37354,7 @@ extension UsageLimitNotFoundFault { } /// The usage limit identifier can't be found. -public struct UsageLimitNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UsageLimitNotFoundFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRedshiftData/RedshiftDataClient.swift b/Sources/Services/AWSRedshiftData/RedshiftDataClient.swift index 002f09507a0..d9e46760ba9 100644 --- a/Sources/Services/AWSRedshiftData/RedshiftDataClient.swift +++ b/Sources/Services/AWSRedshiftData/RedshiftDataClient.swift @@ -224,6 +224,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchExecuteStatement") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -248,7 +249,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -268,6 +269,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -284,7 +286,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -304,6 +306,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStatement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +323,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +359,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -372,7 +376,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -408,6 +412,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeStatement") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -432,7 +437,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -452,6 +457,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStatementResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +474,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +510,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatabases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +527,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -556,6 +563,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -572,7 +580,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -592,6 +600,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStatements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +617,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -644,6 +653,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-data") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -660,7 +670,7 @@ extension RedshiftDataClient: RedshiftDataClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRedshiftData/models/Models.swift b/Sources/Services/AWSRedshiftData/models/Models.swift index e76338e7b10..d30450980c2 100644 --- a/Sources/Services/AWSRedshiftData/models/Models.swift +++ b/Sources/Services/AWSRedshiftData/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ActiveStatementsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActiveStatementsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ActiveStatementsExceededException { } /// The number of active statements exceeds the limit. -public struct ActiveStatementsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActiveStatementsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension ActiveStatementsExceededExceptionBody: Swift.Decodable { extension BatchExecuteStatementException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchExecuteStatementExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.statementId = output.statementId @@ -74,7 +72,7 @@ extension BatchExecuteStatementException { } /// An SQL statement encountered an environmental error while running. -public struct BatchExecuteStatementException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchExecuteStatementException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -303,9 +301,8 @@ public enum BatchExecuteStatementOutputError: Swift.Error, Swift.Equatable { extension BatchExecuteStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchExecuteStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterIdentifier = output.clusterIdentifier self.createdAt = output.createdAt @@ -480,9 +477,8 @@ public enum CancelStatementOutputError: Swift.Error, Swift.Equatable { extension CancelStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -676,9 +672,8 @@ extension RedshiftDataClientTypes { extension DatabaseConnectionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DatabaseConnectionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -692,7 +687,7 @@ extension DatabaseConnectionException { } /// Connection to a database failed. -public struct DatabaseConnectionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DatabaseConnectionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -803,9 +798,8 @@ public enum DescribeStatementOutputError: Swift.Error, Swift.Equatable { extension DescribeStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterIdentifier = output.clusterIdentifier self.createdAt = output.createdAt @@ -1239,9 +1233,8 @@ public enum DescribeTableOutputError: Swift.Error, Swift.Equatable { extension DescribeTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnList = output.columnList self.nextToken = output.nextToken @@ -1309,9 +1302,8 @@ extension DescribeTableOutputResponseBody: Swift.Decodable { extension ExecuteStatementException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteStatementExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.statementId = output.statementId @@ -1327,7 +1319,7 @@ extension ExecuteStatementException { } /// The SQL statement encountered an environmental error while running. -public struct ExecuteStatementException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExecuteStatementException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1569,9 +1561,8 @@ public enum ExecuteStatementOutputError: Swift.Error, Swift.Equatable { extension ExecuteStatementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteStatementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterIdentifier = output.clusterIdentifier self.createdAt = output.createdAt @@ -1843,9 +1834,8 @@ public enum GetStatementResultOutputError: Swift.Error, Swift.Equatable { extension GetStatementResultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStatementResultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnMetadata = output.columnMetadata self.nextToken = output.nextToken @@ -1942,9 +1932,8 @@ extension GetStatementResultOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1958,7 +1947,7 @@ extension InternalServerException { } /// The Amazon Redshift Data API operation failed due to invalid input. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2142,9 +2131,8 @@ public enum ListDatabasesOutputError: Swift.Error, Swift.Equatable { extension ListDatabasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatabasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databases = output.databases self.nextToken = output.nextToken @@ -2372,9 +2360,8 @@ public enum ListSchemasOutputError: Swift.Error, Swift.Equatable { extension ListSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemas = output.schemas @@ -2565,9 +2552,8 @@ public enum ListStatementsOutputError: Swift.Error, Swift.Equatable { extension ListStatementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStatementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.statements = output.statements @@ -2808,9 +2794,8 @@ public enum ListTablesOutputError: Swift.Error, Swift.Equatable { extension ListTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tables = output.tables @@ -2868,9 +2853,8 @@ extension ListTablesOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -2886,7 +2870,7 @@ extension ResourceNotFoundException { } /// The Amazon Redshift Data API operation failed due to a missing resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3412,9 +3396,8 @@ extension RedshiftDataClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3428,7 +3411,7 @@ extension ValidationException { } /// The Amazon Redshift Data API operation failed due to invalid input. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRedshiftServerless/RedshiftServerlessClient.swift b/Sources/Services/AWSRedshiftServerless/RedshiftServerlessClient.swift index fe2073633be..1f7ee5912b4 100644 --- a/Sources/Services/AWSRedshiftServerless/RedshiftServerlessClient.swift +++ b/Sources/Services/AWSRedshiftServerless/RedshiftServerlessClient.swift @@ -208,6 +208,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "convertRecoveryPointToSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUsageLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkgroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUsageLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkgroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecoveryPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTableRestoreStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUsageLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkgroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNamespaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecoveryPoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTableRestoreStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsageLimits") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkgroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreFromRecoveryPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreTableFromSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEndpointAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUsageLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { .withRegion(value: config.region) .withSigningName(value: "redshift-serverless") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkgroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension RedshiftServerlessClient: RedshiftServerlessClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRedshiftServerless/models/Models.swift b/Sources/Services/AWSRedshiftServerless/models/Models.swift index 94fe8c6b6e8..ac440ebe786 100644 --- a/Sources/Services/AWSRedshiftServerless/models/Models.swift +++ b/Sources/Services/AWSRedshiftServerless/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -110,9 +109,8 @@ extension RedshiftServerlessClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -126,7 +124,7 @@ extension ConflictException { } /// The submitted action has conflicts. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -292,9 +290,8 @@ public enum ConvertRecoveryPointToSnapshotOutputError: Swift.Error, Swift.Equata extension ConvertRecoveryPointToSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConvertRecoveryPointToSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -475,9 +472,8 @@ public enum CreateEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -729,9 +725,8 @@ public enum CreateNamespaceOutputError: Swift.Error, Swift.Equatable { extension CreateNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespace = output.namespace } else { @@ -899,9 +894,8 @@ public enum CreateSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -1068,9 +1062,8 @@ public enum CreateUsageLimitOutputError: Swift.Error, Swift.Equatable { extension CreateUsageLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUsageLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.usageLimit = output.usageLimit } else { @@ -1346,9 +1339,8 @@ public enum CreateWorkgroupOutputError: Swift.Error, Swift.Equatable { extension CreateWorkgroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkgroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workgroup = output.workgroup } else { @@ -1463,9 +1455,8 @@ public enum DeleteEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension DeleteEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -1604,9 +1595,8 @@ public enum DeleteNamespaceOutputError: Swift.Error, Swift.Equatable { extension DeleteNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespace = output.namespace } else { @@ -1806,9 +1796,8 @@ public enum DeleteSnapshotOutputError: Swift.Error, Swift.Equatable { extension DeleteSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -1923,9 +1912,8 @@ public enum DeleteUsageLimitOutputError: Swift.Error, Swift.Equatable { extension DeleteUsageLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteUsageLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.usageLimit = output.usageLimit } else { @@ -2040,9 +2028,8 @@ public enum DeleteWorkgroupOutputError: Swift.Error, Swift.Equatable { extension DeleteWorkgroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWorkgroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workgroup = output.workgroup } else { @@ -2411,9 +2398,8 @@ extension GetCredentialsOutputResponse: Swift.CustomDebugStringConvertible { extension GetCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dbPassword = output.dbPassword self.dbUser = output.dbUser @@ -2558,9 +2544,8 @@ public enum GetEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension GetEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -2673,9 +2658,8 @@ public enum GetNamespaceOutputError: Swift.Error, Swift.Equatable { extension GetNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespace = output.namespace } else { @@ -2791,9 +2775,8 @@ public enum GetRecoveryPointOutputError: Swift.Error, Swift.Equatable { extension GetRecoveryPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecoveryPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recoveryPoint = output.recoveryPoint } else { @@ -2906,9 +2889,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePolicy = output.resourcePolicy } else { @@ -3044,9 +3026,8 @@ public enum GetSnapshotOutputError: Swift.Error, Swift.Equatable { extension GetSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -3157,9 +3138,8 @@ public enum GetTableRestoreStatusOutputError: Swift.Error, Swift.Equatable { extension GetTableRestoreStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTableRestoreStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableRestoreStatus = output.tableRestoreStatus } else { @@ -3274,9 +3254,8 @@ public enum GetUsageLimitOutputError: Swift.Error, Swift.Equatable { extension GetUsageLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUsageLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.usageLimit = output.usageLimit } else { @@ -3389,9 +3368,8 @@ public enum GetWorkgroupOutputError: Swift.Error, Swift.Equatable { extension GetWorkgroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkgroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workgroup = output.workgroup } else { @@ -3431,9 +3409,8 @@ extension GetWorkgroupOutputResponseBody: Swift.Decodable { extension InsufficientCapacityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InsufficientCapacityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3447,7 +3424,7 @@ extension InsufficientCapacityException { } /// There is an insufficient capacity to perform the action. -public struct InsufficientCapacityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientCapacityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3484,9 +3461,8 @@ extension InsufficientCapacityExceptionBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3500,7 +3476,7 @@ extension InternalServerException { } /// The request processing has failed because of an unknown error, exception or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3537,9 +3513,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidPaginationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPaginationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3553,7 +3528,7 @@ extension InvalidPaginationException { } /// The provided pagination token is invalid. -public struct InvalidPaginationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3685,9 +3660,8 @@ public enum ListEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension ListEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.nextToken = output.nextToken @@ -3809,9 +3783,8 @@ public enum ListNamespacesOutputError: Swift.Error, Swift.Equatable { extension ListNamespacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNamespacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespaces = output.namespaces self.nextToken = output.nextToken @@ -3985,9 +3958,8 @@ public enum ListRecoveryPointsOutputError: Swift.Error, Swift.Equatable { extension ListRecoveryPointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecoveryPointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recoveryPoints = output.recoveryPoints @@ -4174,9 +4146,8 @@ public enum ListSnapshotsOutputError: Swift.Error, Swift.Equatable { extension ListSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.snapshots = output.snapshots @@ -4327,9 +4298,8 @@ public enum ListTableRestoreStatusOutputError: Swift.Error, Swift.Equatable { extension ListTableRestoreStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTableRestoreStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tableRestoreStatuses = output.tableRestoreStatuses @@ -4463,9 +4433,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4610,9 +4579,8 @@ public enum ListUsageLimitsOutputError: Swift.Error, Swift.Equatable { extension ListUsageLimitsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsageLimitsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.usageLimits = output.usageLimits @@ -4733,9 +4701,8 @@ public enum ListWorkgroupsOutputError: Swift.Error, Swift.Equatable { extension ListWorkgroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkgroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workgroups = output.workgroups @@ -5184,9 +5151,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePolicy = output.resourcePolicy } else { @@ -5310,9 +5276,8 @@ extension RedshiftServerlessClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -5328,7 +5293,7 @@ extension ResourceNotFoundException { } /// The resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5520,9 +5485,8 @@ public enum RestoreFromRecoveryPointOutputError: Swift.Error, Swift.Equatable { extension RestoreFromRecoveryPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreFromRecoveryPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespace = output.namespace self.recoveryPointId = output.recoveryPointId @@ -5698,9 +5662,8 @@ public enum RestoreFromSnapshotOutputError: Swift.Error, Swift.Equatable { extension RestoreFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespace = output.namespace self.ownerAccount = output.ownerAccount @@ -5948,9 +5911,8 @@ public enum RestoreTableFromSnapshotOutputError: Swift.Error, Swift.Equatable { extension RestoreTableFromSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreTableFromSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tableRestoreStatus = output.tableRestoreStatus } else { @@ -5989,9 +5951,8 @@ extension RestoreTableFromSnapshotOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6005,7 +5966,7 @@ extension ServiceQuotaExceededException { } /// The service limit was exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6670,9 +6631,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -6688,7 +6648,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6731,9 +6691,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -6749,7 +6708,7 @@ extension TooManyTagsException { } /// The request exceeded the number of tags allowed for a resource. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7006,9 +6965,8 @@ public enum UpdateEndpointAccessOutputError: Swift.Error, Swift.Equatable { extension UpdateEndpointAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEndpointAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoint = output.endpoint } else { @@ -7224,9 +7182,8 @@ public enum UpdateNamespaceOutputError: Swift.Error, Swift.Equatable { extension UpdateNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespace = output.namespace } else { @@ -7354,9 +7311,8 @@ public enum UpdateSnapshotOutputError: Swift.Error, Swift.Equatable { extension UpdateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshot = output.snapshot } else { @@ -7495,9 +7451,8 @@ public enum UpdateUsageLimitOutputError: Swift.Error, Swift.Equatable { extension UpdateUsageLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUsageLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.usageLimit = output.usageLimit } else { @@ -7734,9 +7689,8 @@ public enum UpdateWorkgroupOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkgroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkgroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workgroup = output.workgroup } else { @@ -7973,9 +7927,8 @@ extension RedshiftServerlessClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7989,7 +7942,7 @@ extension ValidationException { } /// The input failed to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRekognition/RekognitionClient.swift b/Sources/Services/AWSRekognition/RekognitionClient.swift index 8b6a624280a..3bf84937d10 100644 --- a/Sources/Services/AWSRekognition/RekognitionClient.swift +++ b/Sources/Services/AWSRekognition/RekognitionClient.swift @@ -208,6 +208,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "compareFaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyProjectVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFaceLivenessSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProjectVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -467,6 +474,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStreamProcessor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -483,7 +491,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -503,6 +511,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +528,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +548,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -555,7 +565,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -575,6 +585,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -591,7 +602,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -611,6 +622,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -627,7 +639,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -647,6 +659,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProjectPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -663,7 +676,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -683,6 +696,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProjectVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -699,7 +713,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -719,6 +733,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStreamProcessor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -735,7 +750,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -755,6 +770,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -771,7 +787,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -791,6 +807,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataset") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -807,7 +824,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -827,6 +844,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProjectVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -843,7 +861,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -863,6 +881,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -879,7 +898,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -899,6 +918,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStreamProcessor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +935,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +955,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectCustomLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -951,7 +972,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -971,6 +992,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectFaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -987,7 +1009,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1039,6 +1061,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1055,7 +1078,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1075,6 +1098,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectModerationLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1091,7 +1115,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1129,6 +1153,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectProtectiveEquipment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1145,7 +1170,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1165,6 +1190,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectText") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1181,7 +1207,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1201,6 +1227,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "distributeDatasetEntries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1217,7 +1244,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1237,6 +1264,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCelebrityInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1253,7 +1281,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1273,6 +1301,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCelebrityRecognition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1289,7 +1318,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1309,6 +1338,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContentModeration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1325,7 +1355,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1345,6 +1375,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFaceDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1361,7 +1392,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1381,6 +1412,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFaceLivenessSessionResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1397,7 +1429,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1417,6 +1449,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFaceSearch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1433,7 +1466,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1470,6 +1503,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLabelDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1486,7 +1520,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1506,6 +1540,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPersonTracking") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1522,7 +1557,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1542,6 +1577,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSegmentDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1558,7 +1594,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1578,6 +1614,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTextDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1594,7 +1631,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1640,6 +1677,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "indexFaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1656,7 +1694,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1676,6 +1714,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCollections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1692,7 +1731,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1712,6 +1751,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetEntries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1728,7 +1768,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1748,6 +1788,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatasetLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1764,7 +1805,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1784,6 +1825,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1800,7 +1842,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1820,6 +1862,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjectPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1836,7 +1879,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1856,6 +1899,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStreamProcessors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1872,7 +1916,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1892,6 +1936,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1908,7 +1953,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1928,6 +1973,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putProjectPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1944,7 +1990,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1964,6 +2010,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "recognizeCelebrities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1980,7 +2027,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2000,6 +2047,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchFaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2016,7 +2064,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2036,6 +2084,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchFacesByImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2052,7 +2101,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2072,6 +2121,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCelebrityRecognition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2088,7 +2138,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2108,6 +2158,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startContentModeration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2124,7 +2175,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2144,6 +2195,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFaceDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2160,7 +2212,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2180,6 +2232,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFaceSearch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2196,7 +2249,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2216,6 +2269,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startLabelDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2232,7 +2286,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2252,6 +2306,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startPersonTracking") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2268,7 +2323,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2288,6 +2343,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startProjectVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2304,7 +2360,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2324,6 +2380,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSegmentDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2340,7 +2397,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2360,6 +2417,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startStreamProcessor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2376,7 +2434,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2396,6 +2454,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTextDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2412,7 +2471,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2432,6 +2491,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopProjectVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2448,7 +2508,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2468,6 +2528,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopStreamProcessor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2484,7 +2545,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2504,6 +2565,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2520,7 +2582,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2540,6 +2602,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2556,7 +2619,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2576,6 +2639,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatasetEntries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2592,7 +2656,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2612,6 +2676,7 @@ extension RekognitionClient: RekognitionClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rekognition") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStreamProcessor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2628,7 +2693,7 @@ extension RekognitionClient: RekognitionClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRekognition/models/Models.swift b/Sources/Services/AWSRekognition/models/Models.swift index 0fe886f6341..dd046dcd99b 100644 --- a/Sources/Services/AWSRekognition/models/Models.swift +++ b/Sources/Services/AWSRekognition/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -24,7 +23,7 @@ extension AccessDeniedException { } /// You are not authorized to perform the action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -952,9 +951,8 @@ public enum CompareFacesOutputError: Swift.Error, Swift.Equatable { extension CompareFacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CompareFacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.faceMatches = output.faceMatches self.sourceImageFace = output.sourceImageFace @@ -1624,9 +1622,8 @@ public enum CopyProjectVersionOutputError: Swift.Error, Swift.Equatable { extension CopyProjectVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyProjectVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectVersionArn = output.projectVersionArn } else { @@ -1816,9 +1813,8 @@ public enum CreateCollectionOutputError: Swift.Error, Swift.Equatable { extension CreateCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectionArn = output.collectionArn self.faceModelVersion = output.faceModelVersion @@ -1988,9 +1984,8 @@ public enum CreateDatasetOutputError: Swift.Error, Swift.Equatable { extension CreateDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetArn = output.datasetArn } else { @@ -2130,9 +2125,8 @@ public enum CreateFaceLivenessSessionOutputError: Swift.Error, Swift.Equatable { extension CreateFaceLivenessSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFaceLivenessSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionId = output.sessionId } else { @@ -2299,9 +2293,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectArn = output.projectArn } else { @@ -2523,9 +2516,8 @@ public enum CreateProjectVersionOutputError: Swift.Error, Swift.Equatable { extension CreateProjectVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectVersionArn = output.projectVersionArn } else { @@ -2784,9 +2776,8 @@ public enum CreateStreamProcessorOutputError: Swift.Error, Swift.Equatable { extension CreateStreamProcessorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStreamProcessorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.streamProcessorArn = output.streamProcessorArn } else { @@ -3480,9 +3471,8 @@ public enum DeleteCollectionOutputError: Swift.Error, Swift.Equatable { extension DeleteCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statusCode = output.statusCode } else { @@ -3720,9 +3710,8 @@ public enum DeleteFacesOutputError: Swift.Error, Swift.Equatable { extension DeleteFacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletedFaces = output.deletedFaces } else { @@ -3852,9 +3841,8 @@ public enum DeleteProjectOutputError: Swift.Error, Swift.Equatable { extension DeleteProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -4092,9 +4080,8 @@ public enum DeleteProjectVersionOutputError: Swift.Error, Swift.Equatable { extension DeleteProjectVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProjectVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -4305,9 +4292,8 @@ public enum DescribeCollectionOutputError: Swift.Error, Swift.Equatable { extension DescribeCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectionARN = output.collectionARN self.creationTimestamp = output.creationTimestamp @@ -4456,9 +4442,8 @@ public enum DescribeDatasetOutputError: Swift.Error, Swift.Equatable { extension DescribeDatasetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatasetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetDescription = output.datasetDescription } else { @@ -4627,9 +4612,8 @@ public enum DescribeProjectVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeProjectVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projectVersionDescriptions = output.projectVersionDescriptions @@ -4802,9 +4786,8 @@ public enum DescribeProjectsOutputError: Swift.Error, Swift.Equatable { extension DescribeProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projectDescriptions = output.projectDescriptions @@ -4942,9 +4925,8 @@ public enum DescribeStreamProcessorOutputError: Swift.Error, Swift.Equatable { extension DescribeStreamProcessorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStreamProcessorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTimestamp = output.creationTimestamp self.dataSharingPreference = output.dataSharingPreference @@ -5249,9 +5231,8 @@ public enum DetectCustomLabelsOutputError: Swift.Error, Swift.Equatable { extension DetectCustomLabelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectCustomLabelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customLabels = output.customLabels } else { @@ -5407,9 +5388,8 @@ public enum DetectFacesOutputError: Swift.Error, Swift.Equatable { extension DetectFacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectFacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.faceDetails = output.faceDetails self.orientationCorrection = output.orientationCorrection @@ -5924,9 +5904,8 @@ public enum DetectLabelsOutputError: Swift.Error, Swift.Equatable { extension DetectLabelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectLabelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageProperties = output.imageProperties self.labelModelVersion = output.labelModelVersion @@ -6159,9 +6138,8 @@ public enum DetectModerationLabelsOutputError: Swift.Error, Swift.Equatable { extension DetectModerationLabelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectModerationLabelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.humanLoopActivationOutput = output.humanLoopActivationOutput self.moderationLabels = output.moderationLabels @@ -6325,9 +6303,8 @@ public enum DetectProtectiveEquipmentOutputError: Swift.Error, Swift.Equatable { extension DetectProtectiveEquipmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectProtectiveEquipmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.persons = output.persons self.protectiveEquipmentModelVersion = output.protectiveEquipmentModelVersion @@ -6548,9 +6525,8 @@ public enum DetectTextOutputError: Swift.Error, Swift.Equatable { extension DetectTextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectTextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.textDetections = output.textDetections self.textModelVersion = output.textModelVersion @@ -8060,9 +8036,8 @@ public enum GetCelebrityInfoOutputError: Swift.Error, Swift.Equatable { extension GetCelebrityInfoOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCelebrityInfoOutputResponseBody = try responseDecoder.decode(responseBody: data) self.knownGender = output.knownGender self.name = output.name @@ -8248,9 +8223,8 @@ public enum GetCelebrityRecognitionOutputError: Swift.Error, Swift.Equatable { extension GetCelebrityRecognitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCelebrityRecognitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.celebrities = output.celebrities self.jobStatus = output.jobStatus @@ -8456,9 +8430,8 @@ public enum GetContentModerationOutputError: Swift.Error, Swift.Equatable { extension GetContentModerationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContentModerationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobStatus = output.jobStatus self.moderationLabels = output.moderationLabels @@ -8662,9 +8635,8 @@ public enum GetFaceDetectionOutputError: Swift.Error, Swift.Equatable { extension GetFaceDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFaceDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.faces = output.faces self.jobStatus = output.jobStatus @@ -8832,9 +8804,8 @@ public enum GetFaceLivenessSessionResultsOutputError: Swift.Error, Swift.Equatab extension GetFaceLivenessSessionResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFaceLivenessSessionResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auditImages = output.auditImages self.confidence = output.confidence @@ -9042,9 +9013,8 @@ public enum GetFaceSearchOutputError: Swift.Error, Swift.Equatable { extension GetFaceSearchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFaceSearchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobStatus = output.jobStatus self.nextToken = output.nextToken @@ -9262,9 +9232,8 @@ public enum GetLabelDetectionOutputError: Swift.Error, Swift.Equatable { extension GetLabelDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLabelDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobStatus = output.jobStatus self.labelModelVersion = output.labelModelVersion @@ -9480,9 +9449,8 @@ public enum GetPersonTrackingOutputError: Swift.Error, Swift.Equatable { extension GetPersonTrackingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPersonTrackingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobStatus = output.jobStatus self.nextToken = output.nextToken @@ -9676,9 +9644,8 @@ public enum GetSegmentDetectionOutputError: Swift.Error, Swift.Equatable { extension GetSegmentDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSegmentDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.audioMetadata = output.audioMetadata self.jobStatus = output.jobStatus @@ -9919,9 +9886,8 @@ public enum GetTextDetectionOutputError: Swift.Error, Swift.Equatable { extension GetTextDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTextDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobStatus = output.jobStatus self.nextToken = output.nextToken @@ -10225,9 +10191,8 @@ extension RekognitionClientTypes { extension HumanLoopQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HumanLoopQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -10251,7 +10216,7 @@ extension HumanLoopQuotaExceededException { } /// The number of in-progress human reviews you have has exceeded the number allowed. -public struct HumanLoopQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HumanLoopQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10326,9 +10291,8 @@ extension HumanLoopQuotaExceededExceptionBody: Swift.Decodable { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -10346,7 +10310,7 @@ extension IdempotentParameterMismatchException { } /// A ClientRequestToken input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10487,9 +10451,8 @@ extension RekognitionClientTypes { extension ImageTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImageTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -10507,7 +10470,7 @@ extension ImageTooLargeException { } /// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, the image size or resolution exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide. -public struct ImageTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ImageTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10719,9 +10682,8 @@ public enum IndexFacesOutputError: Swift.Error, Swift.Equatable { extension IndexFacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IndexFacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.faceModelVersion = output.faceModelVersion self.faceRecords = output.faceRecords @@ -10882,9 +10844,8 @@ extension RekognitionClientTypes { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -10902,7 +10863,7 @@ extension InternalServerError { } /// Amazon Rekognition experienced a service issue. Try your call again. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10953,9 +10914,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidImageFormatException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidImageFormatExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -10973,7 +10933,7 @@ extension InvalidImageFormatException { } /// The provided image format is not supported. -public struct InvalidImageFormatException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidImageFormatException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11024,9 +10984,8 @@ extension InvalidImageFormatExceptionBody: Swift.Decodable { extension InvalidPaginationTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPaginationTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -11044,7 +11003,7 @@ extension InvalidPaginationTokenException { } /// Pagination token in the request is not valid. -public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11095,9 +11054,8 @@ extension InvalidPaginationTokenExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -11115,7 +11073,7 @@ extension InvalidParameterException { } /// Input parameter violated a constraint. Validate your parameter before calling the API operation again. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11166,9 +11124,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidPolicyRevisionIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPolicyRevisionIdExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -11186,7 +11143,7 @@ extension InvalidPolicyRevisionIdException { } /// The supplied revision id for the project policy is invalid. -public struct InvalidPolicyRevisionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPolicyRevisionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11237,9 +11194,8 @@ extension InvalidPolicyRevisionIdExceptionBody: Swift.Decodable { extension InvalidS3ObjectException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidS3ObjectExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -11257,7 +11213,7 @@ extension InvalidS3ObjectException { } /// Amazon Rekognition is unable to access the S3 object specified in the request. -public struct InvalidS3ObjectException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3ObjectException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12074,9 +12030,8 @@ extension RekognitionClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -12094,7 +12049,7 @@ extension LimitExceededException { } /// An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Rekognition service limit. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12238,9 +12193,8 @@ public enum ListCollectionsOutputError: Swift.Error, Swift.Equatable { extension ListCollectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCollectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collectionIds = output.collectionIds self.faceModelVersions = output.faceModelVersions @@ -12487,9 +12441,8 @@ public enum ListDatasetEntriesOutputError: Swift.Error, Swift.Equatable { extension ListDatasetEntriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetEntriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetEntries = output.datasetEntries self.nextToken = output.nextToken @@ -12657,9 +12610,8 @@ public enum ListDatasetLabelsOutputError: Swift.Error, Swift.Equatable { extension ListDatasetLabelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatasetLabelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.datasetLabelDescriptions = output.datasetLabelDescriptions self.nextToken = output.nextToken @@ -12823,9 +12775,8 @@ public enum ListFacesOutputError: Swift.Error, Swift.Equatable { extension ListFacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.faceModelVersion = output.faceModelVersion self.faces = output.faces @@ -12999,9 +12950,8 @@ public enum ListProjectPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListProjectPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projectPolicies = output.projectPolicies @@ -13150,9 +13100,8 @@ public enum ListStreamProcessorsOutputError: Swift.Error, Swift.Equatable { extension ListStreamProcessorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStreamProcessorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.streamProcessors = output.streamProcessors @@ -13290,9 +13239,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -13424,9 +13372,8 @@ extension RekognitionClientTypes { extension MalformedPolicyDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedPolicyDocumentExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -13444,7 +13391,7 @@ extension MalformedPolicyDocumentException { } /// The format of the project policy document that you supplied to PutProjectPolicy is incorrect. -public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14867,9 +14814,8 @@ extension RekognitionClientTypes { extension ProvisionedThroughputExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionedThroughputExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -14887,7 +14833,7 @@ extension ProvisionedThroughputExceededException { } /// The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition. -public struct ProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15066,9 +15012,8 @@ public enum PutProjectPolicyOutputError: Swift.Error, Swift.Equatable { extension PutProjectPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutProjectPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyRevisionId = output.policyRevisionId } else { @@ -15279,9 +15224,8 @@ public enum RecognizeCelebritiesOutputError: Swift.Error, Swift.Equatable { extension RecognizeCelebritiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RecognizeCelebritiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.celebrityFaces = output.celebrityFaces self.orientationCorrection = output.orientationCorrection @@ -15415,9 +15359,8 @@ extension RekognitionClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -15435,7 +15378,7 @@ extension ResourceAlreadyExistsException { } /// A resource with the specified ID already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15486,9 +15429,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -15506,7 +15448,7 @@ extension ResourceInUseException { } /// The specified resource is already being used. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15557,9 +15499,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -15577,7 +15518,7 @@ extension ResourceNotFoundException { } /// The resource specified in the request cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15628,9 +15569,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -15648,7 +15588,7 @@ extension ResourceNotReadyException { } /// The requested resource isn't ready. For example, this exception occurs when you call DetectCustomLabels with a model version that isn't deployed. -public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15934,9 +15874,8 @@ public enum SearchFacesByImageOutputError: Swift.Error, Swift.Equatable { extension SearchFacesByImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchFacesByImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.faceMatches = output.faceMatches self.faceModelVersion = output.faceModelVersion @@ -16131,9 +16070,8 @@ public enum SearchFacesOutputError: Swift.Error, Swift.Equatable { extension SearchFacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchFacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.faceMatches = output.faceMatches self.faceModelVersion = output.faceModelVersion @@ -16423,9 +16361,8 @@ extension RekognitionClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -16443,7 +16380,7 @@ extension ServiceQuotaExceededException { } /// The size of the collection exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16494,9 +16431,8 @@ extension ServiceQuotaExceededExceptionBody: Swift.Decodable { extension SessionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SessionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -16514,7 +16450,7 @@ extension SessionNotFoundException { } /// Occurs when a given sessionId is not found. -public struct SessionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SessionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16777,9 +16713,8 @@ public enum StartCelebrityRecognitionOutputError: Swift.Error, Swift.Equatable { extension StartCelebrityRecognitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartCelebrityRecognitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -16952,9 +16887,8 @@ public enum StartContentModerationOutputError: Swift.Error, Swift.Equatable { extension StartContentModerationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartContentModerationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -17127,9 +17061,8 @@ public enum StartFaceDetectionOutputError: Swift.Error, Swift.Equatable { extension StartFaceDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFaceDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -17317,9 +17250,8 @@ public enum StartFaceSearchOutputError: Swift.Error, Swift.Equatable { extension StartFaceSearchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFaceSearchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -17528,9 +17460,8 @@ public enum StartLabelDetectionOutputError: Swift.Error, Swift.Equatable { extension StartLabelDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartLabelDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -17691,9 +17622,8 @@ public enum StartPersonTrackingOutputError: Swift.Error, Swift.Equatable { extension StartPersonTrackingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartPersonTrackingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -17841,9 +17771,8 @@ public enum StartProjectVersionOutputError: Swift.Error, Swift.Equatable { extension StartProjectVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartProjectVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -18086,9 +18015,8 @@ public enum StartSegmentDetectionOutputError: Swift.Error, Swift.Equatable { extension StartSegmentDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSegmentDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -18268,9 +18196,8 @@ public enum StartStreamProcessorOutputError: Swift.Error, Swift.Equatable { extension StartStreamProcessorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartStreamProcessorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionId = output.sessionId } else { @@ -18545,9 +18472,8 @@ public enum StartTextDetectionOutputError: Swift.Error, Swift.Equatable { extension StartTextDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTextDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -18668,9 +18594,8 @@ public enum StopProjectVersionOutputError: Swift.Error, Swift.Equatable { extension StopProjectVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopProjectVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -19787,9 +19712,8 @@ extension RekognitionClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -19807,7 +19731,7 @@ extension ThrottlingException { } /// Amazon Rekognition is temporarily unable to process the request. Try your call again. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -20659,9 +20583,8 @@ extension RekognitionClientTypes { extension VideoTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VideoTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.logref = output.logref @@ -20679,7 +20602,7 @@ extension VideoTooLargeException { } /// The file size or duration of the supplied media is too large. The maximum file size is 10GB. The maximum duration is 6 hours. -public struct VideoTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VideoTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSResiliencehub/ResiliencehubClient.swift b/Sources/Services/AWSResiliencehub/ResiliencehubClient.swift index 76940318cb3..90abe8c0fee 100644 --- a/Sources/Services/AWSResiliencehub/ResiliencehubClient.swift +++ b/Sources/Services/AWSResiliencehub/ResiliencehubClient.swift @@ -208,6 +208,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addDraftAppVersionResourceMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApp") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -266,7 +268,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppVersionAppComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -309,7 +312,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -335,6 +338,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppVersionResource") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -358,7 +362,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -378,6 +382,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRecommendationTemplate") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -401,7 +406,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -421,6 +426,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResiliencyPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -444,7 +450,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -464,6 +470,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApp") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -487,7 +494,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +514,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppAssessment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -530,7 +538,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -550,6 +558,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppInputSource") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -573,7 +582,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -597,6 +606,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppVersionAppComponent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -620,7 +630,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -646,6 +656,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppVersionResource") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -669,7 +680,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -689,6 +700,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecommendationTemplate") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -712,7 +724,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -732,6 +744,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResiliencyPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -755,7 +768,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -775,6 +788,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -790,7 +804,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -810,6 +824,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppAssessment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -825,7 +840,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -845,6 +860,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -860,7 +876,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -880,6 +896,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppVersionAppComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -895,7 +912,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -921,6 +938,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppVersionResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -936,7 +954,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -956,6 +974,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppVersionResourcesResolutionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -971,7 +990,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -991,6 +1010,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppVersionTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1006,7 +1026,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1026,6 +1046,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDraftAppVersionResourcesImportStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1041,7 +1062,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1061,6 +1082,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResiliencyPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1076,7 +1098,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1096,6 +1118,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importResourcesToDraftAppVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1111,7 +1134,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1131,6 +1154,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAlarmRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1146,7 +1170,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1166,6 +1190,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppAssessments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1179,7 +1204,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1199,6 +1224,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppComponentCompliances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1214,7 +1240,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1234,6 +1260,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppComponentRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1249,7 +1276,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1269,6 +1296,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppInputSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1284,7 +1312,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1304,6 +1332,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppVersionAppComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1319,7 +1348,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1339,6 +1368,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppVersionResourceMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1354,7 +1384,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1374,6 +1404,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppVersionResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1389,7 +1420,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1409,6 +1440,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1424,7 +1456,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1444,6 +1476,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1457,7 +1490,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1477,6 +1510,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecommendationTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1490,7 +1524,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1510,6 +1544,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResiliencyPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1523,7 +1558,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1543,6 +1578,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSopRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1558,7 +1594,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1578,6 +1614,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSuggestedResiliencyPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1591,7 +1628,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1611,6 +1648,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1623,7 +1661,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1643,6 +1681,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTestRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1658,7 +1697,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1678,6 +1717,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUnsupportedAppVersionResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1693,7 +1733,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1713,6 +1753,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishAppVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1728,7 +1769,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1748,6 +1789,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDraftAppVersionTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1763,7 +1805,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1783,6 +1825,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeDraftAppVersionResourceMappings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1798,7 +1841,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1818,6 +1861,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resolveAppVersionResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1833,7 +1877,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1853,6 +1897,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAppAssessment") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1876,7 +1921,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1896,6 +1941,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1911,7 +1957,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1931,6 +1977,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1944,7 +1991,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1964,6 +2011,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1979,7 +2027,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1999,6 +2047,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2014,7 +2063,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2034,6 +2083,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppVersionAppComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2049,7 +2099,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2075,6 +2125,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppVersionResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2090,7 +2141,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2110,6 +2161,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resiliencehub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResiliencyPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2125,7 +2177,7 @@ extension ResiliencehubClient: ResiliencehubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSResiliencehub/models/Models.swift b/Sources/Services/AWSResiliencehub/models/Models.swift index e2d49572a0d..9653af2de82 100644 --- a/Sources/Services/AWSResiliencehub/models/Models.swift +++ b/Sources/Services/AWSResiliencehub/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -161,9 +160,8 @@ public enum AddDraftAppVersionResourceMappingsOutputError: Swift.Error, Swift.Eq extension AddDraftAppVersionResourceMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddDraftAppVersionResourceMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -1823,9 +1821,8 @@ extension ResiliencehubClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1843,7 +1840,7 @@ extension ConflictException { } /// This exception occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2150,9 +2147,8 @@ public enum CreateAppOutputError: Swift.Error, Swift.Equatable { extension CreateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.app = output.app } else { @@ -2358,9 +2354,8 @@ public enum CreateAppVersionAppComponentOutputError: Swift.Error, Swift.Equatabl extension CreateAppVersionAppComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppVersionAppComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appComponent = output.appComponent @@ -2650,9 +2645,8 @@ public enum CreateAppVersionResourceOutputError: Swift.Error, Swift.Equatable { extension CreateAppVersionResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppVersionResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -2921,9 +2915,8 @@ public enum CreateRecommendationTemplateOutputError: Swift.Error, Swift.Equatabl extension CreateRecommendationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRecommendationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommendationTemplate = output.recommendationTemplate } else { @@ -3145,9 +3138,8 @@ public enum CreateResiliencyPolicyOutputError: Swift.Error, Swift.Equatable { extension CreateResiliencyPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResiliencyPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -3314,9 +3306,8 @@ public enum DeleteAppAssessmentOutputError: Swift.Error, Swift.Equatable { extension DeleteAppAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAppAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentArn = output.assessmentArn self.assessmentStatus = output.assessmentStatus @@ -3567,9 +3558,8 @@ public enum DeleteAppInputSourceOutputError: Swift.Error, Swift.Equatable { extension DeleteAppInputSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAppInputSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appInputSource = output.appInputSource @@ -3648,9 +3638,8 @@ public enum DeleteAppOutputError: Swift.Error, Swift.Equatable { extension DeleteAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn } else { @@ -3795,9 +3784,8 @@ public enum DeleteAppVersionAppComponentOutputError: Swift.Error, Swift.Equatabl extension DeleteAppVersionAppComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAppVersionAppComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appComponent = output.appComponent @@ -4010,9 +3998,8 @@ public enum DeleteAppVersionResourceOutputError: Swift.Error, Swift.Equatable { extension DeleteAppVersionResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAppVersionResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -4163,9 +4150,8 @@ public enum DeleteRecommendationTemplateOutputError: Swift.Error, Swift.Equatabl extension DeleteRecommendationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRecommendationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommendationTemplateArn = output.recommendationTemplateArn self.status = output.status @@ -4308,9 +4294,8 @@ public enum DeleteResiliencyPolicyOutputError: Swift.Error, Swift.Equatable { extension DeleteResiliencyPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResiliencyPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyArn = output.policyArn } else { @@ -4428,9 +4413,8 @@ public enum DescribeAppAssessmentOutputError: Swift.Error, Swift.Equatable { extension DescribeAppAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessment = output.assessment } else { @@ -4548,9 +4532,8 @@ public enum DescribeAppOutputError: Swift.Error, Swift.Equatable { extension DescribeAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.app = output.app } else { @@ -4696,9 +4679,8 @@ public enum DescribeAppVersionAppComponentOutputError: Swift.Error, Swift.Equata extension DescribeAppVersionAppComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppVersionAppComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appComponent = output.appComponent @@ -4850,9 +4832,8 @@ public enum DescribeAppVersionOutputError: Swift.Error, Swift.Equatable { extension DescribeAppVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalInfo = output.additionalInfo self.appArn = output.appArn @@ -5082,9 +5063,8 @@ public enum DescribeAppVersionResourceOutputError: Swift.Error, Swift.Equatable extension DescribeAppVersionResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppVersionResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -5248,9 +5228,8 @@ public enum DescribeAppVersionResourcesResolutionStatusOutputError: Swift.Error, extension DescribeAppVersionResourcesResolutionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppVersionResourcesResolutionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -5424,9 +5403,8 @@ public enum DescribeAppVersionTemplateOutputError: Swift.Error, Swift.Equatable extension DescribeAppVersionTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppVersionTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appTemplateBody = output.appTemplateBody @@ -5640,9 +5618,8 @@ public enum DescribeDraftAppVersionResourcesImportStatusOutputError: Swift.Error extension DescribeDraftAppVersionResourcesImportStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDraftAppVersionResourcesImportStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -5803,9 +5780,8 @@ public enum DescribeResiliencyPolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeResiliencyPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResiliencyPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -6405,9 +6381,8 @@ public enum ImportResourcesToDraftAppVersionOutputError: Swift.Error, Swift.Equa extension ImportResourcesToDraftAppVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportResourcesToDraftAppVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -6526,9 +6501,8 @@ extension ImportResourcesToDraftAppVersionOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6542,7 +6516,7 @@ extension InternalServerException { } /// This exception occurs when there is an internal failure in the Resilience Hub service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6680,9 +6654,8 @@ public enum ListAlarmRecommendationsOutputError: Swift.Error, Swift.Equatable { extension ListAlarmRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAlarmRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmRecommendations = output.alarmRecommendations self.nextToken = output.nextToken @@ -6869,9 +6842,8 @@ public enum ListAppAssessmentsOutputError: Swift.Error, Swift.Equatable { extension ListAppAssessmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppAssessmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessmentSummaries = output.assessmentSummaries self.nextToken = output.nextToken @@ -7032,9 +7004,8 @@ public enum ListAppComponentCompliancesOutputError: Swift.Error, Swift.Equatable extension ListAppComponentCompliancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppComponentCompliancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentCompliances = output.componentCompliances self.nextToken = output.nextToken @@ -7195,9 +7166,8 @@ public enum ListAppComponentRecommendationsOutputError: Swift.Error, Swift.Equat extension ListAppComponentRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppComponentRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.componentRecommendations = output.componentRecommendations self.nextToken = output.nextToken @@ -7371,9 +7341,8 @@ public enum ListAppInputSourcesOutputError: Swift.Error, Swift.Equatable { extension ListAppInputSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppInputSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appInputSources = output.appInputSources self.nextToken = output.nextToken @@ -7549,9 +7518,8 @@ public enum ListAppVersionAppComponentsOutputError: Swift.Error, Swift.Equatable extension ListAppVersionAppComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppVersionAppComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appComponents = output.appComponents @@ -7746,9 +7714,8 @@ public enum ListAppVersionResourceMappingsOutputError: Swift.Error, Swift.Equata extension ListAppVersionResourceMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppVersionResourceMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceMappings = output.resourceMappings @@ -7936,9 +7903,8 @@ public enum ListAppVersionResourcesOutputError: Swift.Error, Swift.Equatable { extension ListAppVersionResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppVersionResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.physicalResources = output.physicalResources @@ -8108,9 +8074,8 @@ public enum ListAppVersionsOutputError: Swift.Error, Swift.Equatable { extension ListAppVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appVersions = output.appVersions self.nextToken = output.nextToken @@ -8261,9 +8226,8 @@ public enum ListAppsOutputError: Swift.Error, Swift.Equatable { extension ListAppsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appSummaries = output.appSummaries self.nextToken = output.nextToken @@ -8443,9 +8407,8 @@ public enum ListRecommendationTemplatesOutputError: Swift.Error, Swift.Equatable extension ListRecommendationTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecommendationTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendationTemplates = output.recommendationTemplates @@ -8589,9 +8552,8 @@ public enum ListResiliencyPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListResiliencyPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResiliencyPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resiliencyPolicies = output.resiliencyPolicies @@ -8754,9 +8716,8 @@ public enum ListSopRecommendationsOutputError: Swift.Error, Swift.Equatable { extension ListSopRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSopRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sopRecommendations = output.sopRecommendations @@ -8893,9 +8854,8 @@ public enum ListSuggestedResiliencyPoliciesOutputError: Swift.Error, Swift.Equat extension ListSuggestedResiliencyPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSuggestedResiliencyPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resiliencyPolicies = output.resiliencyPolicies @@ -9020,9 +8980,8 @@ extension ListTagsForResourceOutputResponse: Swift.CustomDebugStringConvertible extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -9174,9 +9133,8 @@ public enum ListTestRecommendationsOutputError: Swift.Error, Swift.Equatable { extension ListTestRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTestRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.testRecommendations = output.testRecommendations @@ -9364,9 +9322,8 @@ public enum ListUnsupportedAppVersionResourcesOutputError: Swift.Error, Swift.Eq extension ListUnsupportedAppVersionResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUnsupportedAppVersionResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resolutionId = output.resolutionId @@ -9823,9 +9780,8 @@ public enum PublishAppVersionOutputError: Swift.Error, Swift.Equatable { extension PublishAppVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishAppVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -10042,9 +9998,8 @@ public enum PutDraftAppVersionTemplateOutputError: Swift.Error, Swift.Equatable extension PutDraftAppVersionTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutDraftAppVersionTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -10743,9 +10698,8 @@ public enum RemoveDraftAppVersionResourceMappingsOutputError: Swift.Error, Swift extension RemoveDraftAppVersionResourceMappingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveDraftAppVersionResourceMappingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -11166,9 +11120,8 @@ public enum ResolveAppVersionResourcesOutputError: Swift.Error, Swift.Equatable extension ResolveAppVersionResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResolveAppVersionResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -11574,9 +11527,8 @@ extension ResiliencehubClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -11594,7 +11546,7 @@ extension ResourceNotFoundException { } /// This exception occurs when the specified resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11729,9 +11681,8 @@ extension ResiliencehubClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11745,7 +11696,7 @@ extension ServiceQuotaExceededException { } /// This exception occurs when you have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12079,9 +12030,8 @@ public enum StartAppAssessmentOutputError: Swift.Error, Swift.Equatable { extension StartAppAssessmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAppAssessmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assessment = output.assessment } else { @@ -12535,9 +12485,8 @@ extension ResiliencehubClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.retryAfterSeconds = output.retryAfterSeconds @@ -12553,7 +12502,7 @@ extension ThrottlingException { } /// This exception occurs when you have exceeded the limit on the number of requests per second. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12891,9 +12840,8 @@ public enum UpdateAppOutputError: Swift.Error, Swift.Equatable { extension UpdateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.app = output.app } else { @@ -13084,9 +13032,8 @@ public enum UpdateAppVersionAppComponentOutputError: Swift.Error, Swift.Equatabl extension UpdateAppVersionAppComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppVersionAppComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appComponent = output.appComponent @@ -13261,9 +13208,8 @@ public enum UpdateAppVersionOutputError: Swift.Error, Swift.Equatable { extension UpdateAppVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalInfo = output.additionalInfo self.appArn = output.appArn @@ -13564,9 +13510,8 @@ public enum UpdateAppVersionResourceOutputError: Swift.Error, Swift.Equatable { extension UpdateAppVersionResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppVersionResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appVersion = output.appVersion @@ -13779,9 +13724,8 @@ public enum UpdateResiliencyPolicyOutputError: Swift.Error, Swift.Equatable { extension UpdateResiliencyPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResiliencyPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -13821,9 +13765,8 @@ extension UpdateResiliencyPolicyOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13837,7 +13780,7 @@ extension ValidationException { } /// This exception occurs when a request is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSResourceExplorer2/ResourceExplorer2Client.swift b/Sources/Services/AWSResourceExplorer2/ResourceExplorer2Client.swift index 578a208024d..8a34176e68d 100644 --- a/Sources/Services/AWSResourceExplorer2/ResourceExplorer2Client.swift +++ b/Sources/Services/AWSResourceExplorer2/ResourceExplorer2Client.swift @@ -208,6 +208,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDefaultView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -282,6 +284,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIndex") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -305,7 +308,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -325,6 +328,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createView") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -348,7 +352,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +372,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -383,7 +388,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -403,6 +408,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +424,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -438,6 +444,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDefaultView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -450,7 +457,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -470,6 +477,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDefaultView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -482,7 +490,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -502,6 +510,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIndex") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -514,7 +523,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -534,6 +543,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +559,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIndexes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSupportedResourceTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -619,7 +631,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -639,6 +651,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -651,7 +664,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +684,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listViews") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -686,7 +700,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -706,6 +720,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "search") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -721,7 +736,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -741,6 +756,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -756,7 +772,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -776,6 +792,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -789,7 +806,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -813,6 +830,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIndexType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -828,7 +846,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -848,6 +866,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-explorer-2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -863,7 +882,7 @@ extension ResourceExplorer2Client: ResourceExplorer2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSResourceExplorer2/models/Models.swift b/Sources/Services/AWSResourceExplorer2/models/Models.swift index 1701c0b1833..0baa2cc1fcf 100644 --- a/Sources/Services/AWSResourceExplorer2/models/Models.swift +++ b/Sources/Services/AWSResourceExplorer2/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The credentials that you used to call this operation don't have the minimum required permissions. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -134,9 +133,8 @@ public enum AssociateDefaultViewOutputError: Swift.Error, Swift.Equatable { extension AssociateDefaultViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateDefaultViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.viewArn = output.viewArn } else { @@ -311,9 +309,8 @@ public enum BatchGetViewOutputError: Swift.Error, Swift.Equatable { extension BatchGetViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.views = output.views @@ -380,9 +377,8 @@ extension BatchGetViewOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -396,7 +392,7 @@ extension ConflictException { } /// The request failed because either you specified parameters that didn’t match the original request, or you attempted to create a view with a name that already exists in this Amazon Web Services Region. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -534,9 +530,8 @@ public enum CreateIndexOutputError: Swift.Error, Swift.Equatable { extension CreateIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -754,9 +749,8 @@ public enum CreateViewOutputError: Swift.Error, Swift.Equatable { extension CreateViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.view = output.view } else { @@ -873,9 +867,8 @@ public enum DeleteIndexOutputError: Swift.Error, Swift.Equatable { extension DeleteIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.lastUpdatedAt = output.lastUpdatedAt @@ -1014,9 +1007,8 @@ public enum DeleteViewOutputError: Swift.Error, Swift.Equatable { extension DeleteViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.viewArn = output.viewArn } else { @@ -1163,9 +1155,8 @@ public enum GetDefaultViewOutputError: Swift.Error, Swift.Equatable { extension GetDefaultViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDefaultViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.viewArn = output.viewArn } else { @@ -1254,9 +1245,8 @@ public enum GetIndexOutputError: Swift.Error, Swift.Equatable { extension GetIndexOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIndexOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -1472,9 +1462,8 @@ public enum GetViewOutputError: Swift.Error, Swift.Equatable { extension GetViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags self.view = output.view @@ -1709,9 +1698,8 @@ extension ResourceExplorer2ClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1725,7 +1713,7 @@ extension InternalServerException { } /// The request failed because of internal service error. Try your request again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1884,9 +1872,8 @@ public enum ListIndexesOutputError: Swift.Error, Swift.Equatable { extension ListIndexesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIndexesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.indexes = output.indexes self.nextToken = output.nextToken @@ -2031,9 +2018,8 @@ public enum ListSupportedResourceTypesOutputError: Swift.Error, Swift.Equatable extension ListSupportedResourceTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSupportedResourceTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceTypes = output.resourceTypes @@ -2154,9 +2140,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2291,9 +2276,8 @@ public enum ListViewsOutputError: Swift.Error, Swift.Equatable { extension ListViewsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListViewsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.views = output.views @@ -2507,9 +2491,8 @@ extension ResourceExplorer2ClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2523,7 +2506,7 @@ extension ResourceNotFoundException { } /// You specified a resource that doesn't exist. Check the ID or ARN that you used to identity the resource, and try again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2777,9 +2760,8 @@ public enum SearchOutputError: Swift.Error, Swift.Equatable { extension SearchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.nextToken = output.nextToken @@ -2857,9 +2839,8 @@ extension SearchOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.name = output.name @@ -2877,7 +2858,7 @@ extension ServiceQuotaExceededException { } /// The request failed because it exceeds a service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3086,9 +3067,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3102,7 +3082,7 @@ extension ThrottlingException { } /// The request failed because you exceeded a rate limit for this operation. For more information, see [Quotas for Resource Explorer](https://docs.aws.amazon.com/arexug/mainline/quotas.html). -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3138,9 +3118,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3154,7 +3133,7 @@ extension UnauthorizedException { } /// The principal making the request isn't permitted to perform the operation. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3380,9 +3359,8 @@ public enum UpdateIndexTypeOutputError: Swift.Error, Swift.Equatable { extension UpdateIndexTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIndexTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.lastUpdatedAt = output.lastUpdatedAt @@ -3572,9 +3550,8 @@ public enum UpdateViewOutputError: Swift.Error, Swift.Equatable { extension UpdateViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.view = output.view } else { @@ -3613,9 +3590,8 @@ extension UpdateViewOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -3631,7 +3607,7 @@ extension ValidationException { } /// You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSResourceGroups/ResourceGroupsClient.swift b/Sources/Services/AWSResourceGroups/ResourceGroupsClient.swift index c6bd9d58d3d..867cb80c9a8 100644 --- a/Sources/Services/AWSResourceGroups/ResourceGroupsClient.swift +++ b/Sources/Services/AWSResourceGroups/ResourceGroupsClient.swift @@ -210,6 +210,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -225,7 +226,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -247,6 +248,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -262,7 +264,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -282,6 +284,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -294,7 +297,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -331,7 +335,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -353,6 +357,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -390,6 +395,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroupQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -405,7 +411,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -427,6 +433,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -439,7 +446,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "groupResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -483,7 +491,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -511,6 +519,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -526,7 +535,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +557,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +574,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -586,6 +596,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putGroupConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -601,7 +612,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -629,6 +640,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -644,7 +656,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -666,6 +678,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -681,7 +694,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -703,6 +716,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "ungroupResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -718,7 +732,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -740,6 +754,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untag") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -755,7 +770,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -775,6 +790,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -790,7 +806,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -812,6 +828,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -827,7 +844,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -849,6 +866,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "resource-groups") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroupQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -864,7 +882,7 @@ extension ResourceGroupsClient: ResourceGroupsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSResourceGroups/models/Models.swift b/Sources/Services/AWSResourceGroups/models/Models.swift index 45841a02a72..764e7741002 100644 --- a/Sources/Services/AWSResourceGroups/models/Models.swift +++ b/Sources/Services/AWSResourceGroups/models/Models.swift @@ -59,9 +59,8 @@ extension ResourceGroupsClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -75,7 +74,7 @@ extension BadRequestException { } /// The request includes one or more parameters that violate validation rules. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -261,9 +260,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group self.groupConfiguration = output.groupConfiguration @@ -433,9 +431,8 @@ public enum DeleteGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -529,9 +526,8 @@ extension ResourceGroupsClientTypes { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -545,7 +541,7 @@ extension ForbiddenException { } /// The caller isn't authorized to make the request. Check permissions. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -631,9 +627,8 @@ public enum GetAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension GetAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettings = output.accountSettings } else { @@ -751,9 +746,8 @@ public enum GetGroupConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetGroupConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupConfiguration = output.groupConfiguration } else { @@ -884,9 +878,8 @@ public enum GetGroupOutputError: Swift.Error, Swift.Equatable { extension GetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -1017,9 +1010,8 @@ public enum GetGroupQueryOutputError: Swift.Error, Swift.Equatable { extension GetGroupQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupQuery = output.groupQuery } else { @@ -1121,9 +1113,8 @@ public enum GetTagsOutputError: Swift.Error, Swift.Equatable { extension GetTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.tags = output.tags @@ -1840,9 +1831,8 @@ public enum GroupResourcesOutputError: Swift.Error, Swift.Equatable { extension GroupResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GroupResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.pending = output.pending @@ -1928,9 +1918,8 @@ extension GroupResourcesOutputResponseBody: Swift.Decodable { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1944,7 +1933,7 @@ extension InternalServerErrorException { } /// An internal error occurred while processing the request. Try again later. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2172,9 +2161,8 @@ public enum ListGroupResourcesOutputError: Swift.Error, Swift.Equatable { extension ListGroupResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queryErrors = output.queryErrors @@ -2393,9 +2381,8 @@ public enum ListGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupIdentifiers = output.groupIdentifiers self.groups = output.groups @@ -2473,9 +2460,8 @@ extension ListGroupsOutputResponseBody: Swift.Decodable { extension MethodNotAllowedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MethodNotAllowedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2489,7 +2475,7 @@ extension MethodNotAllowedException { } /// The request uses an HTTP method that isn't allowed for the specified resource. -public struct MethodNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MethodNotAllowedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2525,9 +2511,8 @@ extension MethodNotAllowedExceptionBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2541,7 +2526,7 @@ extension NotFoundException { } /// One or more of the specified resources don't exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3216,9 +3201,8 @@ public enum SearchResourcesOutputError: Swift.Error, Swift.Equatable { extension SearchResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queryErrors = output.queryErrors @@ -3399,9 +3383,8 @@ public enum TagOutputError: Swift.Error, Swift.Equatable { extension TagOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.tags = output.tags @@ -3459,9 +3442,8 @@ extension TagOutputResponseBody: Swift.Decodable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3475,7 +3457,7 @@ extension TooManyRequestsException { } /// You've exceeded throttling limits by making too many requests in a period of time. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3511,9 +3493,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3527,7 +3508,7 @@ extension UnauthorizedException { } /// The request was rejected because it doesn't have valid credentials for the target resource. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3668,9 +3649,8 @@ public enum UngroupResourcesOutputError: Swift.Error, Swift.Equatable { extension UngroupResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UngroupResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.pending = output.pending @@ -3856,9 +3836,8 @@ public enum UntagOutputError: Swift.Error, Swift.Equatable { extension UntagOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UntagOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.keys = output.keys @@ -3993,9 +3972,8 @@ public enum UpdateAccountSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateAccountSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccountSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSettings = output.accountSettings } else { @@ -4138,9 +4116,8 @@ public enum UpdateGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -4284,9 +4261,8 @@ public enum UpdateGroupQueryOutputError: Swift.Error, Swift.Equatable { extension UpdateGroupQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGroupQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupQuery = output.groupQuery } else { diff --git a/Sources/Services/AWSResourceGroupsTaggingAPI/ResourceGroupsTaggingAPIClient.swift b/Sources/Services/AWSResourceGroupsTaggingAPI/ResourceGroupsTaggingAPIClient.swift index 93967653333..a42df6b0683 100644 --- a/Sources/Services/AWSResourceGroupsTaggingAPI/ResourceGroupsTaggingAPIClient.swift +++ b/Sources/Services/AWSResourceGroupsTaggingAPI/ResourceGroupsTaggingAPIClient.swift @@ -208,6 +208,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol .withRegion(value: config.region) .withSigningName(value: "tagging") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReportCreation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol .withRegion(value: config.region) .withSigningName(value: "tagging") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComplianceSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -287,6 +289,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol .withRegion(value: config.region) .withSigningName(value: "tagging") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -303,7 +306,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -323,6 +326,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol .withRegion(value: config.region) .withSigningName(value: "tagging") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTagKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -339,7 +343,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -359,6 +363,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol .withRegion(value: config.region) .withSigningName(value: "tagging") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTagValues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -375,7 +380,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -395,6 +400,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol .withRegion(value: config.region) .withSigningName(value: "tagging") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startReportCreation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -411,7 +417,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -446,6 +452,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol .withRegion(value: config.region) .withSigningName(value: "tagging") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -462,7 +469,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -493,6 +500,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol .withRegion(value: config.region) .withSigningName(value: "tagging") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -509,7 +517,7 @@ extension ResourceGroupsTaggingAPIClient: ResourceGroupsTaggingAPIClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSResourceGroupsTaggingAPI/models/Models.swift b/Sources/Services/AWSResourceGroupsTaggingAPI/models/Models.swift index 4ce97d5b1ea..ec45f082956 100644 --- a/Sources/Services/AWSResourceGroupsTaggingAPI/models/Models.swift +++ b/Sources/Services/AWSResourceGroupsTaggingAPI/models/Models.swift @@ -83,9 +83,8 @@ extension ResourceGroupsTaggingAPIClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -99,7 +98,7 @@ extension ConcurrentModificationException { } /// The target of the operation is currently being modified by a different request. Try again later. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -135,9 +134,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConstraintViolationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConstraintViolationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -157,7 +155,7 @@ extension ConstraintViolationException { /// * You must enable the tag policies service principal (tagpolicies.tag.amazonaws.com) to integrate with Organizations For information, see [EnableAWSServiceAccess](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html). /// /// * You must have a tag policy attached to the organization root, an OU, or an account. -public struct ConstraintViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConstraintViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -249,9 +247,8 @@ public enum DescribeReportCreationOutputError: Swift.Error, Swift.Equatable { extension DescribeReportCreationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReportCreationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorMessage = output.errorMessage self.s3Location = output.s3Location @@ -638,9 +635,8 @@ public enum GetComplianceSummaryOutputError: Swift.Error, Swift.Equatable { extension GetComplianceSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComplianceSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.paginationToken = output.paginationToken self.summaryList = output.summaryList @@ -909,9 +905,8 @@ public enum GetResourcesOutputError: Swift.Error, Swift.Equatable { extension GetResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.paginationToken = output.paginationToken self.resourceTagMappingList = output.resourceTagMappingList @@ -1044,9 +1039,8 @@ public enum GetTagKeysOutputError: Swift.Error, Swift.Equatable { extension GetTagKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTagKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.paginationToken = output.paginationToken self.tagKeys = output.tagKeys @@ -1192,9 +1186,8 @@ public enum GetTagValuesOutputError: Swift.Error, Swift.Equatable { extension GetTagValuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTagValuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.paginationToken = output.paginationToken self.tagValues = output.tagValues @@ -1287,9 +1280,8 @@ extension ResourceGroupsTaggingAPIClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1303,7 +1295,7 @@ extension InternalServiceException { } /// The request processing failed because of an unknown error, exception, or failure. You can retry the request. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1339,9 +1331,8 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1365,7 +1356,7 @@ extension InvalidParameterException { /// * The target ID is invalid, unsupported, or doesn't exist. /// /// * You can't access the Amazon S3 bucket for report storage. For more information, see [Additional Requirements for Organization-wide Tag Compliance Reports](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) in the Organizations User Guide. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1401,9 +1392,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension PaginationTokenExpiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PaginationTokenExpiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1417,7 +1407,7 @@ extension PaginationTokenExpiredException { } /// A PaginationToken is valid for a maximum of 15 minutes. Your request was denied because the specified PaginationToken has expired. -public struct PaginationTokenExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PaginationTokenExpiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1908,9 +1898,8 @@ public enum TagResourcesOutputError: Swift.Error, Swift.Equatable { extension TagResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedResourcesMap = output.failedResourcesMap } else { @@ -1993,9 +1982,8 @@ extension ResourceGroupsTaggingAPIClientTypes { extension ThrottledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2009,7 +1997,7 @@ extension ThrottledException { } /// The request was denied to limit the frequency of submitted requests. -public struct ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2156,9 +2144,8 @@ public enum UntagResourcesOutputError: Swift.Error, Swift.Equatable { extension UntagResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UntagResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedResourcesMap = output.failedResourcesMap } else { diff --git a/Sources/Services/AWSRoboMaker/RoboMakerClient.swift b/Sources/Services/AWSRoboMaker/RoboMakerClient.swift index 69d2952314c..a4d07b2b010 100644 --- a/Sources/Services/AWSRoboMaker/RoboMakerClient.swift +++ b/Sources/Services/AWSRoboMaker/RoboMakerClient.swift @@ -208,6 +208,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDeleteWorlds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDescribeSimulationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -279,6 +281,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelDeploymentJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -294,7 +297,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -314,6 +317,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelSimulationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -329,7 +333,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -349,6 +353,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelSimulationJobBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -364,7 +369,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +389,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelWorldExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -399,7 +405,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -419,6 +425,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelWorldGenerationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -434,7 +441,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +462,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeploymentJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -478,7 +486,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -499,6 +507,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -514,7 +523,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -535,6 +544,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRobot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -550,7 +560,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -570,6 +580,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRobotApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +596,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +616,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRobotApplicationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSimulationApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -655,7 +668,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -675,6 +688,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSimulationApplicationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -690,7 +704,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -710,6 +724,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSimulationJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -733,7 +748,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -753,6 +768,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorldExportJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -776,7 +792,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -796,6 +812,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorldGenerationJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -819,7 +836,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -839,6 +856,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorldTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -854,7 +872,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -875,6 +893,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -890,7 +909,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -911,6 +930,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRobot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -926,7 +946,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -946,6 +966,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRobotApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -961,7 +982,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -981,6 +1002,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSimulationApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1018,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1038,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorldTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1031,7 +1054,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1075,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterRobot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1067,7 +1091,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1088,6 +1112,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDeploymentJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1103,7 +1128,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1149,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1139,7 +1165,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1186,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRobot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1175,7 +1202,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1195,6 +1222,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRobotApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1210,7 +1238,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1230,6 +1258,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSimulationApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1245,7 +1274,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1265,6 +1294,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSimulationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1310,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1330,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSimulationJobBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1315,7 +1346,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1335,6 +1366,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorld") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1350,7 +1382,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1370,6 +1402,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorldExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1385,7 +1418,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1405,6 +1438,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorldGenerationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1420,7 +1454,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1440,6 +1474,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorldTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1455,7 +1490,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1475,6 +1510,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorldTemplateBody") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1490,7 +1526,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1511,6 +1547,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeploymentJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1526,7 +1563,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1547,6 +1584,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1562,7 +1600,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1582,6 +1620,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRobotApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1597,7 +1636,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1618,6 +1657,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRobots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1633,7 +1673,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1653,6 +1693,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSimulationApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1668,7 +1709,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1688,6 +1729,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSimulationJobBatches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1703,7 +1745,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1723,6 +1765,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSimulationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1738,7 +1781,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1758,6 +1801,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1770,7 +1814,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1790,6 +1834,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorldExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1805,7 +1850,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1825,6 +1870,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorldGenerationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1840,7 +1886,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1860,6 +1906,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorldTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1875,7 +1922,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1895,6 +1942,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorlds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1910,7 +1958,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1931,6 +1979,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerRobot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1946,7 +1995,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1966,6 +2015,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restartSimulationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1981,7 +2031,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2001,6 +2051,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSimulationJobBatch") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2024,7 +2075,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2045,6 +2096,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "syncDeploymentJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2068,7 +2120,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2088,6 +2140,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2103,7 +2156,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2123,6 +2176,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2136,7 +2190,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2156,6 +2210,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRobotApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2171,7 +2226,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2191,6 +2246,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSimulationApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2206,7 +2262,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2226,6 +2282,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "robomaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorldTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2241,7 +2298,7 @@ extension RoboMakerClient: RoboMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRoboMaker/models/Models.swift b/Sources/Services/AWSRoboMaker/models/Models.swift index ae73a631294..7a9cd9d01db 100644 --- a/Sources/Services/AWSRoboMaker/models/Models.swift +++ b/Sources/Services/AWSRoboMaker/models/Models.swift @@ -125,9 +125,8 @@ public enum BatchDeleteWorldsOutputError: Swift.Error, Swift.Equatable { extension BatchDeleteWorldsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDeleteWorldsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedWorlds = output.unprocessedWorlds } else { @@ -263,9 +262,8 @@ public enum BatchDescribeSimulationJobOutputError: Swift.Error, Swift.Equatable extension BatchDescribeSimulationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDescribeSimulationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.unprocessedJobs = output.unprocessedJobs @@ -951,9 +949,8 @@ extension RoboMakerClientTypes { extension ConcurrentDeploymentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentDeploymentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -967,7 +964,7 @@ extension ConcurrentDeploymentException { } /// The failure percentage threshold percentage was met. -public struct ConcurrentDeploymentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentDeploymentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1160,9 +1157,8 @@ public enum CreateDeploymentJobOutputError: Swift.Error, Swift.Equatable { extension CreateDeploymentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeploymentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -1401,9 +1397,8 @@ public enum CreateFleetOutputError: Swift.Error, Swift.Equatable { extension CreateFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -1635,9 +1630,8 @@ public enum CreateRobotApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateRobotApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRobotApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environment = output.environment @@ -1900,9 +1894,8 @@ public enum CreateRobotApplicationVersionOutputError: Swift.Error, Swift.Equatab extension CreateRobotApplicationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRobotApplicationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environment = output.environment @@ -2149,9 +2142,8 @@ public enum CreateRobotOutputError: Swift.Error, Swift.Equatable { extension CreateRobotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRobotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architecture = output.architecture self.arn = output.arn @@ -2428,9 +2420,8 @@ public enum CreateSimulationApplicationOutputError: Swift.Error, Swift.Equatable extension CreateSimulationApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSimulationApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environment = output.environment @@ -2713,9 +2704,8 @@ public enum CreateSimulationApplicationVersionOutputError: Swift.Error, Swift.Eq extension CreateSimulationApplicationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSimulationApplicationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environment = output.environment @@ -3116,9 +3106,8 @@ public enum CreateSimulationJobOutputError: Swift.Error, Swift.Equatable { extension CreateSimulationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSimulationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -3517,9 +3506,8 @@ public enum CreateWorldExportJobOutputError: Swift.Error, Swift.Equatable { extension CreateWorldExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorldExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -3792,9 +3780,8 @@ public enum CreateWorldGenerationJobOutputError: Swift.Error, Swift.Equatable { extension CreateWorldGenerationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorldGenerationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -4070,9 +4057,8 @@ public enum CreateWorldTemplateOutputError: Swift.Error, Swift.Equatable { extension CreateWorldTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorldTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -5383,9 +5369,8 @@ public enum DeregisterRobotOutputError: Swift.Error, Swift.Equatable { extension DeregisterRobotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterRobotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleet = output.fleet self.robot = output.robot @@ -5512,9 +5497,8 @@ public enum DescribeDeploymentJobOutputError: Swift.Error, Swift.Equatable { extension DescribeDeploymentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeploymentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -5748,9 +5732,8 @@ public enum DescribeFleetOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -5966,9 +5949,8 @@ public enum DescribeRobotApplicationOutputError: Swift.Error, Swift.Equatable { extension DescribeRobotApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRobotApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environment = output.environment @@ -6192,9 +6174,8 @@ public enum DescribeRobotOutputError: Swift.Error, Swift.Equatable { extension DescribeRobotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRobotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.architecture = output.architecture self.arn = output.arn @@ -6421,9 +6402,8 @@ public enum DescribeSimulationApplicationOutputError: Swift.Error, Swift.Equatab extension DescribeSimulationApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSimulationApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environment = output.environment @@ -6664,9 +6644,8 @@ public enum DescribeSimulationJobBatchOutputError: Swift.Error, Swift.Equatable extension DescribeSimulationJobBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSimulationJobBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.batchPolicy = output.batchPolicy @@ -6927,9 +6906,8 @@ public enum DescribeSimulationJobOutputError: Swift.Error, Swift.Equatable { extension DescribeSimulationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSimulationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -7280,9 +7258,8 @@ public enum DescribeWorldExportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeWorldExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorldExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -7505,9 +7482,8 @@ public enum DescribeWorldGenerationJobOutputError: Swift.Error, Swift.Equatable extension DescribeWorldGenerationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorldGenerationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -7740,9 +7716,8 @@ public enum DescribeWorldOutputError: Swift.Error, Swift.Equatable { extension DescribeWorldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorldOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -7916,9 +7891,8 @@ public enum DescribeWorldTemplateOutputError: Swift.Error, Swift.Equatable { extension DescribeWorldTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorldTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.clientRequestToken = output.clientRequestToken @@ -8543,9 +8517,8 @@ public enum GetWorldTemplateBodyOutputError: Swift.Error, Swift.Equatable { extension GetWorldTemplateBodyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorldTemplateBodyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.templateBody = output.templateBody } else { @@ -8584,9 +8557,8 @@ extension GetWorldTemplateBodyOutputResponseBody: Swift.Decodable { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8600,7 +8572,7 @@ extension IdempotentParameterMismatchException { } /// The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8636,9 +8608,8 @@ extension IdempotentParameterMismatchExceptionBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8652,7 +8623,7 @@ extension InternalServerException { } /// AWS RoboMaker experienced a service issue. Try your call again. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8688,9 +8659,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8704,7 +8674,7 @@ extension InvalidParameterException { } /// A parameter specified in a request is not valid, is unsupported, or cannot be used. The returned message provides an explanation of the error value. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8849,9 +8819,8 @@ extension RoboMakerClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8865,7 +8834,7 @@ extension LimitExceededException { } /// The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9013,9 +8982,8 @@ public enum ListDeploymentJobsOutputError: Swift.Error, Swift.Equatable { extension ListDeploymentJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeploymentJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deploymentJobs = output.deploymentJobs self.nextToken = output.nextToken @@ -9186,9 +9154,8 @@ public enum ListFleetsOutputError: Swift.Error, Swift.Equatable { extension ListFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetDetails = output.fleetDetails self.nextToken = output.nextToken @@ -9368,9 +9335,8 @@ public enum ListRobotApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListRobotApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRobotApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.robotApplicationSummaries = output.robotApplicationSummaries @@ -9540,9 +9506,8 @@ public enum ListRobotsOutputError: Swift.Error, Swift.Equatable { extension ListRobotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRobotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.robots = output.robots @@ -9722,9 +9687,8 @@ public enum ListSimulationApplicationsOutputError: Swift.Error, Swift.Equatable extension ListSimulationApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSimulationApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.simulationApplicationSummaries = output.simulationApplicationSummaries @@ -9889,9 +9853,8 @@ public enum ListSimulationJobBatchesOutputError: Swift.Error, Swift.Equatable { extension ListSimulationJobBatchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSimulationJobBatchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.simulationJobBatchSummaries = output.simulationJobBatchSummaries @@ -10058,9 +10021,8 @@ public enum ListSimulationJobsOutputError: Swift.Error, Swift.Equatable { extension ListSimulationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSimulationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.simulationJobSummaries = output.simulationJobSummaries @@ -10178,9 +10140,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10337,9 +10298,8 @@ public enum ListWorldExportJobsOutputError: Swift.Error, Swift.Equatable { extension ListWorldExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorldExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.worldExportJobSummaries = output.worldExportJobSummaries @@ -10507,9 +10467,8 @@ public enum ListWorldGenerationJobsOutputError: Swift.Error, Swift.Equatable { extension ListWorldGenerationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorldGenerationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.worldGenerationJobSummaries = output.worldGenerationJobSummaries @@ -10653,9 +10612,8 @@ public enum ListWorldTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListWorldTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorldTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templateSummaries = output.templateSummaries @@ -10822,9 +10780,8 @@ public enum ListWorldsOutputError: Swift.Error, Swift.Equatable { extension ListWorldsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorldsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.worldSummaries = output.worldSummaries @@ -11279,9 +11236,8 @@ public enum RegisterRobotOutputError: Swift.Error, Swift.Equatable { extension RegisterRobotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterRobotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleet = output.fleet self.robot = output.robot @@ -11405,9 +11361,8 @@ extension RoboMakerClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11421,7 +11376,7 @@ extension ResourceAlreadyExistsException { } /// The specified resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11457,9 +11412,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11473,7 +11427,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12319,9 +12273,8 @@ extension RoboMakerClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12335,7 +12288,7 @@ extension ServiceUnavailableException { } /// The request has failed due to a temporary failure of the server. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13909,9 +13862,8 @@ public enum StartSimulationJobBatchOutputError: Swift.Error, Swift.Equatable { extension StartSimulationJobBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSimulationJobBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.batchPolicy = output.batchPolicy @@ -14182,9 +14134,8 @@ public enum SyncDeploymentJobOutputError: Swift.Error, Swift.Equatable { extension SyncDeploymentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SyncDeploymentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -14531,9 +14482,8 @@ extension RoboMakerClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14547,7 +14497,7 @@ extension ThrottlingException { } /// AWS RoboMaker is temporarily unable to process the request. Try your call again. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14890,9 +14840,8 @@ public enum UpdateRobotApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateRobotApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRobotApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environment = output.environment @@ -15174,9 +15123,8 @@ public enum UpdateSimulationApplicationOutputError: Swift.Error, Swift.Equatable extension UpdateSimulationApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSimulationApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.environment = output.environment @@ -15426,9 +15374,8 @@ public enum UpdateWorldTemplateOutputError: Swift.Error, Swift.Equatable { extension UpdateWorldTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorldTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt diff --git a/Sources/Services/AWSRolesAnywhere/RolesAnywhereClient.swift b/Sources/Services/AWSRolesAnywhere/RolesAnywhereClient.swift index 2defe9dd769..0a03e8f265f 100644 --- a/Sources/Services/AWSRolesAnywhere/RolesAnywhereClient.swift +++ b/Sources/Services/AWSRolesAnywhere/RolesAnywhereClient.swift @@ -208,6 +208,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrustAnchor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -322,7 +326,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -342,6 +346,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrustAnchor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -354,7 +359,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -374,6 +379,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableCrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -386,7 +392,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -406,6 +412,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +425,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -438,6 +445,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableTrustAnchor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -450,7 +458,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -470,6 +478,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableCrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -482,7 +491,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -502,6 +511,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -514,7 +524,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -534,6 +544,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableTrustAnchor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -546,7 +557,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -566,6 +577,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -578,7 +590,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -598,6 +610,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -610,7 +623,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -630,6 +643,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSubject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -642,7 +656,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -662,6 +676,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrustAnchor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +689,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +709,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importCrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +725,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +745,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCrls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -742,7 +759,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -762,6 +779,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -775,7 +793,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -795,6 +813,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +827,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +847,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -841,7 +861,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -861,6 +881,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrustAnchors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -874,7 +895,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -894,6 +915,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -909,7 +931,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -929,6 +951,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +967,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +987,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -979,7 +1003,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -999,6 +1023,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1014,7 +1039,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1034,6 +1059,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { .withRegion(value: config.region) .withSigningName(value: "rolesanywhere") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrustAnchor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1049,7 +1075,7 @@ extension RolesAnywhereClient: RolesAnywhereClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRolesAnywhere/models/Models.swift b/Sources/Services/AWSRolesAnywhere/models/Models.swift index 6850375d6e5..3ce1a194e34 100644 --- a/Sources/Services/AWSRolesAnywhere/models/Models.swift +++ b/Sources/Services/AWSRolesAnywhere/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -249,9 +248,8 @@ public enum CreateProfileOutputError: Swift.Error, Swift.Equatable { extension CreateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profile = output.profile } else { @@ -411,9 +409,8 @@ public enum CreateTrustAnchorOutputError: Swift.Error, Swift.Equatable { extension CreateTrustAnchorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrustAnchorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustAnchor = output.trustAnchor } else { @@ -698,9 +695,8 @@ public enum DeleteCrlOutputError: Swift.Error, Swift.Equatable { extension DeleteCrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crl = output.crl } else { @@ -795,9 +791,8 @@ public enum DeleteProfileOutputError: Swift.Error, Swift.Equatable { extension DeleteProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profile = output.profile } else { @@ -891,9 +886,8 @@ public enum DeleteTrustAnchorOutputError: Swift.Error, Swift.Equatable { extension DeleteTrustAnchorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTrustAnchorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustAnchor = output.trustAnchor } else { @@ -988,9 +982,8 @@ public enum DisableCrlOutputError: Swift.Error, Swift.Equatable { extension DisableCrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableCrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crl = output.crl } else { @@ -1085,9 +1078,8 @@ public enum DisableProfileOutputError: Swift.Error, Swift.Equatable { extension DisableProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profile = output.profile } else { @@ -1181,9 +1173,8 @@ public enum DisableTrustAnchorOutputError: Swift.Error, Swift.Equatable { extension DisableTrustAnchorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableTrustAnchorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustAnchor = output.trustAnchor } else { @@ -1278,9 +1269,8 @@ public enum EnableCrlOutputError: Swift.Error, Swift.Equatable { extension EnableCrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableCrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crl = output.crl } else { @@ -1375,9 +1365,8 @@ public enum EnableProfileOutputError: Swift.Error, Swift.Equatable { extension EnableProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profile = output.profile } else { @@ -1471,9 +1460,8 @@ public enum EnableTrustAnchorOutputError: Swift.Error, Swift.Equatable { extension EnableTrustAnchorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableTrustAnchorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustAnchor = output.trustAnchor } else { @@ -1566,9 +1554,8 @@ public enum GetCrlOutputError: Swift.Error, Swift.Equatable { extension GetCrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crl = output.crl } else { @@ -1663,9 +1650,8 @@ public enum GetProfileOutputError: Swift.Error, Swift.Equatable { extension GetProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profile = output.profile } else { @@ -1759,9 +1745,8 @@ public enum GetSubjectOutputError: Swift.Error, Swift.Equatable { extension GetSubjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSubjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subject = output.subject } else { @@ -1857,9 +1842,8 @@ public enum GetTrustAnchorOutputError: Swift.Error, Swift.Equatable { extension GetTrustAnchorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrustAnchorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustAnchor = output.trustAnchor } else { @@ -2033,9 +2017,8 @@ public enum ImportCrlOutputError: Swift.Error, Swift.Equatable { extension ImportCrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportCrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crl = output.crl } else { @@ -2214,9 +2197,8 @@ public enum ListCrlsOutputError: Swift.Error, Swift.Equatable { extension ListCrlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCrlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crls = output.crls self.nextToken = output.nextToken @@ -2346,9 +2328,8 @@ public enum ListProfilesOutputError: Swift.Error, Swift.Equatable { extension ListProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.profiles = output.profiles @@ -2478,9 +2459,8 @@ public enum ListSubjectsOutputError: Swift.Error, Swift.Equatable { extension ListSubjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subjects = output.subjects @@ -2607,9 +2587,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2729,9 +2708,8 @@ public enum ListTrustAnchorsOutputError: Swift.Error, Swift.Equatable { extension ListTrustAnchorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrustAnchorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trustAnchors = output.trustAnchors @@ -2958,9 +2936,8 @@ extension RolesAnywhereClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2974,7 +2951,7 @@ extension ResourceNotFoundException { } /// The resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3499,9 +3476,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3515,7 +3491,7 @@ extension TooManyTagsException { } /// Too many tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3883,9 +3859,8 @@ public enum UpdateCrlOutputError: Swift.Error, Swift.Equatable { extension UpdateCrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crl = output.crl } else { @@ -4078,9 +4053,8 @@ public enum UpdateProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profile = output.profile } else { @@ -4212,9 +4186,8 @@ public enum UpdateTrustAnchorOutputError: Swift.Error, Swift.Equatable { extension UpdateTrustAnchorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrustAnchorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustAnchor = output.trustAnchor } else { @@ -4254,9 +4227,8 @@ extension UpdateTrustAnchorOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4270,7 +4242,7 @@ extension ValidationException { } /// Validation exception error. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRoute53/Route53Client.swift b/Sources/Services/AWSRoute53/Route53Client.swift index 9f8c87c623b..fcb984ecc58 100644 --- a/Sources/Services/AWSRoute53/Route53Client.swift +++ b/Sources/Services/AWSRoute53/Route53Client.swift @@ -210,6 +210,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateKeySigningKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -222,7 +223,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateVPCWithHostedZone") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -266,7 +268,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -290,6 +292,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "changeCidrCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -305,7 +308,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -334,6 +337,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "changeResourceRecordSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -349,7 +353,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -369,6 +373,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "changeTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +389,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +409,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCidrCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -419,7 +425,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -445,6 +451,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHealthCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -460,7 +467,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -498,6 +505,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHostedZone") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -513,7 +521,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -533,6 +541,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKeySigningKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +557,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -609,6 +618,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createQueryLoggingConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -624,7 +634,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -665,6 +675,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReusableDelegationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +691,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +711,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrafficPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -715,7 +727,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -735,6 +747,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrafficPolicyInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +763,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +783,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrafficPolicyVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -785,7 +799,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -805,6 +819,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVPCAssociationAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -820,7 +835,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -840,6 +855,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateKeySigningKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +868,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +888,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCidrCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +901,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +921,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHealthCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +934,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -940,6 +958,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHostedZone") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +971,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +991,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKeySigningKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1004,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1024,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQueryLoggingConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1037,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1057,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReusableDelegationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1048,7 +1070,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1074,6 +1096,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrafficPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1086,7 +1109,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1106,6 +1129,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrafficPolicyInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1118,7 +1142,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1138,6 +1162,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVPCAssociationAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1153,7 +1178,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1173,6 +1198,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableHostedZoneDNSSEC") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1185,7 +1211,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1225,6 +1251,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateVPCFromHostedZone") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1267,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1287,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableHostedZoneDNSSEC") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1272,7 +1300,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1292,6 +1320,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1333,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1328,6 +1357,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChange") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1370,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1390,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCheckerIpRanges") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1372,7 +1403,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1392,6 +1423,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDNSSEC") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1404,7 +1436,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1424,6 +1456,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGeoLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1437,7 +1470,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1457,6 +1490,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHealthCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1469,7 +1503,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1489,6 +1523,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHealthCheckCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1501,7 +1536,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1521,6 +1556,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHealthCheckLastFailureReason") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1533,7 +1569,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1553,6 +1589,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHealthCheckStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1565,7 +1602,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1585,6 +1622,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHostedZone") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1597,7 +1635,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1617,6 +1655,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHostedZoneCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1629,7 +1668,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1649,6 +1688,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getHostedZoneLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1661,7 +1701,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1681,6 +1721,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueryLoggingConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1693,7 +1734,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1713,6 +1754,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReusableDelegationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1725,7 +1767,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1745,6 +1787,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReusableDelegationSetLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1757,7 +1800,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1777,6 +1820,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrafficPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1789,7 +1833,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1809,6 +1853,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrafficPolicyInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1821,7 +1866,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1841,6 +1886,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrafficPolicyInstanceCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1853,7 +1899,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1873,6 +1919,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCidrBlocks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1886,7 +1933,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1906,6 +1953,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCidrCollections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1919,7 +1967,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1939,6 +1987,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCidrLocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1952,7 +2001,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1972,6 +2021,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGeoLocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1985,7 +2035,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2005,6 +2055,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHealthChecks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2018,7 +2069,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2038,6 +2089,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHostedZones") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2051,7 +2103,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2079,6 +2131,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHostedZonesByName") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2092,7 +2145,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2128,6 +2181,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHostedZonesByVPC") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2141,7 +2195,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2161,6 +2215,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueryLoggingConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2174,7 +2229,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2194,6 +2249,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceRecordSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2207,7 +2263,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2227,6 +2283,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReusableDelegationSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2240,7 +2297,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2260,6 +2317,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2272,7 +2330,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2292,6 +2350,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2307,7 +2366,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2327,6 +2386,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrafficPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2340,7 +2400,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2360,6 +2420,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrafficPolicyInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2373,7 +2434,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2393,6 +2454,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrafficPolicyInstancesByHostedZone") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2406,7 +2468,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2426,6 +2488,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrafficPolicyInstancesByPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2439,7 +2502,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2459,6 +2522,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrafficPolicyVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2472,7 +2536,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2492,6 +2556,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVPCAssociationAuthorizations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2505,7 +2570,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2525,6 +2590,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testDNSAnswer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2538,7 +2604,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2558,6 +2624,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHealthCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2573,7 +2640,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2593,6 +2660,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHostedZoneComment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2608,7 +2676,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2628,6 +2696,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrafficPolicyComment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2643,7 +2712,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2669,6 +2738,7 @@ extension Route53Client: Route53ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrafficPolicyInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2684,7 +2754,7 @@ extension Route53Client: Route53ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRoute53/models/Models.swift b/Sources/Services/AWSRoute53/models/Models.swift index 7bac981546a..4d6932c3869 100644 --- a/Sources/Services/AWSRoute53/models/Models.swift +++ b/Sources/Services/AWSRoute53/models/Models.swift @@ -189,9 +189,8 @@ public enum ActivateKeySigningKeyOutputError: Swift.Error, Swift.Equatable { extension ActivateKeySigningKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivateKeySigningKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -589,9 +588,8 @@ public enum AssociateVPCWithHostedZoneOutputError: Swift.Error, Swift.Equatable extension AssociateVPCWithHostedZoneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateVPCWithHostedZoneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -960,9 +958,8 @@ public enum ChangeCidrCollectionOutputError: Swift.Error, Swift.Equatable { extension ChangeCidrCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChangeCidrCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id } else { @@ -1190,9 +1187,8 @@ public enum ChangeResourceRecordSetsOutputError: Swift.Error, Swift.Equatable { extension ChangeResourceRecordSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChangeResourceRecordSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -1442,7 +1438,7 @@ public struct ChangeTagsForResourceOutputResponse: Swift.Equatable { extension CidrBlockInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1457,7 +1453,7 @@ extension CidrBlockInUseException { } /// This CIDR block is already in use. -public struct CidrBlockInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CidrBlockInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1637,7 +1633,7 @@ extension Route53ClientTypes { extension CidrCollectionAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1652,7 +1648,7 @@ extension CidrCollectionAlreadyExistsException { } /// A CIDR collection with this name and a different caller reference already exists in this account. -public struct CidrCollectionAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CidrCollectionAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1815,7 +1811,7 @@ extension Route53ClientTypes { extension CidrCollectionInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1830,7 +1826,7 @@ extension CidrCollectionInUseException { } /// This CIDR collection is in use, and isn't empty. -public struct CidrCollectionInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CidrCollectionInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1866,7 +1862,7 @@ extension CidrCollectionInUseExceptionBody: Swift.Decodable { extension CidrCollectionVersionMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1881,7 +1877,7 @@ extension CidrCollectionVersionMismatchException { } /// The CIDR collection version you provided, doesn't match the one in the ListCidrCollections operation. -public struct CidrCollectionVersionMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CidrCollectionVersionMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2378,7 +2374,7 @@ extension Route53ClientTypes { extension ConcurrentModification { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2393,7 +2389,7 @@ extension ConcurrentModification { } /// Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request. -public struct ConcurrentModification: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModification: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2430,7 +2426,7 @@ extension ConcurrentModificationBody: Swift.Decodable { extension ConflictingDomainExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2451,7 +2447,7 @@ extension ConflictingDomainExists { /// * Create a private hosted zone: A hosted zone with the specified name already exists and is already associated with the Amazon VPC that you specified. /// /// * Associate VPCs with a private hosted zone: The VPC that you specified is already associated with another hosted zone that has the same name. -public struct ConflictingDomainExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictingDomainExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2487,7 +2483,7 @@ extension ConflictingDomainExistsBody: Swift.Decodable { extension ConflictingTypes { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2502,7 +2498,7 @@ extension ConflictingTypes { } /// You tried to update a traffic policy instance by using a traffic policy version that has a different DNS type than the current type for the instance. You specified the type in the JSON document in the CreateTrafficPolicy or CreateTrafficPolicyVersionrequest. -public struct ConflictingTypes: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictingTypes: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2649,9 +2645,8 @@ extension CreateCidrCollectionOutputResponse: ClientRuntime.HttpResponseBinding } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCidrCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.collection = output.collection } else { @@ -2811,9 +2806,8 @@ extension CreateHealthCheckOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHealthCheckOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthCheck = output.healthCheck } else { @@ -3023,9 +3017,8 @@ extension CreateHostedZoneOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHostedZoneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo self.delegationSet = output.delegationSet @@ -3278,9 +3271,8 @@ extension CreateKeySigningKeyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateKeySigningKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo self.keySigningKey = output.keySigningKey @@ -3450,9 +3442,8 @@ extension CreateQueryLoggingConfigOutputResponse: ClientRuntime.HttpResponseBind } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateQueryLoggingConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryLoggingConfig = output.queryLoggingConfig } else { @@ -3612,9 +3603,8 @@ extension CreateReusableDelegationSetOutputResponse: ClientRuntime.HttpResponseB } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReusableDelegationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegationSet = output.delegationSet } else { @@ -3902,9 +3892,8 @@ extension CreateTrafficPolicyInstanceOutputResponse: ClientRuntime.HttpResponseB } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrafficPolicyInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficPolicyInstance = output.trafficPolicyInstance } else { @@ -3982,9 +3971,8 @@ extension CreateTrafficPolicyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrafficPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficPolicy = output.trafficPolicy } else { @@ -4150,9 +4138,8 @@ extension CreateTrafficPolicyVersionOutputResponse: ClientRuntime.HttpResponseBi } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrafficPolicyVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficPolicy = output.trafficPolicy } else { @@ -4301,9 +4288,8 @@ public enum CreateVPCAssociationAuthorizationOutputError: Swift.Error, Swift.Equ extension CreateVPCAssociationAuthorizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVPCAssociationAuthorizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostedZoneId = output.hostedZoneId self.vpc = output.vpc @@ -4355,7 +4341,7 @@ extension CreateVPCAssociationAuthorizationOutputResponseBody: Swift.Decodable { extension DNSSECNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4370,7 +4356,7 @@ extension DNSSECNotFound { } /// The hosted zone doesn't have any DNSSEC resources. -public struct DNSSECNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DNSSECNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4540,9 +4526,8 @@ public enum DeactivateKeySigningKeyOutputError: Swift.Error, Swift.Equatable { extension DeactivateKeySigningKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeactivateKeySigningKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -4675,7 +4660,7 @@ extension Route53ClientTypes { extension DelegationSetAlreadyCreated { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4690,7 +4675,7 @@ extension DelegationSetAlreadyCreated { } /// A delegation set with the same owner and caller reference combination has already been created. -public struct DelegationSetAlreadyCreated: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DelegationSetAlreadyCreated: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4727,7 +4712,7 @@ extension DelegationSetAlreadyCreatedBody: Swift.Decodable { extension DelegationSetAlreadyReusable { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4742,7 +4727,7 @@ extension DelegationSetAlreadyReusable { } /// The specified delegation set has already been marked as reusable. -public struct DelegationSetAlreadyReusable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DelegationSetAlreadyReusable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4779,7 +4764,7 @@ extension DelegationSetAlreadyReusableBody: Swift.Decodable { extension DelegationSetInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4794,7 +4779,7 @@ extension DelegationSetInUse { } /// The specified delegation contains associated hosted zones which must be deleted before the reusable delegation set can be deleted. -public struct DelegationSetInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DelegationSetInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4831,7 +4816,7 @@ extension DelegationSetInUseBody: Swift.Decodable { extension DelegationSetNotAvailable { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4846,7 +4831,7 @@ extension DelegationSetNotAvailable { } /// You can create a hosted zone that has the same name as an existing hosted zone (example.com is common), but there is a limit to the number of hosted zones that have the same name. If you get this error, Amazon Route 53 has reached that limit. If you own the domain name and Route 53 generates this error, contact Customer Support. -public struct DelegationSetNotAvailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DelegationSetNotAvailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4883,7 +4868,7 @@ extension DelegationSetNotAvailableBody: Swift.Decodable { extension DelegationSetNotReusable { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4898,7 +4883,7 @@ extension DelegationSetNotReusable { } /// A reusable delegation set with the specified ID does not exist. -public struct DelegationSetNotReusable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DelegationSetNotReusable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5132,9 +5117,8 @@ public enum DeleteHostedZoneOutputError: Swift.Error, Swift.Equatable { extension DeleteHostedZoneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteHostedZoneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -5245,9 +5229,8 @@ public enum DeleteKeySigningKeyOutputError: Swift.Error, Swift.Equatable { extension DeleteKeySigningKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteKeySigningKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -5813,9 +5796,8 @@ public enum DisableHostedZoneDNSSECOutputError: Swift.Error, Swift.Equatable { extension DisableHostedZoneDNSSECOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableHostedZoneDNSSECOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -5970,9 +5952,8 @@ public enum DisassociateVPCFromHostedZoneOutputError: Swift.Error, Swift.Equatab extension DisassociateVPCFromHostedZoneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateVPCFromHostedZoneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -6081,9 +6062,8 @@ public enum EnableHostedZoneDNSSECOutputError: Swift.Error, Swift.Equatable { extension EnableHostedZoneDNSSECOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableHostedZoneDNSSECOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -6377,9 +6357,8 @@ public enum GetAccountLimitOutputError: Swift.Error, Swift.Equatable { extension GetAccountLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.limit = output.limit @@ -6486,9 +6465,8 @@ public enum GetChangeOutputError: Swift.Error, Swift.Equatable { extension GetChangeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChangeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeInfo = output.changeInfo } else { @@ -6569,9 +6547,8 @@ public enum GetCheckerIpRangesOutputError: Swift.Error, Swift.Equatable { extension GetCheckerIpRangesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCheckerIpRangesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checkerIpRanges = output.checkerIpRanges } else { @@ -6685,9 +6662,8 @@ public enum GetDNSSECOutputError: Swift.Error, Swift.Equatable { extension GetDNSSECOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDNSSECOutputResponseBody = try responseDecoder.decode(responseBody: data) self.keySigningKeys = output.keySigningKeys self.status = output.status @@ -6849,9 +6825,8 @@ public enum GetGeoLocationOutputError: Swift.Error, Swift.Equatable { extension GetGeoLocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGeoLocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.geoLocationDetails = output.geoLocationDetails } else { @@ -6932,9 +6907,8 @@ public enum GetHealthCheckCountOutputError: Swift.Error, Swift.Equatable { extension GetHealthCheckCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHealthCheckCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthCheckCount = output.healthCheckCount } else { @@ -7062,9 +7036,8 @@ public enum GetHealthCheckLastFailureReasonOutputError: Swift.Error, Swift.Equat extension GetHealthCheckLastFailureReasonOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHealthCheckLastFailureReasonOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthCheckObservations = output.healthCheckObservations } else { @@ -7147,9 +7120,8 @@ public enum GetHealthCheckOutputError: Swift.Error, Swift.Equatable { extension GetHealthCheckOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHealthCheckOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthCheck = output.healthCheck } else { @@ -7245,9 +7217,8 @@ public enum GetHealthCheckStatusOutputError: Swift.Error, Swift.Equatable { extension GetHealthCheckStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHealthCheckStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthCheckObservations = output.healthCheckObservations } else { @@ -7347,9 +7318,8 @@ public enum GetHostedZoneCountOutputError: Swift.Error, Swift.Equatable { extension GetHostedZoneCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHostedZoneCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostedZoneCount = output.hostedZoneCount } else { @@ -7491,9 +7461,8 @@ public enum GetHostedZoneLimitOutputError: Swift.Error, Swift.Equatable { extension GetHostedZoneLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHostedZoneLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.limit = output.limit @@ -7568,9 +7537,8 @@ public enum GetHostedZoneOutputError: Swift.Error, Swift.Equatable { extension GetHostedZoneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetHostedZoneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegationSet = output.delegationSet self.hostedZone = output.hostedZone @@ -7702,9 +7670,8 @@ public enum GetQueryLoggingConfigOutputError: Swift.Error, Swift.Equatable { extension GetQueryLoggingConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueryLoggingConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queryLoggingConfig = output.queryLoggingConfig } else { @@ -7839,9 +7806,8 @@ public enum GetReusableDelegationSetLimitOutputError: Swift.Error, Swift.Equatab extension GetReusableDelegationSetLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReusableDelegationSetLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.limit = output.limit @@ -7918,9 +7884,8 @@ public enum GetReusableDelegationSetOutputError: Swift.Error, Swift.Equatable { extension GetReusableDelegationSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReusableDelegationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegationSet = output.delegationSet } else { @@ -8041,9 +8006,8 @@ public enum GetTrafficPolicyInstanceCountOutputError: Swift.Error, Swift.Equatab extension GetTrafficPolicyInstanceCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrafficPolicyInstanceCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficPolicyInstanceCount = output.trafficPolicyInstanceCount } else { @@ -8139,9 +8103,8 @@ public enum GetTrafficPolicyInstanceOutputError: Swift.Error, Swift.Equatable { extension GetTrafficPolicyInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrafficPolicyInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficPolicyInstance = output.trafficPolicyInstance } else { @@ -8205,9 +8168,8 @@ public enum GetTrafficPolicyOutputError: Swift.Error, Swift.Equatable { extension GetTrafficPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrafficPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficPolicy = output.trafficPolicy } else { @@ -8354,7 +8316,7 @@ extension Route53ClientTypes { extension HealthCheckAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8373,7 +8335,7 @@ extension HealthCheckAlreadyExists { /// * The same value for CallerReference as an existing health check, and one or more values that differ from the existing health check that has the same caller reference. /// /// * The same value for CallerReference as a health check that you created and later deleted, regardless of the other settings in the request. -public struct HealthCheckAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HealthCheckAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8736,7 +8698,7 @@ extension Route53ClientTypes { extension HealthCheckInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8752,7 +8714,7 @@ extension HealthCheckInUse { /// This error code is not in use. @available(*, deprecated) -public struct HealthCheckInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HealthCheckInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8961,7 +8923,7 @@ extension Route53ClientTypes { extension HealthCheckVersionMismatch { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8976,7 +8938,7 @@ extension HealthCheckVersionMismatch { } /// The value of HealthCheckVersion in the request doesn't match the value of HealthCheckVersion in the health check. -public struct HealthCheckVersionMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HealthCheckVersionMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9117,7 +9079,7 @@ extension Route53ClientTypes { extension HostedZoneAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9132,7 +9094,7 @@ extension HostedZoneAlreadyExists { } /// The hosted zone you're trying to create already exists. Amazon Route 53 returns this error when a hosted zone has already been created with the specified CallerReference. -public struct HostedZoneAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HostedZoneAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9331,7 +9293,7 @@ extension Route53ClientTypes { extension HostedZoneNotEmpty { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9346,7 +9308,7 @@ extension HostedZoneNotEmpty { } /// The hosted zone contains resource records that are not SOA or NS records. -public struct HostedZoneNotEmpty: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HostedZoneNotEmpty: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9383,7 +9345,7 @@ extension HostedZoneNotEmptyBody: Swift.Decodable { extension HostedZoneNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9398,7 +9360,7 @@ extension HostedZoneNotFound { } /// The specified HostedZone can't be found. -public struct HostedZoneNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HostedZoneNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9435,7 +9397,7 @@ extension HostedZoneNotFoundBody: Swift.Decodable { extension HostedZoneNotPrivate { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9450,7 +9412,7 @@ extension HostedZoneNotPrivate { } /// The specified hosted zone is a public hosted zone, not a private hosted zone. -public struct HostedZoneNotPrivate: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HostedZoneNotPrivate: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9549,7 +9511,7 @@ extension Route53ClientTypes { extension HostedZonePartiallyDelegated { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9564,7 +9526,7 @@ extension HostedZonePartiallyDelegated { } /// The hosted zone nameservers don't match the parent nameservers. The hosted zone and parent must have the same nameservers. -public struct HostedZonePartiallyDelegated: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HostedZonePartiallyDelegated: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9675,7 +9637,7 @@ extension Route53ClientTypes { extension IncompatibleVersion { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9690,7 +9652,7 @@ extension IncompatibleVersion { } /// The resource you're trying to access is unsupported on this Amazon Route 53 endpoint. -public struct IncompatibleVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatibleVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9726,7 +9688,7 @@ extension IncompatibleVersionBody: Swift.Decodable { extension InsufficientCloudWatchLogsResourcePolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9751,7 +9713,7 @@ extension InsufficientCloudWatchLogsResourcePolicy { /// * The Key management service (KMS) key you specified doesn’t exist or it can’t be used with the log group associated with query log. Update or provide a resource policy to grant permissions for the KMS key. /// /// * The Key management service (KMS) key you specified is marked as disabled for the log group associated with query log. Update or provide a resource policy to grant permissions for the KMS key. -public struct InsufficientCloudWatchLogsResourcePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InsufficientCloudWatchLogsResourcePolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9822,7 +9784,7 @@ extension Route53ClientTypes { extension InvalidArgument { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9837,7 +9799,7 @@ extension InvalidArgument { } /// Parameter name is not valid. -public struct InvalidArgument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9874,7 +9836,7 @@ extension InvalidArgumentBody: Swift.Decodable { extension InvalidChangeBatch { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9891,7 +9853,7 @@ extension InvalidChangeBatch { } /// This exception contains a list of messages that might contain one or more error messages. Each error message indicates one error in the change batch. -public struct InvalidChangeBatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidChangeBatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9952,7 +9914,7 @@ extension InvalidChangeBatchBody: Swift.Decodable { extension InvalidDomainName { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9967,7 +9929,7 @@ extension InvalidDomainName { } /// The specified domain name is not valid. -public struct InvalidDomainName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDomainName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10004,7 +9966,7 @@ extension InvalidDomainNameBody: Swift.Decodable { extension InvalidInput { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10019,7 +9981,7 @@ extension InvalidInput { } /// The input is not valid. -public struct InvalidInput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10056,7 +10018,7 @@ extension InvalidInputBody: Swift.Decodable { extension InvalidKMSArn { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10071,7 +10033,7 @@ extension InvalidKMSArn { } /// The KeyManagementServiceArn that you specified isn't valid to use with DNSSEC signing. -public struct InvalidKMSArn: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKMSArn: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10107,7 +10069,7 @@ extension InvalidKMSArnBody: Swift.Decodable { extension InvalidKeySigningKeyName { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10122,7 +10084,7 @@ extension InvalidKeySigningKeyName { } /// The key-signing key (KSK) name that you specified isn't a valid name. -public struct InvalidKeySigningKeyName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKeySigningKeyName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10158,7 +10120,7 @@ extension InvalidKeySigningKeyNameBody: Swift.Decodable { extension InvalidKeySigningKeyStatus { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10173,7 +10135,7 @@ extension InvalidKeySigningKeyStatus { } /// The key-signing key (KSK) status isn't valid or another KSK has the status INTERNAL_FAILURE. -public struct InvalidKeySigningKeyStatus: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKeySigningKeyStatus: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10209,7 +10171,7 @@ extension InvalidKeySigningKeyStatusBody: Swift.Decodable { extension InvalidPaginationToken { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10224,7 +10186,7 @@ extension InvalidPaginationToken { } /// The value that you specified to get the second or subsequent page of results is invalid. -public struct InvalidPaginationToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10260,7 +10222,7 @@ extension InvalidPaginationTokenBody: Swift.Decodable { extension InvalidSigningStatus { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10275,7 +10237,7 @@ extension InvalidSigningStatus { } /// Your hosted zone status isn't valid for this operation. In the hosted zone, change the status to enable DNSSEC or disable DNSSEC. -public struct InvalidSigningStatus: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSigningStatus: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10311,7 +10273,7 @@ extension InvalidSigningStatusBody: Swift.Decodable { extension InvalidTrafficPolicyDocument { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10326,7 +10288,7 @@ extension InvalidTrafficPolicyDocument { } /// The format of the traffic policy document that you specified in the Document element is not valid. -public struct InvalidTrafficPolicyDocument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTrafficPolicyDocument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10363,7 +10325,7 @@ extension InvalidTrafficPolicyDocumentBody: Swift.Decodable { extension InvalidVPCId { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10378,7 +10340,7 @@ extension InvalidVPCId { } /// The VPC ID that you specified either isn't a valid ID or the current account is not authorized to access this VPC. -public struct InvalidVPCId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidVPCId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10631,7 +10593,7 @@ extension Route53ClientTypes { extension KeySigningKeyAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10646,7 +10608,7 @@ extension KeySigningKeyAlreadyExists { } /// You've already created a key-signing key (KSK) with this name or with the same customer managed key ARN. -public struct KeySigningKeyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KeySigningKeyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10682,7 +10644,7 @@ extension KeySigningKeyAlreadyExistsBody: Swift.Decodable { extension KeySigningKeyInParentDSRecord { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10697,7 +10659,7 @@ extension KeySigningKeyInParentDSRecord { } /// The key-signing key (KSK) is specified in a parent DS record. -public struct KeySigningKeyInParentDSRecord: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KeySigningKeyInParentDSRecord: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10733,7 +10695,7 @@ extension KeySigningKeyInParentDSRecordBody: Swift.Decodable { extension KeySigningKeyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10748,7 +10710,7 @@ extension KeySigningKeyInUse { } /// The key-signing key (KSK) that you specified can't be deactivated because it's the only KSK for a currently-enabled DNSSEC. Disable DNSSEC signing, or add or enable another KSK. -public struct KeySigningKeyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KeySigningKeyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10784,7 +10746,7 @@ extension KeySigningKeyInUseBody: Swift.Decodable { extension KeySigningKeyWithActiveStatusNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10799,7 +10761,7 @@ extension KeySigningKeyWithActiveStatusNotFound { } /// A key-signing key (KSK) with ACTIVE status wasn't found. -public struct KeySigningKeyWithActiveStatusNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KeySigningKeyWithActiveStatusNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10835,7 +10797,7 @@ extension KeySigningKeyWithActiveStatusNotFoundBody: Swift.Decodable { extension LastVPCAssociation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10850,7 +10812,7 @@ extension LastVPCAssociation { } /// The VPC that you're trying to disassociate from the private hosted zone is the last VPC that is associated with the hosted zone. Amazon Route 53 doesn't support disassociating the last VPC from a hosted zone. -public struct LastVPCAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LastVPCAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10887,7 +10849,7 @@ extension LastVPCAssociationBody: Swift.Decodable { extension LimitsExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10902,7 +10864,7 @@ extension LimitsExceeded { } /// This operation can't be completed because the current account has reached the limit on the resource you are trying to create. To request a higher limit, [create a case](http://aws.amazon.com/route53-request) with the Amazon Web Services Support Center. -public struct LimitsExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitsExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11090,9 +11052,8 @@ public enum ListCidrBlocksOutputError: Swift.Error, Swift.Equatable { extension ListCidrBlocksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCidrBlocksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cidrBlocks = output.cidrBlocks self.nextToken = output.nextToken @@ -11227,9 +11188,8 @@ public enum ListCidrCollectionsOutputError: Swift.Error, Swift.Equatable { extension ListCidrCollectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCidrCollectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cidrCollections = output.cidrCollections self.nextToken = output.nextToken @@ -11374,9 +11334,8 @@ public enum ListCidrLocationsOutputError: Swift.Error, Swift.Equatable { extension ListCidrLocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCidrLocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cidrLocations = output.cidrLocations self.nextToken = output.nextToken @@ -11528,9 +11487,8 @@ public enum ListGeoLocationsOutputError: Swift.Error, Swift.Equatable { extension ListGeoLocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGeoLocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.geoLocationDetailsList = output.geoLocationDetailsList self.isTruncated = output.isTruncated @@ -11712,9 +11670,8 @@ public enum ListHealthChecksOutputError: Swift.Error, Swift.Equatable { extension ListHealthChecksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHealthChecksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthChecks = output.healthChecks self.isTruncated = output.isTruncated @@ -11895,9 +11852,8 @@ public enum ListHostedZonesByNameOutputError: Swift.Error, Swift.Equatable { extension ListHostedZonesByNameOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHostedZonesByNameOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dnsName = output.dnsName self.hostedZoneId = output.hostedZoneId @@ -12111,9 +12067,8 @@ public enum ListHostedZonesByVPCOutputError: Swift.Error, Swift.Equatable { extension ListHostedZonesByVPCOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHostedZonesByVPCOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostedZoneSummaries = output.hostedZoneSummaries self.maxItems = output.maxItems @@ -12273,9 +12228,8 @@ public enum ListHostedZonesOutputError: Swift.Error, Swift.Equatable { extension ListHostedZonesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHostedZonesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostedZones = output.hostedZones self.isTruncated = output.isTruncated @@ -12456,9 +12410,8 @@ public enum ListQueryLoggingConfigsOutputError: Swift.Error, Swift.Equatable { extension ListQueryLoggingConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueryLoggingConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queryLoggingConfigs = output.queryLoggingConfigs @@ -12638,9 +12591,8 @@ public enum ListResourceRecordSetsOutputError: Swift.Error, Swift.Equatable { extension ListResourceRecordSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceRecordSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.maxItems = output.maxItems @@ -12820,9 +12772,8 @@ public enum ListReusableDelegationSetsOutputError: Swift.Error, Swift.Equatable extension ListReusableDelegationSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReusableDelegationSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegationSets = output.delegationSets self.isTruncated = output.isTruncated @@ -12996,9 +12947,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceTagSet = output.resourceTagSet } else { @@ -13166,9 +13116,8 @@ public enum ListTagsForResourcesOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceTagSets = output.resourceTagSets } else { @@ -13296,9 +13245,8 @@ public enum ListTrafficPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListTrafficPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrafficPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.maxItems = output.maxItems @@ -13482,9 +13430,8 @@ public enum ListTrafficPolicyInstancesByHostedZoneOutputError: Swift.Error, Swif extension ListTrafficPolicyInstancesByHostedZoneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrafficPolicyInstancesByHostedZoneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.maxItems = output.maxItems @@ -13696,9 +13643,8 @@ public enum ListTrafficPolicyInstancesByPolicyOutputError: Swift.Error, Swift.Eq extension ListTrafficPolicyInstancesByPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrafficPolicyInstancesByPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostedZoneIdMarker = output.hostedZoneIdMarker self.isTruncated = output.isTruncated @@ -13896,9 +13842,8 @@ public enum ListTrafficPolicyInstancesOutputError: Swift.Error, Swift.Equatable extension ListTrafficPolicyInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrafficPolicyInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostedZoneIdMarker = output.hostedZoneIdMarker self.isTruncated = output.isTruncated @@ -14088,9 +14033,8 @@ public enum ListTrafficPolicyVersionsOutputError: Swift.Error, Swift.Equatable { extension ListTrafficPolicyVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrafficPolicyVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isTruncated = output.isTruncated self.maxItems = output.maxItems @@ -14263,9 +14207,8 @@ public enum ListVPCAssociationAuthorizationsOutputError: Swift.Error, Swift.Equa extension ListVPCAssociationAuthorizationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVPCAssociationAuthorizationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostedZoneId = output.hostedZoneId self.nextToken = output.nextToken @@ -14396,7 +14339,7 @@ extension Route53ClientTypes { extension NoSuchChange { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14411,7 +14354,7 @@ extension NoSuchChange { } /// A change with the specified change ID does not exist. -public struct NoSuchChange: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchChange: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14447,7 +14390,7 @@ extension NoSuchChangeBody: Swift.Decodable { extension NoSuchCidrCollectionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14462,7 +14405,7 @@ extension NoSuchCidrCollectionException { } /// The CIDR collection you specified, doesn't exist. -public struct NoSuchCidrCollectionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchCidrCollectionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14498,7 +14441,7 @@ extension NoSuchCidrCollectionExceptionBody: Swift.Decodable { extension NoSuchCidrLocationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14513,7 +14456,7 @@ extension NoSuchCidrLocationException { } /// The CIDR collection location doesn't match any locations in your account. -public struct NoSuchCidrLocationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchCidrLocationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14549,7 +14492,7 @@ extension NoSuchCidrLocationExceptionBody: Swift.Decodable { extension NoSuchCloudWatchLogsLogGroup { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14564,7 +14507,7 @@ extension NoSuchCloudWatchLogsLogGroup { } /// There is no CloudWatch Logs log group with the specified ARN. -public struct NoSuchCloudWatchLogsLogGroup: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchCloudWatchLogsLogGroup: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14600,7 +14543,7 @@ extension NoSuchCloudWatchLogsLogGroupBody: Swift.Decodable { extension NoSuchDelegationSet { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14615,7 +14558,7 @@ extension NoSuchDelegationSet { } /// A reusable delegation set with the specified ID does not exist. -public struct NoSuchDelegationSet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchDelegationSet: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14652,7 +14595,7 @@ extension NoSuchDelegationSetBody: Swift.Decodable { extension NoSuchGeoLocation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14667,7 +14610,7 @@ extension NoSuchGeoLocation { } /// Amazon Route 53 doesn't support the specified geographic location. For a list of supported geolocation codes, see the [GeoLocation](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GeoLocation.html) data type. -public struct NoSuchGeoLocation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchGeoLocation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14704,7 +14647,7 @@ extension NoSuchGeoLocationBody: Swift.Decodable { extension NoSuchHealthCheck { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14719,7 +14662,7 @@ extension NoSuchHealthCheck { } /// No health check exists with the specified ID. -public struct NoSuchHealthCheck: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchHealthCheck: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14756,7 +14699,7 @@ extension NoSuchHealthCheckBody: Swift.Decodable { extension NoSuchHostedZone { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14771,7 +14714,7 @@ extension NoSuchHostedZone { } /// No hosted zone exists with the ID that you specified. -public struct NoSuchHostedZone: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchHostedZone: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14808,7 +14751,7 @@ extension NoSuchHostedZoneBody: Swift.Decodable { extension NoSuchKeySigningKey { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14823,7 +14766,7 @@ extension NoSuchKeySigningKey { } /// The specified key-signing key (KSK) doesn't exist. -public struct NoSuchKeySigningKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchKeySigningKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14859,7 +14802,7 @@ extension NoSuchKeySigningKeyBody: Swift.Decodable { extension NoSuchQueryLoggingConfig { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14874,7 +14817,7 @@ extension NoSuchQueryLoggingConfig { } /// There is no DNS query logging configuration with the specified ID. -public struct NoSuchQueryLoggingConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchQueryLoggingConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14910,7 +14853,7 @@ extension NoSuchQueryLoggingConfigBody: Swift.Decodable { extension NoSuchTrafficPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14925,7 +14868,7 @@ extension NoSuchTrafficPolicy { } /// No traffic policy exists with the specified ID. -public struct NoSuchTrafficPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchTrafficPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14962,7 +14905,7 @@ extension NoSuchTrafficPolicyBody: Swift.Decodable { extension NoSuchTrafficPolicyInstance { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -14977,7 +14920,7 @@ extension NoSuchTrafficPolicyInstance { } /// No traffic policy instance exists with the specified ID. -public struct NoSuchTrafficPolicyInstance: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchTrafficPolicyInstance: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15014,7 +14957,7 @@ extension NoSuchTrafficPolicyInstanceBody: Swift.Decodable { extension NotAuthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15029,7 +14972,7 @@ extension NotAuthorizedException { } /// Associating the specified VPC with the specified hosted zone has not been authorized. -public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotAuthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15066,7 +15009,7 @@ extension NotAuthorizedExceptionBody: Swift.Decodable { extension PriorRequestNotComplete { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15081,7 +15024,7 @@ extension PriorRequestNotComplete { } /// If Amazon Route 53 can't process a request before the next request arrives, it will reject subsequent requests for the same hosted zone and return an HTTP 400 error (Bad request). If Route 53 returns this error repeatedly for the same request, we recommend that you wait, in intervals of increasing duration, before you try the request again. -public struct PriorRequestNotComplete: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PriorRequestNotComplete: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15117,7 +15060,7 @@ extension PriorRequestNotCompleteBody: Swift.Decodable { extension PublicZoneVPCAssociation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15132,7 +15075,7 @@ extension PublicZoneVPCAssociation { } /// You're trying to associate a VPC with a public hosted zone. Amazon Route 53 doesn't support associating a VPC with a public hosted zone. -public struct PublicZoneVPCAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PublicZoneVPCAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15244,7 +15187,7 @@ extension Route53ClientTypes { extension QueryLoggingConfigAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -15259,7 +15202,7 @@ extension QueryLoggingConfigAlreadyExists { } /// You can create only one query logging configuration for a hosted zone, and a query logging configuration already exists for this hosted zone. -public struct QueryLoggingConfigAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QueryLoggingConfigAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16445,9 +16388,8 @@ public enum TestDNSAnswerOutputError: Swift.Error, Swift.Equatable { extension TestDNSAnswerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestDNSAnswerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`protocol` = output.`protocol` self.nameserver = output.nameserver @@ -16560,7 +16502,7 @@ extension TestDNSAnswerOutputResponseBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16575,7 +16517,7 @@ extension ThrottlingException { } /// The limit on the number of requests per second was exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16611,7 +16553,7 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyHealthChecks { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16626,7 +16568,7 @@ extension TooManyHealthChecks { } /// This health check can't be created because the current account has reached the limit on the number of active health checks. For information about default limits, see [Limits](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) in the Amazon Route 53 Developer Guide. For information about how to get the current limit for an account, see [GetAccountLimit](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). To request a higher limit, [create a case](http://aws.amazon.com/route53-request) with the Amazon Web Services Support Center. You have reached the maximum number of active health checks for an Amazon Web Services account. To request a higher limit, [create a case](http://aws.amazon.com/route53-request) with the Amazon Web Services Support Center. -public struct TooManyHealthChecks: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyHealthChecks: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16662,7 +16604,7 @@ extension TooManyHealthChecksBody: Swift.Decodable { extension TooManyHostedZones { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16677,7 +16619,7 @@ extension TooManyHostedZones { } /// This operation can't be completed either because the current account has reached the limit on the number of hosted zones or because you've reached the limit on the number of hosted zones that can be associated with a reusable delegation set. For information about default limits, see [Limits](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) in the Amazon Route 53 Developer Guide. To get the current limit on hosted zones that can be created by an account, see [GetAccountLimit](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). To get the current limit on hosted zones that can be associated with a reusable delegation set, see [GetReusableDelegationSetLimit](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetReusableDelegationSetLimit.html). To request a higher limit, [create a case](http://aws.amazon.com/route53-request) with the Amazon Web Services Support Center. -public struct TooManyHostedZones: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyHostedZones: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16714,7 +16656,7 @@ extension TooManyHostedZonesBody: Swift.Decodable { extension TooManyKeySigningKeys { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16729,7 +16671,7 @@ extension TooManyKeySigningKeys { } /// You've reached the limit for the number of key-signing keys (KSKs). Remove at least one KSK, and then try again. -public struct TooManyKeySigningKeys: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyKeySigningKeys: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16765,7 +16707,7 @@ extension TooManyKeySigningKeysBody: Swift.Decodable { extension TooManyTrafficPolicies { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16780,7 +16722,7 @@ extension TooManyTrafficPolicies { } /// This traffic policy can't be created because the current account has reached the limit on the number of traffic policies. For information about default limits, see [Limits](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) in the Amazon Route 53 Developer Guide. To get the current limit for an account, see [GetAccountLimit](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). To request a higher limit, [create a case](http://aws.amazon.com/route53-request) with the Amazon Web Services Support Center. -public struct TooManyTrafficPolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTrafficPolicies: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16817,7 +16759,7 @@ extension TooManyTrafficPoliciesBody: Swift.Decodable { extension TooManyTrafficPolicyInstances { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16832,7 +16774,7 @@ extension TooManyTrafficPolicyInstances { } /// This traffic policy instance can't be created because the current account has reached the limit on the number of traffic policy instances. For information about default limits, see [Limits](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) in the Amazon Route 53 Developer Guide. For information about how to get the current limit for an account, see [GetAccountLimit](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). To request a higher limit, [create a case](http://aws.amazon.com/route53-request) with the Amazon Web Services Support Center. -public struct TooManyTrafficPolicyInstances: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTrafficPolicyInstances: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16869,7 +16811,7 @@ extension TooManyTrafficPolicyInstancesBody: Swift.Decodable { extension TooManyTrafficPolicyVersionsForCurrentPolicy { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16884,7 +16826,7 @@ extension TooManyTrafficPolicyVersionsForCurrentPolicy { } /// This traffic policy version can't be created because you've reached the limit of 1000 on the number of versions that you can create for the current traffic policy. To create more traffic policy versions, you can use [GetTrafficPolicy](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetTrafficPolicy.html) to get the traffic policy document for a specified traffic policy version, and then use [CreateTrafficPolicy](https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateTrafficPolicy.html) to create a new traffic policy using the traffic policy document. -public struct TooManyTrafficPolicyVersionsForCurrentPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTrafficPolicyVersionsForCurrentPolicy: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16921,7 +16863,7 @@ extension TooManyTrafficPolicyVersionsForCurrentPolicyBody: Swift.Decodable { extension TooManyVPCAssociationAuthorizations { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -16936,7 +16878,7 @@ extension TooManyVPCAssociationAuthorizations { } /// You've created the maximum number of authorizations that can be created for the specified hosted zone. To authorize another VPC to be associated with the hosted zone, submit a DeleteVPCAssociationAuthorization request to remove an existing authorization. To get a list of existing authorizations, submit a ListVPCAssociationAuthorizations request. -public struct TooManyVPCAssociationAuthorizations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyVPCAssociationAuthorizations: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17080,7 +17022,7 @@ extension Route53ClientTypes { extension TrafficPolicyAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17095,7 +17037,7 @@ extension TrafficPolicyAlreadyExists { } /// A traffic policy that has the same value for Name already exists. -public struct TrafficPolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrafficPolicyAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17132,7 +17074,7 @@ extension TrafficPolicyAlreadyExistsBody: Swift.Decodable { extension TrafficPolicyInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17147,7 +17089,7 @@ extension TrafficPolicyInUse { } /// One or more traffic policy instances were created by using the specified traffic policy. -public struct TrafficPolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrafficPolicyInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17325,7 +17267,7 @@ extension Route53ClientTypes { extension TrafficPolicyInstanceAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17340,7 +17282,7 @@ extension TrafficPolicyInstanceAlreadyExists { } /// There is already a traffic policy instance with the specified ID. -public struct TrafficPolicyInstanceAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrafficPolicyInstanceAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17872,9 +17814,8 @@ public enum UpdateHealthCheckOutputError: Swift.Error, Swift.Equatable { extension UpdateHealthCheckOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateHealthCheckOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthCheck = output.healthCheck } else { @@ -18013,9 +17954,8 @@ public enum UpdateHostedZoneCommentOutputError: Swift.Error, Swift.Equatable { extension UpdateHostedZoneCommentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateHostedZoneCommentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostedZone = output.hostedZone } else { @@ -18163,9 +18103,8 @@ public enum UpdateTrafficPolicyCommentOutputError: Swift.Error, Swift.Equatable extension UpdateTrafficPolicyCommentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrafficPolicyCommentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficPolicy = output.trafficPolicy } else { @@ -18335,9 +18274,8 @@ public enum UpdateTrafficPolicyInstanceOutputError: Swift.Error, Swift.Equatable extension UpdateTrafficPolicyInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrafficPolicyInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trafficPolicyInstance = output.trafficPolicyInstance } else { @@ -18440,7 +18378,7 @@ extension Route53ClientTypes { extension VPCAssociationAuthorizationNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18455,7 +18393,7 @@ extension VPCAssociationAuthorizationNotFound { } /// The VPC that you specified is not authorized to be associated with the hosted zone. -public struct VPCAssociationAuthorizationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VPCAssociationAuthorizationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18492,7 +18430,7 @@ extension VPCAssociationAuthorizationNotFoundBody: Swift.Decodable { extension VPCAssociationNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18507,7 +18445,7 @@ extension VPCAssociationNotFound { } /// The specified VPC and hosted zone are not currently associated. -public struct VPCAssociationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VPCAssociationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRoute53Domains/Route53DomainsClient.swift b/Sources/Services/AWSRoute53Domains/Route53DomainsClient.swift index 1af620f2ef3..41b1927371f 100644 --- a/Sources/Services/AWSRoute53Domains/Route53DomainsClient.swift +++ b/Sources/Services/AWSRoute53Domains/Route53DomainsClient.swift @@ -208,6 +208,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptDomainTransferFromAnotherAwsAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDelegationSignerToDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelDomainTransferToAnotherAwsAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkDomainAvailability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkDomainTransferability") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -394,6 +399,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -410,7 +416,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -430,6 +436,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTagsForDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -446,7 +453,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -466,6 +473,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableDomainAutoRenew") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -482,7 +490,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -502,6 +510,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableDomainTransferLock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -518,7 +527,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -538,6 +547,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDelegationSignerFromDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -554,7 +564,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -574,6 +584,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableDomainAutoRenew") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -590,7 +601,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -610,6 +621,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableDomainTransferLock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -626,7 +638,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -646,6 +658,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContactReachabilityStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -662,7 +675,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -682,6 +695,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainDetail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -698,7 +712,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -718,6 +732,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainSuggestions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -734,7 +749,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -754,6 +769,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOperationDetail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -770,7 +786,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -790,6 +806,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -806,7 +823,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -826,6 +843,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -842,7 +860,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +890,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPrices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +907,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +927,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +944,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -946,6 +966,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pushDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -962,7 +983,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -992,6 +1013,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1008,7 +1030,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1028,6 +1050,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectDomainTransferFromAnotherAwsAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1044,7 +1067,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1064,6 +1087,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "renewDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1080,7 +1104,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1100,6 +1124,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resendContactReachabilityEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1116,7 +1141,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1136,6 +1161,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resendOperationAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1152,7 +1178,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1172,6 +1198,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retrieveDomainAuthCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1188,7 +1215,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1217,6 +1244,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "transferDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1233,7 +1261,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1262,6 +1290,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "transferDomainToAnotherAwsAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1278,7 +1307,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1298,6 +1327,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1314,7 +1344,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1334,6 +1364,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainContactPrivacy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1350,7 +1381,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1370,6 +1401,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainNameservers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1386,7 +1418,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1406,6 +1438,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTagsForDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1422,7 +1455,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1442,6 +1475,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53domains") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "viewBilling") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1458,7 +1492,7 @@ extension Route53DomainsClient: Route53DomainsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRoute53Domains/models/Models.swift b/Sources/Services/AWSRoute53Domains/models/Models.swift index 42b7cc846b5..361b962a743 100644 --- a/Sources/Services/AWSRoute53Domains/models/Models.swift +++ b/Sources/Services/AWSRoute53Domains/models/Models.swift @@ -94,9 +94,8 @@ public enum AcceptDomainTransferFromAnotherAwsAccountOutputError: Swift.Error, S extension AcceptDomainTransferFromAnotherAwsAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AcceptDomainTransferFromAnotherAwsAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -229,9 +228,8 @@ public enum AssociateDelegationSignerToDomainOutputError: Swift.Error, Swift.Equ extension AssociateDelegationSignerToDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateDelegationSignerToDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -420,9 +418,8 @@ public enum CancelDomainTransferToAnotherAwsAccountOutputError: Swift.Error, Swi extension CancelDomainTransferToAnotherAwsAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelDomainTransferToAnotherAwsAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -558,9 +555,8 @@ public enum CheckDomainAvailabilityOutputError: Swift.Error, Swift.Equatable { extension CheckDomainAvailabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CheckDomainAvailabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availability = output.availability } else { @@ -698,9 +694,8 @@ public enum CheckDomainTransferabilityOutputError: Swift.Error, Swift.Equatable extension CheckDomainTransferabilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CheckDomainTransferabilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transferability = output.transferability } else { @@ -1872,9 +1867,8 @@ public enum DeleteDomainOutputError: Swift.Error, Swift.Equatable { extension DeleteDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -2184,9 +2178,8 @@ public enum DisableDomainTransferLockOutputError: Swift.Error, Swift.Equatable { extension DisableDomainTransferLockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableDomainTransferLockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -2317,9 +2310,8 @@ public enum DisassociateDelegationSignerFromDomainOutputError: Swift.Error, Swif extension DisassociateDelegationSignerFromDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateDelegationSignerFromDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -2453,9 +2445,8 @@ extension Route53DomainsClientTypes { extension DnssecLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DnssecLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2469,7 +2460,7 @@ extension DnssecLimitExceeded { } /// This error is returned if you call AssociateDelegationSignerToDomain when the specified domain has reached the maximum number of DS records. You can't add any additional DS records unless you delete an existing one first. -public struct DnssecLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DnssecLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2610,9 +2601,8 @@ extension Route53DomainsClientTypes { extension DomainLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DomainLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2626,7 +2616,7 @@ extension DomainLimitExceeded { } /// The number of domains has exceeded the allowed threshold for the account. -public struct DomainLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DomainLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2893,9 +2883,8 @@ extension Route53DomainsClientTypes { extension DuplicateRequest { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateRequestBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2909,7 +2898,7 @@ extension DuplicateRequest { } /// The request is already in progress for the domain. -public struct DuplicateRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3109,9 +3098,8 @@ public enum EnableDomainTransferLockOutputError: Swift.Error, Swift.Equatable { extension EnableDomainTransferLockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableDomainTransferLockOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -3868,9 +3856,8 @@ public enum GetContactReachabilityStatusOutputError: Swift.Error, Swift.Equatabl extension GetContactReachabilityStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactReachabilityStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainName = output.domainName self.status = output.status @@ -3997,9 +3984,8 @@ extension GetDomainDetailOutputResponse: Swift.CustomDebugStringConvertible { extension GetDomainDetailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainDetailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.abuseContactEmail = output.abuseContactEmail self.abuseContactPhone = output.abuseContactPhone @@ -4385,9 +4371,8 @@ public enum GetDomainSuggestionsOutputError: Swift.Error, Swift.Equatable { extension GetDomainSuggestionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainSuggestionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.suggestionsList = output.suggestionsList } else { @@ -4506,9 +4491,8 @@ public enum GetOperationDetailOutputError: Swift.Error, Swift.Equatable { extension GetOperationDetailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOperationDetailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainName = output.domainName self.lastUpdatedDate = output.lastUpdatedDate @@ -4628,9 +4612,8 @@ extension GetOperationDetailOutputResponseBody: Swift.Decodable { extension InvalidInput { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4644,7 +4627,7 @@ extension InvalidInput { } /// The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount, the password might be invalid. -public struct InvalidInput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4831,9 +4814,8 @@ public enum ListDomainsOutputError: Swift.Error, Swift.Equatable { extension ListDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domains = output.domains self.nextPageMarker = output.nextPageMarker @@ -5058,9 +5040,8 @@ public enum ListOperationsOutputError: Swift.Error, Swift.Equatable { extension ListOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageMarker = output.nextPageMarker self.operations = output.operations @@ -5243,9 +5224,8 @@ public enum ListPricesOutputError: Swift.Error, Swift.Equatable { extension ListPricesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPricesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageMarker = output.nextPageMarker self.prices = output.prices @@ -5378,9 +5358,8 @@ public enum ListTagsForDomainOutputError: Swift.Error, Swift.Equatable { extension ListTagsForDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -5487,9 +5466,8 @@ extension Route53DomainsClientTypes { extension OperationLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5503,7 +5481,7 @@ extension OperationLimitExceeded { } /// The number of operations or jobs running exceeded the allowed threshold for the account. -public struct OperationLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6199,9 +6177,8 @@ public enum RegisterDomainOutputError: Swift.Error, Swift.Equatable { extension RegisterDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -6316,9 +6293,8 @@ public enum RejectDomainTransferFromAnotherAwsAccountOutputError: Swift.Error, S extension RejectDomainTransferFromAnotherAwsAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectDomainTransferFromAnotherAwsAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -6462,9 +6438,8 @@ public enum RenewDomainOutputError: Swift.Error, Swift.Equatable { extension RenewDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RenewDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -6576,9 +6551,8 @@ public enum ResendContactReachabilityEmailOutputError: Swift.Error, Swift.Equata extension ResendContactReachabilityEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResendContactReachabilityEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainName = output.domainName self.emailAddress = output.emailAddress @@ -6795,9 +6769,8 @@ extension RetrieveDomainAuthCodeOutputResponse: Swift.CustomDebugStringConvertib extension RetrieveDomainAuthCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetrieveDomainAuthCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authCode = output.authCode } else { @@ -6957,9 +6930,8 @@ extension Route53DomainsClientTypes { extension TLDRulesViolation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TLDRulesViolationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6973,7 +6945,7 @@ extension TLDRulesViolation { } /// The top-level domain does not support this operation. -public struct TLDRulesViolation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TLDRulesViolation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7297,9 +7269,8 @@ public enum TransferDomainOutputError: Swift.Error, Swift.Equatable { extension TransferDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransferDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -7429,9 +7400,8 @@ public enum TransferDomainToAnotherAwsAccountOutputError: Swift.Error, Swift.Equ extension TransferDomainToAnotherAwsAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TransferDomainToAnotherAwsAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId self.password = output.password @@ -7526,9 +7496,8 @@ extension Route53DomainsClientTypes { extension UnsupportedTLD { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedTLDBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7542,7 +7511,7 @@ extension UnsupportedTLD { } /// Amazon Route 53 does not support this top-level domain (TLD). -public struct UnsupportedTLD: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedTLD: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7711,9 +7680,8 @@ public enum UpdateDomainContactOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -7868,9 +7836,8 @@ public enum UpdateDomainContactPrivacyOutputError: Swift.Error, Swift.Equatable extension UpdateDomainContactPrivacyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainContactPrivacyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -8032,9 +7999,8 @@ public enum UpdateDomainNameserversOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainNameserversOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainNameserversOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -8289,9 +8255,8 @@ public enum ViewBillingOutputError: Swift.Error, Swift.Equatable { extension ViewBillingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ViewBillingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingRecords = output.billingRecords self.nextPageMarker = output.nextPageMarker diff --git a/Sources/Services/AWSRoute53RecoveryCluster/Route53RecoveryClusterClient.swift b/Sources/Services/AWSRoute53RecoveryCluster/Route53RecoveryClusterClient.swift index 9a41c60d28c..23ba4d93935 100644 --- a/Sources/Services/AWSRoute53RecoveryCluster/Route53RecoveryClusterClient.swift +++ b/Sources/Services/AWSRoute53RecoveryCluster/Route53RecoveryClusterClient.swift @@ -212,6 +212,7 @@ extension Route53RecoveryClusterClient: Route53RecoveryClusterClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53-recovery-cluster") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRoutingControlState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -228,7 +229,7 @@ extension Route53RecoveryClusterClient: Route53RecoveryClusterClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension Route53RecoveryClusterClient: Route53RecoveryClusterClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53-recovery-cluster") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoutingControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension Route53RecoveryClusterClient: Route53RecoveryClusterClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -292,6 +294,7 @@ extension Route53RecoveryClusterClient: Route53RecoveryClusterClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53-recovery-cluster") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoutingControlState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -308,7 +311,7 @@ extension Route53RecoveryClusterClient: Route53RecoveryClusterClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -332,6 +335,7 @@ extension Route53RecoveryClusterClient: Route53RecoveryClusterClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53-recovery-cluster") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoutingControlStates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -348,7 +352,7 @@ extension Route53RecoveryClusterClient: Route53RecoveryClusterClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRoute53RecoveryCluster/models/Models.swift b/Sources/Services/AWSRoute53RecoveryCluster/models/Models.swift index 89ff77160a0..591da939418 100644 --- a/Sources/Services/AWSRoute53RecoveryCluster/models/Models.swift +++ b/Sources/Services/AWSRoute53RecoveryCluster/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient permissions to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -57,9 +56,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -77,7 +75,7 @@ extension ConflictException { } /// There was a conflict with this request. Try again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -133,9 +131,8 @@ extension ConflictExceptionBody: Swift.Decodable { extension EndpointTemporarilyUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EndpointTemporarilyUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -149,7 +146,7 @@ extension EndpointTemporarilyUnavailableException { } /// The cluster endpoint isn't available. Try another cluster endpoint. -public struct EndpointTemporarilyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointTemporarilyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -266,9 +263,8 @@ public enum GetRoutingControlStateOutputError: Swift.Error, Swift.Equatable { extension GetRoutingControlStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRoutingControlStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routingControlArn = output.routingControlArn self.routingControlName = output.routingControlName @@ -334,9 +330,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -350,7 +345,7 @@ extension InternalServerException { } /// There was an unexpected error during processing of the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -494,9 +489,8 @@ public enum ListRoutingControlsOutputError: Swift.Error, Swift.Equatable { extension ListRoutingControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoutingControlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routingControls = output.routingControls @@ -555,9 +549,8 @@ extension ListRoutingControlsOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -575,7 +568,7 @@ extension ResourceNotFoundException { } /// The request references a routing control or control panel that was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -737,9 +730,8 @@ extension Route53RecoveryClusterClientTypes { extension ServiceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.limitCode = output.limitCode self.message = output.message @@ -761,7 +753,7 @@ extension ServiceLimitExceededException { } /// The request can't update that many routing control states at the same time. Try again with fewer routing control states. -public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -837,9 +829,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -853,7 +844,7 @@ extension ThrottlingException { } /// The request was denied because of request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1200,9 +1191,8 @@ public struct UpdateRoutingControlStatesOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -1220,7 +1210,7 @@ extension ValidationException { } /// There was a validation error on the request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRoute53RecoveryControlConfig/Route53RecoveryControlConfigClient.swift b/Sources/Services/AWSRoute53RecoveryControlConfig/Route53RecoveryControlConfigClient.swift index 9d04a2103c1..3135c3e8370 100644 --- a/Sources/Services/AWSRoute53RecoveryControlConfig/Route53RecoveryControlConfigClient.swift +++ b/Sources/Services/AWSRoute53RecoveryControlConfig/Route53RecoveryControlConfigClient.swift @@ -208,6 +208,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createControlPanel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRoutingControl") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSafetyRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -360,7 +364,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +384,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -392,7 +397,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -412,6 +417,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteControlPanel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -424,7 +430,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -444,6 +450,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRoutingControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +463,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +483,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSafetyRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -488,7 +496,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -508,6 +516,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeControlPanel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -552,7 +562,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -572,6 +582,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRoutingControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSafetyRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -616,7 +628,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +648,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociatedRoute53HealthChecks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -649,7 +662,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -669,6 +682,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -682,7 +696,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -702,6 +716,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listControlPanels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -715,7 +730,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -735,6 +750,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRoutingControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +764,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +784,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSafetyRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -781,7 +798,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -801,6 +818,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -813,7 +831,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -833,6 +851,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -848,7 +867,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -868,6 +887,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -881,7 +901,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -901,6 +921,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateControlPanel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +937,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +957,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRoutingControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -951,7 +973,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -971,6 +993,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient .withRegion(value: config.region) .withSigningName(value: "route53-recovery-control-config") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSafetyRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -986,7 +1009,7 @@ extension Route53RecoveryControlConfigClient: Route53RecoveryControlConfigClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRoute53RecoveryControlConfig/models/Models.swift b/Sources/Services/AWSRoute53RecoveryControlConfig/models/Models.swift index 2100bb417b1..78d3945ff62 100644 --- a/Sources/Services/AWSRoute53RecoveryControlConfig/models/Models.swift +++ b/Sources/Services/AWSRoute53RecoveryControlConfig/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// 403 response - You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -351,9 +350,8 @@ extension Route53RecoveryControlConfigClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -367,7 +365,7 @@ extension ConflictException { } /// 409 response - ConflictException. You might be using a predefined variable. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -608,9 +606,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -781,9 +778,8 @@ public enum CreateControlPanelOutputError: Swift.Error, Swift.Equatable { extension CreateControlPanelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateControlPanelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlPanel = output.controlPanel } else { @@ -942,9 +938,8 @@ public enum CreateRoutingControlOutputError: Swift.Error, Swift.Equatable { extension CreateRoutingControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRoutingControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routingControl = output.routingControl } else { @@ -1103,9 +1098,8 @@ public enum CreateSafetyRuleOutputError: Swift.Error, Swift.Equatable { extension CreateSafetyRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSafetyRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assertionRule = output.assertionRule self.gatingRule = output.gatingRule @@ -1520,9 +1514,8 @@ public enum DescribeClusterOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cluster = output.cluster } else { @@ -1641,9 +1634,8 @@ public enum DescribeControlPanelOutputError: Swift.Error, Swift.Equatable { extension DescribeControlPanelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeControlPanelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlPanel = output.controlPanel } else { @@ -1762,9 +1754,8 @@ public enum DescribeRoutingControlOutputError: Swift.Error, Swift.Equatable { extension DescribeRoutingControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRoutingControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routingControl = output.routingControl } else { @@ -1858,9 +1849,8 @@ public enum DescribeSafetyRuleOutputError: Swift.Error, Swift.Equatable { extension DescribeSafetyRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSafetyRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assertionRule = output.assertionRule self.gatingRule = output.gatingRule @@ -2104,9 +2094,8 @@ extension Route53RecoveryControlConfigClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2120,7 +2109,7 @@ extension InternalServerException { } /// 500 response - InternalServiceError. Temporary service error. Retry the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2239,9 +2228,8 @@ public enum ListAssociatedRoute53HealthChecksOutputError: Swift.Error, Swift.Equ extension ListAssociatedRoute53HealthChecksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociatedRoute53HealthChecksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.healthCheckIds = output.healthCheckIds self.nextToken = output.nextToken @@ -2377,9 +2365,8 @@ public enum ListClustersOutputError: Swift.Error, Swift.Equatable { extension ListClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusters = output.clusters self.nextToken = output.nextToken @@ -2523,9 +2510,8 @@ public enum ListControlPanelsOutputError: Swift.Error, Swift.Equatable { extension ListControlPanelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListControlPanelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlPanels = output.controlPanels self.nextToken = output.nextToken @@ -2669,9 +2655,8 @@ public enum ListRoutingControlsOutputError: Swift.Error, Swift.Equatable { extension ListRoutingControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRoutingControlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.routingControls = output.routingControls @@ -2815,9 +2800,8 @@ public enum ListSafetyRulesOutputError: Swift.Error, Swift.Equatable { extension ListSafetyRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSafetyRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.safetyRules = output.safetyRules @@ -2932,9 +2916,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3189,9 +3172,8 @@ extension Route53RecoveryControlConfigClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3205,7 +3187,7 @@ extension ResourceNotFoundException { } /// 404 response - MalformedQueryString. The query string contains a syntax error or resource not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3446,9 +3428,8 @@ extension Route53RecoveryControlConfigClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3462,7 +3443,7 @@ extension ServiceQuotaExceededException { } /// 402 response - You attempted to create more resources than the service allows based on service quotas. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3640,9 +3621,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3656,7 +3636,7 @@ extension ThrottlingException { } /// 429 response - LimitExceededException or TooManyRequestsException. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3876,9 +3856,8 @@ public enum UpdateControlPanelOutputError: Swift.Error, Swift.Equatable { extension UpdateControlPanelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateControlPanelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controlPanel = output.controlPanel } else { @@ -4011,9 +3990,8 @@ public enum UpdateRoutingControlOutputError: Swift.Error, Swift.Equatable { extension UpdateRoutingControlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRoutingControlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.routingControl = output.routingControl } else { @@ -4138,9 +4116,8 @@ public enum UpdateSafetyRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateSafetyRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSafetyRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assertionRule = output.assertionRule self.gatingRule = output.gatingRule @@ -4189,9 +4166,8 @@ extension UpdateSafetyRuleOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4205,7 +4181,7 @@ extension ValidationException { } /// 400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you might have used parameters together incorrectly. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRoute53RecoveryReadiness/Route53RecoveryReadinessClient.swift b/Sources/Services/AWSRoute53RecoveryReadiness/Route53RecoveryReadinessClient.swift index 44365ff1f21..3d8008155c1 100644 --- a/Sources/Services/AWSRoute53RecoveryReadiness/Route53RecoveryReadinessClient.swift +++ b/Sources/Services/AWSRoute53RecoveryReadiness/Route53RecoveryReadinessClient.swift @@ -208,6 +208,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCell") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCrossAccountAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReadinessCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRecoveryGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourceSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCell") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -395,7 +401,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +421,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCrossAccountAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -427,7 +434,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -447,6 +454,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReadinessCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -459,7 +467,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -479,6 +487,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecoveryGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -491,7 +500,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -511,6 +520,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourceSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +533,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -543,6 +553,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getArchitectureRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +567,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +587,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCell") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -588,7 +600,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +620,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCellReadinessSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -621,7 +634,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -641,6 +654,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReadinessCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -653,7 +667,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -673,6 +687,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReadinessCheckResourceStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -686,7 +701,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -706,6 +721,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReadinessCheckStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -719,7 +735,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -739,6 +755,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecoveryGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -751,7 +768,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -771,6 +788,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecoveryGroupReadinessSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -784,7 +802,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -804,6 +822,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourceSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +835,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +855,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCells") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +869,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +889,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCrossAccountAuthorizations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -882,7 +903,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +923,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReadinessChecks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -915,7 +937,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -935,6 +957,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecoveryGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -948,7 +971,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -968,6 +991,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -981,7 +1005,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1001,6 +1025,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1014,7 +1039,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1034,6 +1059,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1046,7 +1072,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1066,6 +1092,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1081,7 +1108,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1101,6 +1128,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1114,7 +1142,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1134,6 +1162,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCell") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1149,7 +1178,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1169,6 +1198,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReadinessCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1184,7 +1214,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1204,6 +1234,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRecoveryGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1219,7 +1250,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1239,6 +1270,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol .withRegion(value: config.region) .withSigningName(value: "route53-recovery-readiness") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1254,7 +1286,7 @@ extension Route53RecoveryReadinessClient: Route53RecoveryReadinessClientProtocol operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRoute53RecoveryReadiness/models/Models.swift b/Sources/Services/AWSRoute53RecoveryReadiness/models/Models.swift index 09837a263ee..30c3e723660 100644 --- a/Sources/Services/AWSRoute53RecoveryReadiness/models/Models.swift +++ b/Sources/Services/AWSRoute53RecoveryReadiness/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// User does not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -171,9 +170,8 @@ extension Route53RecoveryReadinessClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -187,7 +185,7 @@ extension ConflictException { } /// Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -349,9 +347,8 @@ public enum CreateCellOutputError: Swift.Error, Swift.Equatable { extension CreateCellOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCellOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cellArn = output.cellArn self.cellName = output.cellName @@ -535,9 +532,8 @@ public enum CreateCrossAccountAuthorizationOutputError: Swift.Error, Swift.Equat extension CreateCrossAccountAuthorizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCrossAccountAuthorizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossAccountAuthorization = output.crossAccountAuthorization } else { @@ -691,9 +687,8 @@ public enum CreateReadinessCheckOutputError: Swift.Error, Swift.Equatable { extension CreateReadinessCheckOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReadinessCheckOutputResponseBody = try responseDecoder.decode(responseBody: data) self.readinessCheckArn = output.readinessCheckArn self.readinessCheckName = output.readinessCheckName @@ -897,9 +892,8 @@ public enum CreateRecoveryGroupOutputError: Swift.Error, Swift.Equatable { extension CreateRecoveryGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRecoveryGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cells = output.cells self.recoveryGroupArn = output.recoveryGroupArn @@ -1126,9 +1120,8 @@ public enum CreateResourceSetOutputError: Swift.Error, Swift.Equatable { extension CreateResourceSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceSetArn = output.resourceSetArn self.resourceSetName = output.resourceSetName @@ -1739,9 +1732,8 @@ public enum GetArchitectureRecommendationsOutputError: Swift.Error, Swift.Equata extension GetArchitectureRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetArchitectureRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastAuditTimestamp = output.lastAuditTimestamp self.nextToken = output.nextToken @@ -1870,9 +1862,8 @@ public enum GetCellOutputError: Swift.Error, Swift.Equatable { extension GetCellOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCellOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cellArn = output.cellArn self.cellName = output.cellName @@ -2064,9 +2055,8 @@ public enum GetCellReadinessSummaryOutputError: Swift.Error, Swift.Equatable { extension GetCellReadinessSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCellReadinessSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.readiness = output.readiness @@ -2195,9 +2185,8 @@ public enum GetReadinessCheckOutputError: Swift.Error, Swift.Equatable { extension GetReadinessCheckOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReadinessCheckOutputResponseBody = try responseDecoder.decode(responseBody: data) self.readinessCheckArn = output.readinessCheckArn self.readinessCheckName = output.readinessCheckName @@ -2369,9 +2358,8 @@ public enum GetReadinessCheckResourceStatusOutputError: Swift.Error, Swift.Equat extension GetReadinessCheckResourceStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReadinessCheckResourceStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.readiness = output.readiness @@ -2525,9 +2513,8 @@ public enum GetReadinessCheckStatusOutputError: Swift.Error, Swift.Equatable { extension GetReadinessCheckStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReadinessCheckStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messages = output.messages self.nextToken = output.nextToken @@ -2675,9 +2662,8 @@ public enum GetRecoveryGroupOutputError: Swift.Error, Swift.Equatable { extension GetRecoveryGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecoveryGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cells = output.cells self.recoveryGroupArn = output.recoveryGroupArn @@ -2850,9 +2836,8 @@ public enum GetRecoveryGroupReadinessSummaryOutputError: Swift.Error, Swift.Equa extension GetRecoveryGroupReadinessSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecoveryGroupReadinessSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.readiness = output.readiness @@ -2981,9 +2966,8 @@ public enum GetResourceSetOutputError: Swift.Error, Swift.Equatable { extension GetResourceSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourceSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceSetArn = output.resourceSetArn self.resourceSetName = output.resourceSetName @@ -3080,9 +3064,8 @@ extension GetResourceSetOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3096,7 +3079,7 @@ extension InternalServerException { } /// An unexpected error occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3208,9 +3191,8 @@ public enum ListCellsOutputError: Swift.Error, Swift.Equatable { extension ListCellsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCellsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cells = output.cells self.nextToken = output.nextToken @@ -3344,9 +3326,8 @@ public enum ListCrossAccountAuthorizationsOutputError: Swift.Error, Swift.Equata extension ListCrossAccountAuthorizationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCrossAccountAuthorizationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossAccountAuthorizations = output.crossAccountAuthorizations self.nextToken = output.nextToken @@ -3480,9 +3461,8 @@ public enum ListReadinessChecksOutputError: Swift.Error, Swift.Equatable { extension ListReadinessChecksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReadinessChecksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.readinessChecks = output.readinessChecks @@ -3616,9 +3596,8 @@ public enum ListRecoveryGroupsOutputError: Swift.Error, Swift.Equatable { extension ListRecoveryGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecoveryGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recoveryGroups = output.recoveryGroups @@ -3752,9 +3731,8 @@ public enum ListResourceSetsOutputError: Swift.Error, Swift.Equatable { extension ListResourceSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceSets = output.resourceSets @@ -3954,9 +3932,8 @@ public enum ListRulesOutputError: Swift.Error, Swift.Equatable { extension ListRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rules = output.rules @@ -4071,9 +4048,8 @@ public enum ListTagsForResourcesOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4604,9 +4580,8 @@ extension Route53RecoveryReadinessClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4620,7 +4595,7 @@ extension ResourceNotFoundException { } /// The requested resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5056,9 +5031,8 @@ extension Route53RecoveryReadinessClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5072,7 +5046,7 @@ extension ThrottlingException { } /// Request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5295,9 +5269,8 @@ public enum UpdateCellOutputError: Swift.Error, Swift.Equatable { extension UpdateCellOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCellOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cellArn = output.cellArn self.cellName = output.cellName @@ -5490,9 +5463,8 @@ public enum UpdateReadinessCheckOutputError: Swift.Error, Swift.Equatable { extension UpdateReadinessCheckOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateReadinessCheckOutputResponseBody = try responseDecoder.decode(responseBody: data) self.readinessCheckArn = output.readinessCheckArn self.readinessCheckName = output.readinessCheckName @@ -5669,9 +5641,8 @@ public enum UpdateRecoveryGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateRecoveryGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRecoveryGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cells = output.cells self.recoveryGroupArn = output.recoveryGroupArn @@ -5870,9 +5841,8 @@ public enum UpdateResourceSetOutputError: Swift.Error, Swift.Equatable { extension UpdateResourceSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResourceSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceSetArn = output.resourceSetArn self.resourceSetName = output.resourceSetName @@ -5969,9 +5939,8 @@ extension UpdateResourceSetOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5985,7 +5954,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSRoute53Resolver/Route53ResolverClient.swift b/Sources/Services/AWSRoute53Resolver/Route53ResolverClient.swift index ec2c715172c..33e594cf201 100644 --- a/Sources/Services/AWSRoute53Resolver/Route53ResolverClient.swift +++ b/Sources/Services/AWSRoute53Resolver/Route53ResolverClient.swift @@ -208,6 +208,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateFirewallRuleGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateResolverEndpointIpAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateResolverQueryLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateResolverRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFirewallDomainList") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -384,7 +389,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +409,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFirewallRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -428,7 +434,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -448,6 +454,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFirewallRuleGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -472,7 +479,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +503,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResolverEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +520,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +540,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResolverQueryLogConfig") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -556,7 +565,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +585,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResolverRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -592,7 +602,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -612,6 +622,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFirewallDomainList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +639,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +659,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFirewallRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +676,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +696,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFirewallRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +713,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -724,6 +737,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResolverEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -740,7 +754,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -760,6 +774,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResolverQueryLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -776,7 +791,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -796,6 +811,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResolverRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -812,7 +828,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -832,6 +848,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFirewallRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -848,7 +865,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -868,6 +885,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateResolverEndpointIpAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +902,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +926,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateResolverQueryLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +943,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +963,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateResolverRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +980,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +1000,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFirewallConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1017,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1037,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFirewallDomainList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1054,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1074,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFirewallRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1068,7 +1091,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1088,6 +1111,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFirewallRuleGroupAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1128,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1148,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFirewallRuleGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1140,7 +1165,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1185,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1202,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1222,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverDnssecConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1212,7 +1239,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1232,6 +1259,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1276,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1296,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverQueryLogConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1284,7 +1313,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1304,6 +1333,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverQueryLogConfigAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1320,7 +1350,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1370,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverQueryLogConfigPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1387,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1407,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1392,7 +1424,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1412,6 +1444,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverRuleAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1428,7 +1461,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1448,6 +1481,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResolverRulePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1464,7 +1498,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1490,6 +1524,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importFirewallDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1506,7 +1541,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1526,6 +1561,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFirewallConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1542,7 +1578,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1562,6 +1598,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFirewallDomainLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1578,7 +1615,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1598,6 +1635,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFirewallDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1614,7 +1652,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1634,6 +1672,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFirewallRuleGroupAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1650,7 +1689,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1670,6 +1709,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFirewallRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1686,7 +1726,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1706,6 +1746,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFirewallRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1722,7 +1763,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1742,6 +1783,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolverConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1758,7 +1800,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1778,6 +1820,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolverDnssecConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1794,7 +1837,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1814,6 +1857,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolverEndpointIpAddresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1830,7 +1874,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1850,6 +1894,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolverEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1866,7 +1911,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1886,6 +1931,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolverQueryLogConfigAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1902,7 +1948,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1922,6 +1968,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolverQueryLogConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1938,7 +1985,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1958,6 +2005,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolverRuleAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1974,7 +2022,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1994,6 +2042,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResolverRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2010,7 +2059,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2030,6 +2079,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2046,7 +2096,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2066,6 +2116,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFirewallRuleGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2082,7 +2133,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2102,6 +2153,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResolverQueryLogConfigPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2118,7 +2170,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2138,6 +2190,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResolverRulePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2154,7 +2207,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2174,6 +2227,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2190,7 +2244,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2210,6 +2264,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2226,7 +2281,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2246,6 +2301,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2262,7 +2318,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2282,6 +2338,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2298,7 +2355,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2318,6 +2375,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2334,7 +2392,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2354,6 +2412,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFirewallRuleGroupAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2370,7 +2429,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2390,6 +2449,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResolverConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2406,7 +2466,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2426,6 +2486,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResolverDnssecConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2442,7 +2503,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2462,6 +2523,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResolverEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2478,7 +2540,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2498,6 +2560,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "route53resolver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResolverRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2514,7 +2577,7 @@ extension Route53ResolverClient: Route53ResolverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSRoute53Resolver/models/Models.swift b/Sources/Services/AWSRoute53Resolver/models/Models.swift index 94b1bf43f0a..e67867bda59 100644 --- a/Sources/Services/AWSRoute53Resolver/models/Models.swift +++ b/Sources/Services/AWSRoute53Resolver/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The current account doesn't have the IAM permissions required to perform the specified Resolver operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -261,9 +260,8 @@ public enum AssociateFirewallRuleGroupOutputError: Swift.Error, Swift.Equatable extension AssociateFirewallRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateFirewallRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroupAssociation = output.firewallRuleGroupAssociation } else { @@ -397,9 +395,8 @@ public enum AssociateResolverEndpointIpAddressOutputError: Swift.Error, Swift.Eq extension AssociateResolverEndpointIpAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateResolverEndpointIpAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverEndpoint = output.resolverEndpoint } else { @@ -535,9 +532,8 @@ public enum AssociateResolverQueryLogConfigOutputError: Swift.Error, Swift.Equat extension AssociateResolverQueryLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateResolverQueryLogConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverQueryLogConfigAssociation = output.resolverQueryLogConfigAssociation } else { @@ -685,9 +681,8 @@ public enum AssociateResolverRuleOutputError: Swift.Error, Swift.Equatable { extension AssociateResolverRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateResolverRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverRuleAssociation = output.resolverRuleAssociation } else { @@ -825,9 +820,8 @@ extension Route53ResolverClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -841,7 +835,7 @@ extension ConflictException { } /// The requested state transition isn't valid. For example, you can't delete a firewall domain list if it is in the process of being deleted, or you can't import domains into a domain list that is in the process of being deleted. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -992,9 +986,8 @@ public enum CreateFirewallDomainListOutputError: Swift.Error, Swift.Equatable { extension CreateFirewallDomainListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFirewallDomainListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallDomainList = output.firewallDomainList } else { @@ -1148,9 +1141,8 @@ public enum CreateFirewallRuleGroupOutputError: Swift.Error, Swift.Equatable { extension CreateFirewallRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFirewallRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroup = output.firewallRuleGroup } else { @@ -1397,9 +1389,8 @@ public enum CreateFirewallRuleOutputError: Swift.Error, Swift.Equatable { extension CreateFirewallRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFirewallRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRule = output.firewallRule } else { @@ -1635,9 +1626,8 @@ public enum CreateResolverEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateResolverEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResolverEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverEndpoint = output.resolverEndpoint } else { @@ -1816,9 +1806,8 @@ public enum CreateResolverQueryLogConfigOutputError: Swift.Error, Swift.Equatabl extension CreateResolverQueryLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResolverQueryLogConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverQueryLogConfig = output.resolverQueryLogConfig } else { @@ -2039,9 +2028,8 @@ public enum CreateResolverRuleOutputError: Swift.Error, Swift.Equatable { extension CreateResolverRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResolverRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverRule = output.resolverRule } else { @@ -2158,9 +2146,8 @@ public enum DeleteFirewallDomainListOutputError: Swift.Error, Swift.Equatable { extension DeleteFirewallDomainListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFirewallDomainListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallDomainList = output.firewallDomainList } else { @@ -2279,9 +2266,8 @@ public enum DeleteFirewallRuleGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteFirewallRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFirewallRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroup = output.firewallRuleGroup } else { @@ -2409,9 +2395,8 @@ public enum DeleteFirewallRuleOutputError: Swift.Error, Swift.Equatable { extension DeleteFirewallRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFirewallRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRule = output.firewallRule } else { @@ -2528,9 +2513,8 @@ public enum DeleteResolverEndpointOutputError: Swift.Error, Swift.Equatable { extension DeleteResolverEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResolverEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverEndpoint = output.resolverEndpoint } else { @@ -2649,9 +2633,8 @@ public enum DeleteResolverQueryLogConfigOutputError: Swift.Error, Swift.Equatabl extension DeleteResolverQueryLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResolverQueryLogConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverQueryLogConfig = output.resolverQueryLogConfig } else { @@ -2768,9 +2751,8 @@ public enum DeleteResolverRuleOutputError: Swift.Error, Swift.Equatable { extension DeleteResolverRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResolverRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverRule = output.resolverRule } else { @@ -2889,9 +2871,8 @@ public enum DisassociateFirewallRuleGroupOutputError: Swift.Error, Swift.Equatab extension DisassociateFirewallRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateFirewallRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroupAssociation = output.firewallRuleGroupAssociation } else { @@ -3023,9 +3004,8 @@ public enum DisassociateResolverEndpointIpAddressOutputError: Swift.Error, Swift extension DisassociateResolverEndpointIpAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateResolverEndpointIpAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverEndpoint = output.resolverEndpoint } else { @@ -3157,9 +3137,8 @@ public enum DisassociateResolverQueryLogConfigOutputError: Swift.Error, Swift.Eq extension DisassociateResolverQueryLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateResolverQueryLogConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverQueryLogConfigAssociation = output.resolverQueryLogConfigAssociation } else { @@ -3287,9 +3266,8 @@ public enum DisassociateResolverRuleOutputError: Swift.Error, Swift.Equatable { extension DisassociateResolverRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateResolverRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverRuleAssociation = output.resolverRuleAssociation } else { @@ -4566,9 +4544,8 @@ public enum GetFirewallConfigOutputError: Swift.Error, Swift.Equatable { extension GetFirewallConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFirewallConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallConfig = output.firewallConfig } else { @@ -4683,9 +4660,8 @@ public enum GetFirewallDomainListOutputError: Swift.Error, Swift.Equatable { extension GetFirewallDomainListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFirewallDomainListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallDomainList = output.firewallDomainList } else { @@ -4800,9 +4776,8 @@ public enum GetFirewallRuleGroupAssociationOutputError: Swift.Error, Swift.Equat extension GetFirewallRuleGroupAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFirewallRuleGroupAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroupAssociation = output.firewallRuleGroupAssociation } else { @@ -4917,9 +4892,8 @@ public enum GetFirewallRuleGroupOutputError: Swift.Error, Swift.Equatable { extension GetFirewallRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFirewallRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroup = output.firewallRuleGroup } else { @@ -5036,9 +5010,8 @@ public enum GetFirewallRuleGroupPolicyOutputError: Swift.Error, Swift.Equatable extension GetFirewallRuleGroupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFirewallRuleGroupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroupPolicy = output.firewallRuleGroupPolicy } else { @@ -5157,9 +5130,8 @@ public enum GetResolverConfigOutputError: Swift.Error, Swift.Equatable { extension GetResolverConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverConfig = output.resolverConfig } else { @@ -5278,9 +5250,8 @@ public enum GetResolverDnssecConfigOutputError: Swift.Error, Swift.Equatable { extension GetResolverDnssecConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverDnssecConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverDNSSECConfig = output.resolverDNSSECConfig } else { @@ -5395,9 +5366,8 @@ public enum GetResolverEndpointOutputError: Swift.Error, Swift.Equatable { extension GetResolverEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverEndpoint = output.resolverEndpoint } else { @@ -5516,9 +5486,8 @@ public enum GetResolverQueryLogConfigAssociationOutputError: Swift.Error, Swift. extension GetResolverQueryLogConfigAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverQueryLogConfigAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverQueryLogConfigAssociation = output.resolverQueryLogConfigAssociation } else { @@ -5637,9 +5606,8 @@ public enum GetResolverQueryLogConfigOutputError: Swift.Error, Swift.Equatable { extension GetResolverQueryLogConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverQueryLogConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverQueryLogConfig = output.resolverQueryLogConfig } else { @@ -5756,9 +5724,8 @@ public enum GetResolverQueryLogConfigPolicyOutputError: Swift.Error, Swift.Equat extension GetResolverQueryLogConfigPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverQueryLogConfigPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverQueryLogConfigPolicy = output.resolverQueryLogConfigPolicy } else { @@ -5873,9 +5840,8 @@ public enum GetResolverRuleAssociationOutputError: Swift.Error, Swift.Equatable extension GetResolverRuleAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverRuleAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverRuleAssociation = output.resolverRuleAssociation } else { @@ -5990,9 +5956,8 @@ public enum GetResolverRuleOutputError: Swift.Error, Swift.Equatable { extension GetResolverRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverRule = output.resolverRule } else { @@ -6107,9 +6072,8 @@ public enum GetResolverRulePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResolverRulePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResolverRulePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverRulePolicy = output.resolverRulePolicy } else { @@ -6256,9 +6220,8 @@ public enum ImportFirewallDomainsOutputError: Swift.Error, Swift.Equatable { extension ImportFirewallDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportFirewallDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -6327,9 +6290,8 @@ extension ImportFirewallDomainsOutputResponseBody: Swift.Decodable { extension InternalServiceErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6343,7 +6305,7 @@ extension InternalServiceErrorException { } /// We encountered an unknown error. Try again in a few minutes. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6379,9 +6341,8 @@ extension InternalServiceErrorExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6395,7 +6356,7 @@ extension InvalidNextTokenException { } /// The value that you specified for NextToken in a List request isn't valid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6431,9 +6392,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldName = output.fieldName self.message = output.message @@ -6449,7 +6409,7 @@ extension InvalidParameterException { } /// One or more parameters in this request are not valid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6494,9 +6454,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidPolicyDocument { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPolicyDocumentBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6510,7 +6469,7 @@ extension InvalidPolicyDocument { } /// The specified Resolver rule policy is invalid. -public struct InvalidPolicyDocument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPolicyDocument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6546,9 +6505,8 @@ extension InvalidPolicyDocumentBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6562,7 +6520,7 @@ extension InvalidRequestException { } /// The request is invalid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6598,9 +6556,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidTagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6614,7 +6571,7 @@ extension InvalidTagException { } /// The specified tag is invalid. -public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6935,9 +6892,8 @@ extension Route53ResolverClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -6953,7 +6909,7 @@ extension LimitExceededException { } /// The request caused one or more limits to be exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7084,9 +7040,8 @@ public enum ListFirewallConfigsOutputError: Swift.Error, Swift.Equatable { extension ListFirewallConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFirewallConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallConfigs = output.firewallConfigs self.nextToken = output.nextToken @@ -7231,9 +7186,8 @@ public enum ListFirewallDomainListsOutputError: Swift.Error, Swift.Equatable { extension ListFirewallDomainListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFirewallDomainListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallDomainLists = output.firewallDomainLists self.nextToken = output.nextToken @@ -7393,9 +7347,8 @@ public enum ListFirewallDomainsOutputError: Swift.Error, Swift.Equatable { extension ListFirewallDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFirewallDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domains = output.domains self.nextToken = output.nextToken @@ -7588,9 +7541,8 @@ public enum ListFirewallRuleGroupAssociationsOutputError: Swift.Error, Swift.Equ extension ListFirewallRuleGroupAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFirewallRuleGroupAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroupAssociations = output.firewallRuleGroupAssociations self.nextToken = output.nextToken @@ -7735,9 +7687,8 @@ public enum ListFirewallRuleGroupsOutputError: Swift.Error, Swift.Equatable { extension ListFirewallRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFirewallRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroups = output.firewallRuleGroups self.nextToken = output.nextToken @@ -7927,9 +7878,8 @@ public enum ListFirewallRulesOutputError: Swift.Error, Swift.Equatable { extension ListFirewallRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFirewallRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRules = output.firewallRules self.nextToken = output.nextToken @@ -8080,9 +8030,8 @@ public enum ListResolverConfigsOutputError: Swift.Error, Swift.Equatable { extension ListResolverConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolverConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resolverConfigs = output.resolverConfigs @@ -8255,9 +8204,8 @@ public enum ListResolverDnssecConfigsOutputError: Swift.Error, Swift.Equatable { extension ListResolverDnssecConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolverDnssecConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resolverDnssecConfigs = output.resolverDnssecConfigs @@ -8417,9 +8365,8 @@ public enum ListResolverEndpointIpAddressesOutputError: Swift.Error, Swift.Equat extension ListResolverEndpointIpAddressesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolverEndpointIpAddressesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipAddresses = output.ipAddresses self.maxResults = output.maxResults @@ -8600,9 +8547,8 @@ public enum ListResolverEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListResolverEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolverEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.maxResults = output.maxResults self.nextToken = output.nextToken @@ -8840,9 +8786,8 @@ public enum ListResolverQueryLogConfigAssociationsOutputError: Swift.Error, Swif extension ListResolverQueryLogConfigAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolverQueryLogConfigAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resolverQueryLogConfigAssociations = output.resolverQueryLogConfigAssociations @@ -9091,9 +9036,8 @@ public enum ListResolverQueryLogConfigsOutputError: Swift.Error, Swift.Equatable extension ListResolverQueryLogConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolverQueryLogConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resolverQueryLogConfigs = output.resolverQueryLogConfigs @@ -9284,9 +9228,8 @@ public enum ListResolverRuleAssociationsOutputError: Swift.Error, Swift.Equatabl extension ListResolverRuleAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolverRuleAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.maxResults = output.maxResults self.nextToken = output.nextToken @@ -9467,9 +9410,8 @@ public enum ListResolverRulesOutputError: Swift.Error, Swift.Equatable { extension ListResolverRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResolverRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.maxResults = output.maxResults self.nextToken = output.nextToken @@ -9641,9 +9583,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -9824,9 +9765,8 @@ public enum PutFirewallRuleGroupPolicyOutputError: Swift.Error, Swift.Equatable extension PutFirewallRuleGroupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutFirewallRuleGroupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -9969,9 +9909,8 @@ public enum PutResolverQueryLogConfigPolicyOutputError: Swift.Error, Swift.Equat extension PutResolverQueryLogConfigPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResolverQueryLogConfigPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -10115,9 +10054,8 @@ public enum PutResolverRulePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResolverRulePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResolverRulePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.returnValue = output.returnValue } else { @@ -11464,9 +11402,8 @@ extension Route53ResolverClientTypes { extension ResourceExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -11482,7 +11419,7 @@ extension ResourceExistsException { } /// The resource that you tried to create already exists. -public struct ResourceExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11526,9 +11463,8 @@ extension ResourceExistsExceptionBody: Swift.Decodable { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -11544,7 +11480,7 @@ extension ResourceInUseException { } /// The resource that you tried to update or delete is currently in use. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11588,9 +11524,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -11606,7 +11541,7 @@ extension ResourceNotFoundException { } /// The specified resource doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11650,9 +11585,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -11668,7 +11602,7 @@ extension ResourceUnavailableException { } /// The specified resource isn't available. -public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12045,9 +11979,8 @@ extension Route53ResolverClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12061,7 +11994,7 @@ extension ThrottlingException { } /// The request was throttled. Try again in a few minutes. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12097,9 +12030,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension UnknownResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnknownResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12113,7 +12045,7 @@ extension UnknownResourceException { } /// The specified resource doesn't exist. -public struct UnknownResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnknownResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12372,9 +12304,8 @@ public enum UpdateFirewallConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateFirewallConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallConfig = output.firewallConfig } else { @@ -12545,9 +12476,8 @@ public enum UpdateFirewallDomainsOutputError: Swift.Error, Swift.Equatable { extension UpdateFirewallDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.name = output.name @@ -12732,9 +12662,8 @@ public enum UpdateFirewallRuleGroupAssociationOutputError: Swift.Error, Swift.Eq extension UpdateFirewallRuleGroupAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallRuleGroupAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRuleGroupAssociation = output.firewallRuleGroupAssociation } else { @@ -12962,9 +12891,8 @@ public enum UpdateFirewallRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateFirewallRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFirewallRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firewallRule = output.firewallRule } else { @@ -13149,9 +13077,8 @@ public enum UpdateResolverConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateResolverConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResolverConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverConfig = output.resolverConfig } else { @@ -13283,9 +13210,8 @@ public enum UpdateResolverDnssecConfigOutputError: Swift.Error, Swift.Equatable extension UpdateResolverDnssecConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResolverDnssecConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverDNSSECConfig = output.resolverDNSSECConfig } else { @@ -13450,9 +13376,8 @@ public enum UpdateResolverEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateResolverEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResolverEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverEndpoint = output.resolverEndpoint } else { @@ -13586,9 +13511,8 @@ public enum UpdateResolverRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateResolverRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateResolverRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resolverRule = output.resolverRule } else { @@ -13662,9 +13586,8 @@ extension Route53ResolverClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13678,7 +13601,7 @@ extension ValidationException { } /// You have provided an invalid command. Supported values are ADD, REMOVE, or REPLACE a domain. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSS3/S3Client.swift b/Sources/Services/AWSS3/S3Client.swift index b7e3c6ac08c..bdc6d1f02f0 100644 --- a/Sources/Services/AWSS3/S3Client.swift +++ b/Sources/Services/AWSS3/S3Client.swift @@ -255,6 +255,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "abortMultipartUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -269,7 +270,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -338,6 +339,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "completeMultipartUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -355,7 +357,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -407,6 +409,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -421,7 +424,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -489,6 +492,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -505,7 +509,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -615,6 +619,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMultipartUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +634,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -653,6 +658,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -666,7 +672,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +698,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketAnalyticsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -706,7 +713,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -730,6 +737,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketCors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +752,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +776,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketEncryption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -782,7 +791,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -808,6 +817,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketIntelligentTieringConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -821,7 +831,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -847,6 +857,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketInventoryConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -861,7 +872,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -885,6 +896,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketLifecycle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -899,7 +911,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -927,6 +939,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketMetricsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -941,7 +954,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -965,6 +978,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketOwnershipControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -979,7 +993,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1003,6 +1017,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1017,7 +1032,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1041,6 +1056,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1055,7 +1071,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1095,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1093,7 +1110,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1117,6 +1134,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketWebsite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1131,7 +1149,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1153,6 +1171,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1167,7 +1186,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1191,6 +1210,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteObjectTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1205,7 +1225,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1235,6 +1255,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteObjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1253,7 +1274,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1281,6 +1302,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePublicAccessBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1295,7 +1317,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1317,6 +1339,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketAccelerateConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1331,7 +1354,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1353,6 +1376,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketAcl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1367,7 +1391,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1393,6 +1417,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketAnalyticsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1407,7 +1432,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1431,6 +1456,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketCors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1445,7 +1471,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1469,6 +1495,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketEncryption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1483,7 +1510,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1509,6 +1536,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketIntelligentTieringConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1522,7 +1550,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1548,6 +1576,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketInventoryConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1562,7 +1591,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1602,6 +1631,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketLifecycleConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1616,7 +1646,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1640,6 +1670,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketLocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1654,7 +1685,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1678,6 +1709,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketLogging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1692,7 +1724,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1752,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketMetricsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1734,7 +1767,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1789,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1770,7 +1804,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1794,6 +1828,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketOwnershipControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1843,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1830,6 +1865,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1880,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1908,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketPolicyStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1886,7 +1923,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1910,6 +1947,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1924,7 +1962,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1946,6 +1984,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketRequestPayment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1960,7 +1999,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1994,6 +2033,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2008,7 +2048,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2034,6 +2074,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketVersioning") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2048,7 +2089,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2072,6 +2113,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketWebsite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2086,7 +2128,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2148,6 +2190,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2162,7 +2205,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2190,6 +2233,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectAcl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2204,7 +2248,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2284,6 +2328,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2298,7 +2343,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2320,6 +2365,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectLegalHold") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2334,7 +2380,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2356,6 +2402,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectLockConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2370,7 +2417,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2392,6 +2439,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectRetention") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2406,7 +2454,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2432,6 +2480,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2446,7 +2495,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2468,6 +2517,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObjectTorrent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2482,7 +2532,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2510,6 +2560,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPublicAccessBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2524,7 +2575,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2544,6 +2595,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "headBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2557,7 +2609,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2625,6 +2677,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "headObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2639,7 +2692,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2665,6 +2718,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBucketAnalyticsConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2679,7 +2733,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2705,6 +2759,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBucketIntelligentTieringConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2718,7 +2773,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2744,6 +2799,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBucketInventoryConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2758,7 +2814,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2784,6 +2840,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBucketMetricsConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2798,7 +2855,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2818,6 +2875,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBuckets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2830,7 +2888,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2860,6 +2918,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMultipartUploads") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2874,7 +2933,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2902,6 +2961,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjectVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2916,7 +2976,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2946,6 +3006,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2960,7 +3021,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2986,6 +3047,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listObjectsV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3000,7 +3062,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3032,6 +3094,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listParts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3046,7 +3109,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3077,6 +3140,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketAccelerateConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3094,7 +3158,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3190,6 +3254,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketAcl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3208,7 +3273,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3267,6 +3332,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketAnalyticsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3284,7 +3350,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3319,6 +3385,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketCors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3337,7 +3404,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3361,6 +3428,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketEncryption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3379,7 +3447,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3432,6 +3500,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketIntelligentTieringConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3448,7 +3517,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3504,6 +3573,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketInventoryConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3521,7 +3591,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3565,6 +3635,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketLifecycleConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3583,7 +3654,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3620,6 +3691,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketLogging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3638,7 +3710,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3673,6 +3745,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketMetricsConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3690,7 +3763,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3712,6 +3785,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3729,7 +3803,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3753,6 +3827,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketOwnershipControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3771,7 +3846,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3795,6 +3870,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3813,7 +3889,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3837,6 +3913,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3855,7 +3932,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3879,6 +3956,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketRequestPayment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3897,7 +3975,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3952,6 +4030,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3970,7 +4049,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3996,6 +4075,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketVersioning") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4014,7 +4094,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4080,6 +4160,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketWebsite") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4098,7 +4179,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4133,6 +4214,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4150,7 +4232,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4237,6 +4319,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObjectAcl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4255,7 +4338,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4275,6 +4358,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObjectLegalHold") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4293,7 +4377,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4319,6 +4403,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObjectLockConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4337,7 +4422,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4357,6 +4442,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObjectRetention") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4375,7 +4461,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4434,6 +4520,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObjectTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4452,7 +4539,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4480,6 +4567,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPublicAccessBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4498,7 +4586,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4612,6 +4700,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4629,7 +4718,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4673,6 +4762,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "selectObjectContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4690,7 +4780,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4744,6 +4834,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadPart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4761,7 +4852,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4834,6 +4925,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadPartCopy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4848,7 +4940,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4868,6 +4960,7 @@ extension S3Client: S3ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "writeGetObjectResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "\(input.requestRoute!).")) @@ -4885,7 +4978,7 @@ extension S3Client: S3ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSS3/models/Models.swift b/Sources/Services/AWSS3/models/Models.swift index 774d68c28bc..3b3adf64b2c 100644 --- a/Sources/Services/AWSS3/models/Models.swift +++ b/Sources/Services/AWSS3/models/Models.swift @@ -888,7 +888,7 @@ extension BucketAlreadyExists { } /// The requested bucket name is not available. The bucket namespace is shared by all users of the system. Select a different name and try again. -public struct BucketAlreadyExists: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct BucketAlreadyExists: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -912,7 +912,7 @@ extension BucketAlreadyOwnedByYou { } /// The bucket you tried to create already exists, and you own it. Amazon S3 returns this error in all Amazon Web Services Regions except in the North Virginia Region. For legacy compatibility, if you re-create an existing bucket that you already own in the North Virginia Region, Amazon S3 returns 200 OK and resets the bucket access control lists (ACLs). -public struct BucketAlreadyOwnedByYou: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct BucketAlreadyOwnedByYou: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1972,15 +1972,15 @@ public struct CompleteMultipartUploadInputBodyMiddleware: ClientRuntime.Middlewa let encoder = context.getEncoder() if let multipartUpload = input.operationInput.multipartUpload { let xmlEncoder = encoder as! XMLEncoder - let multipartUploaddata = try xmlEncoder.encode(multipartUpload, withRootKey: "CompleteMultipartUpload") - let multipartUploadbody = ClientRuntime.HttpBody.data(multipartUploaddata) - input.builder.withBody(multipartUploadbody) + let multipartUploadData = try xmlEncoder.encode(multipartUpload, withRootKey: "CompleteMultipartUpload") + let multipartUploadBody = ClientRuntime.HttpBody.data(multipartUploadData) + input.builder.withBody(multipartUploadBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let multipartUploaddata = "{}".data(using: .utf8)! - let multipartUploadbody = ClientRuntime.HttpBody.data(multipartUploaddata) - input.builder.withBody(multipartUploadbody) + let multipartUploadData = "{}".data(using: .utf8)! + let multipartUploadBody = ClientRuntime.HttpBody.data(multipartUploadData) + input.builder.withBody(multipartUploadBody) } } } catch let err { @@ -2230,9 +2230,8 @@ extension CompleteMultipartUploadOutputResponse: ClientRuntime.HttpResponseBindi } else { self.versionId = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CompleteMultipartUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucket = output.bucket self.checksumCRC32 = output.checksumCRC32 @@ -3082,13 +3081,9 @@ extension CopyObjectOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.versionId = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.CopyObjectResult = try responseDecoder.decode(responseBody: data) - self.copyObjectResult = output - } else { - self.copyObjectResult = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.CopyObjectResult = try responseDecoder.decode(responseBody: data) + self.copyObjectResult = output } else { self.copyObjectResult = nil } @@ -3436,15 +3431,15 @@ public struct CreateBucketInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let createBucketConfiguration = input.operationInput.createBucketConfiguration { let xmlEncoder = encoder as! XMLEncoder - let createBucketConfigurationdata = try xmlEncoder.encode(createBucketConfiguration, withRootKey: "CreateBucketConfiguration") - let createBucketConfigurationbody = ClientRuntime.HttpBody.data(createBucketConfigurationdata) - input.builder.withBody(createBucketConfigurationbody) + let createBucketConfigurationData = try xmlEncoder.encode(createBucketConfiguration, withRootKey: "CreateBucketConfiguration") + let createBucketConfigurationBody = ClientRuntime.HttpBody.data(createBucketConfigurationData) + input.builder.withBody(createBucketConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let createBucketConfigurationdata = "{}".data(using: .utf8)! - let createBucketConfigurationbody = ClientRuntime.HttpBody.data(createBucketConfigurationdata) - input.builder.withBody(createBucketConfigurationbody) + let createBucketConfigurationData = "{}".data(using: .utf8)! + let createBucketConfigurationBody = ClientRuntime.HttpBody.data(createBucketConfigurationData) + input.builder.withBody(createBucketConfigurationBody) } } } catch let err { @@ -3982,9 +3977,8 @@ extension CreateMultipartUploadOutputResponse: ClientRuntime.HttpResponseBinding } else { self.serverSideEncryption = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMultipartUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucket = output.bucket self.key = output.key @@ -5872,15 +5866,15 @@ public struct DeleteObjectsInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let delete = input.operationInput.delete { let xmlEncoder = encoder as! XMLEncoder - let deletedata = try xmlEncoder.encode(delete, withRootKey: "Delete") - let deletebody = ClientRuntime.HttpBody.data(deletedata) - input.builder.withBody(deletebody) + let deleteData = try xmlEncoder.encode(delete, withRootKey: "Delete") + let deleteBody = ClientRuntime.HttpBody.data(deleteData) + input.builder.withBody(deleteBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let deletedata = "{}".data(using: .utf8)! - let deletebody = ClientRuntime.HttpBody.data(deletedata) - input.builder.withBody(deletebody) + let deleteData = "{}".data(using: .utf8)! + let deleteBody = ClientRuntime.HttpBody.data(deleteData) + input.builder.withBody(deleteBody) } } } catch let err { @@ -6050,9 +6044,8 @@ extension DeleteObjectsOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.requestCharged = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteObjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deleted = output.deleted self.errors = output.errors @@ -8265,9 +8258,8 @@ public enum GetBucketAccelerateConfigurationOutputError: Swift.Error, Swift.Equa extension GetBucketAccelerateConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketAccelerateConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -8384,9 +8376,8 @@ public enum GetBucketAclOutputError: Swift.Error, Swift.Equatable { extension GetBucketAclOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketAclOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grants = output.grants self.owner = output.owner @@ -8542,13 +8533,9 @@ public enum GetBucketAnalyticsConfigurationOutputError: Swift.Error, Swift.Equat extension GetBucketAnalyticsConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.AnalyticsConfiguration = try responseDecoder.decode(responseBody: data) - self.analyticsConfiguration = output - } else { - self.analyticsConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.AnalyticsConfiguration = try responseDecoder.decode(responseBody: data) + self.analyticsConfiguration = output } else { self.analyticsConfiguration = nil } @@ -8663,9 +8650,8 @@ public enum GetBucketCorsOutputError: Swift.Error, Swift.Equatable { extension GetBucketCorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketCorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.corsRules = output.corsRules } else { @@ -8798,13 +8784,9 @@ public enum GetBucketEncryptionOutputError: Swift.Error, Swift.Equatable { extension GetBucketEncryptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.ServerSideEncryptionConfiguration = try responseDecoder.decode(responseBody: data) - self.serverSideEncryptionConfiguration = output - } else { - self.serverSideEncryptionConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.ServerSideEncryptionConfiguration = try responseDecoder.decode(responseBody: data) + self.serverSideEncryptionConfiguration = output } else { self.serverSideEncryptionConfiguration = nil } @@ -8917,13 +8899,9 @@ public enum GetBucketIntelligentTieringConfigurationOutputError: Swift.Error, Sw extension GetBucketIntelligentTieringConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.IntelligentTieringConfiguration = try responseDecoder.decode(responseBody: data) - self.intelligentTieringConfiguration = output - } else { - self.intelligentTieringConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.IntelligentTieringConfiguration = try responseDecoder.decode(responseBody: data) + self.intelligentTieringConfiguration = output } else { self.intelligentTieringConfiguration = nil } @@ -9050,13 +9028,9 @@ public enum GetBucketInventoryConfigurationOutputError: Swift.Error, Swift.Equat extension GetBucketInventoryConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.InventoryConfiguration = try responseDecoder.decode(responseBody: data) - self.inventoryConfiguration = output - } else { - self.inventoryConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.InventoryConfiguration = try responseDecoder.decode(responseBody: data) + self.inventoryConfiguration = output } else { self.inventoryConfiguration = nil } @@ -9171,9 +9145,8 @@ public enum GetBucketLifecycleConfigurationOutputError: Swift.Error, Swift.Equat extension GetBucketLifecycleConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketLifecycleConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rules = output.rules } else { @@ -9306,9 +9279,8 @@ public enum GetBucketLocationOutputError: Swift.Error, Swift.Equatable { extension GetBucketLocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketLocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.locationConstraint = output.locationConstraint } else { @@ -9425,9 +9397,8 @@ public enum GetBucketLoggingOutputError: Swift.Error, Swift.Equatable { extension GetBucketLoggingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketLoggingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingEnabled = output.loggingEnabled } else { @@ -9556,13 +9527,9 @@ public enum GetBucketMetricsConfigurationOutputError: Swift.Error, Swift.Equatab extension GetBucketMetricsConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.MetricsConfiguration = try responseDecoder.decode(responseBody: data) - self.metricsConfiguration = output - } else { - self.metricsConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.MetricsConfiguration = try responseDecoder.decode(responseBody: data) + self.metricsConfiguration = output } else { self.metricsConfiguration = nil } @@ -9677,9 +9644,8 @@ public enum GetBucketNotificationConfigurationOutputError: Swift.Error, Swift.Eq extension GetBucketNotificationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketNotificationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventBridgeConfiguration = output.eventBridgeConfiguration self.lambdaFunctionConfigurations = output.lambdaFunctionConfigurations @@ -9875,13 +9841,9 @@ public enum GetBucketOwnershipControlsOutputError: Swift.Error, Swift.Equatable extension GetBucketOwnershipControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.OwnershipControls = try responseDecoder.decode(responseBody: data) - self.ownershipControls = output - } else { - self.ownershipControls = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.OwnershipControls = try responseDecoder.decode(responseBody: data) + self.ownershipControls = output } else { self.ownershipControls = nil } @@ -9996,12 +9958,8 @@ public enum GetBucketPolicyOutputError: Swift.Error, Swift.Equatable { extension GetBucketPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let output = Swift.String(data: data, encoding: .utf8) { - self.policy = output - } else { - self.policy = nil - } + if let data = try httpResponse.body.toData(), let output = Swift.String(data: data, encoding: .utf8) { + self.policy = output } else { self.policy = nil } @@ -10116,13 +10074,9 @@ public enum GetBucketPolicyStatusOutputError: Swift.Error, Swift.Equatable { extension GetBucketPolicyStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.PolicyStatus = try responseDecoder.decode(responseBody: data) - self.policyStatus = output - } else { - self.policyStatus = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.PolicyStatus = try responseDecoder.decode(responseBody: data) + self.policyStatus = output } else { self.policyStatus = nil } @@ -10237,13 +10191,9 @@ public enum GetBucketReplicationOutputError: Swift.Error, Swift.Equatable { extension GetBucketReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.ReplicationConfiguration = try responseDecoder.decode(responseBody: data) - self.replicationConfiguration = output - } else { - self.replicationConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.ReplicationConfiguration = try responseDecoder.decode(responseBody: data) + self.replicationConfiguration = output } else { self.replicationConfiguration = nil } @@ -10358,9 +10308,8 @@ public enum GetBucketRequestPaymentOutputError: Swift.Error, Swift.Equatable { extension GetBucketRequestPaymentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketRequestPaymentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.payer = output.payer } else { @@ -10477,9 +10426,8 @@ public enum GetBucketTaggingOutputError: Swift.Error, Swift.Equatable { extension GetBucketTaggingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketTaggingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagSet = output.tagSet } else { @@ -10614,9 +10562,8 @@ public enum GetBucketVersioningOutputError: Swift.Error, Swift.Equatable { extension GetBucketVersioningOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketVersioningOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mfaDelete = output.mfaDelete self.status = output.status @@ -10743,9 +10690,8 @@ public enum GetBucketWebsiteOutputError: Swift.Error, Swift.Equatable { extension GetBucketWebsiteOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketWebsiteOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errorDocument = output.errorDocument self.indexDocument = output.indexDocument @@ -10939,9 +10885,8 @@ extension GetObjectAclOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.requestCharged = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetObjectAclOutputResponseBody = try responseDecoder.decode(responseBody: data) self.grants = output.grants self.owner = output.owner @@ -11184,9 +11129,8 @@ extension GetObjectAttributesOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.versionId = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetObjectAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checksum = output.checksum self.eTag = output.eTag @@ -11475,6 +11419,7 @@ extension GetObjectInput { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11486,7 +11431,7 @@ extension GetObjectInput { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build(), let presignedURL = builtRequest.endpoint.url else { return nil } @@ -11519,6 +11464,7 @@ extension GetObjectInput { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11533,7 +11479,7 @@ extension GetObjectInput { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } @@ -11887,13 +11833,9 @@ public enum GetObjectLegalHoldOutputError: Swift.Error, Swift.Equatable { extension GetObjectLegalHoldOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.ObjectLockLegalHold = try responseDecoder.decode(responseBody: data) - self.legalHold = output - } else { - self.legalHold = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.ObjectLockLegalHold = try responseDecoder.decode(responseBody: data) + self.legalHold = output } else { self.legalHold = nil } @@ -12008,13 +11950,9 @@ public enum GetObjectLockConfigurationOutputError: Swift.Error, Swift.Equatable extension GetObjectLockConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.ObjectLockConfiguration = try responseDecoder.decode(responseBody: data) - self.objectLockConfiguration = output - } else { - self.objectLockConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.ObjectLockConfiguration = try responseDecoder.decode(responseBody: data) + self.objectLockConfiguration = output } else { self.objectLockConfiguration = nil } @@ -12268,9 +12206,12 @@ extension GetObjectOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.metadata = [:] } - if let data = httpResponse.body.toBytes()?.getData() { - self.body = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.body = .data(data) + case .stream(let stream): + self.body = .stream(stream) + case .none: self.body = nil } } @@ -12555,13 +12496,9 @@ public enum GetObjectRetentionOutputError: Swift.Error, Swift.Equatable { extension GetObjectRetentionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.ObjectLockRetention = try responseDecoder.decode(responseBody: data) - self.retention = output - } else { - self.retention = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.ObjectLockRetention = try responseDecoder.decode(responseBody: data) + self.retention = output } else { self.retention = nil } @@ -12704,9 +12641,8 @@ extension GetObjectTaggingOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.versionId = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetObjectTaggingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagSet = output.tagSet } else { @@ -12865,9 +12801,12 @@ extension GetObjectTorrentOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.requestCharged = nil } - if let data = httpResponse.body.toBytes()?.getData() { - self.body = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.body = .data(data) + case .stream(let stream): + self.body = .stream(stream) + case .none: self.body = nil } } @@ -12993,13 +12932,9 @@ public enum GetPublicAccessBlockOutputError: Swift.Error, Swift.Equatable { extension GetPublicAccessBlockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.PublicAccessBlockConfiguration = try responseDecoder.decode(responseBody: data) - self.publicAccessBlockConfiguration = output - } else { - self.publicAccessBlockConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.PublicAccessBlockConfiguration = try responseDecoder.decode(responseBody: data) + self.publicAccessBlockConfiguration = output } else { self.publicAccessBlockConfiguration = nil } @@ -14424,7 +14359,7 @@ extension S3ClientTypes { extension InvalidObjectState { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil, requestID2: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: InvalidObjectStateBody = try responseDecoder.decode(responseBody: data) self.accessTier = output.accessTier @@ -14442,7 +14377,7 @@ extension InvalidObjectState { } /// Object is archived and inaccessible until restored. -public struct InvalidObjectState: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct InvalidObjectState: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15864,9 +15799,8 @@ public enum ListBucketAnalyticsConfigurationsOutputError: Swift.Error, Swift.Equ extension ListBucketAnalyticsConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBucketAnalyticsConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyticsConfigurationList = output.analyticsConfigurationList self.continuationToken = output.continuationToken @@ -16024,9 +15958,8 @@ public enum ListBucketIntelligentTieringConfigurationsOutputError: Swift.Error, extension ListBucketIntelligentTieringConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBucketIntelligentTieringConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.continuationToken = output.continuationToken self.intelligentTieringConfigurationList = output.intelligentTieringConfigurationList @@ -16198,9 +16131,8 @@ public enum ListBucketInventoryConfigurationsOutputError: Swift.Error, Swift.Equ extension ListBucketInventoryConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBucketInventoryConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.continuationToken = output.continuationToken self.inventoryConfigurationList = output.inventoryConfigurationList @@ -16372,9 +16304,8 @@ public enum ListBucketMetricsConfigurationsOutputError: Swift.Error, Swift.Equat extension ListBucketMetricsConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBucketMetricsConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.continuationToken = output.continuationToken self.isTruncated = output.isTruncated @@ -16505,9 +16436,8 @@ public enum ListBucketsOutputError: Swift.Error, Swift.Equatable { extension ListBucketsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBucketsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.buckets = output.buckets self.owner = output.owner @@ -16699,9 +16629,8 @@ public enum ListMultipartUploadsOutputError: Swift.Error, Swift.Equatable { extension ListMultipartUploadsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMultipartUploadsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`prefix` = output.`prefix` self.bucket = output.bucket @@ -17008,9 +16937,8 @@ public enum ListObjectVersionsOutputError: Swift.Error, Swift.Equatable { extension ListObjectVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`prefix` = output.`prefix` self.commonPrefixes = output.commonPrefixes @@ -17343,9 +17271,8 @@ public enum ListObjectsOutputError: Swift.Error, Swift.Equatable { extension ListObjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`prefix` = output.`prefix` self.commonPrefixes = output.commonPrefixes @@ -17649,9 +17576,8 @@ public enum ListObjectsV2OutputError: Swift.Error, Swift.Equatable { extension ListObjectsV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListObjectsV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.`prefix` = output.`prefix` self.commonPrefixes = output.commonPrefixes @@ -17993,9 +17919,8 @@ extension ListPartsOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.requestCharged = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPartsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucket = output.bucket self.checksumAlgorithm = output.checksumAlgorithm @@ -18862,7 +18787,7 @@ extension NoSuchBucket { } /// The specified bucket does not exist. -public struct NoSuchBucket: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct NoSuchBucket: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18886,7 +18811,7 @@ extension NoSuchKey { } /// The specified key does not exist. -public struct NoSuchKey: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct NoSuchKey: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18910,7 +18835,7 @@ extension NoSuchUpload { } /// The specified multipart upload does not exist. -public struct NoSuchUpload: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct NoSuchUpload: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19068,7 +18993,7 @@ extension NotFound { } /// The specified content does not exist. -public struct NotFound: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct NotFound: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19440,7 +19365,7 @@ extension ObjectAlreadyInActiveTierError { } /// This action is not allowed against this storage tier. -public struct ObjectAlreadyInActiveTierError: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct ObjectAlreadyInActiveTierError: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19968,7 +19893,7 @@ extension ObjectNotInActiveTierError { } /// The source object of the COPY action is not in the active tier and is only stored in Amazon S3 Glacier. -public struct ObjectNotInActiveTierError: AWSClientRuntime.S3HttpServiceError, Swift.Equatable { +public struct ObjectNotInActiveTierError: AWSClientRuntime.S3HttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -21237,15 +21162,15 @@ public struct PutBucketAccelerateConfigurationInputBodyMiddleware: ClientRuntime let encoder = context.getEncoder() if let accelerateConfiguration = input.operationInput.accelerateConfiguration { let xmlEncoder = encoder as! XMLEncoder - let accelerateConfigurationdata = try xmlEncoder.encode(accelerateConfiguration, withRootKey: "AccelerateConfiguration") - let accelerateConfigurationbody = ClientRuntime.HttpBody.data(accelerateConfigurationdata) - input.builder.withBody(accelerateConfigurationbody) + let accelerateConfigurationData = try xmlEncoder.encode(accelerateConfiguration, withRootKey: "AccelerateConfiguration") + let accelerateConfigurationBody = ClientRuntime.HttpBody.data(accelerateConfigurationData) + input.builder.withBody(accelerateConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let accelerateConfigurationdata = "{}".data(using: .utf8)! - let accelerateConfigurationbody = ClientRuntime.HttpBody.data(accelerateConfigurationdata) - input.builder.withBody(accelerateConfigurationbody) + let accelerateConfigurationData = "{}".data(using: .utf8)! + let accelerateConfigurationBody = ClientRuntime.HttpBody.data(accelerateConfigurationData) + input.builder.withBody(accelerateConfigurationBody) } } } catch let err { @@ -21413,15 +21338,15 @@ public struct PutBucketAclInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let accessControlPolicy = input.operationInput.accessControlPolicy { let xmlEncoder = encoder as! XMLEncoder - let accessControlPolicydata = try xmlEncoder.encode(accessControlPolicy, withRootKey: "AccessControlPolicy") - let accessControlPolicybody = ClientRuntime.HttpBody.data(accessControlPolicydata) - input.builder.withBody(accessControlPolicybody) + let accessControlPolicyData = try xmlEncoder.encode(accessControlPolicy, withRootKey: "AccessControlPolicy") + let accessControlPolicyBody = ClientRuntime.HttpBody.data(accessControlPolicyData) + input.builder.withBody(accessControlPolicyBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let accessControlPolicydata = "{}".data(using: .utf8)! - let accessControlPolicybody = ClientRuntime.HttpBody.data(accessControlPolicydata) - input.builder.withBody(accessControlPolicybody) + let accessControlPolicyData = "{}".data(using: .utf8)! + let accessControlPolicyBody = ClientRuntime.HttpBody.data(accessControlPolicyData) + input.builder.withBody(accessControlPolicyBody) } } } catch let err { @@ -21637,15 +21562,15 @@ public struct PutBucketAnalyticsConfigurationInputBodyMiddleware: ClientRuntime. let encoder = context.getEncoder() if let analyticsConfiguration = input.operationInput.analyticsConfiguration { let xmlEncoder = encoder as! XMLEncoder - let analyticsConfigurationdata = try xmlEncoder.encode(analyticsConfiguration, withRootKey: "AnalyticsConfiguration") - let analyticsConfigurationbody = ClientRuntime.HttpBody.data(analyticsConfigurationdata) - input.builder.withBody(analyticsConfigurationbody) + let analyticsConfigurationData = try xmlEncoder.encode(analyticsConfiguration, withRootKey: "AnalyticsConfiguration") + let analyticsConfigurationBody = ClientRuntime.HttpBody.data(analyticsConfigurationData) + input.builder.withBody(analyticsConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let analyticsConfigurationdata = "{}".data(using: .utf8)! - let analyticsConfigurationbody = ClientRuntime.HttpBody.data(analyticsConfigurationdata) - input.builder.withBody(analyticsConfigurationbody) + let analyticsConfigurationData = "{}".data(using: .utf8)! + let analyticsConfigurationBody = ClientRuntime.HttpBody.data(analyticsConfigurationData) + input.builder.withBody(analyticsConfigurationBody) } } } catch let err { @@ -21817,15 +21742,15 @@ public struct PutBucketCorsInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let corsConfiguration = input.operationInput.corsConfiguration { let xmlEncoder = encoder as! XMLEncoder - let corsConfigurationdata = try xmlEncoder.encode(corsConfiguration, withRootKey: "CORSConfiguration") - let corsConfigurationbody = ClientRuntime.HttpBody.data(corsConfigurationdata) - input.builder.withBody(corsConfigurationbody) + let corsConfigurationData = try xmlEncoder.encode(corsConfiguration, withRootKey: "CORSConfiguration") + let corsConfigurationBody = ClientRuntime.HttpBody.data(corsConfigurationData) + input.builder.withBody(corsConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let corsConfigurationdata = "{}".data(using: .utf8)! - let corsConfigurationbody = ClientRuntime.HttpBody.data(corsConfigurationdata) - input.builder.withBody(corsConfigurationbody) + let corsConfigurationData = "{}".data(using: .utf8)! + let corsConfigurationBody = ClientRuntime.HttpBody.data(corsConfigurationData) + input.builder.withBody(corsConfigurationBody) } } } catch let err { @@ -22000,15 +21925,15 @@ public struct PutBucketEncryptionInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let serverSideEncryptionConfiguration = input.operationInput.serverSideEncryptionConfiguration { let xmlEncoder = encoder as! XMLEncoder - let serverSideEncryptionConfigurationdata = try xmlEncoder.encode(serverSideEncryptionConfiguration, withRootKey: "ServerSideEncryptionConfiguration") - let serverSideEncryptionConfigurationbody = ClientRuntime.HttpBody.data(serverSideEncryptionConfigurationdata) - input.builder.withBody(serverSideEncryptionConfigurationbody) + let serverSideEncryptionConfigurationData = try xmlEncoder.encode(serverSideEncryptionConfiguration, withRootKey: "ServerSideEncryptionConfiguration") + let serverSideEncryptionConfigurationBody = ClientRuntime.HttpBody.data(serverSideEncryptionConfigurationData) + input.builder.withBody(serverSideEncryptionConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let serverSideEncryptionConfigurationdata = "{}".data(using: .utf8)! - let serverSideEncryptionConfigurationbody = ClientRuntime.HttpBody.data(serverSideEncryptionConfigurationdata) - input.builder.withBody(serverSideEncryptionConfigurationbody) + let serverSideEncryptionConfigurationData = "{}".data(using: .utf8)! + let serverSideEncryptionConfigurationBody = ClientRuntime.HttpBody.data(serverSideEncryptionConfigurationData) + input.builder.withBody(serverSideEncryptionConfigurationBody) } } } catch let err { @@ -22183,15 +22108,15 @@ public struct PutBucketIntelligentTieringConfigurationInputBodyMiddleware: Clien let encoder = context.getEncoder() if let intelligentTieringConfiguration = input.operationInput.intelligentTieringConfiguration { let xmlEncoder = encoder as! XMLEncoder - let intelligentTieringConfigurationdata = try xmlEncoder.encode(intelligentTieringConfiguration, withRootKey: "IntelligentTieringConfiguration") - let intelligentTieringConfigurationbody = ClientRuntime.HttpBody.data(intelligentTieringConfigurationdata) - input.builder.withBody(intelligentTieringConfigurationbody) + let intelligentTieringConfigurationData = try xmlEncoder.encode(intelligentTieringConfiguration, withRootKey: "IntelligentTieringConfiguration") + let intelligentTieringConfigurationBody = ClientRuntime.HttpBody.data(intelligentTieringConfigurationData) + input.builder.withBody(intelligentTieringConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let intelligentTieringConfigurationdata = "{}".data(using: .utf8)! - let intelligentTieringConfigurationbody = ClientRuntime.HttpBody.data(intelligentTieringConfigurationdata) - input.builder.withBody(intelligentTieringConfigurationbody) + let intelligentTieringConfigurationData = "{}".data(using: .utf8)! + let intelligentTieringConfigurationBody = ClientRuntime.HttpBody.data(intelligentTieringConfigurationData) + input.builder.withBody(intelligentTieringConfigurationBody) } } } catch let err { @@ -22349,15 +22274,15 @@ public struct PutBucketInventoryConfigurationInputBodyMiddleware: ClientRuntime. let encoder = context.getEncoder() if let inventoryConfiguration = input.operationInput.inventoryConfiguration { let xmlEncoder = encoder as! XMLEncoder - let inventoryConfigurationdata = try xmlEncoder.encode(inventoryConfiguration, withRootKey: "InventoryConfiguration") - let inventoryConfigurationbody = ClientRuntime.HttpBody.data(inventoryConfigurationdata) - input.builder.withBody(inventoryConfigurationbody) + let inventoryConfigurationData = try xmlEncoder.encode(inventoryConfiguration, withRootKey: "InventoryConfiguration") + let inventoryConfigurationBody = ClientRuntime.HttpBody.data(inventoryConfigurationData) + input.builder.withBody(inventoryConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let inventoryConfigurationdata = "{}".data(using: .utf8)! - let inventoryConfigurationbody = ClientRuntime.HttpBody.data(inventoryConfigurationdata) - input.builder.withBody(inventoryConfigurationbody) + let inventoryConfigurationData = "{}".data(using: .utf8)! + let inventoryConfigurationBody = ClientRuntime.HttpBody.data(inventoryConfigurationData) + input.builder.withBody(inventoryConfigurationBody) } } } catch let err { @@ -22529,15 +22454,15 @@ public struct PutBucketLifecycleConfigurationInputBodyMiddleware: ClientRuntime. let encoder = context.getEncoder() if let lifecycleConfiguration = input.operationInput.lifecycleConfiguration { let xmlEncoder = encoder as! XMLEncoder - let lifecycleConfigurationdata = try xmlEncoder.encode(lifecycleConfiguration, withRootKey: "LifecycleConfiguration") - let lifecycleConfigurationbody = ClientRuntime.HttpBody.data(lifecycleConfigurationdata) - input.builder.withBody(lifecycleConfigurationbody) + let lifecycleConfigurationData = try xmlEncoder.encode(lifecycleConfiguration, withRootKey: "LifecycleConfiguration") + let lifecycleConfigurationBody = ClientRuntime.HttpBody.data(lifecycleConfigurationData) + input.builder.withBody(lifecycleConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let lifecycleConfigurationdata = "{}".data(using: .utf8)! - let lifecycleConfigurationbody = ClientRuntime.HttpBody.data(lifecycleConfigurationdata) - input.builder.withBody(lifecycleConfigurationbody) + let lifecycleConfigurationData = "{}".data(using: .utf8)! + let lifecycleConfigurationBody = ClientRuntime.HttpBody.data(lifecycleConfigurationData) + input.builder.withBody(lifecycleConfigurationBody) } } } catch let err { @@ -22704,15 +22629,15 @@ public struct PutBucketLoggingInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let bucketLoggingStatus = input.operationInput.bucketLoggingStatus { let xmlEncoder = encoder as! XMLEncoder - let bucketLoggingStatusdata = try xmlEncoder.encode(bucketLoggingStatus, withRootKey: "BucketLoggingStatus") - let bucketLoggingStatusbody = ClientRuntime.HttpBody.data(bucketLoggingStatusdata) - input.builder.withBody(bucketLoggingStatusbody) + let bucketLoggingStatusData = try xmlEncoder.encode(bucketLoggingStatus, withRootKey: "BucketLoggingStatus") + let bucketLoggingStatusBody = ClientRuntime.HttpBody.data(bucketLoggingStatusData) + input.builder.withBody(bucketLoggingStatusBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let bucketLoggingStatusdata = "{}".data(using: .utf8)! - let bucketLoggingStatusbody = ClientRuntime.HttpBody.data(bucketLoggingStatusdata) - input.builder.withBody(bucketLoggingStatusbody) + let bucketLoggingStatusData = "{}".data(using: .utf8)! + let bucketLoggingStatusBody = ClientRuntime.HttpBody.data(bucketLoggingStatusData) + input.builder.withBody(bucketLoggingStatusBody) } } } catch let err { @@ -22887,15 +22812,15 @@ public struct PutBucketMetricsConfigurationInputBodyMiddleware: ClientRuntime.Mi let encoder = context.getEncoder() if let metricsConfiguration = input.operationInput.metricsConfiguration { let xmlEncoder = encoder as! XMLEncoder - let metricsConfigurationdata = try xmlEncoder.encode(metricsConfiguration, withRootKey: "MetricsConfiguration") - let metricsConfigurationbody = ClientRuntime.HttpBody.data(metricsConfigurationdata) - input.builder.withBody(metricsConfigurationbody) + let metricsConfigurationData = try xmlEncoder.encode(metricsConfiguration, withRootKey: "MetricsConfiguration") + let metricsConfigurationBody = ClientRuntime.HttpBody.data(metricsConfigurationData) + input.builder.withBody(metricsConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let metricsConfigurationdata = "{}".data(using: .utf8)! - let metricsConfigurationbody = ClientRuntime.HttpBody.data(metricsConfigurationdata) - input.builder.withBody(metricsConfigurationbody) + let metricsConfigurationData = "{}".data(using: .utf8)! + let metricsConfigurationBody = ClientRuntime.HttpBody.data(metricsConfigurationData) + input.builder.withBody(metricsConfigurationBody) } } } catch let err { @@ -23067,15 +22992,15 @@ public struct PutBucketNotificationConfigurationInputBodyMiddleware: ClientRunti let encoder = context.getEncoder() if let notificationConfiguration = input.operationInput.notificationConfiguration { let xmlEncoder = encoder as! XMLEncoder - let notificationConfigurationdata = try xmlEncoder.encode(notificationConfiguration, withRootKey: "NotificationConfiguration") - let notificationConfigurationbody = ClientRuntime.HttpBody.data(notificationConfigurationdata) - input.builder.withBody(notificationConfigurationbody) + let notificationConfigurationData = try xmlEncoder.encode(notificationConfiguration, withRootKey: "NotificationConfiguration") + let notificationConfigurationBody = ClientRuntime.HttpBody.data(notificationConfigurationData) + input.builder.withBody(notificationConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let notificationConfigurationdata = "{}".data(using: .utf8)! - let notificationConfigurationbody = ClientRuntime.HttpBody.data(notificationConfigurationdata) - input.builder.withBody(notificationConfigurationbody) + let notificationConfigurationData = "{}".data(using: .utf8)! + let notificationConfigurationBody = ClientRuntime.HttpBody.data(notificationConfigurationData) + input.builder.withBody(notificationConfigurationBody) } } } catch let err { @@ -23243,15 +23168,15 @@ public struct PutBucketOwnershipControlsInputBodyMiddleware: ClientRuntime.Middl let encoder = context.getEncoder() if let ownershipControls = input.operationInput.ownershipControls { let xmlEncoder = encoder as! XMLEncoder - let ownershipControlsdata = try xmlEncoder.encode(ownershipControls, withRootKey: "OwnershipControls") - let ownershipControlsbody = ClientRuntime.HttpBody.data(ownershipControlsdata) - input.builder.withBody(ownershipControlsbody) + let ownershipControlsData = try xmlEncoder.encode(ownershipControls, withRootKey: "OwnershipControls") + let ownershipControlsBody = ClientRuntime.HttpBody.data(ownershipControlsData) + input.builder.withBody(ownershipControlsBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let ownershipControlsdata = "{}".data(using: .utf8)! - let ownershipControlsbody = ClientRuntime.HttpBody.data(ownershipControlsdata) - input.builder.withBody(ownershipControlsbody) + let ownershipControlsData = "{}".data(using: .utf8)! + let ownershipControlsBody = ClientRuntime.HttpBody.data(ownershipControlsData) + input.builder.withBody(ownershipControlsBody) } } } catch let err { @@ -23416,9 +23341,9 @@ public struct PutBucketPolicyInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let policy = input.operationInput.policy { - let policydata = policy.data(using: .utf8) - let policybody = ClientRuntime.HttpBody.data(policydata) - input.builder.withBody(policybody) + let policyData = policy.data(using: .utf8) + let policyBody = ClientRuntime.HttpBody.data(policyData) + input.builder.withBody(policyBody) } return try await next.handle(context: context, input: input) } @@ -23596,15 +23521,15 @@ public struct PutBucketReplicationInputBodyMiddleware: ClientRuntime.Middleware let encoder = context.getEncoder() if let replicationConfiguration = input.operationInput.replicationConfiguration { let xmlEncoder = encoder as! XMLEncoder - let replicationConfigurationdata = try xmlEncoder.encode(replicationConfiguration, withRootKey: "ReplicationConfiguration") - let replicationConfigurationbody = ClientRuntime.HttpBody.data(replicationConfigurationdata) - input.builder.withBody(replicationConfigurationbody) + let replicationConfigurationData = try xmlEncoder.encode(replicationConfiguration, withRootKey: "ReplicationConfiguration") + let replicationConfigurationBody = ClientRuntime.HttpBody.data(replicationConfigurationData) + input.builder.withBody(replicationConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let replicationConfigurationdata = "{}".data(using: .utf8)! - let replicationConfigurationbody = ClientRuntime.HttpBody.data(replicationConfigurationdata) - input.builder.withBody(replicationConfigurationbody) + let replicationConfigurationData = "{}".data(using: .utf8)! + let replicationConfigurationBody = ClientRuntime.HttpBody.data(replicationConfigurationData) + input.builder.withBody(replicationConfigurationBody) } } } catch let err { @@ -23786,15 +23711,15 @@ public struct PutBucketRequestPaymentInputBodyMiddleware: ClientRuntime.Middlewa let encoder = context.getEncoder() if let requestPaymentConfiguration = input.operationInput.requestPaymentConfiguration { let xmlEncoder = encoder as! XMLEncoder - let requestPaymentConfigurationdata = try xmlEncoder.encode(requestPaymentConfiguration, withRootKey: "RequestPaymentConfiguration") - let requestPaymentConfigurationbody = ClientRuntime.HttpBody.data(requestPaymentConfigurationdata) - input.builder.withBody(requestPaymentConfigurationbody) + let requestPaymentConfigurationData = try xmlEncoder.encode(requestPaymentConfiguration, withRootKey: "RequestPaymentConfiguration") + let requestPaymentConfigurationBody = ClientRuntime.HttpBody.data(requestPaymentConfigurationData) + input.builder.withBody(requestPaymentConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let requestPaymentConfigurationdata = "{}".data(using: .utf8)! - let requestPaymentConfigurationbody = ClientRuntime.HttpBody.data(requestPaymentConfigurationdata) - input.builder.withBody(requestPaymentConfigurationbody) + let requestPaymentConfigurationData = "{}".data(using: .utf8)! + let requestPaymentConfigurationBody = ClientRuntime.HttpBody.data(requestPaymentConfigurationData) + input.builder.withBody(requestPaymentConfigurationBody) } } } catch let err { @@ -23969,15 +23894,15 @@ public struct PutBucketTaggingInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let tagging = input.operationInput.tagging { let xmlEncoder = encoder as! XMLEncoder - let taggingdata = try xmlEncoder.encode(tagging, withRootKey: "Tagging") - let taggingbody = ClientRuntime.HttpBody.data(taggingdata) - input.builder.withBody(taggingbody) + let taggingData = try xmlEncoder.encode(tagging, withRootKey: "Tagging") + let taggingBody = ClientRuntime.HttpBody.data(taggingData) + input.builder.withBody(taggingBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let taggingdata = "{}".data(using: .utf8)! - let taggingbody = ClientRuntime.HttpBody.data(taggingdata) - input.builder.withBody(taggingbody) + let taggingData = "{}".data(using: .utf8)! + let taggingBody = ClientRuntime.HttpBody.data(taggingData) + input.builder.withBody(taggingBody) } } } catch let err { @@ -24152,15 +24077,15 @@ public struct PutBucketVersioningInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let versioningConfiguration = input.operationInput.versioningConfiguration { let xmlEncoder = encoder as! XMLEncoder - let versioningConfigurationdata = try xmlEncoder.encode(versioningConfiguration, withRootKey: "VersioningConfiguration") - let versioningConfigurationbody = ClientRuntime.HttpBody.data(versioningConfigurationdata) - input.builder.withBody(versioningConfigurationbody) + let versioningConfigurationData = try xmlEncoder.encode(versioningConfiguration, withRootKey: "VersioningConfiguration") + let versioningConfigurationBody = ClientRuntime.HttpBody.data(versioningConfigurationData) + input.builder.withBody(versioningConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let versioningConfigurationdata = "{}".data(using: .utf8)! - let versioningConfigurationbody = ClientRuntime.HttpBody.data(versioningConfigurationdata) - input.builder.withBody(versioningConfigurationbody) + let versioningConfigurationData = "{}".data(using: .utf8)! + let versioningConfigurationBody = ClientRuntime.HttpBody.data(versioningConfigurationData) + input.builder.withBody(versioningConfigurationBody) } } } catch let err { @@ -24342,15 +24267,15 @@ public struct PutBucketWebsiteInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let websiteConfiguration = input.operationInput.websiteConfiguration { let xmlEncoder = encoder as! XMLEncoder - let websiteConfigurationdata = try xmlEncoder.encode(websiteConfiguration, withRootKey: "WebsiteConfiguration") - let websiteConfigurationbody = ClientRuntime.HttpBody.data(websiteConfigurationdata) - input.builder.withBody(websiteConfigurationbody) + let websiteConfigurationData = try xmlEncoder.encode(websiteConfiguration, withRootKey: "WebsiteConfiguration") + let websiteConfigurationBody = ClientRuntime.HttpBody.data(websiteConfigurationData) + input.builder.withBody(websiteConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let websiteConfigurationdata = "{}".data(using: .utf8)! - let websiteConfigurationbody = ClientRuntime.HttpBody.data(websiteConfigurationdata) - input.builder.withBody(websiteConfigurationbody) + let websiteConfigurationData = "{}".data(using: .utf8)! + let websiteConfigurationBody = ClientRuntime.HttpBody.data(websiteConfigurationData) + input.builder.withBody(websiteConfigurationBody) } } } catch let err { @@ -24525,15 +24450,15 @@ public struct PutObjectAclInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let accessControlPolicy = input.operationInput.accessControlPolicy { let xmlEncoder = encoder as! XMLEncoder - let accessControlPolicydata = try xmlEncoder.encode(accessControlPolicy, withRootKey: "AccessControlPolicy") - let accessControlPolicybody = ClientRuntime.HttpBody.data(accessControlPolicydata) - input.builder.withBody(accessControlPolicybody) + let accessControlPolicyData = try xmlEncoder.encode(accessControlPolicy, withRootKey: "AccessControlPolicy") + let accessControlPolicyBody = ClientRuntime.HttpBody.data(accessControlPolicyData) + input.builder.withBody(accessControlPolicyBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let accessControlPolicydata = "{}".data(using: .utf8)! - let accessControlPolicybody = ClientRuntime.HttpBody.data(accessControlPolicydata) - input.builder.withBody(accessControlPolicybody) + let accessControlPolicyData = "{}".data(using: .utf8)! + let accessControlPolicyBody = ClientRuntime.HttpBody.data(accessControlPolicyData) + input.builder.withBody(accessControlPolicyBody) } } } catch let err { @@ -24783,9 +24708,8 @@ public struct PutObjectInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.stream(bodydata) - input.builder.withBody(bodybody) + let bodyBody = ClientRuntime.HttpBody(byteStream: body) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -24966,6 +24890,7 @@ extension PutObjectInput { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -24977,7 +24902,7 @@ extension PutObjectInput { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build(), let presignedURL = builtRequest.endpoint.url else { return nil } @@ -25010,6 +24935,7 @@ extension PutObjectInput { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -25027,7 +24953,7 @@ extension PutObjectInput { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } @@ -25253,15 +25179,15 @@ public struct PutObjectLegalHoldInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let legalHold = input.operationInput.legalHold { let xmlEncoder = encoder as! XMLEncoder - let legalHolddata = try xmlEncoder.encode(legalHold, withRootKey: "LegalHold") - let legalHoldbody = ClientRuntime.HttpBody.data(legalHolddata) - input.builder.withBody(legalHoldbody) + let legalHoldData = try xmlEncoder.encode(legalHold, withRootKey: "LegalHold") + let legalHoldBody = ClientRuntime.HttpBody.data(legalHoldData) + input.builder.withBody(legalHoldBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let legalHolddata = "{}".data(using: .utf8)! - let legalHoldbody = ClientRuntime.HttpBody.data(legalHolddata) - input.builder.withBody(legalHoldbody) + let legalHoldData = "{}".data(using: .utf8)! + let legalHoldBody = ClientRuntime.HttpBody.data(legalHoldData) + input.builder.withBody(legalHoldBody) } } } catch let err { @@ -25470,15 +25396,15 @@ public struct PutObjectLockConfigurationInputBodyMiddleware: ClientRuntime.Middl let encoder = context.getEncoder() if let objectLockConfiguration = input.operationInput.objectLockConfiguration { let xmlEncoder = encoder as! XMLEncoder - let objectLockConfigurationdata = try xmlEncoder.encode(objectLockConfiguration, withRootKey: "ObjectLockConfiguration") - let objectLockConfigurationbody = ClientRuntime.HttpBody.data(objectLockConfigurationdata) - input.builder.withBody(objectLockConfigurationbody) + let objectLockConfigurationData = try xmlEncoder.encode(objectLockConfiguration, withRootKey: "ObjectLockConfiguration") + let objectLockConfigurationBody = ClientRuntime.HttpBody.data(objectLockConfigurationData) + input.builder.withBody(objectLockConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let objectLockConfigurationdata = "{}".data(using: .utf8)! - let objectLockConfigurationbody = ClientRuntime.HttpBody.data(objectLockConfigurationdata) - input.builder.withBody(objectLockConfigurationbody) + let objectLockConfigurationData = "{}".data(using: .utf8)! + let objectLockConfigurationBody = ClientRuntime.HttpBody.data(objectLockConfigurationData) + input.builder.withBody(objectLockConfigurationBody) } } } catch let err { @@ -25848,15 +25774,15 @@ public struct PutObjectRetentionInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let retention = input.operationInput.retention { let xmlEncoder = encoder as! XMLEncoder - let retentiondata = try xmlEncoder.encode(retention, withRootKey: "Retention") - let retentionbody = ClientRuntime.HttpBody.data(retentiondata) - input.builder.withBody(retentionbody) + let retentionData = try xmlEncoder.encode(retention, withRootKey: "Retention") + let retentionBody = ClientRuntime.HttpBody.data(retentionData) + input.builder.withBody(retentionBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let retentiondata = "{}".data(using: .utf8)! - let retentionbody = ClientRuntime.HttpBody.data(retentiondata) - input.builder.withBody(retentionbody) + let retentionData = "{}".data(using: .utf8)! + let retentionBody = ClientRuntime.HttpBody.data(retentionData) + input.builder.withBody(retentionBody) } } } catch let err { @@ -26072,15 +25998,15 @@ public struct PutObjectTaggingInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let tagging = input.operationInput.tagging { let xmlEncoder = encoder as! XMLEncoder - let taggingdata = try xmlEncoder.encode(tagging, withRootKey: "Tagging") - let taggingbody = ClientRuntime.HttpBody.data(taggingdata) - input.builder.withBody(taggingbody) + let taggingData = try xmlEncoder.encode(tagging, withRootKey: "Tagging") + let taggingBody = ClientRuntime.HttpBody.data(taggingData) + input.builder.withBody(taggingBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let taggingdata = "{}".data(using: .utf8)! - let taggingbody = ClientRuntime.HttpBody.data(taggingdata) - input.builder.withBody(taggingbody) + let taggingData = "{}".data(using: .utf8)! + let taggingBody = ClientRuntime.HttpBody.data(taggingData) + input.builder.withBody(taggingBody) } } } catch let err { @@ -26290,15 +26216,15 @@ public struct PutPublicAccessBlockInputBodyMiddleware: ClientRuntime.Middleware let encoder = context.getEncoder() if let publicAccessBlockConfiguration = input.operationInput.publicAccessBlockConfiguration { let xmlEncoder = encoder as! XMLEncoder - let publicAccessBlockConfigurationdata = try xmlEncoder.encode(publicAccessBlockConfiguration, withRootKey: "PublicAccessBlockConfiguration") - let publicAccessBlockConfigurationbody = ClientRuntime.HttpBody.data(publicAccessBlockConfigurationdata) - input.builder.withBody(publicAccessBlockConfigurationbody) + let publicAccessBlockConfigurationData = try xmlEncoder.encode(publicAccessBlockConfiguration, withRootKey: "PublicAccessBlockConfiguration") + let publicAccessBlockConfigurationBody = ClientRuntime.HttpBody.data(publicAccessBlockConfigurationData) + input.builder.withBody(publicAccessBlockConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let publicAccessBlockConfigurationdata = "{}".data(using: .utf8)! - let publicAccessBlockConfigurationbody = ClientRuntime.HttpBody.data(publicAccessBlockConfigurationdata) - input.builder.withBody(publicAccessBlockConfigurationbody) + let publicAccessBlockConfigurationData = "{}".data(using: .utf8)! + let publicAccessBlockConfigurationBody = ClientRuntime.HttpBody.data(publicAccessBlockConfigurationData) + input.builder.withBody(publicAccessBlockConfigurationBody) } } } catch let err { @@ -27668,15 +27594,15 @@ public struct RestoreObjectInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let restoreRequest = input.operationInput.restoreRequest { let xmlEncoder = encoder as! XMLEncoder - let restoreRequestdata = try xmlEncoder.encode(restoreRequest, withRootKey: "RestoreRequest") - let restoreRequestbody = ClientRuntime.HttpBody.data(restoreRequestdata) - input.builder.withBody(restoreRequestbody) + let restoreRequestData = try xmlEncoder.encode(restoreRequest, withRootKey: "RestoreRequest") + let restoreRequestBody = ClientRuntime.HttpBody.data(restoreRequestData) + input.builder.withBody(restoreRequestBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let restoreRequestdata = "{}".data(using: .utf8)! - let restoreRequestbody = ClientRuntime.HttpBody.data(restoreRequestdata) - input.builder.withBody(restoreRequestbody) + let restoreRequestData = "{}".data(using: .utf8)! + let restoreRequestBody = ClientRuntime.HttpBody.data(restoreRequestData) + input.builder.withBody(restoreRequestBody) } } } catch let err { @@ -28455,56 +28381,9 @@ extension S3ClientTypes { } -extension S3ClientTypes.SelectObjectContentEventStream: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case cont = "Cont" - case end = "End" - case progress = "Progress" - case records = "Records" - case stats = "Stats" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: ClientRuntime.Key.self) - switch self { - case let .cont(cont): - try container.encode(cont, forKey: ClientRuntime.Key("Cont")) - case let .end(end): - try container.encode(end, forKey: ClientRuntime.Key("End")) - case let .progress(progress): - try container.encode(progress, forKey: ClientRuntime.Key("Progress")) - case let .records(records): - try container.encode(records, forKey: ClientRuntime.Key("Records")) - case let .stats(stats): - try container.encode(stats, forKey: ClientRuntime.Key("Stats")) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: ClientRuntime.Key("sdkUnknown")) - } - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let key = containerValues.allKeys.first - switch key { - case .records: - let recordsDecoded = try containerValues.decode(S3ClientTypes.RecordsEvent.self, forKey: .records) - self = .records(recordsDecoded) - case .stats: - let statsDecoded = try containerValues.decode(S3ClientTypes.StatsEvent.self, forKey: .stats) - self = .stats(statsDecoded) - case .progress: - let progressDecoded = try containerValues.decode(S3ClientTypes.ProgressEvent.self, forKey: .progress) - self = .progress(progressDecoded) - case .cont: - let contDecoded = try containerValues.decode(S3ClientTypes.ContinuationEvent.self, forKey: .cont) - self = .cont(contDecoded) - case .end: - let endDecoded = try containerValues.decode(S3ClientTypes.EndEvent.self, forKey: .end) - self = .end(endDecoded) - default: - self = .sdkUnknown("") - } +extension S3ClientTypes.SelectObjectContentEventStream: ClientRuntime.MessageUnmarshallable { + public init(message: ClientRuntime.EventStream.Message, decoder: ClientRuntime.ResponseDecoder) throws { + fatalError("Not implemented") } } @@ -28754,13 +28633,10 @@ public enum SelectObjectContentOutputError: Swift.Error, Swift.Equatable { extension SelectObjectContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.SelectObjectContentEventStream = try responseDecoder.decode(responseBody: data) - self.payload = output - } else { - self.payload = nil - } + if case let .stream(stream) = httpResponse.body, let responseDecoder = decoder { + let messageDecoder = AWSClientRuntime.AWSEventStream.AWSMessageDecoder() + let decoderStream = ClientRuntime.EventStream.DefaultMessageDecoderStream(stream: stream, messageDecoder: messageDecoder, responseDecoder: responseDecoder) + self.payload = decoderStream.toAsyncStream() } else { self.payload = nil } @@ -28769,32 +28645,16 @@ extension SelectObjectContentOutputResponse: ClientRuntime.HttpResponseBinding { public struct SelectObjectContentOutputResponse: Swift.Equatable { /// The array of results. - public var payload: S3ClientTypes.SelectObjectContentEventStream? + public var payload: AsyncThrowingStream? public init ( - payload: S3ClientTypes.SelectObjectContentEventStream? = nil + payload: AsyncThrowingStream? = nil ) { self.payload = payload } } -struct SelectObjectContentOutputResponseBody: Swift.Equatable { - let payload: S3ClientTypes.SelectObjectContentEventStream? -} - -extension SelectObjectContentOutputResponseBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case payload = "Payload" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let payloadDecoded = try containerValues.decodeIfPresent(S3ClientTypes.SelectObjectContentEventStream.self, forKey: .payload) - payload = payloadDecoded - } -} - extension S3ClientTypes.SelectParameters: Swift.Codable { enum CodingKeys: Swift.String, Swift.CodingKey { case expression = "Expression" @@ -30449,13 +30309,9 @@ extension UploadPartCopyOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.serverSideEncryption = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ClientTypes.CopyPartResult = try responseDecoder.decode(responseBody: data) - self.copyPartResult = output - } else { - self.copyPartResult = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ClientTypes.CopyPartResult = try responseDecoder.decode(responseBody: data) + self.copyPartResult = output } else { self.copyPartResult = nil } @@ -30532,9 +30388,8 @@ public struct UploadPartInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.stream(bodydata) - input.builder.withBody(bodybody) + let bodyBody = ClientRuntime.HttpBody(byteStream: body) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -30647,6 +30502,7 @@ extension UploadPartInput { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "uploadPart") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -30664,7 +30520,7 @@ extension UploadPartInput { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } @@ -31128,9 +30984,8 @@ public struct WriteGetObjectResponseInputBodyMiddleware: ClientRuntime.Middlewar Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.stream(bodydata) - input.builder.withBody(bodybody) + let bodyBody = ClientRuntime.HttpBody(byteStream: body) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } diff --git a/Sources/Services/AWSS3Control/S3ControlClient.swift b/Sources/Services/AWSS3Control/S3ControlClient.swift index e35db004c26..725a82156e5 100644 --- a/Sources/Services/AWSS3Control/S3ControlClient.swift +++ b/Sources/Services/AWSS3Control/S3ControlClient.swift @@ -223,6 +223,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -239,7 +240,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -265,6 +266,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessPointForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -281,7 +283,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -318,6 +320,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -335,7 +338,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -365,6 +368,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -389,7 +393,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -417,6 +421,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMultiRegionAccessPoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -442,7 +447,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +473,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -481,7 +487,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +513,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessPointForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +527,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -544,6 +551,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessPointPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -557,7 +565,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -581,6 +589,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessPointPolicyForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -594,7 +603,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -620,6 +629,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -633,7 +643,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +667,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketLifecycleConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -670,7 +681,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +705,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -707,7 +719,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -731,6 +743,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +757,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +781,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBucketTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -781,7 +795,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -807,6 +821,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteJobTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -820,7 +835,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -848,6 +863,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMultiRegionAccessPoint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -873,7 +889,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -897,6 +913,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePublicAccessBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -910,7 +927,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -930,6 +947,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStorageLensConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -943,7 +961,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -963,6 +981,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStorageLensConfigurationTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -976,7 +995,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1023,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1017,7 +1037,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1065,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMultiRegionAccessPointOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1080,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1085,6 +1106,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1098,7 +1120,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1120,6 +1142,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPointConfigurationForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1133,7 +1156,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1159,6 +1182,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPointForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1172,7 +1196,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1220,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPointPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1209,7 +1234,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1233,6 +1258,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPointPolicyForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1246,7 +1272,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1266,6 +1292,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPointPolicyStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1279,7 +1306,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1299,6 +1326,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessPointPolicyStatusForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1340,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1338,6 +1366,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1351,7 +1380,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1389,6 +1418,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketLifecycleConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1402,7 +1432,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1428,6 +1458,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1441,7 +1472,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1465,6 +1496,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1478,7 +1510,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1512,6 +1544,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1525,7 +1558,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1551,6 +1584,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBucketVersioning") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1564,7 +1598,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1590,6 +1624,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1603,7 +1638,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1631,6 +1666,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMultiRegionAccessPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1645,7 +1681,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1669,6 +1705,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMultiRegionAccessPointPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1683,7 +1720,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1707,6 +1744,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMultiRegionAccessPointPolicyStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1721,7 +1759,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1754,6 +1792,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMultiRegionAccessPointRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1768,7 +1807,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1831,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPublicAccessBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1805,7 +1845,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1825,6 +1865,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStorageLensConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1838,7 +1879,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1858,6 +1899,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getStorageLensConfigurationTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1871,7 +1913,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1897,6 +1939,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessPoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1911,7 +1954,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1937,6 +1980,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessPointsForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1951,7 +1995,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1979,6 +2023,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1993,7 +2038,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2021,6 +2066,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMultiRegionAccessPoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2036,7 +2082,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2056,6 +2102,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegionalBuckets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2070,7 +2117,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2090,6 +2137,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStorageLensConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2104,7 +2152,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2126,6 +2174,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccessPointConfigurationForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2142,7 +2191,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2166,6 +2215,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccessPointPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2182,7 +2232,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2206,6 +2256,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccessPointPolicyForObjectLambda") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2222,7 +2273,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2246,6 +2297,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketLifecycleConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2263,7 +2315,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2287,6 +2339,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2304,7 +2357,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2337,6 +2390,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2354,7 +2408,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2409,6 +2463,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2426,7 +2481,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2459,6 +2514,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putBucketVersioning") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2476,7 +2532,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2524,6 +2580,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putJobTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2540,7 +2597,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2564,6 +2621,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMultiRegionAccessPointPolicy") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2589,7 +2647,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2613,6 +2671,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPublicAccessBlock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2629,7 +2688,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2649,6 +2708,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putStorageLensConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2665,7 +2725,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2685,6 +2745,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putStorageLensConfigurationTagging") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2701,7 +2762,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2734,6 +2795,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "submitMultiRegionAccessPointRoutes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2751,7 +2813,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2779,6 +2841,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJobPriority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2793,7 +2856,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2821,6 +2884,7 @@ extension S3ControlClient: S3ControlClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJobStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2835,7 +2899,7 @@ extension S3ControlClient: S3ControlClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSS3Control/models/Models.swift b/Sources/Services/AWSS3Control/models/Models.swift index 26224bf37ca..0918dbd97e7 100644 --- a/Sources/Services/AWSS3Control/models/Models.swift +++ b/Sources/Services/AWSS3Control/models/Models.swift @@ -889,7 +889,7 @@ extension S3ControlClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -904,7 +904,7 @@ extension BadRequestException { } /// -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -948,7 +948,7 @@ extension BucketAlreadyExists { } /// The requested Outposts bucket name is not available. The bucket namespace is shared by all users of the Outposts in this Region. Select a different name and try again. -public struct BucketAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BucketAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -970,7 +970,7 @@ extension BucketAlreadyOwnedByYou { } /// The Outposts bucket you tried to create already exists, and you own it. -public struct BucketAlreadyOwnedByYou: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BucketAlreadyOwnedByYou: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1365,9 +1365,8 @@ public enum CreateAccessPointForObjectLambdaOutputError: Swift.Error, Swift.Equa extension CreateAccessPointForObjectLambdaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessPointForObjectLambdaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.objectLambdaAccessPointArn = output.objectLambdaAccessPointArn @@ -1559,9 +1558,8 @@ public enum CreateAccessPointOutputError: Swift.Error, Swift.Equatable { extension CreateAccessPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPointArn = output.accessPointArn self.alias = output.alias @@ -1677,15 +1675,15 @@ public struct CreateBucketInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let createBucketConfiguration = input.operationInput.createBucketConfiguration { let xmlEncoder = encoder as! XMLEncoder - let createBucketConfigurationdata = try xmlEncoder.encode(createBucketConfiguration, withRootKey: "CreateBucketConfiguration") - let createBucketConfigurationbody = ClientRuntime.HttpBody.data(createBucketConfigurationdata) - input.builder.withBody(createBucketConfigurationbody) + let createBucketConfigurationData = try xmlEncoder.encode(createBucketConfiguration, withRootKey: "CreateBucketConfiguration") + let createBucketConfigurationBody = ClientRuntime.HttpBody.data(createBucketConfigurationData) + input.builder.withBody(createBucketConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let createBucketConfigurationdata = "{}".data(using: .utf8)! - let createBucketConfigurationbody = ClientRuntime.HttpBody.data(createBucketConfigurationdata) - input.builder.withBody(createBucketConfigurationbody) + let createBucketConfigurationData = "{}".data(using: .utf8)! + let createBucketConfigurationBody = ClientRuntime.HttpBody.data(createBucketConfigurationData) + input.builder.withBody(createBucketConfigurationBody) } } } catch let err { @@ -1864,9 +1862,8 @@ extension CreateBucketOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.location = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBucketOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucketArn = output.bucketArn } else { @@ -2148,9 +2145,8 @@ public enum CreateJobOutputError: Swift.Error, Swift.Equatable { extension CreateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -2395,9 +2391,8 @@ public enum CreateMultiRegionAccessPointOutputError: Swift.Error, Swift.Equatabl extension CreateMultiRegionAccessPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMultiRegionAccessPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestTokenARN = output.requestTokenARN } else { @@ -3442,9 +3437,8 @@ public enum DeleteMultiRegionAccessPointOutputError: Swift.Error, Swift.Equatabl extension DeleteMultiRegionAccessPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMultiRegionAccessPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestTokenARN = output.requestTokenARN } else { @@ -3773,9 +3767,8 @@ public enum DescribeJobOutputError: Swift.Error, Swift.Equatable { extension DescribeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -3879,9 +3872,8 @@ public enum DescribeMultiRegionAccessPointOperationOutputError: Swift.Error, Swi extension DescribeMultiRegionAccessPointOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMultiRegionAccessPointOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.asyncOperation = output.asyncOperation } else { @@ -4596,9 +4588,8 @@ public enum GetAccessPointConfigurationForObjectLambdaOutputError: Swift.Error, extension GetAccessPointConfigurationForObjectLambdaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPointConfigurationForObjectLambdaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -4702,9 +4693,8 @@ public enum GetAccessPointForObjectLambdaOutputError: Swift.Error, Swift.Equatab extension GetAccessPointForObjectLambdaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPointForObjectLambdaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.creationDate = output.creationDate @@ -4838,9 +4828,8 @@ public enum GetAccessPointOutputError: Swift.Error, Swift.Equatable { extension GetAccessPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPointArn = output.accessPointArn self.alias = output.alias @@ -5051,9 +5040,8 @@ public enum GetAccessPointPolicyForObjectLambdaOutputError: Swift.Error, Swift.E extension GetAccessPointPolicyForObjectLambdaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPointPolicyForObjectLambdaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -5157,9 +5145,8 @@ public enum GetAccessPointPolicyOutputError: Swift.Error, Swift.Equatable { extension GetAccessPointPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPointPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -5263,9 +5250,8 @@ public enum GetAccessPointPolicyStatusForObjectLambdaOutputError: Swift.Error, S extension GetAccessPointPolicyStatusForObjectLambdaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPointPolicyStatusForObjectLambdaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyStatus = output.policyStatus } else { @@ -5369,9 +5355,8 @@ public enum GetAccessPointPolicyStatusOutputError: Swift.Error, Swift.Equatable extension GetAccessPointPolicyStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessPointPolicyStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyStatus = output.policyStatus } else { @@ -5521,9 +5506,8 @@ public enum GetBucketLifecycleConfigurationOutputError: Swift.Error, Swift.Equat extension GetBucketLifecycleConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketLifecycleConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rules = output.rules } else { @@ -5598,9 +5582,8 @@ public enum GetBucketOutputError: Swift.Error, Swift.Equatable { extension GetBucketOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bucket = output.bucket self.creationDate = output.creationDate @@ -5724,9 +5707,8 @@ public enum GetBucketPolicyOutputError: Swift.Error, Swift.Equatable { extension GetBucketPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -5830,9 +5812,8 @@ public enum GetBucketReplicationOutputError: Swift.Error, Swift.Equatable { extension GetBucketReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationConfiguration = output.replicationConfiguration } else { @@ -5936,9 +5917,8 @@ public enum GetBucketTaggingOutputError: Swift.Error, Swift.Equatable { extension GetBucketTaggingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketTaggingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagSet = output.tagSet } else { @@ -6060,9 +6040,8 @@ public enum GetBucketVersioningOutputError: Swift.Error, Swift.Equatable { extension GetBucketVersioningOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBucketVersioningOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mfaDelete = output.mfaDelete self.status = output.status @@ -6182,9 +6161,8 @@ public enum GetJobTaggingOutputError: Swift.Error, Swift.Equatable { extension GetJobTaggingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobTaggingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6305,9 +6283,8 @@ public enum GetMultiRegionAccessPointOutputError: Swift.Error, Swift.Equatable { extension GetMultiRegionAccessPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMultiRegionAccessPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPoint = output.accessPoint } else { @@ -6411,9 +6388,8 @@ public enum GetMultiRegionAccessPointPolicyOutputError: Swift.Error, Swift.Equat extension GetMultiRegionAccessPointPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMultiRegionAccessPointPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -6517,9 +6493,8 @@ public enum GetMultiRegionAccessPointPolicyStatusOutputError: Swift.Error, Swift extension GetMultiRegionAccessPointPolicyStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMultiRegionAccessPointPolicyStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.established = output.established } else { @@ -6623,9 +6598,8 @@ public enum GetMultiRegionAccessPointRoutesOutputError: Swift.Error, Swift.Equat extension GetMultiRegionAccessPointRoutesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMultiRegionAccessPointRoutesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mrap = output.mrap self.routes = output.routes @@ -6750,13 +6724,9 @@ public enum GetPublicAccessBlockOutputError: Swift.Error, Swift.Equatable { extension GetPublicAccessBlockOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ControlClientTypes.PublicAccessBlockConfiguration = try responseDecoder.decode(responseBody: data) - self.publicAccessBlockConfiguration = output - } else { - self.publicAccessBlockConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ControlClientTypes.PublicAccessBlockConfiguration = try responseDecoder.decode(responseBody: data) + self.publicAccessBlockConfiguration = output } else { self.publicAccessBlockConfiguration = nil } @@ -6858,13 +6828,9 @@ public enum GetStorageLensConfigurationOutputError: Swift.Error, Swift.Equatable extension GetStorageLensConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: S3ControlClientTypes.StorageLensConfiguration = try responseDecoder.decode(responseBody: data) - self.storageLensConfiguration = output - } else { - self.storageLensConfiguration = nil - } + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { + let output: S3ControlClientTypes.StorageLensConfiguration = try responseDecoder.decode(responseBody: data) + self.storageLensConfiguration = output } else { self.storageLensConfiguration = nil } @@ -6966,9 +6932,8 @@ public enum GetStorageLensConfigurationTaggingOutputError: Swift.Error, Swift.Eq extension GetStorageLensConfigurationTaggingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetStorageLensConfigurationTaggingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7024,7 +6989,7 @@ extension GetStorageLensConfigurationTaggingOutputResponseBody: Swift.Decodable extension IdempotencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7039,7 +7004,7 @@ extension IdempotencyException { } /// -public struct IdempotencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7177,7 +7142,7 @@ extension S3ControlClientTypes { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7192,7 +7157,7 @@ extension InternalServiceException { } /// -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7228,7 +7193,7 @@ extension InternalServiceExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7243,7 +7208,7 @@ extension InvalidNextTokenException { } /// -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7279,7 +7244,7 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7294,7 +7259,7 @@ extension InvalidRequestException { } /// -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8631,7 +8596,7 @@ extension S3ControlClientTypes { extension JobStatusException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8646,7 +8611,7 @@ extension JobStatusException { } /// -public struct JobStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct JobStatusException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9369,9 +9334,8 @@ public enum ListAccessPointsForObjectLambdaOutputError: Swift.Error, Swift.Equat extension ListAccessPointsForObjectLambdaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessPointsForObjectLambdaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.objectLambdaAccessPointList = output.objectLambdaAccessPointList @@ -9527,9 +9491,8 @@ public enum ListAccessPointsOutputError: Swift.Error, Swift.Equatable { extension ListAccessPointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessPointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPointList = output.accessPointList self.nextToken = output.nextToken @@ -9693,9 +9656,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -9843,9 +9805,8 @@ public enum ListMultiRegionAccessPointsOutputError: Swift.Error, Swift.Equatable extension ListMultiRegionAccessPointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMultiRegionAccessPointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessPoints = output.accessPoints self.nextToken = output.nextToken @@ -10000,9 +9961,8 @@ public enum ListRegionalBucketsOutputError: Swift.Error, Swift.Equatable { extension ListRegionalBucketsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegionalBucketsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.regionalBucketList = output.regionalBucketList @@ -10227,9 +10187,8 @@ public enum ListStorageLensConfigurationsOutputError: Swift.Error, Swift.Equatab extension ListStorageLensConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStorageLensConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.storageLensConfigurationList = output.storageLensConfigurationList @@ -10920,7 +10879,7 @@ extension S3ControlClientTypes { extension NoSuchPublicAccessBlockConfiguration { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -10935,7 +10894,7 @@ extension NoSuchPublicAccessBlockConfiguration { } /// Amazon S3 throws this exception if you make a GetPublicAccessBlock request against an account that doesn't have a PublicAccessBlockConfiguration set. -public struct NoSuchPublicAccessBlockConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchPublicAccessBlockConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11095,7 +11054,7 @@ extension S3ControlClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -11110,7 +11069,7 @@ extension NotFoundException { } /// -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12423,15 +12382,15 @@ public struct PutBucketLifecycleConfigurationInputBodyMiddleware: ClientRuntime. let encoder = context.getEncoder() if let lifecycleConfiguration = input.operationInput.lifecycleConfiguration { let xmlEncoder = encoder as! XMLEncoder - let lifecycleConfigurationdata = try xmlEncoder.encode(lifecycleConfiguration, withRootKey: "LifecycleConfiguration") - let lifecycleConfigurationbody = ClientRuntime.HttpBody.data(lifecycleConfigurationdata) - input.builder.withBody(lifecycleConfigurationbody) + let lifecycleConfigurationData = try xmlEncoder.encode(lifecycleConfiguration, withRootKey: "LifecycleConfiguration") + let lifecycleConfigurationBody = ClientRuntime.HttpBody.data(lifecycleConfigurationData) + input.builder.withBody(lifecycleConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let lifecycleConfigurationdata = "{}".data(using: .utf8)! - let lifecycleConfigurationbody = ClientRuntime.HttpBody.data(lifecycleConfigurationdata) - input.builder.withBody(lifecycleConfigurationbody) + let lifecycleConfigurationData = "{}".data(using: .utf8)! + let lifecycleConfigurationBody = ClientRuntime.HttpBody.data(lifecycleConfigurationData) + input.builder.withBody(lifecycleConfigurationBody) } } } catch let err { @@ -12702,15 +12661,15 @@ public struct PutBucketReplicationInputBodyMiddleware: ClientRuntime.Middleware let encoder = context.getEncoder() if let replicationConfiguration = input.operationInput.replicationConfiguration { let xmlEncoder = encoder as! XMLEncoder - let replicationConfigurationdata = try xmlEncoder.encode(replicationConfiguration, withRootKey: "ReplicationConfiguration") - let replicationConfigurationbody = ClientRuntime.HttpBody.data(replicationConfigurationdata) - input.builder.withBody(replicationConfigurationbody) + let replicationConfigurationData = try xmlEncoder.encode(replicationConfiguration, withRootKey: "ReplicationConfiguration") + let replicationConfigurationBody = ClientRuntime.HttpBody.data(replicationConfigurationData) + input.builder.withBody(replicationConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let replicationConfigurationdata = "{}".data(using: .utf8)! - let replicationConfigurationbody = ClientRuntime.HttpBody.data(replicationConfigurationdata) - input.builder.withBody(replicationConfigurationbody) + let replicationConfigurationData = "{}".data(using: .utf8)! + let replicationConfigurationBody = ClientRuntime.HttpBody.data(replicationConfigurationData) + input.builder.withBody(replicationConfigurationBody) } } } catch let err { @@ -12858,15 +12817,15 @@ public struct PutBucketTaggingInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let tagging = input.operationInput.tagging { let xmlEncoder = encoder as! XMLEncoder - let taggingdata = try xmlEncoder.encode(tagging, withRootKey: "Tagging") - let taggingbody = ClientRuntime.HttpBody.data(taggingdata) - input.builder.withBody(taggingbody) + let taggingData = try xmlEncoder.encode(tagging, withRootKey: "Tagging") + let taggingBody = ClientRuntime.HttpBody.data(taggingData) + input.builder.withBody(taggingBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let taggingdata = "{}".data(using: .utf8)! - let taggingbody = ClientRuntime.HttpBody.data(taggingdata) - input.builder.withBody(taggingbody) + let taggingData = "{}".data(using: .utf8)! + let taggingBody = ClientRuntime.HttpBody.data(taggingData) + input.builder.withBody(taggingBody) } } } catch let err { @@ -13014,15 +12973,15 @@ public struct PutBucketVersioningInputBodyMiddleware: ClientRuntime.Middleware { let encoder = context.getEncoder() if let versioningConfiguration = input.operationInput.versioningConfiguration { let xmlEncoder = encoder as! XMLEncoder - let versioningConfigurationdata = try xmlEncoder.encode(versioningConfiguration, withRootKey: "VersioningConfiguration") - let versioningConfigurationbody = ClientRuntime.HttpBody.data(versioningConfigurationdata) - input.builder.withBody(versioningConfigurationbody) + let versioningConfigurationData = try xmlEncoder.encode(versioningConfiguration, withRootKey: "VersioningConfiguration") + let versioningConfigurationBody = ClientRuntime.HttpBody.data(versioningConfigurationData) + input.builder.withBody(versioningConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let versioningConfigurationdata = "{}".data(using: .utf8)! - let versioningConfigurationbody = ClientRuntime.HttpBody.data(versioningConfigurationdata) - input.builder.withBody(versioningConfigurationbody) + let versioningConfigurationData = "{}".data(using: .utf8)! + let versioningConfigurationBody = ClientRuntime.HttpBody.data(versioningConfigurationData) + input.builder.withBody(versioningConfigurationBody) } } } catch let err { @@ -13483,9 +13442,8 @@ public enum PutMultiRegionAccessPointPolicyOutputError: Swift.Error, Swift.Equat extension PutMultiRegionAccessPointPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutMultiRegionAccessPointPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestTokenARN = output.requestTokenARN } else { @@ -13539,15 +13497,15 @@ public struct PutPublicAccessBlockInputBodyMiddleware: ClientRuntime.Middleware let encoder = context.getEncoder() if let publicAccessBlockConfiguration = input.operationInput.publicAccessBlockConfiguration { let xmlEncoder = encoder as! XMLEncoder - let publicAccessBlockConfigurationdata = try xmlEncoder.encode(publicAccessBlockConfiguration, withRootKey: "PublicAccessBlockConfiguration") - let publicAccessBlockConfigurationbody = ClientRuntime.HttpBody.data(publicAccessBlockConfigurationdata) - input.builder.withBody(publicAccessBlockConfigurationbody) + let publicAccessBlockConfigurationData = try xmlEncoder.encode(publicAccessBlockConfiguration, withRootKey: "PublicAccessBlockConfiguration") + let publicAccessBlockConfigurationBody = ClientRuntime.HttpBody.data(publicAccessBlockConfigurationData) + input.builder.withBody(publicAccessBlockConfigurationBody) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let publicAccessBlockConfigurationdata = "{}".data(using: .utf8)! - let publicAccessBlockConfigurationbody = ClientRuntime.HttpBody.data(publicAccessBlockConfigurationdata) - input.builder.withBody(publicAccessBlockConfigurationbody) + let publicAccessBlockConfigurationData = "{}".data(using: .utf8)! + let publicAccessBlockConfigurationBody = ClientRuntime.HttpBody.data(publicAccessBlockConfigurationData) + input.builder.withBody(publicAccessBlockConfigurationBody) } } } catch let err { @@ -17957,7 +17915,7 @@ extension S3ControlClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -17972,7 +17930,7 @@ extension TooManyRequestsException { } /// -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18008,7 +17966,7 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -18023,7 +17981,7 @@ extension TooManyTagsException { } /// Amazon S3 throws this exception if you have too many tags in your tag set. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18265,9 +18223,8 @@ public enum UpdateJobPriorityOutputError: Swift.Error, Swift.Equatable { extension UpdateJobPriorityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateJobPriorityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.priority = output.priority @@ -18421,9 +18378,8 @@ public enum UpdateJobStatusOutputError: Swift.Error, Swift.Equatable { extension UpdateJobStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateJobStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.status = output.status diff --git a/Sources/Services/AWSS3Outposts/S3OutpostsClient.swift b/Sources/Services/AWSS3Outposts/S3OutpostsClient.swift index e273d26bcc8..7802c14f9e9 100644 --- a/Sources/Services/AWSS3Outposts/S3OutpostsClient.swift +++ b/Sources/Services/AWSS3Outposts/S3OutpostsClient.swift @@ -212,6 +212,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3-outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -227,7 +228,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3-outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -264,7 +266,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3-outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -301,7 +304,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -321,6 +324,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3-outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOutpostsWithS3") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -334,7 +338,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -358,6 +362,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "s3-outposts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSharedEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +376,7 @@ extension S3OutpostsClient: S3OutpostsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSS3Outposts/models/Models.swift b/Sources/Services/AWSS3Outposts/models/Models.swift index 9ab3e1ef0be..c575d1b6704 100644 --- a/Sources/Services/AWSS3Outposts/models/Models.swift +++ b/Sources/Services/AWSS3Outposts/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access was denied for this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension ConflictException { } /// There was a conflict with this action, and it could not be completed. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -240,9 +238,8 @@ public enum CreateEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointArn = output.endpointArn } else { @@ -652,9 +649,8 @@ extension S3OutpostsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -668,7 +664,7 @@ extension InternalServerException { } /// There was an exception with the internal server. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -782,9 +778,8 @@ public enum ListEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.nextToken = output.nextToken @@ -918,9 +913,8 @@ public enum ListOutpostsWithS3OutputError: Swift.Error, Swift.Equatable { extension ListOutpostsWithS3OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOutpostsWithS3OutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.outposts = output.outposts @@ -1073,9 +1067,8 @@ public enum ListSharedEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListSharedEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSharedEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.nextToken = output.nextToken @@ -1233,9 +1226,8 @@ extension S3OutpostsClientTypes { extension OutpostOfflineException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OutpostOfflineExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1249,7 +1241,7 @@ extension OutpostOfflineException { } /// The service link connection to your Outposts home Region is down. Check your connection and try again. -public struct OutpostOfflineException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OutpostOfflineException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1285,9 +1277,8 @@ extension OutpostOfflineExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1301,7 +1292,7 @@ extension ResourceNotFoundException { } /// The requested resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1337,9 +1328,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1353,7 +1343,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1389,9 +1379,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1405,7 +1394,7 @@ extension ValidationException { } /// There was an exception validating this data. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSES/SESClient.swift b/Sources/Services/AWSSES/SESClient.swift index 9545d1e8438..3815ceef1a4 100644 --- a/Sources/Services/AWSSES/SESClient.swift +++ b/Sources/Services/AWSSES/SESClient.swift @@ -204,6 +204,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cloneReceiptRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -309,6 +312,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSetTrackingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -324,7 +328,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +348,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomVerificationEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +364,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +384,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReceiptFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReceiptRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -429,7 +436,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +456,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReceiptRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -464,7 +472,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -484,6 +492,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -499,7 +508,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +528,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -534,7 +544,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -554,6 +564,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -569,7 +580,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -589,6 +600,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSetTrackingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -604,7 +616,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +636,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomVerificationEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -674,7 +688,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -694,6 +708,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIdentityPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +724,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +744,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReceiptFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +760,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +780,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReceiptRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -779,7 +796,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -799,6 +816,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReceiptRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +832,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +852,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +868,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +888,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVerifiedEmailAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -884,7 +904,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -904,6 +924,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeActiveReceiptRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -919,7 +940,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -939,6 +960,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +976,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +996,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReceiptRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1012,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1032,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReceiptRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1024,7 +1048,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1044,6 +1068,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountSendingEnabled") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1059,7 +1084,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1079,6 +1104,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCustomVerificationEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1120,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1123,6 +1149,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityDkimAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1138,7 +1165,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1158,6 +1185,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityMailFromDomainAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1173,7 +1201,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1193,6 +1221,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityNotificationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1208,7 +1237,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1228,6 +1257,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1243,7 +1273,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1263,6 +1293,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityVerificationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1278,7 +1309,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1298,6 +1329,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSendQuota") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1313,7 +1345,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1333,6 +1365,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSendStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1348,7 +1381,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1368,6 +1401,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1383,7 +1417,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1403,6 +1437,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurationSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1418,7 +1453,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1438,6 +1473,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomVerificationEmailTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1453,7 +1489,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1473,6 +1509,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1488,7 +1525,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1508,6 +1545,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentityPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1523,7 +1561,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1543,6 +1581,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReceiptFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1558,7 +1597,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1578,6 +1617,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReceiptRuleSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1593,7 +1633,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1613,6 +1653,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1669,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1689,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVerifiedEmailAddresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1663,7 +1705,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1683,6 +1725,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetDeliveryOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1698,7 +1741,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1718,6 +1761,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putIdentityPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1733,7 +1777,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1753,6 +1797,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "reorderReceiptRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1768,7 +1813,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1788,6 +1833,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendBounce") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1803,7 +1849,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1837,6 +1883,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendBulkTemplatedEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1852,7 +1899,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1919,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendCustomVerificationEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1887,7 +1935,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1920,6 +1968,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1935,7 +1984,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1987,6 +2036,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendRawEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2002,7 +2052,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2037,6 +2087,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendTemplatedEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2052,7 +2103,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2072,6 +2123,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setActiveReceiptRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2087,7 +2139,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2107,6 +2159,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIdentityDkimEnabled") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2122,7 +2175,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2142,6 +2195,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIdentityFeedbackForwardingEnabled") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2157,7 +2211,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2177,6 +2231,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIdentityHeadersInNotificationsEnabled") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2192,7 +2247,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2212,6 +2267,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIdentityMailFromDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2227,7 +2283,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2247,6 +2303,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setIdentityNotificationTopic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2262,7 +2319,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2282,6 +2339,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setReceiptRulePosition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2297,7 +2355,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2317,6 +2375,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testRenderTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2332,7 +2391,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2352,6 +2411,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccountSendingEnabled") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2367,7 +2427,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2387,6 +2447,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2402,7 +2463,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2422,6 +2483,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationSetReputationMetricsEnabled") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2437,7 +2499,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2457,6 +2519,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationSetSendingEnabled") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2472,7 +2535,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2492,6 +2555,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationSetTrackingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2507,7 +2571,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2527,6 +2591,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCustomVerificationEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2542,7 +2607,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2562,6 +2627,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReceiptRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2577,7 +2643,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2597,6 +2663,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2612,7 +2679,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2641,6 +2708,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verifyDomainDkim") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2656,7 +2724,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2676,6 +2744,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verifyDomainIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2691,7 +2760,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2711,6 +2780,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verifyEmailAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2726,7 +2796,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2746,6 +2816,7 @@ extension SESClient: SESClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verifyEmailIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2761,7 +2832,7 @@ extension SESClient: SESClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSES/models/Models.swift b/Sources/Services/AWSSES/models/Models.swift index bf3c329a739..3a2c4b4934e 100644 --- a/Sources/Services/AWSSES/models/Models.swift +++ b/Sources/Services/AWSSES/models/Models.swift @@ -4,7 +4,7 @@ import ClientRuntime extension AccountSendingPausedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -19,7 +19,7 @@ extension AccountSendingPausedException { } /// Indicates that email sending is disabled for your entire Amazon SES account. You can enable or disable email sending for your Amazon SES account using [UpdateAccountSendingEnabled]. -public struct AccountSendingPausedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountSendingPausedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -102,7 +102,7 @@ extension SESClientTypes { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -119,7 +119,7 @@ extension AlreadyExistsException { } /// Indicates that a resource could not be created because of a naming conflict. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -661,7 +661,7 @@ extension SESClientTypes { extension CannotDeleteException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -678,7 +678,7 @@ extension CannotDeleteException { } /// Indicates that the delete operation could not be completed. -public struct CannotDeleteException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CannotDeleteException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -991,7 +991,7 @@ extension SESClientTypes { extension ConfigurationSetAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -1008,7 +1008,7 @@ extension ConfigurationSetAlreadyExistsException { } /// Indicates that the configuration set could not be created because of a naming conflict. -public struct ConfigurationSetAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConfigurationSetAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1090,7 +1090,7 @@ extension SESClientTypes { extension ConfigurationSetDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -1107,7 +1107,7 @@ extension ConfigurationSetDoesNotExistException { } /// Indicates that the configuration set does not exist. -public struct ConfigurationSetDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConfigurationSetDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1151,7 +1151,7 @@ extension ConfigurationSetDoesNotExistExceptionBody: Swift.Decodable { extension ConfigurationSetSendingPausedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -1168,7 +1168,7 @@ extension ConfigurationSetSendingPausedException { } /// Indicates that email sending is disabled for the configuration set. You can enable or disable email sending for a configuration set using [UpdateConfigurationSetSendingEnabled]. -public struct ConfigurationSetSendingPausedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConfigurationSetSendingPausedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2083,7 +2083,7 @@ extension SESClientTypes { extension CustomVerificationEmailInvalidContentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2098,7 +2098,7 @@ extension CustomVerificationEmailInvalidContentException { } /// Indicates that custom verification email template provided content is invalid. -public struct CustomVerificationEmailInvalidContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomVerificationEmailInvalidContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2209,7 +2209,7 @@ extension SESClientTypes { extension CustomVerificationEmailTemplateAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.customVerificationEmailTemplateName = output.error.customVerificationEmailTemplateName @@ -2226,7 +2226,7 @@ extension CustomVerificationEmailTemplateAlreadyExistsException { } /// Indicates that a custom verification email template with the name you specified already exists. -public struct CustomVerificationEmailTemplateAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomVerificationEmailTemplateAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2270,7 +2270,7 @@ extension CustomVerificationEmailTemplateAlreadyExistsExceptionBody: Swift.Decod extension CustomVerificationEmailTemplateDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.customVerificationEmailTemplateName = output.error.customVerificationEmailTemplateName @@ -2287,7 +2287,7 @@ extension CustomVerificationEmailTemplateDoesNotExistException { } /// Indicates that a custom verification email template with the name you specified does not exist. -public struct CustomVerificationEmailTemplateDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomVerificationEmailTemplateDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3299,9 +3299,8 @@ public enum DescribeActiveReceiptRuleSetOutputError: Swift.Error, Swift.Equatabl extension DescribeActiveReceiptRuleSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeActiveReceiptRuleSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata self.rules = output.rules @@ -3474,9 +3473,8 @@ public enum DescribeConfigurationSetOutputError: Swift.Error, Swift.Equatable { extension DescribeConfigurationSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConfigurationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSet = output.configurationSet self.deliveryOptions = output.deliveryOptions @@ -3656,9 +3654,8 @@ public enum DescribeReceiptRuleOutputError: Swift.Error, Swift.Equatable { extension DescribeReceiptRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReceiptRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule } else { @@ -3767,9 +3764,8 @@ public enum DescribeReceiptRuleSetOutputError: Swift.Error, Swift.Equatable { extension DescribeReceiptRuleSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReceiptRuleSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata self.rules = output.rules @@ -4163,7 +4159,7 @@ extension SESClientTypes { extension EventDestinationAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -4182,7 +4178,7 @@ extension EventDestinationAlreadyExistsException { } /// Indicates that the event destination could not be created because of a naming conflict. -public struct EventDestinationAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventDestinationAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4234,7 +4230,7 @@ extension EventDestinationAlreadyExistsExceptionBody: Swift.Decodable { extension EventDestinationDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -4253,7 +4249,7 @@ extension EventDestinationDoesNotExistException { } /// Indicates that the event destination does not exist. -public struct EventDestinationDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventDestinationDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4402,7 +4398,7 @@ extension SESClientTypes { extension FromEmailAddressNotVerifiedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.fromEmailAddress = output.error.fromEmailAddress @@ -4419,7 +4415,7 @@ extension FromEmailAddressNotVerifiedException { } /// Indicates that the sender address specified for a custom verification email is not verified, and is therefore not eligible to send the custom verification email. -public struct FromEmailAddressNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FromEmailAddressNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4501,9 +4497,8 @@ public enum GetAccountSendingEnabledOutputError: Swift.Error, Swift.Equatable { extension GetAccountSendingEnabledOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountSendingEnabledOutputResponseBody = try responseDecoder.decode(responseBody: data) self.enabled = output.enabled } else { @@ -4612,9 +4607,8 @@ public enum GetCustomVerificationEmailTemplateOutputError: Swift.Error, Swift.Eq extension GetCustomVerificationEmailTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCustomVerificationEmailTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failureRedirectionURL = output.failureRedirectionURL self.fromEmailAddress = output.fromEmailAddress @@ -4797,9 +4791,8 @@ public enum GetIdentityDkimAttributesOutputError: Swift.Error, Swift.Equatable { extension GetIdentityDkimAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityDkimAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dkimAttributes = output.dkimAttributes } else { @@ -4950,9 +4943,8 @@ public enum GetIdentityMailFromDomainAttributesOutputError: Swift.Error, Swift.E extension GetIdentityMailFromDomainAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityMailFromDomainAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mailFromDomainAttributes = output.mailFromDomainAttributes } else { @@ -5103,9 +5095,8 @@ public enum GetIdentityNotificationAttributesOutputError: Swift.Error, Swift.Equ extension GetIdentityNotificationAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityNotificationAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notificationAttributes = output.notificationAttributes } else { @@ -5268,9 +5259,8 @@ public enum GetIdentityPoliciesOutputError: Swift.Error, Swift.Equatable { extension GetIdentityPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policies = output.policies } else { @@ -5421,9 +5411,8 @@ public enum GetIdentityVerificationAttributesOutputError: Swift.Error, Swift.Equ extension GetIdentityVerificationAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityVerificationAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verificationAttributes = output.verificationAttributes } else { @@ -5520,9 +5509,8 @@ public enum GetSendQuotaOutputError: Swift.Error, Swift.Equatable { extension GetSendQuotaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSendQuotaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.max24HourSend = output.max24HourSend self.maxSendRate = output.maxSendRate @@ -5621,9 +5609,8 @@ public enum GetSendStatisticsOutputError: Swift.Error, Swift.Equatable { extension GetSendStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSendStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sendDataPoints = output.sendDataPoints } else { @@ -5748,9 +5735,8 @@ public enum GetTemplateOutputError: Swift.Error, Swift.Equatable { extension GetTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.template = output.template } else { @@ -6108,7 +6094,7 @@ extension SESClientTypes { extension InvalidCloudWatchDestinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -6127,7 +6113,7 @@ extension InvalidCloudWatchDestinationException { } /// Indicates that the Amazon CloudWatch destination is invalid. See the error message for details. -public struct InvalidCloudWatchDestinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCloudWatchDestinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6179,7 +6165,7 @@ extension InvalidCloudWatchDestinationExceptionBody: Swift.Decodable { extension InvalidConfigurationSetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6194,7 +6180,7 @@ extension InvalidConfigurationSetException { } /// Indicates that the configuration set is invalid. See the error message for details. -public struct InvalidConfigurationSetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConfigurationSetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6230,7 +6216,7 @@ extension InvalidConfigurationSetExceptionBody: Swift.Decodable { extension InvalidDeliveryOptionsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6245,7 +6231,7 @@ extension InvalidDeliveryOptionsException { } /// Indicates that provided delivery option is invalid. -public struct InvalidDeliveryOptionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeliveryOptionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6281,7 +6267,7 @@ extension InvalidDeliveryOptionsExceptionBody: Swift.Decodable { extension InvalidFirehoseDestinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -6300,7 +6286,7 @@ extension InvalidFirehoseDestinationException { } /// Indicates that the Amazon Kinesis Firehose destination is invalid. See the error message for details. -public struct InvalidFirehoseDestinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFirehoseDestinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6352,7 +6338,7 @@ extension InvalidFirehoseDestinationExceptionBody: Swift.Decodable { extension InvalidLambdaFunctionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.functionArn = output.error.functionArn @@ -6369,7 +6355,7 @@ extension InvalidLambdaFunctionException { } /// Indicates that the provided AWS Lambda function is invalid, or that Amazon SES could not execute the provided function, possibly due to permissions issues. For information about giving permissions, see the [Amazon SES Developer Guide](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). -public struct InvalidLambdaFunctionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLambdaFunctionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6413,7 +6399,7 @@ extension InvalidLambdaFunctionExceptionBody: Swift.Decodable { extension InvalidPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6428,7 +6414,7 @@ extension InvalidPolicyException { } /// Indicates that the provided policy is invalid. Check the error stack for more information about what caused the error. -public struct InvalidPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6464,7 +6450,7 @@ extension InvalidPolicyExceptionBody: Swift.Decodable { extension InvalidRenderingParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6481,7 +6467,7 @@ extension InvalidRenderingParameterException { } /// Indicates that one or more of the replacement values you provided is invalid. This error may occur when the TemplateData object contains invalid JSON. -public struct InvalidRenderingParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRenderingParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6524,7 +6510,7 @@ extension InvalidRenderingParameterExceptionBody: Swift.Decodable { extension InvalidS3ConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.bucket = output.error.bucket @@ -6541,7 +6527,7 @@ extension InvalidS3ConfigurationException { } /// Indicates that the provided Amazon S3 bucket or AWS KMS encryption key is invalid, or that Amazon SES could not publish to the bucket, possibly due to permissions issues. For information about giving permissions, see the [Amazon SES Developer Guide](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). -public struct InvalidS3ConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3ConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6585,7 +6571,7 @@ extension InvalidS3ConfigurationExceptionBody: Swift.Decodable { extension InvalidSNSDestinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -6604,7 +6590,7 @@ extension InvalidSNSDestinationException { } /// Indicates that the Amazon Simple Notification Service (Amazon SNS) destination is invalid. See the error message for details. -public struct InvalidSNSDestinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSNSDestinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6656,7 +6642,7 @@ extension InvalidSNSDestinationExceptionBody: Swift.Decodable { extension InvalidSnsTopicException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6673,7 +6659,7 @@ extension InvalidSnsTopicException { } /// Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES could not publish to the topic, possibly due to permissions issues. For information about giving permissions, see the [Amazon SES Developer Guide](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). -public struct InvalidSnsTopicException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSnsTopicException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6717,7 +6703,7 @@ extension InvalidSnsTopicExceptionBody: Swift.Decodable { extension InvalidTemplateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6734,7 +6720,7 @@ extension InvalidTemplateException { } /// Indicates that the template that you specified could not be rendered. This issue may occur when a template refers to a partial that does not exist. -public struct InvalidTemplateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTemplateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6777,7 +6763,7 @@ extension InvalidTemplateExceptionBody: Swift.Decodable { extension InvalidTrackingOptionsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6796,7 +6782,7 @@ extension InvalidTrackingOptionsException { /// * When the tracking domain you specified is not verified in Amazon SES. /// /// * When the tracking domain you specified is not a valid domain or subdomain. -public struct InvalidTrackingOptionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTrackingOptionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6967,7 +6953,7 @@ extension SESClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6982,7 +6968,7 @@ extension LimitExceededException { } /// Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the [Amazon SES Developer Guide](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7094,9 +7080,8 @@ public enum ListConfigurationSetsOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSets = output.configurationSets self.nextToken = output.nextToken @@ -7240,9 +7225,8 @@ public enum ListCustomVerificationEmailTemplatesOutputError: Swift.Error, Swift. extension ListCustomVerificationEmailTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomVerificationEmailTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customVerificationEmailTemplates = output.customVerificationEmailTemplates self.nextToken = output.nextToken @@ -7397,9 +7381,8 @@ public enum ListIdentitiesOutputError: Swift.Error, Swift.Equatable { extension ListIdentitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identities = output.identities self.nextToken = output.nextToken @@ -7534,9 +7517,8 @@ public enum ListIdentityPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListIdentityPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentityPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyNames = output.policyNames } else { @@ -7634,9 +7616,8 @@ public enum ListReceiptFiltersOutputError: Swift.Error, Swift.Equatable { extension ListReceiptFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReceiptFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.filters = output.filters } else { @@ -7759,9 +7740,8 @@ public enum ListReceiptRuleSetsOutputError: Swift.Error, Swift.Equatable { extension ListReceiptRuleSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReceiptRuleSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.ruleSets = output.ruleSets @@ -7904,9 +7884,8 @@ public enum ListTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templatesMetadata = output.templatesMetadata @@ -8011,9 +7990,8 @@ public enum ListVerifiedEmailAddressesOutputError: Swift.Error, Swift.Equatable extension ListVerifiedEmailAddressesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVerifiedEmailAddressesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verifiedEmailAddresses = output.verifiedEmailAddresses } else { @@ -8071,7 +8049,7 @@ extension ListVerifiedEmailAddressesOutputResponseBody: Swift.Decodable { extension MailFromDomainNotVerifiedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8086,7 +8064,7 @@ extension MailFromDomainNotVerifiedException { } /// Indicates that the message could not be sent because Amazon SES could not read the MX record required to use the specified MAIL FROM domain. For information about editing the custom MAIL FROM domain settings for an identity, see the [Amazon SES Developer Guide](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-edit.html). -public struct MailFromDomainNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MailFromDomainNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8251,7 +8229,7 @@ extension SESClientTypes { extension MessageRejected { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8266,7 +8244,7 @@ extension MessageRejected { } /// Indicates that the action failed, and the message could not be sent. Check the error stack for more information about what caused the error. -public struct MessageRejected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MessageRejected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8357,7 +8335,7 @@ extension SESClientTypes { extension MissingRenderingAttributeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8374,7 +8352,7 @@ extension MissingRenderingAttributeException { } /// Indicates that one or more of the replacement values for the specified template was not specified. Ensure that the TemplateData object contains references to all of the replacement tags in the specified template. -public struct MissingRenderingAttributeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingRenderingAttributeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8452,7 +8430,7 @@ extension SESClientTypes { extension ProductionAccessNotGrantedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8467,7 +8445,7 @@ extension ProductionAccessNotGrantedException { } /// Indicates that the account has not been granted production access. -public struct ProductionAccessNotGrantedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProductionAccessNotGrantedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9461,7 +9439,7 @@ extension SESClientTypes { extension RuleDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9478,7 +9456,7 @@ extension RuleDoesNotExistException { } /// Indicates that the provided receipt rule does not exist. -public struct RuleDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RuleDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9522,7 +9500,7 @@ extension RuleDoesNotExistExceptionBody: Swift.Decodable { extension RuleSetDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -9539,7 +9517,7 @@ extension RuleSetDoesNotExistException { } /// Indicates that the provided receipt rule set does not exist. -public struct RuleSetDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RuleSetDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9921,9 +9899,8 @@ public enum SendBounceOutputError: Swift.Error, Swift.Equatable { extension SendBounceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendBounceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -10232,9 +10209,8 @@ public enum SendBulkTemplatedEmailOutputError: Swift.Error, Swift.Equatable { extension SendBulkTemplatedEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendBulkTemplatedEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -10391,9 +10367,8 @@ public enum SendCustomVerificationEmailOutputError: Swift.Error, Swift.Equatable extension SendCustomVerificationEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendCustomVerificationEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -10727,9 +10702,8 @@ public enum SendEmailOutputError: Swift.Error, Swift.Equatable { extension SendEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -10990,9 +10964,8 @@ public enum SendRawEmailOutputError: Swift.Error, Swift.Equatable { extension SendRawEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendRawEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -11277,9 +11250,8 @@ public enum SendTemplatedEmailOutputError: Swift.Error, Swift.Equatable { extension SendTemplatedEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendTemplatedEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -12121,7 +12093,7 @@ extension SESClientTypes { extension TemplateDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -12138,7 +12110,7 @@ extension TemplateDoesNotExistException { } /// Indicates that the Template object you specified does not exist in your Amazon SES account. -public struct TemplateDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TemplateDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12309,9 +12281,8 @@ public enum TestRenderTemplateOutputError: Swift.Error, Swift.Equatable { extension TestRenderTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestRenderTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.renderedTemplate = output.renderedTemplate } else { @@ -12418,7 +12389,7 @@ extension SESClientTypes { extension TrackingOptionsAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -12435,7 +12406,7 @@ extension TrackingOptionsAlreadyExistsException { } /// Indicates that the configuration set you specified already contains a TrackingOptions object. -public struct TrackingOptionsAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrackingOptionsAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12479,7 +12450,7 @@ extension TrackingOptionsAlreadyExistsExceptionBody: Swift.Decodable { extension TrackingOptionsDoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.error.configurationSetName @@ -12496,7 +12467,7 @@ extension TrackingOptionsDoesNotExistException { } /// Indicates that the TrackingOptions object you specified does not exist. -public struct TrackingOptionsDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TrackingOptionsDoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13413,9 +13384,8 @@ public enum VerifyDomainDkimOutputError: Swift.Error, Swift.Equatable { extension VerifyDomainDkimOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VerifyDomainDkimOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dkimTokens = output.dkimTokens } else { @@ -13540,9 +13510,8 @@ public enum VerifyDomainIdentityOutputError: Swift.Error, Swift.Equatable { extension VerifyDomainIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: VerifyDomainIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.verificationToken = output.verificationToken } else { diff --git a/Sources/Services/AWSSESv2/SESv2Client.swift b/Sources/Services/AWSSESv2/SESv2Client.swift index 75aac8eab4d..f56a4cc9179 100644 --- a/Sources/Services/AWSSESv2/SESv2Client.swift +++ b/Sources/Services/AWSSESv2/SESv2Client.swift @@ -208,6 +208,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetMetricData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContactList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomVerificationEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDedicatedIpPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeliverabilityTestReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEmailIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEmailIdentityPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -640,7 +653,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -660,6 +673,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +686,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +706,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -704,7 +719,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -724,6 +739,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContactList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +752,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +772,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomVerificationEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +785,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +805,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDedicatedIpPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +818,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +838,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEmailIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -832,7 +851,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -852,6 +871,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEmailIdentityPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -864,7 +884,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -884,6 +904,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -896,7 +917,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -916,6 +937,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSuppressedDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -928,7 +950,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -948,6 +970,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +983,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +1003,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBlacklistReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -993,7 +1017,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1013,6 +1037,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfigurationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1025,7 +1050,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1070,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfigurationSetEventDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1057,7 +1083,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1077,6 +1103,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1089,7 +1116,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1109,6 +1136,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContactList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1121,7 +1149,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1141,6 +1169,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCustomVerificationEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1153,7 +1182,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1173,6 +1202,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDedicatedIp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1185,7 +1215,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1205,6 +1235,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDedicatedIpPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1217,7 +1248,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1237,6 +1268,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDedicatedIps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1250,7 +1282,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1270,6 +1302,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeliverabilityDashboardOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1282,7 +1315,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1302,6 +1335,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeliverabilityTestReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1314,7 +1348,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1334,6 +1368,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainDeliverabilityCampaign") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1346,7 +1381,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1366,6 +1401,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDomainStatisticsReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1379,7 +1415,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1399,6 +1435,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEmailIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1411,7 +1448,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1431,6 +1468,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEmailIdentityPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1443,7 +1481,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1463,6 +1501,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1475,7 +1514,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1495,6 +1534,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1507,7 +1547,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1527,6 +1567,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSuppressedDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1539,7 +1580,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1559,6 +1600,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConfigurationSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1572,7 +1614,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1592,6 +1634,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContactLists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1605,7 +1648,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1625,6 +1668,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1641,7 +1685,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1661,6 +1705,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomVerificationEmailTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1674,7 +1719,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1694,6 +1739,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDedicatedIpPools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1707,7 +1753,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1727,6 +1773,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeliverabilityTestReports") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1740,7 +1787,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1760,6 +1807,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomainDeliverabilityCampaigns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1773,7 +1821,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1793,6 +1841,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEmailIdentities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1806,7 +1855,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1826,6 +1875,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEmailTemplates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1839,7 +1889,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1859,6 +1909,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1875,7 +1926,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1895,6 +1946,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1910,7 +1962,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1930,6 +1982,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSuppressedDestinations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1943,7 +1996,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1963,6 +2016,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1976,7 +2030,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1996,6 +2050,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountDedicatedIpWarmupAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2011,7 +2066,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2031,6 +2086,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2046,7 +2102,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2066,6 +2122,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountSendingAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2081,7 +2138,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2101,6 +2158,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountSuppressionAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2116,7 +2174,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2136,6 +2194,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountVdmAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2151,7 +2210,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2171,6 +2230,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetDeliveryOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2186,7 +2246,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2206,6 +2266,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetReputationOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2221,7 +2282,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2241,6 +2302,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetSendingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2256,7 +2318,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2276,6 +2338,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetSuppressionOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2291,7 +2354,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2311,6 +2374,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetTrackingOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2326,7 +2390,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2346,6 +2410,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfigurationSetVdmOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2361,7 +2426,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2381,6 +2446,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDedicatedIpInPool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2396,7 +2462,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2416,6 +2482,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDedicatedIpWarmupAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2431,7 +2498,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2451,6 +2518,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDeliverabilityDashboardOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2466,7 +2534,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2486,6 +2554,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailIdentityConfigurationSetAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2501,7 +2570,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2521,6 +2590,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailIdentityDkimAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2536,7 +2606,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2568,6 +2638,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailIdentityDkimSigningAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2583,7 +2654,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2603,6 +2674,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailIdentityFeedbackAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2618,7 +2690,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2638,6 +2710,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailIdentityMailFromAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2653,7 +2726,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2673,6 +2746,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSuppressedDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2688,7 +2762,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2708,6 +2782,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendBulkEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2723,7 +2798,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2743,6 +2818,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendCustomVerificationEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2758,7 +2834,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2784,6 +2860,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendEmail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2799,7 +2876,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2819,6 +2896,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2834,7 +2912,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2854,6 +2932,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testRenderEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2869,7 +2948,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2889,6 +2968,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2902,7 +2982,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2922,6 +3002,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConfigurationSetEventDestination") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2937,7 +3018,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2957,6 +3038,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2972,7 +3054,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2992,6 +3074,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactList") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3007,7 +3090,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3027,6 +3110,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCustomVerificationEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3042,7 +3126,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3062,6 +3146,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEmailIdentityPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3077,7 +3162,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3097,6 +3182,7 @@ extension SESv2Client: SESv2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ses") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEmailTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3112,7 +3198,7 @@ extension SESv2Client: SESv2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSESv2/models/Models.swift b/Sources/Services/AWSSESv2/models/Models.swift index 414de26b769..8d796ea56ce 100644 --- a/Sources/Services/AWSSESv2/models/Models.swift +++ b/Sources/Services/AWSSESv2/models/Models.swift @@ -110,9 +110,8 @@ extension SESv2ClientTypes { extension AccountSuspendedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountSuspendedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -126,7 +125,7 @@ extension AccountSuspendedException { } /// The message can't be sent because the account's ability to send email has been permanently restricted. -public struct AccountSuspendedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountSuspendedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -162,9 +161,8 @@ extension AccountSuspendedExceptionBody: Swift.Decodable { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -178,7 +176,7 @@ extension AlreadyExistsException { } /// The resource specified in your request already exists. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -214,9 +212,8 @@ extension AlreadyExistsExceptionBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -230,7 +227,7 @@ extension BadRequestException { } /// The input you provided is invalid. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -355,9 +352,8 @@ public enum BatchGetMetricDataOutputError: Swift.Error, Swift.Equatable { extension BatchGetMetricDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetMetricDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.results = output.results @@ -1047,9 +1043,8 @@ extension SESv2ClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1063,7 +1058,7 @@ extension ConcurrentModificationException { } /// The resource is being modified by another operation or thread. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1099,9 +1094,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1115,7 +1109,7 @@ extension ConflictException { } /// If there is already an ongoing account details update under review. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2460,9 +2454,8 @@ public enum CreateDeliverabilityTestReportOutputError: Swift.Error, Swift.Equata extension CreateDeliverabilityTestReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDeliverabilityTestReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliverabilityTestStatus = output.deliverabilityTestStatus self.reportId = output.reportId @@ -2643,9 +2636,8 @@ public enum CreateEmailIdentityOutputError: Swift.Error, Swift.Equatable { extension CreateEmailIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEmailIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dkimAttributes = output.dkimAttributes self.identityType = output.identityType @@ -3000,9 +2992,8 @@ public enum CreateImportJobOutputError: Swift.Error, Swift.Equatable { extension CreateImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -5652,9 +5643,8 @@ public enum GetAccountOutputError: Swift.Error, Swift.Equatable { extension GetAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIpAutoWarmupEnabled = output.dedicatedIpAutoWarmupEnabled self.details = output.details @@ -5842,9 +5832,8 @@ public enum GetBlacklistReportsOutputError: Swift.Error, Swift.Equatable { extension GetBlacklistReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBlacklistReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blacklistReport = output.blacklistReport } else { @@ -5959,9 +5948,8 @@ public enum GetConfigurationSetEventDestinationsOutputError: Swift.Error, Swift. extension GetConfigurationSetEventDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigurationSetEventDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventDestinations = output.eventDestinations } else { @@ -6068,9 +6056,8 @@ public enum GetConfigurationSetOutputError: Swift.Error, Swift.Equatable { extension GetConfigurationSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigurationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.configurationSetName self.deliveryOptions = output.deliveryOptions @@ -6285,9 +6272,8 @@ public enum GetContactListOutputError: Swift.Error, Swift.Equatable { extension GetContactListOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactListOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactListName = output.contactListName self.createdTimestamp = output.createdTimestamp @@ -6420,9 +6406,8 @@ public enum GetContactOutputError: Swift.Error, Swift.Equatable { extension GetContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributesData = output.attributesData self.contactListName = output.contactListName @@ -6607,9 +6592,8 @@ public enum GetCustomVerificationEmailTemplateOutputError: Swift.Error, Swift.Eq extension GetCustomVerificationEmailTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCustomVerificationEmailTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failureRedirectionURL = output.failureRedirectionURL self.fromEmailAddress = output.fromEmailAddress @@ -6757,9 +6741,8 @@ public enum GetDedicatedIpOutputError: Swift.Error, Swift.Equatable { extension GetDedicatedIpOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDedicatedIpOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIp = output.dedicatedIp } else { @@ -6857,9 +6840,8 @@ public enum GetDedicatedIpPoolOutputError: Swift.Error, Swift.Equatable { extension GetDedicatedIpPoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDedicatedIpPoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIpPool = output.dedicatedIpPool } else { @@ -6982,9 +6964,8 @@ public enum GetDedicatedIpsOutputError: Swift.Error, Swift.Equatable { extension GetDedicatedIpsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDedicatedIpsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIps = output.dedicatedIps self.nextToken = output.nextToken @@ -7090,9 +7071,8 @@ public enum GetDeliverabilityDashboardOptionsOutputError: Swift.Error, Swift.Equ extension GetDeliverabilityDashboardOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeliverabilityDashboardOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountStatus = output.accountStatus self.activeSubscribedDomains = output.activeSubscribedDomains @@ -7249,9 +7229,8 @@ public enum GetDeliverabilityTestReportOutputError: Swift.Error, Swift.Equatable extension GetDeliverabilityTestReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeliverabilityTestReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliverabilityTestReport = output.deliverabilityTestReport self.ispPlacements = output.ispPlacements @@ -7410,9 +7389,8 @@ public enum GetDomainDeliverabilityCampaignOutputError: Swift.Error, Swift.Equat extension GetDomainDeliverabilityCampaignOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainDeliverabilityCampaignOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainDeliverabilityCampaign = output.domainDeliverabilityCampaign } else { @@ -7542,9 +7520,8 @@ public enum GetDomainStatisticsReportOutputError: Swift.Error, Swift.Equatable { extension GetDomainStatisticsReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDomainStatisticsReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dailyVolumes = output.dailyVolumes self.overallVolume = output.overallVolume @@ -7663,9 +7640,8 @@ public enum GetEmailIdentityOutputError: Swift.Error, Swift.Equatable { extension GetEmailIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEmailIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSetName = output.configurationSetName self.dkimAttributes = output.dkimAttributes @@ -7871,9 +7847,8 @@ public enum GetEmailIdentityPoliciesOutputError: Swift.Error, Swift.Equatable { extension GetEmailIdentityPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEmailIdentityPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policies = output.policies } else { @@ -7980,9 +7955,8 @@ public enum GetEmailTemplateOutputError: Swift.Error, Swift.Equatable { extension GetEmailTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEmailTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.templateContent = output.templateContent self.templateName = output.templateName @@ -8092,9 +8066,8 @@ public enum GetImportJobOutputError: Swift.Error, Swift.Equatable { extension GetImportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completedTimestamp = output.completedTimestamp self.createdTimestamp = output.createdTimestamp @@ -8272,9 +8245,8 @@ public enum GetSuppressedDestinationOutputError: Swift.Error, Swift.Equatable { extension GetSuppressedDestinationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSuppressedDestinationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.suppressedDestination = output.suppressedDestination } else { @@ -8770,9 +8742,8 @@ extension SESv2ClientTypes { extension InternalServiceErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8786,7 +8757,7 @@ extension InternalServiceErrorException { } /// The request couldn't be processed because an error occurred with the Amazon SES API v2. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8822,9 +8793,8 @@ extension InternalServiceErrorExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8838,7 +8808,7 @@ extension InvalidNextTokenException { } /// The specified request includes an invalid or expired token. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9005,9 +8975,8 @@ extension SESv2ClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9021,7 +8990,7 @@ extension LimitExceededException { } /// There are too many instances of the specified resource type. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9130,9 +9099,8 @@ public enum ListConfigurationSetsOutputError: Swift.Error, Swift.Equatable { extension ListConfigurationSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConfigurationSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurationSets = output.configurationSets self.nextToken = output.nextToken @@ -9263,9 +9231,8 @@ public enum ListContactListsOutputError: Swift.Error, Swift.Equatable { extension ListContactListsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContactListsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactLists = output.contactLists self.nextToken = output.nextToken @@ -9474,9 +9441,8 @@ public enum ListContactsOutputError: Swift.Error, Swift.Equatable { extension ListContactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contacts = output.contacts self.nextToken = output.nextToken @@ -9607,9 +9573,8 @@ public enum ListCustomVerificationEmailTemplatesOutputError: Swift.Error, Swift. extension ListCustomVerificationEmailTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomVerificationEmailTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customVerificationEmailTemplates = output.customVerificationEmailTemplates self.nextToken = output.nextToken @@ -9741,9 +9706,8 @@ public enum ListDedicatedIpPoolsOutputError: Swift.Error, Swift.Equatable { extension ListDedicatedIpPoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDedicatedIpPoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedIpPools = output.dedicatedIpPools self.nextToken = output.nextToken @@ -9877,9 +9841,8 @@ public enum ListDeliverabilityTestReportsOutputError: Swift.Error, Swift.Equatab extension ListDeliverabilityTestReportsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeliverabilityTestReportsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deliverabilityTestReports = output.deliverabilityTestReports self.nextToken = output.nextToken @@ -10044,9 +10007,8 @@ public enum ListDomainDeliverabilityCampaignsOutputError: Swift.Error, Swift.Equ extension ListDomainDeliverabilityCampaignsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainDeliverabilityCampaignsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainDeliverabilityCampaigns = output.domainDeliverabilityCampaigns self.nextToken = output.nextToken @@ -10179,9 +10141,8 @@ public enum ListEmailIdentitiesOutputError: Swift.Error, Swift.Equatable { extension ListEmailIdentitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEmailIdentitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.emailIdentities = output.emailIdentities self.nextToken = output.nextToken @@ -10313,9 +10274,8 @@ public enum ListEmailTemplatesOutputError: Swift.Error, Swift.Equatable { extension ListEmailTemplatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEmailTemplatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.templatesMetadata = output.templatesMetadata @@ -10471,9 +10431,8 @@ public enum ListImportJobsOutputError: Swift.Error, Swift.Equatable { extension ListImportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.importJobs = output.importJobs self.nextToken = output.nextToken @@ -10735,9 +10694,8 @@ public enum ListRecommendationsOutputError: Swift.Error, Swift.Equatable { extension ListRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.recommendations = output.recommendations @@ -10897,9 +10855,8 @@ public enum ListSuppressedDestinationsOutputError: Swift.Error, Swift.Equatable extension ListSuppressedDestinationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSuppressedDestinationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.suppressedDestinationSummaries = output.suppressedDestinationSummaries @@ -11027,9 +10984,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -11144,9 +11100,8 @@ extension SESv2ClientTypes { extension MailFromDomainNotVerifiedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MailFromDomainNotVerifiedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11160,7 +11115,7 @@ extension MailFromDomainNotVerifiedException { } /// The message can't be sent because the sending domain isn't verified. -public struct MailFromDomainNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MailFromDomainNotVerifiedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11322,9 +11277,8 @@ extension SESv2ClientTypes { extension MessageRejected { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MessageRejectedBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11338,7 +11292,7 @@ extension MessageRejected { } /// The message can't be sent because it contains invalid content. -public struct MessageRejected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MessageRejected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11694,9 +11648,8 @@ extension SESv2ClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11710,7 +11663,7 @@ extension NotFoundException { } /// The resource you attempted to access doesn't exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13609,9 +13562,8 @@ public enum PutEmailIdentityDkimSigningAttributesOutputError: Swift.Error, Swift extension PutEmailIdentityDkimSigningAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutEmailIdentityDkimSigningAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dkimStatus = output.dkimStatus self.dkimTokens = output.dkimTokens @@ -14716,9 +14668,8 @@ public enum SendBulkEmailOutputError: Swift.Error, Swift.Equatable { extension SendBulkEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendBulkEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bulkEmailEntryResults = output.bulkEmailEntryResults } else { @@ -14876,9 +14827,8 @@ public enum SendCustomVerificationEmailOutputError: Swift.Error, Swift.Equatable extension SendCustomVerificationEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendCustomVerificationEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -15135,9 +15085,8 @@ public enum SendEmailOutputError: Swift.Error, Swift.Equatable { extension SendEmailOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendEmailOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId } else { @@ -15267,9 +15216,8 @@ extension SESv2ClientTypes { extension SendingPausedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendingPausedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15283,7 +15231,7 @@ extension SendingPausedException { } /// The message can't be sent because the account's ability to send email is currently paused. -public struct SendingPausedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SendingPausedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16078,9 +16026,8 @@ public enum TestRenderEmailTemplateOutputError: Swift.Error, Swift.Equatable { extension TestRenderEmailTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestRenderEmailTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.renderedTemplate = output.renderedTemplate } else { @@ -16154,9 +16101,8 @@ extension SESv2ClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16170,7 +16116,7 @@ extension TooManyRequestsException { } /// Too many requests have been made to the operation. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSFN/SFNClient.swift b/Sources/Services/AWSSFN/SFNClient.swift index 7145207018d..d7364e212e2 100644 --- a/Sources/Services/AWSSFN/SFNClient.swift +++ b/Sources/Services/AWSSFN/SFNClient.swift @@ -208,6 +208,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createActivity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStateMachine") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteActivity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStateMachine") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeActivity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMapRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStateMachine") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStateMachineForExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getActivityTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExecutionHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActivities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMapRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStateMachines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendTaskFailure") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendTaskHeartbeat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendTaskSuccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSyncExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "sync-")) @@ -944,7 +965,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMapRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension SFNClient: SFNClientProtocol { .withRegion(value: config.region) .withSigningName(value: "states") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStateMachine") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension SFNClient: SFNClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSFN/models/Models.swift b/Sources/Services/AWSSFN/models/Models.swift index aeb033a6d0f..9a3ef19d799 100644 --- a/Sources/Services/AWSSFN/models/Models.swift +++ b/Sources/Services/AWSSFN/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ActivityDoesNotExist { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivityDoesNotExistBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ActivityDoesNotExist { } /// The specified activity does not exist. -public struct ActivityDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActivityDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -106,9 +105,8 @@ extension SFNClientTypes { extension ActivityLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivityLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -122,7 +120,7 @@ extension ActivityLimitExceeded { } /// The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created. -public struct ActivityLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActivityLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -495,9 +493,8 @@ extension SFNClientTypes { extension ActivityWorkerLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivityWorkerLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -511,7 +508,7 @@ extension ActivityWorkerLimitExceeded { } /// The maximum number of workers concurrently polling for activity tasks has been reached. -public struct ActivityWorkerLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ActivityWorkerLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -773,9 +770,8 @@ public enum CreateActivityOutputError: Swift.Error, Swift.Equatable { extension CreateActivityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateActivityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activityArn = output.activityArn self.creationDate = output.creationDate @@ -1018,9 +1014,8 @@ public enum CreateStateMachineOutputError: Swift.Error, Swift.Equatable { extension CreateStateMachineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStateMachineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.stateMachineArn = output.stateMachineArn @@ -1305,9 +1300,8 @@ public enum DescribeActivityOutputError: Swift.Error, Swift.Equatable { extension DescribeActivityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeActivityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activityArn = output.activityArn self.creationDate = output.creationDate @@ -1459,9 +1453,8 @@ extension DescribeExecutionOutputResponse: Swift.CustomDebugStringConvertible { extension DescribeExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cause = output.cause self.error = output.error @@ -1719,9 +1712,8 @@ public enum DescribeMapRunOutputError: Swift.Error, Swift.Equatable { extension DescribeMapRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMapRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionArn = output.executionArn self.executionCounts = output.executionCounts @@ -1936,9 +1928,8 @@ extension DescribeStateMachineForExecutionOutputResponse: Swift.CustomDebugStrin extension DescribeStateMachineForExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStateMachineForExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.definition = output.definition self.label = output.label @@ -2139,9 +2130,8 @@ extension DescribeStateMachineOutputResponse: Swift.CustomDebugStringConvertible extension DescribeStateMachineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStateMachineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.definition = output.definition @@ -2339,9 +2329,8 @@ extension SFNClientTypes { extension ExecutionAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecutionAlreadyExistsBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2355,7 +2344,7 @@ extension ExecutionAlreadyExists { } /// The execution has the same name as another execution (but a different input). Executions with the same name and input are considered idempotent. -public struct ExecutionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExecutionAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2391,9 +2380,8 @@ extension ExecutionAlreadyExistsBody: Swift.Decodable { extension ExecutionDoesNotExist { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecutionDoesNotExistBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2407,7 +2395,7 @@ extension ExecutionDoesNotExist { } /// The specified execution does not exist. -public struct ExecutionDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExecutionDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2493,9 +2481,8 @@ extension SFNClientTypes { extension ExecutionLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecutionLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2509,7 +2496,7 @@ extension ExecutionLimitExceeded { } /// The maximum number of running executions has been reached. Running executions must end or be stopped before a new execution can be started. -public struct ExecutionLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExecutionLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2960,9 +2947,8 @@ extension GetActivityTaskOutputResponse: Swift.CustomDebugStringConvertible { extension GetActivityTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetActivityTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.input = output.input self.taskToken = output.taskToken @@ -3133,9 +3119,8 @@ public enum GetExecutionHistoryOutputError: Swift.Error, Swift.Equatable { extension GetExecutionHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExecutionHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextToken = output.nextToken @@ -3840,9 +3825,8 @@ extension SFNClientTypes { extension InvalidArn { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArnBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3856,7 +3840,7 @@ extension InvalidArn { } /// The provided Amazon Resource Name (ARN) is not valid. -public struct InvalidArn: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArn: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3892,9 +3876,8 @@ extension InvalidArnBody: Swift.Decodable { extension InvalidDefinition { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDefinitionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3908,7 +3891,7 @@ extension InvalidDefinition { } /// The provided Amazon States Language definition is not valid. -public struct InvalidDefinition: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDefinition: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3944,9 +3927,8 @@ extension InvalidDefinitionBody: Swift.Decodable { extension InvalidExecutionInput { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidExecutionInputBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3960,7 +3942,7 @@ extension InvalidExecutionInput { } /// The provided JSON input data is not valid. -public struct InvalidExecutionInput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidExecutionInput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3996,9 +3978,8 @@ extension InvalidExecutionInputBody: Swift.Decodable { extension InvalidLoggingConfiguration { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidLoggingConfigurationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4012,7 +3993,7 @@ extension InvalidLoggingConfiguration { } /// -public struct InvalidLoggingConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidLoggingConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4048,9 +4029,8 @@ extension InvalidLoggingConfigurationBody: Swift.Decodable { extension InvalidName { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNameBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4064,7 +4044,7 @@ extension InvalidName { } /// The provided name is not valid. -public struct InvalidName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4100,9 +4080,8 @@ extension InvalidNameBody: Swift.Decodable { extension InvalidOutput { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOutputBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4116,7 +4095,7 @@ extension InvalidOutput { } /// The provided JSON output data is not valid. -public struct InvalidOutput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOutput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4152,9 +4131,8 @@ extension InvalidOutputBody: Swift.Decodable { extension InvalidToken { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTokenBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4168,7 +4146,7 @@ extension InvalidToken { } /// The provided token is not valid. -public struct InvalidToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4204,9 +4182,8 @@ extension InvalidTokenBody: Swift.Decodable { extension InvalidTracingConfiguration { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTracingConfigurationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4220,7 +4197,7 @@ extension InvalidTracingConfiguration { } /// Your tracingConfiguration key does not match, or enabled has not been set to true or false. -public struct InvalidTracingConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTracingConfiguration: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4668,9 +4645,8 @@ public enum ListActivitiesOutputError: Swift.Error, Swift.Equatable { extension ListActivitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActivitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activities = output.activities self.nextToken = output.nextToken @@ -4856,9 +4832,8 @@ public enum ListExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executions = output.executions self.nextToken = output.nextToken @@ -5015,9 +4990,8 @@ public enum ListMapRunsOutputError: Swift.Error, Swift.Equatable { extension ListMapRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMapRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mapRuns = output.mapRuns self.nextToken = output.nextToken @@ -5157,9 +5131,8 @@ public enum ListStateMachinesOutputError: Swift.Error, Swift.Equatable { extension ListStateMachinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStateMachinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stateMachines = output.stateMachines @@ -5289,9 +5262,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5987,9 +5959,8 @@ extension SFNClientTypes { extension MissingRequiredParameter { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingRequiredParameterBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6003,7 +5974,7 @@ extension MissingRequiredParameter { } /// Request is missing a required parameter. This error occurs if both definition and roleArn are not specified. -public struct MissingRequiredParameter: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingRequiredParameter: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6039,9 +6010,8 @@ extension MissingRequiredParameterBody: Swift.Decodable { extension ResourceNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -6057,7 +6027,7 @@ extension ResourceNotFound { } /// Could not find the referenced resource. Only state machine and activity ARNs are supported. -public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6539,9 +6509,8 @@ public enum StartExecutionOutputError: Swift.Error, Swift.Equatable { extension StartExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionArn = output.executionArn self.startDate = output.startDate @@ -6718,9 +6687,8 @@ extension StartSyncExecutionOutputResponse: Swift.CustomDebugStringConvertible { extension StartSyncExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSyncExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.billingDetails = output.billingDetails self.cause = output.cause @@ -7028,9 +6996,8 @@ extension SFNClientTypes { extension StateMachineAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StateMachineAlreadyExistsBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7044,7 +7011,7 @@ extension StateMachineAlreadyExists { } /// A state machine with the same name but a different definition or role ARN already exists. -public struct StateMachineAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StateMachineAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7080,9 +7047,8 @@ extension StateMachineAlreadyExistsBody: Swift.Decodable { extension StateMachineDeleting { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StateMachineDeletingBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7096,7 +7062,7 @@ extension StateMachineDeleting { } /// The specified state machine is being deleted. -public struct StateMachineDeleting: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StateMachineDeleting: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7132,9 +7098,8 @@ extension StateMachineDeletingBody: Swift.Decodable { extension StateMachineDoesNotExist { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StateMachineDoesNotExistBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7148,7 +7113,7 @@ extension StateMachineDoesNotExist { } /// The specified state machine does not exist. -public struct StateMachineDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StateMachineDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7184,9 +7149,8 @@ extension StateMachineDoesNotExistBody: Swift.Decodable { extension StateMachineLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StateMachineLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7200,7 +7164,7 @@ extension StateMachineLimitExceeded { } /// The maximum number of state machines has been reached. Existing state machines must be deleted before a new state machine can be created. -public struct StateMachineLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StateMachineLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7382,9 +7346,8 @@ extension SFNClientTypes { extension StateMachineTypeNotSupported { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StateMachineTypeNotSupportedBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7398,7 +7361,7 @@ extension StateMachineTypeNotSupported { } /// -public struct StateMachineTypeNotSupported: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StateMachineTypeNotSupported: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7537,9 +7500,8 @@ public enum StopExecutionOutputError: Swift.Error, Swift.Equatable { extension StopExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.stopDate = output.stopDate } else { @@ -7803,9 +7765,8 @@ extension SFNClientTypes { extension TaskDoesNotExist { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TaskDoesNotExistBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7818,7 +7779,7 @@ extension TaskDoesNotExist { } } -public struct TaskDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TaskDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8365,9 +8326,8 @@ extension SFNClientTypes { extension TaskTimedOut { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TaskTimedOutBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8380,7 +8340,7 @@ extension TaskTimedOut { } } -public struct TaskTimedOut: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TaskTimedOut: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8488,9 +8448,8 @@ extension SFNClientTypes { extension TooManyTags { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -8506,7 +8465,7 @@ extension TooManyTags { } /// You've exceeded the number of tags allowed for a resource. See the [ Limits Topic](https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) in the Step Functions Developer Guide. -public struct TooManyTags: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTags: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8948,9 +8907,8 @@ public enum UpdateStateMachineOutputError: Swift.Error, Swift.Equatable { extension UpdateStateMachineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateStateMachineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.updateDate = output.updateDate } else { @@ -8990,9 +8948,8 @@ extension UpdateStateMachineOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -9008,7 +8965,7 @@ extension ValidationException { } /// The input does not satisfy the constraints specified by an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSMS/SMSClient.swift b/Sources/Services/AWSSMS/SMSClient.swift index 4838c4c2d91..68fcbce09ea 100644 --- a/Sources/Services/AWSSMS/SMSClient.swift +++ b/Sources/Services/AWSSMS/SMSClient.swift @@ -208,6 +208,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppValidationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServerCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppValidationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAppValidationOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReplicationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReplicationRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importAppCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importServerCatalog") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "launchApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyAppValidationOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAppLaunchConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAppReplicationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAppValidationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAppReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startOnDemandAppReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startOnDemandReplicationRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopAppReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension SMSClient: SMSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sms") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReplicationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension SMSClient: SMSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSMS/models/Models.swift b/Sources/Services/AWSSMS/models/Models.swift index d8d54c42586..cc3b0f841c6 100644 --- a/Sources/Services/AWSSMS/models/Models.swift +++ b/Sources/Services/AWSSMS/models/Models.swift @@ -972,9 +972,8 @@ public enum CreateAppOutputError: Swift.Error, Swift.Equatable { extension CreateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appSummary = output.appSummary self.serverGroups = output.serverGroups @@ -1257,9 +1256,8 @@ public enum CreateReplicationJobOutputError: Swift.Error, Swift.Equatable { extension CreateReplicationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationJobId = output.replicationJobId } else { @@ -1911,9 +1909,8 @@ public struct DisassociateConnectorOutputResponse: Swift.Equatable { extension DryRunOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DryRunOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1927,7 +1924,7 @@ extension DryRunOperationException { } /// The user has the required permissions, so the request would have succeeded, but a dry run was performed. -public struct DryRunOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DryRunOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2052,9 +2049,8 @@ public enum GenerateChangeSetOutputError: Swift.Error, Swift.Equatable { extension GenerateChangeSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateChangeSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3Location = output.s3Location } else { @@ -2182,9 +2178,8 @@ public enum GenerateTemplateOutputError: Swift.Error, Swift.Equatable { extension GenerateTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3Location = output.s3Location } else { @@ -2347,9 +2342,8 @@ public enum GetAppLaunchConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetAppLaunchConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppLaunchConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appId = output.appId self.autoLaunch = output.autoLaunch @@ -2457,9 +2451,8 @@ public enum GetAppOutputError: Swift.Error, Swift.Equatable { extension GetAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appSummary = output.appSummary self.serverGroups = output.serverGroups @@ -2613,9 +2606,8 @@ public enum GetAppReplicationConfigurationOutputError: Swift.Error, Swift.Equata extension GetAppReplicationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppReplicationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverGroupReplicationConfigurations = output.serverGroupReplicationConfigurations } else { @@ -2741,9 +2733,8 @@ public enum GetAppValidationConfigurationOutputError: Swift.Error, Swift.Equatab extension GetAppValidationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppValidationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appValidationConfigurations = output.appValidationConfigurations self.serverGroupValidationConfigurations = output.serverGroupValidationConfigurations @@ -2888,9 +2879,8 @@ public enum GetAppValidationOutputOutputError: Swift.Error, Swift.Equatable { extension GetAppValidationOutputOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAppValidationOutputOutputResponseBody = try responseDecoder.decode(responseBody: data) self.validationOutputList = output.validationOutputList } else { @@ -3019,9 +3009,8 @@ public enum GetConnectorsOutputError: Swift.Error, Swift.Equatable { extension GetConnectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorList = output.connectorList self.nextToken = output.nextToken @@ -3176,9 +3165,8 @@ public enum GetReplicationJobsOutputError: Swift.Error, Swift.Equatable { extension GetReplicationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReplicationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.replicationJobList = output.replicationJobList @@ -3334,9 +3322,8 @@ public enum GetReplicationRunsOutputError: Swift.Error, Swift.Equatable { extension GetReplicationRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReplicationRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.replicationJob = output.replicationJob @@ -3515,9 +3502,8 @@ public enum GetServersOutputError: Swift.Error, Swift.Equatable { extension GetServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastModifiedOn = output.lastModifiedOn self.nextToken = output.nextToken @@ -3750,9 +3736,8 @@ public struct ImportServerCatalogOutputResponse: Swift.Equatable { extension InternalError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3766,7 +3751,7 @@ extension InternalError { } /// An internal error occurred. -public struct InternalError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3802,9 +3787,8 @@ extension InternalErrorBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3818,7 +3802,7 @@ extension InvalidParameterException { } /// A specified parameter is not valid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4141,9 +4125,8 @@ public enum ListAppsOutputError: Swift.Error, Swift.Equatable { extension ListAppsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apps = output.apps self.nextToken = output.nextToken @@ -4201,9 +4184,8 @@ extension ListAppsOutputResponseBody: Swift.Decodable { extension MissingRequiredParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MissingRequiredParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4217,7 +4199,7 @@ extension MissingRequiredParameterException { } /// A required parameter is missing. -public struct MissingRequiredParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MissingRequiredParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4253,9 +4235,8 @@ extension MissingRequiredParameterExceptionBody: Swift.Decodable { extension NoConnectorsAvailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoConnectorsAvailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4269,7 +4250,7 @@ extension NoConnectorsAvailableException { } /// There are no connectors available. -public struct NoConnectorsAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoConnectorsAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4460,9 +4441,8 @@ public struct NotifyAppValidationOutputOutputResponse: Swift.Equatable { extension OperationNotPermittedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotPermittedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4476,7 +4456,7 @@ extension OperationNotPermittedException { } /// This operation is not allowed. -public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotPermittedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5154,9 +5134,8 @@ extension SMSClientTypes { extension ReplicationJobAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicationJobAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5170,7 +5149,7 @@ extension ReplicationJobAlreadyExistsException { } /// The specified replication job already exists. -public struct ReplicationJobAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationJobAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5206,9 +5185,8 @@ extension ReplicationJobAlreadyExistsExceptionBody: Swift.Decodable { extension ReplicationJobNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicationJobNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5222,7 +5200,7 @@ extension ReplicationJobNotFoundException { } /// The specified replication job does not exist. -public struct ReplicationJobNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationJobNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5454,9 +5432,8 @@ extension SMSClientTypes { extension ReplicationRunLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicationRunLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5470,7 +5447,7 @@ extension ReplicationRunLimitExceededException { } /// You have exceeded the number of on-demand replication runs you can request in a 24-hour period. -public struct ReplicationRunLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReplicationRunLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5902,9 +5879,8 @@ extension SMSClientTypes { extension ServerCannotBeReplicatedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServerCannotBeReplicatedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5918,7 +5894,7 @@ extension ServerCannotBeReplicatedException { } /// The specified server cannot be replicated. -public struct ServerCannotBeReplicatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServerCannotBeReplicatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7021,9 +6997,8 @@ public enum StartOnDemandReplicationRunOutputError: Swift.Error, Swift.Equatable extension StartOnDemandReplicationRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartOnDemandReplicationRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationRunId = output.replicationRunId } else { @@ -7202,7 +7177,7 @@ extension TemporarilyUnavailableException { } /// The service is temporarily unavailable. -public struct TemporarilyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TemporarilyUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7303,9 +7278,8 @@ public struct TerminateAppOutputResponse: Swift.Equatable { extension UnauthorizedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7319,7 +7293,7 @@ extension UnauthorizedOperationException { } /// You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. -public struct UnauthorizedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7516,9 +7490,8 @@ public enum UpdateAppOutputError: Swift.Error, Swift.Equatable { extension UpdateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appSummary = output.appSummary self.serverGroups = output.serverGroups diff --git a/Sources/Services/AWSSNS/SNSClient.swift b/Sources/Services/AWSSNS/SNSClient.swift index f74c6600958..f63cc769700 100644 --- a/Sources/Services/AWSSNS/SNSClient.swift +++ b/Sources/Services/AWSSNS/SNSClient.swift @@ -204,6 +204,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -239,6 +240,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkIfPhoneNumberIsOptedOut") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "confirmSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -289,7 +292,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -326,6 +329,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPlatformApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -341,7 +345,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -361,6 +365,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPlatformEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSMSSandboxPhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -411,7 +417,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -431,6 +437,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTopic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -446,7 +453,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -466,6 +473,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -481,7 +489,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -501,6 +509,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePlatformApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -516,7 +525,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -536,6 +545,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSMSSandboxPhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -551,7 +561,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +581,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTopic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -586,7 +597,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -606,6 +617,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDataProtectionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -621,7 +633,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -641,6 +653,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEndpointAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPlatformApplicationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -691,7 +705,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -711,6 +725,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSMSAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -726,7 +741,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -746,6 +761,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSMSSandboxAccountStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -761,7 +777,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -781,6 +797,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSubscriptionAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -796,7 +813,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -816,6 +833,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTopicAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -831,7 +849,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -851,6 +869,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEndpointsByPlatformApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -866,7 +885,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -886,6 +905,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOriginationNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -901,7 +921,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -921,6 +941,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPhoneNumbersOptedOut") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -936,7 +957,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -956,6 +977,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPlatformApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -971,7 +993,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -991,6 +1013,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSMSSandboxPhoneNumbers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1006,7 +1029,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1026,6 +1049,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1041,7 +1065,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1061,6 +1085,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubscriptionsByTopic") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1076,7 +1101,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1096,6 +1121,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1111,7 +1137,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1131,6 +1157,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTopics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1146,7 +1173,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1166,6 +1193,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "optInPhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1181,7 +1209,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1201,6 +1229,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publish") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1216,7 +1245,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1236,6 +1265,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "publishBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1251,7 +1281,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1271,6 +1301,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putDataProtectionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1286,7 +1317,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1306,6 +1337,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1321,7 +1353,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1341,6 +1373,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setEndpointAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1389,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1409,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setPlatformApplicationAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1391,7 +1425,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1411,6 +1445,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setSMSAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1426,7 +1461,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1446,6 +1481,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setSubscriptionAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1461,7 +1497,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1481,6 +1517,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setTopicAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1496,7 +1533,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1516,6 +1553,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "subscribe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1531,7 +1569,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1561,6 +1599,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1576,7 +1615,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1596,6 +1635,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unsubscribe") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1611,7 +1651,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1631,6 +1671,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1646,7 +1687,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1666,6 +1707,7 @@ extension SNSClient: SNSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sns") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "verifySMSSandboxPhoneNumber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1681,7 +1723,7 @@ extension SNSClient: SNSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSNS/models/Models.swift b/Sources/Services/AWSSNS/models/Models.swift index 8459a5d27d6..9cdfff34c81 100644 --- a/Sources/Services/AWSSNS/models/Models.swift +++ b/Sources/Services/AWSSNS/models/Models.swift @@ -175,7 +175,7 @@ public struct AddPermissionOutputResponse: Swift.Equatable { extension AuthorizationErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -190,7 +190,7 @@ extension AuthorizationErrorException { } /// Indicates that the user has been denied access to the requested resource. -public struct AuthorizationErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -226,7 +226,7 @@ extension AuthorizationErrorExceptionBody: Swift.Decodable { extension BatchEntryIdsNotDistinctException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -241,7 +241,7 @@ extension BatchEntryIdsNotDistinctException { } /// Two or more batch entries in the request have the same Id. -public struct BatchEntryIdsNotDistinctException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchEntryIdsNotDistinctException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -277,7 +277,7 @@ extension BatchEntryIdsNotDistinctExceptionBody: Swift.Decodable { extension BatchRequestTooLongException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -292,7 +292,7 @@ extension BatchRequestTooLongException { } /// The length of all the batch messages put together is more than the limit. -public struct BatchRequestTooLongException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchRequestTooLongException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -470,9 +470,8 @@ public enum CheckIfPhoneNumberIsOptedOutOutputError: Swift.Error, Swift.Equatabl extension CheckIfPhoneNumberIsOptedOutOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CheckIfPhoneNumberIsOptedOutOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isOptedOut = output.isOptedOut } else { @@ -517,7 +516,7 @@ extension CheckIfPhoneNumberIsOptedOutOutputResponseBody: Swift.Decodable { extension ConcurrentAccessException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -532,7 +531,7 @@ extension ConcurrentAccessException { } /// Can't perform multiple operations on a tag simultaneously. Perform the operations sequentially. -public struct ConcurrentAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -669,9 +668,8 @@ public enum ConfirmSubscriptionOutputError: Swift.Error, Swift.Equatable { extension ConfirmSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConfirmSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscriptionArn = output.subscriptionArn } else { @@ -834,9 +832,8 @@ public enum CreatePlatformApplicationOutputError: Swift.Error, Swift.Equatable { extension CreatePlatformApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePlatformApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.platformApplicationArn = output.platformApplicationArn } else { @@ -1011,9 +1008,8 @@ public enum CreatePlatformEndpointOutputError: Swift.Error, Swift.Equatable { extension CreatePlatformEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePlatformEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointArn = output.endpointArn } else { @@ -1349,9 +1345,8 @@ public enum CreateTopicOutputError: Swift.Error, Swift.Equatable { extension CreateTopicOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTopicOutputResponseBody = try responseDecoder.decode(responseBody: data) self.topicArn = output.topicArn } else { @@ -1732,7 +1727,7 @@ public struct DeleteTopicOutputResponse: Swift.Equatable { extension EmptyBatchRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1747,7 +1742,7 @@ extension EmptyBatchRequestException { } /// The batch request doesn't contain any entries. -public struct EmptyBatchRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EmptyBatchRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1854,7 +1849,7 @@ extension SNSClientTypes { extension EndpointDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1869,7 +1864,7 @@ extension EndpointDisabledException { } /// Exception error indicating endpoint disabled. -public struct EndpointDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EndpointDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1906,7 +1901,7 @@ extension EndpointDisabledExceptionBody: Swift.Decodable { extension FilterPolicyLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1921,7 +1916,7 @@ extension FilterPolicyLimitExceededException { } /// Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. To add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web Services Support Center. -public struct FilterPolicyLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FilterPolicyLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2032,9 +2027,8 @@ public enum GetDataProtectionPolicyOutputError: Swift.Error, Swift.Equatable { extension GetDataProtectionPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDataProtectionPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataProtectionPolicy = output.dataProtectionPolicy } else { @@ -2148,9 +2142,8 @@ public enum GetEndpointAttributesOutputError: Swift.Error, Swift.Equatable { extension GetEndpointAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEndpointAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -2288,9 +2281,8 @@ public enum GetPlatformApplicationAttributesOutputError: Swift.Error, Swift.Equa extension GetPlatformApplicationAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPlatformApplicationAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -2461,9 +2453,8 @@ public enum GetSMSAttributesOutputError: Swift.Error, Swift.Equatable { extension GetSMSAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSMSAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -2565,9 +2556,8 @@ public enum GetSMSSandboxAccountStatusOutputError: Swift.Error, Swift.Equatable extension GetSMSSandboxAccountStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSMSSandboxAccountStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.isInSandbox = output.isInSandbox } else { @@ -2682,9 +2672,8 @@ public enum GetSubscriptionAttributesOutputError: Swift.Error, Swift.Equatable { extension GetSubscriptionAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSubscriptionAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -2859,9 +2848,8 @@ public enum GetTopicAttributesOutputError: Swift.Error, Swift.Equatable { extension GetTopicAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTopicAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -2964,7 +2952,7 @@ extension GetTopicAttributesOutputResponseBody: Swift.Decodable { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2979,7 +2967,7 @@ extension InternalErrorException { } /// Indicates an internal service error. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3015,7 +3003,7 @@ extension InternalErrorExceptionBody: Swift.Decodable { extension InvalidBatchEntryIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3030,7 +3018,7 @@ extension InvalidBatchEntryIdException { } /// The Id of a batch entry in a batch request doesn't abide by the specification. -public struct InvalidBatchEntryIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidBatchEntryIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3066,7 +3054,7 @@ extension InvalidBatchEntryIdExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3081,7 +3069,7 @@ extension InvalidParameterException { } /// Indicates that a request parameter does not comply with the associated constraints. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3117,7 +3105,7 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3132,7 +3120,7 @@ extension InvalidParameterValueException { } /// Indicates that a request parameter does not comply with the associated constraints. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3169,7 +3157,7 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidSecurityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3184,7 +3172,7 @@ extension InvalidSecurityException { } /// The credential signature isn't valid. You must use an HTTPS endpoint and sign your request using Signature Version 4. -public struct InvalidSecurityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSecurityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3220,7 +3208,7 @@ extension InvalidSecurityExceptionBody: Swift.Decodable { extension KMSAccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3235,7 +3223,7 @@ extension KMSAccessDeniedException { } /// The ciphertext references a key that doesn't exist or that you don't have access to. -public struct KMSAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3271,7 +3259,7 @@ extension KMSAccessDeniedExceptionBody: Swift.Decodable { extension KMSDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3286,7 +3274,7 @@ extension KMSDisabledException { } /// The request was rejected because the specified customer master key (CMK) isn't enabled. -public struct KMSDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3322,7 +3310,7 @@ extension KMSDisabledExceptionBody: Swift.Decodable { extension KMSInvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3337,7 +3325,7 @@ extension KMSInvalidStateException { } /// The request was rejected because the state of the specified resource isn't valid for this request. For more information, see [How Key State Affects Use of a Customer Master Key](https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the Key Management Service Developer Guide. -public struct KMSInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSInvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3373,7 +3361,7 @@ extension KMSInvalidStateExceptionBody: Swift.Decodable { extension KMSNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3388,7 +3376,7 @@ extension KMSNotFoundException { } /// The request was rejected because the specified entity or resource can't be found. -public struct KMSNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3424,7 +3412,7 @@ extension KMSNotFoundExceptionBody: Swift.Decodable { extension KMSOptInRequired { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3439,7 +3427,7 @@ extension KMSOptInRequired { } /// The Amazon Web Services access key ID needs a subscription for the service. -public struct KMSOptInRequired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSOptInRequired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3475,7 +3463,7 @@ extension KMSOptInRequiredBody: Swift.Decodable { extension KMSThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -3490,7 +3478,7 @@ extension KMSThrottlingException { } /// The request was denied due to request throttling. For more information about throttling, see [Limits](https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) in the Key Management Service Developer Guide. -public struct KMSThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3677,9 +3665,8 @@ public enum ListEndpointsByPlatformApplicationOutputError: Swift.Error, Swift.Eq extension ListEndpointsByPlatformApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEndpointsByPlatformApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.nextToken = output.nextToken @@ -3832,9 +3819,8 @@ public enum ListOriginationNumbersOutputError: Swift.Error, Swift.Equatable { extension ListOriginationNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOriginationNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumbers = output.phoneNumbers @@ -3974,9 +3960,8 @@ public enum ListPhoneNumbersOptedOutOutputError: Swift.Error, Swift.Equatable { extension ListPhoneNumbersOptedOutOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPhoneNumbersOptedOutOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumbers = output.phoneNumbers @@ -4115,9 +4100,8 @@ public enum ListPlatformApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListPlatformApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPlatformApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.platformApplications = output.platformApplications @@ -4270,9 +4254,8 @@ public enum ListSMSSandboxPhoneNumbersOutputError: Swift.Error, Swift.Equatable extension ListSMSSandboxPhoneNumbersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSMSSandboxPhoneNumbersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.phoneNumbers = output.phoneNumbers @@ -4425,9 +4408,8 @@ public enum ListSubscriptionsByTopicOutputError: Swift.Error, Swift.Equatable { extension ListSubscriptionsByTopicOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubscriptionsByTopicOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscriptions = output.subscriptions @@ -4566,9 +4548,8 @@ public enum ListSubscriptionsOutputError: Swift.Error, Swift.Equatable { extension ListSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscriptions = output.subscriptions @@ -4711,9 +4692,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4840,9 +4820,8 @@ public enum ListTopicsOutputError: Swift.Error, Swift.Equatable { extension ListTopicsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTopicsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.topics = output.topics @@ -4974,7 +4953,7 @@ extension SNSClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -4989,7 +4968,7 @@ extension NotFoundException { } /// Indicates that the requested resource does not exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5146,7 +5125,7 @@ public struct OptInPhoneNumberOutputResponse: Swift.Equatable { extension OptedOutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5161,7 +5140,7 @@ extension OptedOutException { } /// Indicates that the specified phone number opted out of receiving SMS messages from your Amazon Web Services account. You can't send SMS messages to phone numbers that opt out. -public struct OptedOutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OptedOutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5379,7 +5358,7 @@ extension SNSClientTypes { extension PlatformApplicationDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -5394,7 +5373,7 @@ extension PlatformApplicationDisabledException { } /// Exception error indicating platform application disabled. -public struct PlatformApplicationDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PlatformApplicationDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5574,9 +5553,8 @@ public enum PublishBatchOutputError: Swift.Error, Swift.Equatable { extension PublishBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -6107,9 +6085,8 @@ public enum PublishOutputError: Swift.Error, Swift.Equatable { extension PublishOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublishOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messageId = output.messageId self.sequenceNumber = output.sequenceNumber @@ -6353,7 +6330,7 @@ public struct RemovePermissionOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -6368,7 +6345,7 @@ extension ResourceNotFoundException { } /// Can’t perform the action on the specified resource. Make sure that the resource exists. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7286,7 +7263,7 @@ public struct SetTopicAttributesOutputResponse: Swift.Equatable { extension StaleTagException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7301,7 +7278,7 @@ extension StaleTagException { } /// A tag has been added to a resource with the same ARN as a deleted resource. Wait a short while and then retry the operation. -public struct StaleTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StaleTagException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7553,9 +7530,8 @@ public enum SubscribeOutputError: Swift.Error, Swift.Equatable { extension SubscribeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubscribeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscriptionArn = output.subscriptionArn } else { @@ -7671,7 +7647,7 @@ extension SNSClientTypes { extension SubscriptionLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7686,7 +7662,7 @@ extension SubscriptionLimitExceededException { } /// Indicates that the customer already owns the maximum allowed number of subscriptions. -public struct SubscriptionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubscriptionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7769,7 +7745,7 @@ extension SNSClientTypes { extension TagLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7784,7 +7760,7 @@ extension TagLimitExceededException { } /// Can't add more than 50 tags to a topic. -public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7820,7 +7796,7 @@ extension TagLimitExceededExceptionBody: Swift.Decodable { extension TagPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -7835,7 +7811,7 @@ extension TagPolicyException { } /// The request doesn't comply with the IAM tag policy. Correct your request and then retry it. -public struct TagPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7998,7 +7974,7 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8013,7 +7989,7 @@ extension ThrottledException { } /// Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account. -public struct ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8050,7 +8026,7 @@ extension ThrottledExceptionBody: Swift.Decodable { extension TooManyEntriesInBatchRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8065,7 +8041,7 @@ extension TooManyEntriesInBatchRequestException { } /// The batch request contains more entries than permissible. -public struct TooManyEntriesInBatchRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyEntriesInBatchRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8136,7 +8112,7 @@ extension SNSClientTypes { extension TopicLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8151,7 +8127,7 @@ extension TopicLimitExceededException { } /// Indicates that the customer already owns the maximum allowed number of topics. -public struct TopicLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TopicLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8400,7 +8376,7 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension UserErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8415,7 +8391,7 @@ extension UserErrorException { } /// Indicates that a request parameter does not comply with the associated constraints. -public struct UserErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UserErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8451,7 +8427,7 @@ extension UserErrorExceptionBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8466,7 +8442,7 @@ extension ValidationException { } /// Indicates that a parameter in the request is invalid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8503,7 +8479,7 @@ extension ValidationExceptionBody: Swift.Decodable { extension VerificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -8520,7 +8496,7 @@ extension VerificationException { } /// Indicates that the one-time password (OTP) used for verification is invalid. -public struct VerificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct VerificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSQS/SQSClient.swift b/Sources/Services/AWSSQS/SQSClient.swift index 6b7c175ebe9..035843c9ca2 100644 --- a/Sources/Services/AWSSQS/SQSClient.swift +++ b/Sources/Services/AWSSQS/SQSClient.swift @@ -213,6 +213,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -228,7 +229,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -257,6 +258,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "changeMessageVisibility") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -272,7 +274,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -293,6 +295,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "changeMessageVisibilityBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -308,7 +311,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -344,6 +347,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -359,7 +363,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -379,6 +383,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +399,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +420,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMessageBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +436,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +456,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +472,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +492,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueueAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +508,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +528,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getQueueUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +544,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +564,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeadLetterSourceQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -570,7 +580,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -590,6 +600,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueueTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -605,7 +616,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -625,6 +636,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listQueues") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -640,7 +652,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -660,6 +672,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "purgeQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -675,7 +688,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -710,6 +723,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "receiveMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -725,7 +739,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -751,6 +765,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -766,7 +781,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -786,6 +801,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -801,7 +817,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -822,6 +838,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendMessageBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -837,7 +854,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -863,6 +880,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setQueueAttributes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -878,7 +896,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -909,6 +927,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +943,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +963,7 @@ extension SQSClient: SQSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sqs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagQueue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +979,7 @@ extension SQSClient: SQSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSQS/models/Models.swift b/Sources/Services/AWSSQS/models/Models.swift index e43a7ffab41..651b8bf2f16 100644 --- a/Sources/Services/AWSSQS/models/Models.swift +++ b/Sources/Services/AWSSQS/models/Models.swift @@ -176,7 +176,7 @@ extension BatchEntryIdsNotDistinct { } /// Two or more batch entries in the request have the same Id. -public struct BatchEntryIdsNotDistinct: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchEntryIdsNotDistinct: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -198,7 +198,7 @@ extension BatchRequestTooLong { } /// The length of all the messages put together is more than the limit. -public struct BatchRequestTooLong: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BatchRequestTooLong: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -391,9 +391,8 @@ public enum ChangeMessageVisibilityBatchOutputError: Swift.Error, Swift.Equatabl extension ChangeMessageVisibilityBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ChangeMessageVisibilityBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -918,9 +917,8 @@ public enum CreateQueueOutputError: Swift.Error, Swift.Equatable { extension CreateQueueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateQueueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queueUrl = output.queueUrl } else { @@ -1072,9 +1070,8 @@ public enum DeleteMessageBatchOutputError: Swift.Error, Swift.Equatable { extension DeleteMessageBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMessageBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -1418,7 +1415,7 @@ extension EmptyBatchRequest { } /// The batch request doesn't contain any entries. -public struct EmptyBatchRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EmptyBatchRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1604,9 +1601,8 @@ public enum GetQueueAttributesOutputError: Swift.Error, Swift.Equatable { extension GetQueueAttributesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueueAttributesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributes = output.attributes } else { @@ -1743,9 +1739,8 @@ public enum GetQueueUrlOutputError: Swift.Error, Swift.Equatable { extension GetQueueUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetQueueUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queueUrl = output.queueUrl } else { @@ -1794,7 +1789,7 @@ extension InvalidAttributeName { } /// The specified attribute doesn't exist. -public struct InvalidAttributeName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAttributeName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1816,7 +1811,7 @@ extension InvalidBatchEntryId { } /// The Id of a batch entry in a batch request doesn't abide by the specification. -public struct InvalidBatchEntryId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidBatchEntryId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1838,7 +1833,7 @@ extension InvalidIdFormat { } /// The specified receipt handle isn't valid for the current version. -public struct InvalidIdFormat: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidIdFormat: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1860,7 +1855,7 @@ extension InvalidMessageContents { } /// The message contains characters outside the allowed set. -public struct InvalidMessageContents: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidMessageContents: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1964,9 +1959,8 @@ public enum ListDeadLetterSourceQueuesOutputError: Swift.Error, Swift.Equatable extension ListDeadLetterSourceQueuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeadLetterSourceQueuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queueUrls = output.queueUrls @@ -2099,9 +2093,8 @@ public enum ListQueueTagsOutputError: Swift.Error, Swift.Equatable { extension ListQueueTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueueTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2245,9 +2238,8 @@ public enum ListQueuesOutputError: Swift.Error, Swift.Equatable { extension ListQueuesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListQueuesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.queueUrls = output.queueUrls @@ -2621,7 +2613,7 @@ extension MessageNotInflight { } /// The specified message isn't in flight. -public struct MessageNotInflight: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MessageNotInflight: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2855,7 +2847,7 @@ extension OverLimit { } /// The specified action violates a limit. For example, ReceiveMessage returns this error if the maximum number of inflight messages is reached and AddPermission returns this error if the maximum number of permissions for the queue is reached. -public struct OverLimit: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OverLimit: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2877,7 +2869,7 @@ extension PurgeQueueInProgress { } /// Indicates that the specified queue previously received a PurgeQueue request within the last 60 seconds (the time it can take to delete the messages in the queue). -public struct PurgeQueueInProgress: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PurgeQueueInProgress: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3071,7 +3063,7 @@ extension QueueDeletedRecently { } /// You must wait 60 seconds after deleting a queue before you can create another queue with the same name. -public struct QueueDeletedRecently: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QueueDeletedRecently: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3093,7 +3085,7 @@ extension QueueDoesNotExist { } /// The specified queue doesn't exist. -public struct QueueDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QueueDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3115,7 +3107,7 @@ extension QueueNameExists { } /// A queue with this name already exists. Amazon SQS returns this error only if the request includes attributes whose values differ from those of the existing queue. -public struct QueueNameExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QueueNameExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3137,7 +3129,7 @@ extension ReceiptHandleIsInvalid { } /// The specified receipt handle isn't valid. -public struct ReceiptHandleIsInvalid: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReceiptHandleIsInvalid: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3392,9 +3384,8 @@ public enum ReceiveMessageOutputError: Swift.Error, Swift.Equatable { extension ReceiveMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReceiveMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.messages = output.messages } else { @@ -3654,9 +3645,8 @@ public enum SendMessageBatchOutputError: Swift.Error, Swift.Equatable { extension SendMessageBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendMessageBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -4233,9 +4223,8 @@ public enum SendMessageOutputError: Swift.Error, Swift.Equatable { extension SendMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.md5OfMessageAttributes = output.md5OfMessageAttributes self.md5OfMessageBody = output.md5OfMessageBody @@ -4633,7 +4622,7 @@ extension TooManyEntriesInBatchRequest { } /// The batch request contains more entries than permissible. -public struct TooManyEntriesInBatchRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyEntriesInBatchRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4655,7 +4644,7 @@ extension UnsupportedOperation { } /// Error code 400. Unsupported operation. -public struct UnsupportedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSSM/SSMClient.swift b/Sources/Services/AWSSSM/SSMClient.swift index 39ee673037e..180705fca12 100644 --- a/Sources/Services/AWSSSM/SSMClient.swift +++ b/Sources/Services/AWSSSM/SSMClient.swift @@ -223,6 +223,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -239,7 +240,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -259,6 +260,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateOpsItemRelatedItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -275,7 +277,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -295,6 +297,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelCommand") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -311,7 +314,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -331,6 +334,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelMaintenanceWindowExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -347,7 +351,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -367,6 +371,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createActivation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -383,7 +388,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -403,6 +408,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -419,7 +425,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -439,6 +445,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssociationBatch") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +462,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +482,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -491,7 +499,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -511,6 +519,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMaintenanceWindow") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -535,7 +544,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +564,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOpsItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -571,7 +581,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -591,6 +601,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOpsMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -607,7 +618,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -627,6 +638,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPatchBaseline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -651,7 +663,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +683,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResourceDataSync") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -687,7 +700,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -707,6 +720,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteActivation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -723,7 +737,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -743,6 +757,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -759,7 +774,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -779,6 +794,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -795,7 +811,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -815,6 +831,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInventory") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -839,7 +856,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +876,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMaintenanceWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -875,7 +893,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -895,6 +913,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOpsMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -911,7 +930,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -931,6 +950,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteParameter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -947,7 +967,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +987,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -983,7 +1004,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1003,6 +1024,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePatchBaseline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1019,7 +1041,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1039,6 +1061,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourceDataSync") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1055,7 +1078,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1075,6 +1098,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1091,7 +1115,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1111,6 +1135,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterManagedInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1127,7 +1152,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1147,6 +1172,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterPatchBaselineForPatchGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1163,7 +1189,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1183,6 +1209,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterTargetFromMaintenanceWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1199,7 +1226,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1219,6 +1246,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterTaskFromMaintenanceWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1235,7 +1263,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1255,6 +1283,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeActivations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1271,7 +1300,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1291,6 +1320,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1307,7 +1337,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1327,6 +1357,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAssociationExecutionTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1343,7 +1374,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1363,6 +1394,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAssociationExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1379,7 +1411,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1399,6 +1431,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutomationExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1415,7 +1448,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1435,6 +1468,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutomationStepExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1451,7 +1485,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1471,6 +1505,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAvailablePatches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1487,7 +1522,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1507,6 +1542,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1523,7 +1559,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1543,6 +1579,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDocumentPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1559,7 +1596,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1579,6 +1616,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEffectiveInstanceAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1595,7 +1633,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1615,6 +1653,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEffectivePatchesForPatchBaseline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1631,7 +1670,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1651,6 +1690,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceAssociationsStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1667,7 +1707,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1687,6 +1727,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1703,7 +1744,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1723,6 +1764,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstancePatchStates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1739,7 +1781,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1759,6 +1801,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstancePatchStatesForPatchGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1775,7 +1818,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1795,6 +1838,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstancePatches") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1811,7 +1855,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1831,6 +1875,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInventoryDeletions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1847,7 +1892,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1867,6 +1912,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceWindowExecutionTaskInvocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1883,7 +1929,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1903,6 +1949,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceWindowExecutionTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1919,7 +1966,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1939,6 +1986,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceWindowExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1955,7 +2003,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1975,6 +2023,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceWindowSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1991,7 +2040,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2011,6 +2060,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceWindowTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2027,7 +2077,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2047,6 +2097,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceWindowTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2063,7 +2114,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2083,6 +2134,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceWindows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2099,7 +2151,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2119,6 +2171,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceWindowsForTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2135,7 +2188,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2155,6 +2208,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOpsItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2171,7 +2225,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2191,6 +2245,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2207,7 +2262,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2227,6 +2282,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePatchBaselines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2243,7 +2299,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2263,6 +2319,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePatchGroupState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2279,7 +2336,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2299,6 +2356,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePatchGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2315,7 +2373,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2335,6 +2393,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePatchProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2351,7 +2410,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2371,6 +2430,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2387,7 +2447,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2407,6 +2467,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateOpsItemRelatedItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2423,7 +2484,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2443,6 +2504,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAutomationExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2459,7 +2521,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2479,6 +2541,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCalendarState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2495,7 +2558,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2515,6 +2578,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCommandInvocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2531,7 +2595,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2551,6 +2615,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConnectionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2567,7 +2632,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2587,6 +2652,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDefaultPatchBaseline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2603,7 +2669,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2623,6 +2689,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployablePatchSnapshotForInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2639,7 +2706,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2659,6 +2726,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2675,7 +2743,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2695,6 +2763,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInventory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2711,7 +2780,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2731,6 +2800,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInventorySchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2747,7 +2817,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2767,6 +2837,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMaintenanceWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2783,7 +2854,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2803,6 +2874,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMaintenanceWindowExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2819,7 +2891,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2839,6 +2911,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMaintenanceWindowExecutionTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2855,7 +2928,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2875,6 +2948,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMaintenanceWindowExecutionTaskInvocation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2891,7 +2965,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2911,6 +2985,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMaintenanceWindowTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2927,7 +3002,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2947,6 +3022,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOpsItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2963,7 +3039,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2983,6 +3059,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOpsMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2999,7 +3076,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3019,6 +3096,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOpsSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3035,7 +3113,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3055,6 +3133,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getParameter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3071,7 +3150,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3091,6 +3170,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getParameterHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3107,7 +3187,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3127,6 +3207,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3143,7 +3224,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3163,6 +3244,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getParametersByPath") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3179,7 +3261,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3199,6 +3281,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPatchBaseline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3215,7 +3298,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3235,6 +3318,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPatchBaselineForPatchGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3251,7 +3335,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3271,6 +3355,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3287,7 +3372,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3307,6 +3392,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceSetting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3323,7 +3409,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3359,6 +3445,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "labelParameterVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3375,7 +3462,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3395,6 +3482,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociationVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3411,7 +3499,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3431,6 +3519,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3447,7 +3536,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3467,6 +3556,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCommandInvocations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3483,7 +3573,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3503,6 +3593,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCommands") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3519,7 +3610,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3539,6 +3630,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComplianceItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3555,7 +3647,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3575,6 +3667,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComplianceSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3591,7 +3684,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3611,6 +3704,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDocumentMetadataHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3627,7 +3721,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3647,6 +3741,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDocumentVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3663,7 +3758,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3683,6 +3778,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDocuments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3699,7 +3795,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3719,6 +3815,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInventoryEntries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3735,7 +3832,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3755,6 +3852,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOpsItemEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3771,7 +3869,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3791,6 +3889,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOpsItemRelatedItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3807,7 +3906,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3827,6 +3926,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOpsMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3843,7 +3943,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3863,6 +3963,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceComplianceSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3879,7 +3980,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3899,6 +4000,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceDataSync") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3915,7 +4017,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3935,6 +4037,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3951,7 +4054,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3971,6 +4074,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyDocumentPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3987,7 +4091,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4037,6 +4141,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putComplianceItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4053,7 +4158,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4073,6 +4178,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putInventory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4089,7 +4195,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4109,6 +4215,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putParameter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4125,7 +4232,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4145,6 +4252,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4161,7 +4269,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4181,6 +4289,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerDefaultPatchBaseline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4197,7 +4306,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4217,6 +4326,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerPatchBaselineForPatchGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4233,7 +4343,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4253,6 +4363,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerTargetWithMaintenanceWindow") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4277,7 +4388,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4297,6 +4408,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerTaskWithMaintenanceWindow") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -4321,7 +4433,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4341,6 +4453,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4357,7 +4470,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4377,6 +4490,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetServiceSetting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4393,7 +4507,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4413,6 +4527,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4429,7 +4544,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4449,6 +4564,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendAutomationSignal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4465,7 +4581,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4485,6 +4601,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendCommand") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4501,7 +4618,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4521,6 +4638,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAssociationsOnce") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4537,7 +4655,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4557,6 +4675,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAutomationExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4573,7 +4692,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4593,6 +4712,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startChangeRequestExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4609,7 +4729,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4629,6 +4749,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4645,7 +4766,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4665,6 +4786,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopAutomationExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4681,7 +4803,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4701,6 +4823,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4717,7 +4840,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4737,6 +4860,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unlabelParameterVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4753,7 +4877,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4773,6 +4897,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4789,7 +4914,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4809,6 +4934,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAssociationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4825,7 +4951,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4845,6 +4971,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4861,7 +4988,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4881,6 +5008,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDocumentDefaultVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4897,7 +5025,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4917,6 +5045,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDocumentMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4933,7 +5062,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4953,6 +5082,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMaintenanceWindow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4969,7 +5099,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5004,6 +5134,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMaintenanceWindowTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5020,7 +5151,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5055,6 +5186,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMaintenanceWindowTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5071,7 +5203,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5091,6 +5223,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateManagedInstanceRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5107,7 +5240,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5127,6 +5260,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOpsItem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5143,7 +5277,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5163,6 +5297,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOpsMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5179,7 +5314,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5199,6 +5334,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePatchBaseline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5215,7 +5351,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5235,6 +5371,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResourceDataSync") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5251,7 +5388,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5271,6 +5408,7 @@ extension SSMClient: SSMClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceSetting") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5287,7 +5425,7 @@ extension SSMClient: SSMClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSSM/models/Models.swift b/Sources/Services/AWSSSM/models/Models.swift index 28a7bf0ff97..22ee3912540 100644 --- a/Sources/Services/AWSSSM/models/Models.swift +++ b/Sources/Services/AWSSSM/models/Models.swift @@ -453,9 +453,8 @@ extension SSMClientTypes { extension AlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -469,7 +468,7 @@ extension AlreadyExistsException { } /// Error returned if an attempt is made to register a patch group with a patch baseline that is already registered with a different patch baseline. -public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -622,9 +621,8 @@ public enum AssociateOpsItemRelatedItemOutputError: Swift.Error, Swift.Equatable extension AssociateOpsItemRelatedItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateOpsItemRelatedItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationId = output.associationId } else { @@ -671,7 +669,7 @@ extension AssociatedInstances { } /// You must disassociate a document from all managed nodes before you can delete it. -public struct AssociatedInstances: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssociatedInstances: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -884,7 +882,7 @@ extension AssociationAlreadyExists { } /// The specified association already exists. -public struct AssociationAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssociationAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1353,9 +1351,8 @@ extension SSMClientTypes { extension AssociationDoesNotExist { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociationDoesNotExistBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1369,7 +1366,7 @@ extension AssociationDoesNotExist { } /// The specified association doesn't exist. -public struct AssociationDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssociationDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1542,9 +1539,8 @@ extension SSMClientTypes { extension AssociationExecutionDoesNotExist { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociationExecutionDoesNotExistBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1558,7 +1554,7 @@ extension AssociationExecutionDoesNotExist { } /// The specified execution ID doesn't exist. Verify the ID number and try again. -public struct AssociationExecutionDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssociationExecutionDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2024,7 +2020,7 @@ extension AssociationLimitExceeded { } /// You can have at most 2,000 active associations. -public struct AssociationLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssociationLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2552,9 +2548,8 @@ extension SSMClientTypes { extension AssociationVersionLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociationVersionLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2568,7 +2563,7 @@ extension AssociationVersionLimitExceeded { } /// You have reached the maximum number versions allowed for an association. Each association has a limit of 1,000 versions. -public struct AssociationVersionLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AssociationVersionLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2851,9 +2846,8 @@ extension SSMClientTypes { extension AutomationDefinitionNotApprovedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AutomationDefinitionNotApprovedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2867,7 +2861,7 @@ extension AutomationDefinitionNotApprovedException { } /// Indicates that the Change Manager change template used in the change request was rejected or is still in a pending state. -public struct AutomationDefinitionNotApprovedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AutomationDefinitionNotApprovedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2903,9 +2897,8 @@ extension AutomationDefinitionNotApprovedExceptionBody: Swift.Decodable { extension AutomationDefinitionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AutomationDefinitionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2919,7 +2912,7 @@ extension AutomationDefinitionNotFoundException { } /// An Automation runbook with the specified name couldn't be found. -public struct AutomationDefinitionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AutomationDefinitionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2955,9 +2948,8 @@ extension AutomationDefinitionNotFoundExceptionBody: Swift.Decodable { extension AutomationDefinitionVersionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AutomationDefinitionVersionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2971,7 +2963,7 @@ extension AutomationDefinitionVersionNotFoundException { } /// An Automation runbook with the specified name and version couldn't be found. -public struct AutomationDefinitionVersionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AutomationDefinitionVersionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3621,9 +3613,8 @@ extension SSMClientTypes { extension AutomationExecutionLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AutomationExecutionLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3637,7 +3628,7 @@ extension AutomationExecutionLimitExceededException { } /// The number of simultaneously running Automation executions exceeded the allowable limit. -public struct AutomationExecutionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AutomationExecutionLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4090,9 +4081,8 @@ extension SSMClientTypes { extension AutomationExecutionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AutomationExecutionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4106,7 +4096,7 @@ extension AutomationExecutionNotFoundException { } /// There is no automation execution information for the requested automation execution ID. -public struct AutomationExecutionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AutomationExecutionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4222,9 +4212,8 @@ extension SSMClientTypes { extension AutomationStepNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AutomationStepNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4238,7 +4227,7 @@ extension AutomationStepNotFoundException { } /// The specified step name and execution ID don't exist. Verify the information and try again. -public struct AutomationStepNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AutomationStepNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4702,9 +4691,8 @@ public enum CancelMaintenanceWindowExecutionOutputError: Swift.Error, Swift.Equa extension CancelMaintenanceWindowExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelMaintenanceWindowExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.windowExecutionId = output.windowExecutionId } else { @@ -6346,9 +6334,8 @@ extension SSMClientTypes { extension ComplianceTypeCountLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ComplianceTypeCountLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6362,7 +6349,7 @@ extension ComplianceTypeCountLimitExceededException { } /// You specified too many custom compliance types. You can specify a maximum of 10 different types. -public struct ComplianceTypeCountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ComplianceTypeCountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6682,9 +6669,8 @@ public enum CreateActivationOutputError: Swift.Error, Swift.Equatable { extension CreateActivationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateActivationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activationCode = output.activationCode self.activationId = output.activationId @@ -6837,9 +6823,8 @@ public enum CreateAssociationBatchOutputError: Swift.Error, Swift.Equatable { extension CreateAssociationBatchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssociationBatchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.successful = output.successful @@ -7650,9 +7635,8 @@ public enum CreateAssociationOutputError: Swift.Error, Swift.Equatable { extension CreateAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationDescription = output.associationDescription } else { @@ -7935,9 +7919,8 @@ public enum CreateDocumentOutputError: Swift.Error, Swift.Equatable { extension CreateDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentDescription = output.documentDescription } else { @@ -8212,9 +8195,8 @@ public enum CreateMaintenanceWindowOutputError: Swift.Error, Swift.Equatable { extension CreateMaintenanceWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMaintenanceWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.windowId = output.windowId } else { @@ -8567,9 +8549,8 @@ public enum CreateOpsItemOutputError: Swift.Error, Swift.Equatable { extension CreateOpsItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOpsItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.opsItemArn = output.opsItemArn self.opsItemId = output.opsItemId @@ -8748,9 +8729,8 @@ public enum CreateOpsMetadataOutputError: Swift.Error, Swift.Equatable { extension CreateOpsMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOpsMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.opsMetadataArn = output.opsMetadataArn } else { @@ -9066,9 +9046,8 @@ public enum CreatePatchBaselineOutputError: Swift.Error, Swift.Equatable { extension CreatePatchBaselineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePatchBaselineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baselineId = output.baselineId } else { @@ -9229,9 +9208,8 @@ public struct CreateResourceDataSyncOutputResponse: Swift.Equatable { extension CustomSchemaCountLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CustomSchemaCountLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9245,7 +9223,7 @@ extension CustomSchemaCountLimitExceededException { } /// You have exceeded the limit for custom schemas. Delete one or more custom schemas and try again. -public struct CustomSchemaCountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomSchemaCountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9714,9 +9692,8 @@ public enum DeleteInventoryOutputError: Swift.Error, Swift.Equatable { extension DeleteInventoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInventoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletionId = output.deletionId self.deletionSummary = output.deletionSummary @@ -9845,9 +9822,8 @@ public enum DeleteMaintenanceWindowOutputError: Swift.Error, Swift.Equatable { extension DeleteMaintenanceWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMaintenanceWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.windowId = output.windowId } else { @@ -10134,9 +10110,8 @@ public enum DeleteParametersOutputError: Swift.Error, Swift.Equatable { extension DeleteParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deletedParameters = output.deletedParameters self.invalidParameters = output.invalidParameters @@ -10275,9 +10250,8 @@ public enum DeletePatchBaselineOutputError: Swift.Error, Swift.Equatable { extension DeletePatchBaselineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePatchBaselineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baselineId = output.baselineId } else { @@ -10689,9 +10663,8 @@ public enum DeregisterPatchBaselineForPatchGroupOutputError: Swift.Error, Swift. extension DeregisterPatchBaselineForPatchGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterPatchBaselineForPatchGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baselineId = output.baselineId self.patchGroup = output.patchGroup @@ -10839,9 +10812,8 @@ public enum DeregisterTargetFromMaintenanceWindowOutputError: Swift.Error, Swift extension DeregisterTargetFromMaintenanceWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterTargetFromMaintenanceWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.windowId = output.windowId self.windowTargetId = output.windowTargetId @@ -10975,9 +10947,8 @@ public enum DeregisterTaskFromMaintenanceWindowOutputError: Swift.Error, Swift.E extension DeregisterTaskFromMaintenanceWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterTaskFromMaintenanceWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.windowId = output.windowId self.windowTaskId = output.windowTaskId @@ -11227,9 +11198,8 @@ public enum DescribeActivationsOutputError: Swift.Error, Swift.Equatable { extension DescribeActivationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeActivationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activationList = output.activationList self.nextToken = output.nextToken @@ -11424,9 +11394,8 @@ public enum DescribeAssociationExecutionTargetsOutputError: Swift.Error, Swift.E extension DescribeAssociationExecutionTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssociationExecutionTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationExecutionTargets = output.associationExecutionTargets self.nextToken = output.nextToken @@ -11606,9 +11575,8 @@ public enum DescribeAssociationExecutionsOutputError: Swift.Error, Swift.Equatab extension DescribeAssociationExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssociationExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationExecutions = output.associationExecutions self.nextToken = output.nextToken @@ -11779,9 +11747,8 @@ public enum DescribeAssociationOutputError: Swift.Error, Swift.Equatable { extension DescribeAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationDescription = output.associationDescription } else { @@ -11931,9 +11898,8 @@ public enum DescribeAutomationExecutionsOutputError: Swift.Error, Swift.Equatabl extension DescribeAutomationExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutomationExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.automationExecutionMetadataList = output.automationExecutionMetadataList self.nextToken = output.nextToken @@ -12129,9 +12095,8 @@ public enum DescribeAutomationStepExecutionsOutputError: Swift.Error, Swift.Equa extension DescribeAutomationStepExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutomationStepExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.stepExecutions = output.stepExecutions @@ -12331,9 +12296,8 @@ public enum DescribeAvailablePatchesOutputError: Swift.Error, Swift.Equatable { extension DescribeAvailablePatchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAvailablePatchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.patches = output.patches @@ -12489,9 +12453,8 @@ public enum DescribeDocumentOutputError: Swift.Error, Swift.Equatable { extension DescribeDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.document = output.document } else { @@ -12645,9 +12608,8 @@ public enum DescribeDocumentPermissionOutputError: Swift.Error, Swift.Equatable extension DescribeDocumentPermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDocumentPermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountIds = output.accountIds self.accountSharingInfoList = output.accountSharingInfoList @@ -12822,9 +12784,8 @@ public enum DescribeEffectiveInstanceAssociationsOutputError: Swift.Error, Swift extension DescribeEffectiveInstanceAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEffectiveInstanceAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations self.nextToken = output.nextToken @@ -12982,9 +12943,8 @@ public enum DescribeEffectivePatchesForPatchBaselineOutputError: Swift.Error, Sw extension DescribeEffectivePatchesForPatchBaselineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEffectivePatchesForPatchBaselineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.effectivePatches = output.effectivePatches self.nextToken = output.nextToken @@ -13140,9 +13100,8 @@ public enum DescribeInstanceAssociationsStatusOutputError: Swift.Error, Swift.Eq extension DescribeInstanceAssociationsStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceAssociationsStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceAssociationStatusInfos = output.instanceAssociationStatusInfos self.nextToken = output.nextToken @@ -13337,9 +13296,8 @@ public enum DescribeInstanceInformationOutputError: Swift.Error, Swift.Equatable extension DescribeInstanceInformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceInformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceInformationList = output.instanceInformationList self.nextToken = output.nextToken @@ -13525,9 +13483,8 @@ public enum DescribeInstancePatchStatesForPatchGroupOutputError: Swift.Error, Sw extension DescribeInstancePatchStatesForPatchGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstancePatchStatesForPatchGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instancePatchStates = output.instancePatchStates self.nextToken = output.nextToken @@ -13693,9 +13650,8 @@ public enum DescribeInstancePatchStatesOutputError: Swift.Error, Swift.Equatable extension DescribeInstancePatchStatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstancePatchStatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instancePatchStates = output.instancePatchStates self.nextToken = output.nextToken @@ -13885,9 +13841,8 @@ public enum DescribeInstancePatchesOutputError: Swift.Error, Swift.Equatable { extension DescribeInstancePatchesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstancePatchesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.patches = output.patches @@ -14056,9 +14011,8 @@ public enum DescribeInventoryDeletionsOutputError: Swift.Error, Swift.Equatable extension DescribeInventoryDeletionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInventoryDeletionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inventoryDeletions = output.inventoryDeletions self.nextToken = output.nextToken @@ -14249,9 +14203,8 @@ public enum DescribeMaintenanceWindowExecutionTaskInvocationsOutputError: Swift. extension DescribeMaintenanceWindowExecutionTaskInvocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceWindowExecutionTaskInvocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.windowExecutionTaskInvocationIdentities = output.windowExecutionTaskInvocationIdentities @@ -14429,9 +14382,8 @@ public enum DescribeMaintenanceWindowExecutionTasksOutputError: Swift.Error, Swi extension DescribeMaintenanceWindowExecutionTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceWindowExecutionTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.windowExecutionTaskIdentities = output.windowExecutionTaskIdentities @@ -14611,9 +14563,8 @@ public enum DescribeMaintenanceWindowExecutionsOutputError: Swift.Error, Swift.E extension DescribeMaintenanceWindowExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceWindowExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.windowExecutions = output.windowExecutions @@ -14826,9 +14777,8 @@ public enum DescribeMaintenanceWindowScheduleOutputError: Swift.Error, Swift.Equ extension DescribeMaintenanceWindowScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceWindowScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduledWindowExecutions = output.scheduledWindowExecutions @@ -15006,9 +14956,8 @@ public enum DescribeMaintenanceWindowTargetsOutputError: Swift.Error, Swift.Equa extension DescribeMaintenanceWindowTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceWindowTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.targets = output.targets @@ -15186,9 +15135,8 @@ public enum DescribeMaintenanceWindowTasksOutputError: Swift.Error, Swift.Equata extension DescribeMaintenanceWindowTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceWindowTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tasks = output.tasks @@ -15365,9 +15313,8 @@ public enum DescribeMaintenanceWindowsForTargetOutputError: Swift.Error, Swift.E extension DescribeMaintenanceWindowsForTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceWindowsForTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.windowIdentities = output.windowIdentities @@ -15530,9 +15477,8 @@ public enum DescribeMaintenanceWindowsOutputError: Swift.Error, Swift.Equatable extension DescribeMaintenanceWindowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceWindowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.windowIdentities = output.windowIdentities @@ -15724,9 +15670,8 @@ public enum DescribeOpsItemsOutputError: Swift.Error, Swift.Equatable { extension DescribeOpsItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOpsItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.opsItemSummaries = output.opsItemSummaries @@ -15921,9 +15866,8 @@ public enum DescribeParametersOutputError: Swift.Error, Swift.Equatable { extension DescribeParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parameters = output.parameters @@ -16092,9 +16036,8 @@ public enum DescribePatchBaselinesOutputError: Swift.Error, Swift.Equatable { extension DescribePatchBaselinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePatchBaselinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baselineIdentities = output.baselineIdentities self.nextToken = output.nextToken @@ -16224,9 +16167,8 @@ public enum DescribePatchGroupStateOutputError: Swift.Error, Swift.Equatable { extension DescribePatchGroupStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePatchGroupStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.instancesWithCriticalNonCompliantPatches = output.instancesWithCriticalNonCompliantPatches @@ -16484,9 +16426,8 @@ public enum DescribePatchGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribePatchGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePatchGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mappings = output.mappings self.nextToken = output.nextToken @@ -16667,9 +16608,8 @@ public enum DescribePatchPropertiesOutputError: Swift.Error, Swift.Equatable { extension DescribePatchPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePatchPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.properties = output.properties @@ -16858,9 +16798,8 @@ public enum DescribeSessionsOutputError: Swift.Error, Swift.Equatable { extension DescribeSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sessions = output.sessions @@ -17017,9 +16956,8 @@ public struct DisassociateOpsItemRelatedItemOutputResponse: Swift.Equatable { extension DocumentAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DocumentAlreadyExistsBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17033,7 +16971,7 @@ extension DocumentAlreadyExists { } /// The specified document already exists. -public struct DocumentAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DocumentAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18004,9 +17942,8 @@ extension SSMClientTypes { extension DocumentLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DocumentLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18020,7 +17957,7 @@ extension DocumentLimitExceeded { } /// You can have at most 500 active SSM documents. -public struct DocumentLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DocumentLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18229,9 +18166,8 @@ extension SSMClientTypes { extension DocumentPermissionLimit { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DocumentPermissionLimitBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18245,7 +18181,7 @@ extension DocumentPermissionLimit { } /// The document can't be shared with more Amazon Web Services accounts. You can specify a maximum of 20 accounts per API operation to share a private document. By default, you can share a private document with a maximum of 1,000 accounts and publicly share up to five documents. If you need to increase the quota for privately or publicly shared Systems Manager documents, contact Amazon Web Services Support. -public struct DocumentPermissionLimit: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DocumentPermissionLimit: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18871,9 +18807,8 @@ extension SSMClientTypes { extension DocumentVersionLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DocumentVersionLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18887,7 +18822,7 @@ extension DocumentVersionLimitExceeded { } /// The document has too many versions. Delete one or more document versions and try again. -public struct DocumentVersionLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DocumentVersionLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18923,9 +18858,8 @@ extension DocumentVersionLimitExceededBody: Swift.Decodable { extension DoesNotExistException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DoesNotExistExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18939,7 +18873,7 @@ extension DoesNotExistException { } /// Error returned when the ID specified for a resource, such as a maintenance window or patch baseline, doesn't exist. For information about resource quotas in Amazon Web Services Systems Manager, see [Systems Manager service quotas](https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) in the Amazon Web Services General Reference. -public struct DoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DoesNotExistException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -18975,9 +18909,8 @@ extension DoesNotExistExceptionBody: Swift.Decodable { extension DuplicateDocumentContent { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateDocumentContentBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18991,7 +18924,7 @@ extension DuplicateDocumentContent { } /// The content of the association document matches another document. Change the content of the document and try again. -public struct DuplicateDocumentContent: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateDocumentContent: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19027,9 +18960,8 @@ extension DuplicateDocumentContentBody: Swift.Decodable { extension DuplicateDocumentVersionName { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateDocumentVersionNameBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19043,7 +18975,7 @@ extension DuplicateDocumentVersionName { } /// The version name has already been used in this document. Specify a different version name, and then try again. -public struct DuplicateDocumentVersionName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateDocumentVersionName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19087,7 +19019,7 @@ extension DuplicateInstanceId { } /// You can't specify a managed node ID in more than one association. -public struct DuplicateInstanceId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateInstanceId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19377,9 +19309,8 @@ extension SSMClientTypes { extension FeatureNotAvailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FeatureNotAvailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -19393,7 +19324,7 @@ extension FeatureNotAvailableException { } /// You attempted to register a LAMBDA or STEP_FUNCTIONS task in a region where the corresponding service isn't available. -public struct FeatureNotAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FeatureNotAvailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19501,9 +19432,8 @@ public enum GetAutomationExecutionOutputError: Swift.Error, Swift.Equatable { extension GetAutomationExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAutomationExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.automationExecution = output.automationExecution } else { @@ -19642,9 +19572,8 @@ public enum GetCalendarStateOutputError: Swift.Error, Swift.Equatable { extension GetCalendarStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCalendarStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.atTime = output.atTime self.nextTransitionTime = output.nextTransitionTime @@ -19822,9 +19751,8 @@ public enum GetCommandInvocationOutputError: Swift.Error, Swift.Equatable { extension GetCommandInvocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCommandInvocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudWatchOutputConfig = output.cloudWatchOutputConfig self.commandId = output.commandId @@ -20113,9 +20041,8 @@ public enum GetConnectionStatusOutputError: Swift.Error, Swift.Equatable { extension GetConnectionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConnectionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status self.target = output.target @@ -20233,9 +20160,8 @@ public enum GetDefaultPatchBaselineOutputError: Swift.Error, Swift.Equatable { extension GetDefaultPatchBaselineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDefaultPatchBaselineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baselineId = output.baselineId self.operatingSystem = output.operatingSystem @@ -20383,9 +20309,8 @@ public enum GetDeployablePatchSnapshotForInstanceOutputError: Swift.Error, Swift extension GetDeployablePatchSnapshotForInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeployablePatchSnapshotForInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceId = output.instanceId self.product = output.product @@ -20564,9 +20489,8 @@ public enum GetDocumentOutputError: Swift.Error, Swift.Equatable { extension GetDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachmentsContent = output.attachmentsContent self.content = output.content @@ -20908,9 +20832,8 @@ public enum GetInventoryOutputError: Swift.Error, Swift.Equatable { extension GetInventoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInventoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -21089,9 +21012,8 @@ public enum GetInventorySchemaOutputError: Swift.Error, Swift.Equatable { extension GetInventorySchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInventorySchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemas = output.schemas @@ -21221,9 +21143,8 @@ public enum GetMaintenanceWindowExecutionOutputError: Swift.Error, Swift.Equatab extension GetMaintenanceWindowExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMaintenanceWindowExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endTime = output.endTime self.startTime = output.startTime @@ -21485,9 +21406,8 @@ extension GetMaintenanceWindowExecutionTaskInvocationOutputResponse: Swift.Custo extension GetMaintenanceWindowExecutionTaskInvocationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMaintenanceWindowExecutionTaskInvocationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endTime = output.endTime self.executionId = output.executionId @@ -21665,9 +21585,8 @@ extension GetMaintenanceWindowExecutionTaskOutputResponse: Swift.CustomDebugStri extension GetMaintenanceWindowExecutionTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMaintenanceWindowExecutionTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmConfiguration = output.alarmConfiguration self.endTime = output.endTime @@ -21954,9 +21873,8 @@ extension GetMaintenanceWindowOutputResponse: Swift.CustomDebugStringConvertible extension GetMaintenanceWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMaintenanceWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowUnassociatedTargets = output.allowUnassociatedTargets self.createdDate = output.createdDate @@ -22225,9 +22143,8 @@ extension GetMaintenanceWindowTaskOutputResponse: Swift.CustomDebugStringConvert extension GetMaintenanceWindowTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMaintenanceWindowTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmConfiguration = output.alarmConfiguration self.cutoffBehavior = output.cutoffBehavior @@ -22520,9 +22437,8 @@ public enum GetOpsItemOutputError: Swift.Error, Swift.Equatable { extension GetOpsItemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOpsItemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.opsItem = output.opsItem } else { @@ -22659,9 +22575,8 @@ public enum GetOpsMetadataOutputError: Swift.Error, Swift.Equatable { extension GetOpsMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOpsMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata self.nextToken = output.nextToken @@ -22904,9 +22819,8 @@ public enum GetOpsSummaryOutputError: Swift.Error, Swift.Equatable { extension GetOpsSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOpsSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.entities = output.entities self.nextToken = output.nextToken @@ -23076,9 +22990,8 @@ public enum GetParameterHistoryOutputError: Swift.Error, Swift.Equatable { extension GetParameterHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetParameterHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parameters = output.parameters @@ -23224,9 +23137,8 @@ public enum GetParameterOutputError: Swift.Error, Swift.Equatable { extension GetParameterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetParameterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.parameter = output.parameter } else { @@ -23417,9 +23329,8 @@ public enum GetParametersByPathOutputError: Swift.Error, Swift.Equatable { extension GetParametersByPathOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetParametersByPathOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parameters = output.parameters @@ -23573,9 +23484,8 @@ public enum GetParametersOutputError: Swift.Error, Swift.Equatable { extension GetParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invalidParameters = output.invalidParameters self.parameters = output.parameters @@ -23724,9 +23634,8 @@ public enum GetPatchBaselineForPatchGroupOutputError: Swift.Error, Swift.Equatab extension GetPatchBaselineForPatchGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPatchBaselineForPatchGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baselineId = output.baselineId self.operatingSystem = output.operatingSystem @@ -23859,9 +23768,8 @@ public enum GetPatchBaselineOutputError: Swift.Error, Swift.Equatable { extension GetPatchBaselineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPatchBaselineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRules = output.approvalRules self.approvedPatches = output.approvedPatches @@ -24172,9 +24080,8 @@ public enum GetResourcePoliciesOutputError: Swift.Error, Swift.Equatable { extension GetResourcePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.policies = output.policies @@ -24376,9 +24283,8 @@ public enum GetServiceSettingOutputError: Swift.Error, Swift.Equatable { extension GetServiceSettingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceSettingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSetting = output.serviceSetting } else { @@ -24418,9 +24324,8 @@ extension GetServiceSettingOutputResponseBody: Swift.Decodable { extension HierarchyLevelLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HierarchyLevelLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24434,7 +24339,7 @@ extension HierarchyLevelLimitExceededException { } /// A hierarchy can have a maximum of 15 levels. For more information, see [Requirements and constraints for parameter names](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html) in the Amazon Web Services Systems Manager User Guide. -public struct HierarchyLevelLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HierarchyLevelLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24471,9 +24376,8 @@ extension HierarchyLevelLimitExceededExceptionBody: Swift.Decodable { extension HierarchyTypeMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HierarchyTypeMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24487,7 +24391,7 @@ extension HierarchyTypeMismatchException { } /// Parameter Store doesn't support changing a parameter type in a hierarchy. For example, you can't change a parameter from a String type to a SecureString type. You must create a new, unique parameter. -public struct HierarchyTypeMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HierarchyTypeMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24524,9 +24428,8 @@ extension HierarchyTypeMismatchExceptionBody: Swift.Decodable { extension IdempotentParameterMismatch { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24540,7 +24443,7 @@ extension IdempotentParameterMismatch { } /// Error returned when an idempotent operation is retried and the parameters don't match the original call to the API with the same idempotency token. -public struct IdempotentParameterMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatch: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -24576,9 +24479,8 @@ extension IdempotentParameterMismatchBody: Swift.Decodable { extension IncompatiblePolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IncompatiblePolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -24592,7 +24494,7 @@ extension IncompatiblePolicyException { } /// There is a conflict in the policies specified for this parameter. You can't, for example, specify two Expiration policies for a parameter. Review your policies, and try again. -public struct IncompatiblePolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IncompatiblePolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25774,9 +25676,8 @@ extension SSMClientTypes { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25790,7 +25691,7 @@ extension InternalServerError { } /// An error occurred on the server side. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25826,9 +25727,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidActivation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidActivationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25842,7 +25742,7 @@ extension InvalidActivation { } /// The activation isn't valid. The activation might have been deleted, or the ActivationId and the ActivationCode don't match. -public struct InvalidActivation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidActivation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25878,9 +25778,8 @@ extension InvalidActivationBody: Swift.Decodable { extension InvalidActivationId { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidActivationIdBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25894,7 +25793,7 @@ extension InvalidActivationId { } /// The activation ID isn't valid. Verify the you entered the correct ActivationId or ActivationCode and try again. -public struct InvalidActivationId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidActivationId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25930,9 +25829,8 @@ extension InvalidActivationIdBody: Swift.Decodable { extension InvalidAggregatorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAggregatorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25946,7 +25844,7 @@ extension InvalidAggregatorException { } /// The specified aggregator isn't valid for inventory groups. Verify that the aggregator uses a valid inventory type such as AWS:Application or AWS:InstanceInformation. -public struct InvalidAggregatorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAggregatorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -25982,9 +25880,8 @@ extension InvalidAggregatorExceptionBody: Swift.Decodable { extension InvalidAllowedPatternException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAllowedPatternExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -25998,7 +25895,7 @@ extension InvalidAllowedPatternException { } /// The request doesn't meet the regular expression requirement. -public struct InvalidAllowedPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAllowedPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26035,9 +25932,8 @@ extension InvalidAllowedPatternExceptionBody: Swift.Decodable { extension InvalidAssociation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAssociationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26051,7 +25947,7 @@ extension InvalidAssociation { } /// The association isn't valid or doesn't exist. -public struct InvalidAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAssociation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26087,9 +25983,8 @@ extension InvalidAssociationBody: Swift.Decodable { extension InvalidAssociationVersion { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAssociationVersionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26103,7 +25998,7 @@ extension InvalidAssociationVersion { } /// The version you specified isn't valid. Use ListAssociationVersions to view all versions of an association according to the association ID. Or, use the $LATEST parameter to view the latest version of the association. -public struct InvalidAssociationVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAssociationVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26139,9 +26034,8 @@ extension InvalidAssociationVersionBody: Swift.Decodable { extension InvalidAutomationExecutionParametersException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAutomationExecutionParametersExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26155,7 +26049,7 @@ extension InvalidAutomationExecutionParametersException { } /// The supplied parameters for invoking the specified Automation runbook are incorrect. For example, they may not match the set of parameters permitted for the specified Automation document. -public struct InvalidAutomationExecutionParametersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAutomationExecutionParametersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26191,9 +26085,8 @@ extension InvalidAutomationExecutionParametersExceptionBody: Swift.Decodable { extension InvalidAutomationSignalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAutomationSignalExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26207,7 +26100,7 @@ extension InvalidAutomationSignalException { } /// The signal isn't valid for the current Automation execution. -public struct InvalidAutomationSignalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAutomationSignalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26243,9 +26136,8 @@ extension InvalidAutomationSignalExceptionBody: Swift.Decodable { extension InvalidAutomationStatusUpdateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAutomationStatusUpdateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26259,7 +26151,7 @@ extension InvalidAutomationStatusUpdateException { } /// The specified update status operation isn't valid. -public struct InvalidAutomationStatusUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAutomationStatusUpdateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26303,7 +26195,7 @@ extension InvalidCommandId { } /// The specified command ID isn't valid. Verify the ID and try again. -public struct InvalidCommandId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCommandId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26317,9 +26209,8 @@ public struct InvalidCommandId: AWSClientRuntime.AWSHttpServiceError, Swift.Equa extension InvalidDeleteInventoryParametersException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeleteInventoryParametersExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26333,7 +26224,7 @@ extension InvalidDeleteInventoryParametersException { } /// One or more of the parameters specified for the delete operation isn't valid. Verify all parameters and try again. -public struct InvalidDeleteInventoryParametersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeleteInventoryParametersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26369,9 +26260,8 @@ extension InvalidDeleteInventoryParametersExceptionBody: Swift.Decodable { extension InvalidDeletionIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDeletionIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26385,7 +26275,7 @@ extension InvalidDeletionIdException { } /// The ID specified for the delete operation doesn't exist or isn't valid. Verify the ID and try again. -public struct InvalidDeletionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDeletionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26421,9 +26311,8 @@ extension InvalidDeletionIdExceptionBody: Swift.Decodable { extension InvalidDocument { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDocumentBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26437,7 +26326,7 @@ extension InvalidDocument { } /// The specified SSM document doesn't exist. -public struct InvalidDocument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDocument: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26474,9 +26363,8 @@ extension InvalidDocumentBody: Swift.Decodable { extension InvalidDocumentContent { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDocumentContentBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26490,7 +26378,7 @@ extension InvalidDocumentContent { } /// The content for the document isn't valid. -public struct InvalidDocumentContent: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDocumentContent: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26527,9 +26415,8 @@ extension InvalidDocumentContentBody: Swift.Decodable { extension InvalidDocumentOperation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDocumentOperationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26543,7 +26430,7 @@ extension InvalidDocumentOperation { } /// You attempted to delete a document while it is still shared. You must stop sharing the document before you can delete it. -public struct InvalidDocumentOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDocumentOperation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26579,9 +26466,8 @@ extension InvalidDocumentOperationBody: Swift.Decodable { extension InvalidDocumentSchemaVersion { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDocumentSchemaVersionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26595,7 +26481,7 @@ extension InvalidDocumentSchemaVersion { } /// The version of the document schema isn't supported. -public struct InvalidDocumentSchemaVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDocumentSchemaVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26631,9 +26517,8 @@ extension InvalidDocumentSchemaVersionBody: Swift.Decodable { extension InvalidDocumentType { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDocumentTypeBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26647,7 +26532,7 @@ extension InvalidDocumentType { } /// The SSM document type isn't valid. Valid document types are described in the DocumentType property. -public struct InvalidDocumentType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDocumentType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26683,9 +26568,8 @@ extension InvalidDocumentTypeBody: Swift.Decodable { extension InvalidDocumentVersion { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidDocumentVersionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26699,7 +26583,7 @@ extension InvalidDocumentVersion { } /// The document version isn't valid or doesn't exist. -public struct InvalidDocumentVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidDocumentVersion: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26735,9 +26619,8 @@ extension InvalidDocumentVersionBody: Swift.Decodable { extension InvalidFilter { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFilterBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26751,7 +26634,7 @@ extension InvalidFilter { } /// The filter name isn't valid. Verify the you entered the correct name and try again. -public struct InvalidFilter: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFilter: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26795,7 +26678,7 @@ extension InvalidFilterKey { } /// The specified key isn't valid. -public struct InvalidFilterKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFilterKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26809,9 +26692,8 @@ public struct InvalidFilterKey: AWSClientRuntime.AWSHttpServiceError, Swift.Equa extension InvalidFilterOption { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFilterOptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26825,7 +26707,7 @@ extension InvalidFilterOption { } /// The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid options are Recursive and OneLevel. -public struct InvalidFilterOption: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFilterOption: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26862,9 +26744,8 @@ extension InvalidFilterOptionBody: Swift.Decodable { extension InvalidFilterValue { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFilterValueBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26878,7 +26759,7 @@ extension InvalidFilterValue { } /// The filter value isn't valid. Verify the value and try again. -public struct InvalidFilterValue: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFilterValue: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26914,9 +26795,8 @@ extension InvalidFilterValueBody: Swift.Decodable { extension InvalidInstanceId { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInstanceIdBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26938,7 +26818,7 @@ extension InvalidInstanceId { /// * SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent. /// /// * The managed node isn't in valid state. Valid states are: Running, Pending, Stopped, and Stopping. Invalid states are: Shutting-down and Terminated. -public struct InvalidInstanceId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInstanceId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -26974,9 +26854,8 @@ extension InvalidInstanceIdBody: Swift.Decodable { extension InvalidInstanceInformationFilterValue { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInstanceInformationFilterValueBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -26990,7 +26869,7 @@ extension InvalidInstanceInformationFilterValue { } /// The specified filter value isn't valid. -public struct InvalidInstanceInformationFilterValue: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInstanceInformationFilterValue: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27026,9 +26905,8 @@ extension InvalidInstanceInformationFilterValueBody: Swift.Decodable { extension InvalidInventoryGroupException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInventoryGroupExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27042,7 +26920,7 @@ extension InvalidInventoryGroupException { } /// The specified inventory group isn't valid. -public struct InvalidInventoryGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInventoryGroupException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27078,9 +26956,8 @@ extension InvalidInventoryGroupExceptionBody: Swift.Decodable { extension InvalidInventoryItemContextException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInventoryItemContextExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27094,7 +26971,7 @@ extension InvalidInventoryItemContextException { } /// You specified invalid keys or values in the Context attribute for InventoryItem. Verify the keys and values, and try again. -public struct InvalidInventoryItemContextException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInventoryItemContextException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27130,9 +27007,8 @@ extension InvalidInventoryItemContextExceptionBody: Swift.Decodable { extension InvalidInventoryRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInventoryRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27146,7 +27022,7 @@ extension InvalidInventoryRequestException { } /// The request isn't valid. -public struct InvalidInventoryRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInventoryRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27182,9 +27058,8 @@ extension InvalidInventoryRequestExceptionBody: Swift.Decodable { extension InvalidItemContentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidItemContentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.typeName = output.typeName @@ -27200,7 +27075,7 @@ extension InvalidItemContentException { } /// One or more content items isn't valid. -public struct InvalidItemContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidItemContentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27243,9 +27118,8 @@ extension InvalidItemContentExceptionBody: Swift.Decodable { extension InvalidKeyId { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidKeyIdBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27259,7 +27133,7 @@ extension InvalidKeyId { } /// The query key ID isn't valid. -public struct InvalidKeyId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKeyId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27295,9 +27169,8 @@ extension InvalidKeyIdBody: Swift.Decodable { extension InvalidNextToken { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27311,7 +27184,7 @@ extension InvalidNextToken { } /// The specified token isn't valid. -public struct InvalidNextToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextToken: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27347,9 +27220,8 @@ extension InvalidNextTokenBody: Swift.Decodable { extension InvalidNotificationConfig { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNotificationConfigBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27363,7 +27235,7 @@ extension InvalidNotificationConfig { } /// One or more configuration items isn't valid. Verify that a valid Amazon Resource Name (ARN) was provided for an Amazon Simple Notification Service topic. -public struct InvalidNotificationConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNotificationConfig: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27399,9 +27271,8 @@ extension InvalidNotificationConfigBody: Swift.Decodable { extension InvalidOptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27415,7 +27286,7 @@ extension InvalidOptionException { } /// The delete inventory option specified isn't valid. Verify the option and try again. -public struct InvalidOptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27459,7 +27330,7 @@ extension InvalidOutputFolder { } /// The S3 bucket doesn't exist. -public struct InvalidOutputFolder: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOutputFolder: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27481,7 +27352,7 @@ extension InvalidOutputLocation { } /// The output location isn't valid or doesn't exist. -public struct InvalidOutputLocation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOutputLocation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27495,9 +27366,8 @@ public struct InvalidOutputLocation: AWSClientRuntime.AWSHttpServiceError, Swift extension InvalidParameters { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParametersBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27511,7 +27381,7 @@ extension InvalidParameters { } /// You must specify values for all required parameters in the Amazon Web Services Systems Manager document (SSM document). You can only supply values to parameters defined in the SSM document. -public struct InvalidParameters: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameters: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27547,9 +27417,8 @@ extension InvalidParametersBody: Swift.Decodable { extension InvalidPermissionType { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPermissionTypeBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27563,7 +27432,7 @@ extension InvalidPermissionType { } /// The permission type isn't supported. Share is the only supported permission type. -public struct InvalidPermissionType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPermissionType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27607,7 +27476,7 @@ extension InvalidPluginName { } /// The plugin name isn't valid. -public struct InvalidPluginName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPluginName: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27621,9 +27490,8 @@ public struct InvalidPluginName: AWSClientRuntime.AWSHttpServiceError, Swift.Equ extension InvalidPolicyAttributeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPolicyAttributeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27637,7 +27505,7 @@ extension InvalidPolicyAttributeException { } /// A policy attribute or its value is invalid. -public struct InvalidPolicyAttributeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPolicyAttributeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27673,9 +27541,8 @@ extension InvalidPolicyAttributeExceptionBody: Swift.Decodable { extension InvalidPolicyTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPolicyTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27689,7 +27556,7 @@ extension InvalidPolicyTypeException { } /// The policy type isn't supported. Parameter Store supports the following policy types: Expiration, ExpirationNotification, and NoChangeNotification. -public struct InvalidPolicyTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPolicyTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27733,7 +27600,7 @@ extension InvalidResourceId { } /// The resource ID isn't valid. Verify that you entered the correct ID and try again. -public struct InvalidResourceId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceId: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27755,7 +27622,7 @@ extension InvalidResourceType { } /// The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, the instance must be a registered managed node. -public struct InvalidResourceType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27769,9 +27636,8 @@ public struct InvalidResourceType: AWSClientRuntime.AWSHttpServiceError, Swift.E extension InvalidResultAttributeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResultAttributeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27785,7 +27651,7 @@ extension InvalidResultAttributeException { } /// The specified inventory item result attribute isn't valid. -public struct InvalidResultAttributeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResultAttributeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27821,9 +27687,8 @@ extension InvalidResultAttributeExceptionBody: Swift.Decodable { extension InvalidRole { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRoleBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27837,7 +27702,7 @@ extension InvalidRole { } /// The role name can't contain invalid characters. Also verify that you specified an IAM role for notifications that includes the required trust policy. For information about configuring the IAM role for Run Command notifications, see [Configuring Amazon SNS Notifications for Run Command](https://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html) in the Amazon Web Services Systems Manager User Guide. -public struct InvalidRole: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRole: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27873,9 +27738,8 @@ extension InvalidRoleBody: Swift.Decodable { extension InvalidSchedule { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidScheduleBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27889,7 +27753,7 @@ extension InvalidSchedule { } /// The schedule is invalid. Verify your cron or rate expression and try again. -public struct InvalidSchedule: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidSchedule: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27925,9 +27789,8 @@ extension InvalidScheduleBody: Swift.Decodable { extension InvalidTag { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTagBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27941,7 +27804,7 @@ extension InvalidTag { } /// The specified tag key or value isn't valid. -public struct InvalidTag: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTag: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -27977,9 +27840,8 @@ extension InvalidTagBody: Swift.Decodable { extension InvalidTarget { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -27993,7 +27855,7 @@ extension InvalidTarget { } /// The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might not have permission to perform the operation. -public struct InvalidTarget: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTarget: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -28029,9 +27891,8 @@ extension InvalidTargetBody: Swift.Decodable { extension InvalidTargetMaps { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTargetMapsBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -28045,7 +27906,7 @@ extension InvalidTargetMaps { } /// TargetMap parameter isn't valid. -public struct InvalidTargetMaps: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTargetMaps: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -28081,9 +27942,8 @@ extension InvalidTargetMapsBody: Swift.Decodable { extension InvalidTypeNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidTypeNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -28097,7 +27957,7 @@ extension InvalidTypeNameException { } /// The parameter type name isn't valid. -public struct InvalidTypeNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidTypeNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -28133,9 +27993,8 @@ extension InvalidTypeNameExceptionBody: Swift.Decodable { extension InvalidUpdate { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidUpdateBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -28149,7 +28008,7 @@ extension InvalidUpdate { } /// The update isn't valid. -public struct InvalidUpdate: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidUpdate: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29166,7 +29025,7 @@ extension InvocationDoesNotExist { } /// The command ID and managed node ID you specified didn't match any invocations. Verify the command ID and the managed node ID and try again. -public struct InvocationDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvocationDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29180,9 +29039,8 @@ public struct InvocationDoesNotExist: AWSClientRuntime.AWSHttpServiceError, Swif extension ItemContentMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ItemContentMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.typeName = output.typeName @@ -29198,7 +29056,7 @@ extension ItemContentMismatchException { } /// The inventory item has invalid content. -public struct ItemContentMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ItemContentMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29241,9 +29099,8 @@ extension ItemContentMismatchExceptionBody: Swift.Decodable { extension ItemSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ItemSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.typeName = output.typeName @@ -29259,7 +29116,7 @@ extension ItemSizeLimitExceededException { } /// The inventory item size has exceeded the size limit. -public struct ItemSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ItemSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -29417,9 +29274,8 @@ public enum LabelParameterVersionOutputError: Swift.Error, Swift.Equatable { extension LabelParameterVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LabelParameterVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invalidLabels = output.invalidLabels self.parameterVersion = output.parameterVersion @@ -29610,9 +29466,8 @@ public enum ListAssociationVersionsOutputError: Swift.Error, Swift.Equatable { extension ListAssociationVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociationVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationVersions = output.associationVersions self.nextToken = output.nextToken @@ -29777,9 +29632,8 @@ public enum ListAssociationsOutputError: Swift.Error, Swift.Equatable { extension ListAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associations = output.associations self.nextToken = output.nextToken @@ -29986,9 +29840,8 @@ public enum ListCommandInvocationsOutputError: Swift.Error, Swift.Equatable { extension ListCommandInvocationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCommandInvocationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commandInvocations = output.commandInvocations self.nextToken = output.nextToken @@ -30183,9 +30036,8 @@ public enum ListCommandsOutputError: Swift.Error, Swift.Equatable { extension ListCommandsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCommandsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.commands = output.commands self.nextToken = output.nextToken @@ -30404,9 +30256,8 @@ public enum ListComplianceItemsOutputError: Swift.Error, Swift.Equatable { extension ListComplianceItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComplianceItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.complianceItems = output.complianceItems self.nextToken = output.nextToken @@ -30573,9 +30424,8 @@ public enum ListComplianceSummariesOutputError: Swift.Error, Swift.Equatable { extension ListComplianceSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComplianceSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.complianceSummaryItems = output.complianceSummaryItems self.nextToken = output.nextToken @@ -30758,9 +30608,8 @@ public enum ListDocumentMetadataHistoryOutputError: Swift.Error, Swift.Equatable extension ListDocumentMetadataHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDocumentMetadataHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.author = output.author self.documentVersion = output.documentVersion @@ -30937,9 +30786,8 @@ public enum ListDocumentVersionsOutputError: Swift.Error, Swift.Equatable { extension ListDocumentVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDocumentVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentVersions = output.documentVersions self.nextToken = output.nextToken @@ -31130,9 +30978,8 @@ public enum ListDocumentsOutputError: Swift.Error, Swift.Equatable { extension ListDocumentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDocumentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentIdentifiers = output.documentIdentifiers self.nextToken = output.nextToken @@ -31329,9 +31176,8 @@ public enum ListInventoryEntriesOutputError: Swift.Error, Swift.Equatable { extension ListInventoryEntriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInventoryEntriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.captureTime = output.captureTime self.entries = output.entries @@ -31549,9 +31395,8 @@ public enum ListOpsItemEventsOutputError: Swift.Error, Swift.Equatable { extension ListOpsItemEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOpsItemEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -31728,9 +31573,8 @@ public enum ListOpsItemRelatedItemsOutputError: Swift.Error, Swift.Equatable { extension ListOpsItemRelatedItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOpsItemRelatedItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.summaries = output.summaries @@ -31895,9 +31739,8 @@ public enum ListOpsMetadataOutputError: Swift.Error, Swift.Equatable { extension ListOpsMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOpsMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.opsMetadataList = output.opsMetadataList @@ -32064,9 +31907,8 @@ public enum ListResourceComplianceSummariesOutputError: Swift.Error, Swift.Equat extension ListResourceComplianceSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceComplianceSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceComplianceSummaryItems = output.resourceComplianceSummaryItems @@ -32221,9 +32063,8 @@ public enum ListResourceDataSyncOutputError: Swift.Error, Swift.Equatable { extension ListResourceDataSyncOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceDataSyncOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceDataSyncItems = output.resourceDataSyncItems @@ -32368,9 +32209,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -34040,9 +33880,8 @@ extension SSMClientTypes { extension MaxDocumentSizeExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MaxDocumentSizeExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -34056,7 +33895,7 @@ extension MaxDocumentSizeExceeded { } /// The size limit of a document is 64 KB. -public struct MaxDocumentSizeExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MaxDocumentSizeExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35198,9 +35037,8 @@ extension SSMClientTypes { extension OpsItemAccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsItemAccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -35214,7 +35052,7 @@ extension OpsItemAccessDeniedException { } /// You don't have permission to view OpsItems in the specified account. Verify that your account is configured either as a Systems Manager delegated administrator or that you are logged into the Organizations management account. -public struct OpsItemAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsItemAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35250,9 +35088,8 @@ extension OpsItemAccessDeniedExceptionBody: Swift.Decodable { extension OpsItemAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsItemAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.opsItemId = output.opsItemId @@ -35268,7 +35105,7 @@ extension OpsItemAlreadyExistsException { } /// The OpsItem already exists. -public struct OpsItemAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsItemAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35864,9 +35701,8 @@ extension SSMClientTypes { extension OpsItemInvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsItemInvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.parameterNames = output.parameterNames @@ -35882,7 +35718,7 @@ extension OpsItemInvalidParameterException { } /// A specified parameter argument isn't valid. Verify the available arguments and try again. -public struct OpsItemInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsItemInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -35934,9 +35770,8 @@ extension OpsItemInvalidParameterExceptionBody: Swift.Decodable { extension OpsItemLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsItemLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.limit = output.limit self.limitType = output.limitType @@ -35956,7 +35791,7 @@ extension OpsItemLimitExceededException { } /// The request caused OpsItems to exceed one or more quotas. For information about OpsItem quotas, see [What are the resource limits for OpsCenter?](https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits). -public struct OpsItemLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsItemLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36022,9 +35857,8 @@ extension OpsItemLimitExceededExceptionBody: Swift.Decodable { extension OpsItemNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsItemNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -36038,7 +35872,7 @@ extension OpsItemNotFoundException { } /// The specified OpsItem ID doesn't exist. Verify the ID and try again. -public struct OpsItemNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsItemNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36109,9 +35943,8 @@ extension SSMClientTypes { extension OpsItemRelatedItemAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsItemRelatedItemAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.opsItemId = output.opsItemId @@ -36129,7 +35962,7 @@ extension OpsItemRelatedItemAlreadyExistsException { } /// The Amazon Resource Name (ARN) is already associated with the OpsItem. -public struct OpsItemRelatedItemAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsItemRelatedItemAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36179,9 +36012,8 @@ extension OpsItemRelatedItemAlreadyExistsExceptionBody: Swift.Decodable { extension OpsItemRelatedItemAssociationNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsItemRelatedItemAssociationNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -36195,7 +36027,7 @@ extension OpsItemRelatedItemAssociationNotFoundException { } /// The association wasn't found using the parameters you specified in the call. Verify the information and try again. -public struct OpsItemRelatedItemAssociationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsItemRelatedItemAssociationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36851,9 +36683,8 @@ extension SSMClientTypes { extension OpsMetadataAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsMetadataAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -36867,7 +36698,7 @@ extension OpsMetadataAlreadyExistsException { } /// An OpsMetadata object already exists for the selected resource. -public struct OpsMetadataAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsMetadataAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -36962,9 +36793,8 @@ extension SSMClientTypes { extension OpsMetadataInvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsMetadataInvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -36978,7 +36808,7 @@ extension OpsMetadataInvalidArgumentException { } /// One of the arguments passed is invalid. -public struct OpsMetadataInvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsMetadataInvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37014,9 +36844,8 @@ extension OpsMetadataInvalidArgumentExceptionBody: Swift.Decodable { extension OpsMetadataKeyLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsMetadataKeyLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37030,7 +36859,7 @@ extension OpsMetadataKeyLimitExceededException { } /// The OpsMetadata object exceeds the maximum number of OpsMetadata keys that you can assign to an application in Application Manager. -public struct OpsMetadataKeyLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsMetadataKeyLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37066,9 +36895,8 @@ extension OpsMetadataKeyLimitExceededExceptionBody: Swift.Decodable { extension OpsMetadataLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsMetadataLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37082,7 +36910,7 @@ extension OpsMetadataLimitExceededException { } /// Your account reached the maximum number of OpsMetadata objects allowed by Application Manager. The maximum is 200 OpsMetadata objects. Delete one or more OpsMetadata object and try again. -public struct OpsMetadataLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsMetadataLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37118,9 +36946,8 @@ extension OpsMetadataLimitExceededExceptionBody: Swift.Decodable { extension OpsMetadataNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsMetadataNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37134,7 +36961,7 @@ extension OpsMetadataNotFoundException { } /// The OpsMetadata object doesn't exist. -public struct OpsMetadataNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsMetadataNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37170,9 +36997,8 @@ extension OpsMetadataNotFoundExceptionBody: Swift.Decodable { extension OpsMetadataTooManyUpdatesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OpsMetadataTooManyUpdatesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37186,7 +37012,7 @@ extension OpsMetadataTooManyUpdatesException { } /// The system is processing too many concurrent updates. Wait a few moments and try again. -public struct OpsMetadataTooManyUpdatesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OpsMetadataTooManyUpdatesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37423,9 +37249,8 @@ extension SSMClientTypes { extension ParameterAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterAlreadyExistsBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37439,7 +37264,7 @@ extension ParameterAlreadyExists { } /// The parameter already exists. You can't create duplicate parameters. -public struct ParameterAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37714,9 +37539,8 @@ extension SSMClientTypes { extension ParameterLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37730,7 +37554,7 @@ extension ParameterLimitExceeded { } /// You have exceeded the number of parameters for this Amazon Web Services account. Delete one or more parameters and try again. -public struct ParameterLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37766,9 +37590,8 @@ extension ParameterLimitExceededBody: Swift.Decodable { extension ParameterMaxVersionLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterMaxVersionLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37782,7 +37605,7 @@ extension ParameterMaxVersionLimitExceeded { } /// Parameter Store retains the 100 most recently created versions of a parameter. After this number of versions has been created, Parameter Store deletes the oldest version when a new one is created. However, if the oldest version has a label attached to it, Parameter Store won't delete the version and instead presents this error message: An error occurred (ParameterMaxVersionLimitExceeded) when calling the PutParameter operation: You attempted to create a new version of parameter-name by calling the PutParameter API with the overwrite flag. Version version-number, the oldest version, can't be deleted because it has a label associated with it. Move the label to another version of the parameter, and try again. This safeguard is to prevent parameter versions with mission critical labels assigned to them from being deleted. To continue creating new parameters, first move the label from the oldest version of the parameter to a newer one for use in your operations. For information about moving parameter labels, see [Move a parameter label (console)](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html#sysman-paramstore-labels-console-move) or [Move a parameter label (CLI)](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html#sysman-paramstore-labels-cli-move) in the Amazon Web Services Systems Manager User Guide. -public struct ParameterMaxVersionLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterMaxVersionLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -37965,9 +37788,8 @@ extension SSMClientTypes { extension ParameterNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -37981,7 +37803,7 @@ extension ParameterNotFound { } /// The parameter couldn't be found. Verify the name and try again. -public struct ParameterNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -38017,9 +37839,8 @@ extension ParameterNotFoundBody: Swift.Decodable { extension ParameterPatternMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterPatternMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -38033,7 +37854,7 @@ extension ParameterPatternMismatchException { } /// The parameter name isn't valid. -public struct ParameterPatternMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterPatternMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -38208,9 +38029,8 @@ extension SSMClientTypes { extension ParameterVersionLabelLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterVersionLabelLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -38224,7 +38044,7 @@ extension ParameterVersionLabelLimitExceeded { } /// A parameter version can have a maximum of ten labels. -public struct ParameterVersionLabelLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterVersionLabelLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -38260,9 +38080,8 @@ extension ParameterVersionLabelLimitExceededBody: Swift.Decodable { extension ParameterVersionNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ParameterVersionNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -38276,7 +38095,7 @@ extension ParameterVersionNotFound { } /// The specified parameter version wasn't found. Verify the parameter name and version, and try again. -public struct ParameterVersionNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ParameterVersionNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -39772,9 +39591,8 @@ extension SSMClientTypes { extension PoliciesLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PoliciesLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -39788,7 +39606,7 @@ extension PoliciesLimitExceededException { } /// You specified more than the maximum number of allowed policies for the parameter. The maximum is 10. -public struct PoliciesLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PoliciesLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -40196,9 +40014,8 @@ public enum PutInventoryOutputError: Swift.Error, Swift.Equatable { extension PutInventoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutInventoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -40524,9 +40341,8 @@ public enum PutParameterOutputError: Swift.Error, Swift.Equatable { extension PutParameterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutParameterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tier = output.tier self.version = output.version @@ -40688,9 +40504,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyHash = output.policyHash self.policyId = output.policyId @@ -40845,9 +40660,8 @@ public enum RegisterDefaultPatchBaselineOutputError: Swift.Error, Swift.Equatabl extension RegisterDefaultPatchBaselineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterDefaultPatchBaselineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baselineId = output.baselineId } else { @@ -40977,9 +40791,8 @@ public enum RegisterPatchBaselineForPatchGroupOutputError: Swift.Error, Swift.Eq extension RegisterPatchBaselineForPatchGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterPatchBaselineForPatchGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baselineId = output.baselineId self.patchGroup = output.patchGroup @@ -41195,9 +41008,8 @@ public enum RegisterTargetWithMaintenanceWindowOutputError: Swift.Error, Swift.E extension RegisterTargetWithMaintenanceWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterTargetWithMaintenanceWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.windowTargetId = output.windowTargetId } else { @@ -41540,9 +41352,8 @@ public enum RegisterTaskWithMaintenanceWindowOutputError: Swift.Error, Swift.Equ extension RegisterTaskWithMaintenanceWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterTaskWithMaintenanceWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.windowTaskId = output.windowTaskId } else { @@ -41879,9 +41690,8 @@ public enum ResetServiceSettingOutputError: Swift.Error, Swift.Equatable { extension ResetServiceSettingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetServiceSettingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceSetting = output.serviceSetting } else { @@ -42083,9 +41893,8 @@ extension SSMClientTypes { extension ResourceDataSyncAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceDataSyncAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.syncName = output.syncName } else { @@ -42099,7 +41908,7 @@ extension ResourceDataSyncAlreadyExistsException { } /// A sync configuration with the same name already exists. -public struct ResourceDataSyncAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceDataSyncAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42193,9 +42002,8 @@ extension SSMClientTypes { extension ResourceDataSyncConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceDataSyncConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -42209,7 +42017,7 @@ extension ResourceDataSyncConflictException { } /// Another UpdateResourceDataSync request is being processed. Wait a few minutes and try again. -public struct ResourceDataSyncConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceDataSyncConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42245,9 +42053,8 @@ extension ResourceDataSyncConflictExceptionBody: Swift.Decodable { extension ResourceDataSyncCountExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceDataSyncCountExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -42261,7 +42068,7 @@ extension ResourceDataSyncCountExceededException { } /// You have exceeded the allowed maximum sync configurations. -public struct ResourceDataSyncCountExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceDataSyncCountExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42332,9 +42139,8 @@ extension SSMClientTypes { extension ResourceDataSyncInvalidConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceDataSyncInvalidConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -42348,7 +42154,7 @@ extension ResourceDataSyncInvalidConfigurationException { } /// The specified sync configuration is invalid. -public struct ResourceDataSyncInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceDataSyncInvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42509,9 +42315,8 @@ extension SSMClientTypes { extension ResourceDataSyncNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceDataSyncNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.syncName = output.syncName @@ -42529,7 +42334,7 @@ extension ResourceDataSyncNotFoundException { } /// The specified sync name wasn't found. -public struct ResourceDataSyncNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceDataSyncNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42917,9 +42722,8 @@ extension SSMClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -42933,7 +42737,7 @@ extension ResourceInUseException { } /// Error returned if an attempt is made to delete a patch baseline that is registered for a patch group. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -42969,9 +42773,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -42985,7 +42788,7 @@ extension ResourceLimitExceededException { } /// Error returned when the caller has exceeded the default resource quotas. For example, too many maintenance windows or patch baselines have been created. For information about resource quotas in Systems Manager, see [Systems Manager service quotas](https://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) in the Amazon Web Services General Reference. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -43021,9 +42824,8 @@ extension ResourceLimitExceededExceptionBody: Swift.Decodable { extension ResourcePolicyConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourcePolicyConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -43037,7 +42839,7 @@ extension ResourcePolicyConflictException { } /// The hash provided in the call doesn't match the stored hash. This exception is thrown when trying to update an obsolete policy version or when multiple requests to update a policy are sent. -public struct ResourcePolicyConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourcePolicyConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -43073,9 +42875,8 @@ extension ResourcePolicyConflictExceptionBody: Swift.Decodable { extension ResourcePolicyInvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourcePolicyInvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.parameterNames = output.parameterNames @@ -43091,7 +42892,7 @@ extension ResourcePolicyInvalidParameterException { } /// One or more parameters specified for the call aren't valid. Verify the parameters and their values and try again. -public struct ResourcePolicyInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourcePolicyInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -43143,9 +42944,8 @@ extension ResourcePolicyInvalidParameterExceptionBody: Swift.Decodable { extension ResourcePolicyLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourcePolicyLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.limit = output.limit self.limitType = output.limitType @@ -43163,7 +42963,7 @@ extension ResourcePolicyLimitExceededException { } /// The [PutResourcePolicy] API action enforces two limits. A policy can't be greater than 1024 bytes in size. And only one policy can be attached to OpsItemGroup. Verify these limits and try again. -public struct ResourcePolicyLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourcePolicyLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -43409,9 +43209,8 @@ public enum ResumeSessionOutputError: Swift.Error, Swift.Equatable { extension ResumeSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResumeSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionId = output.sessionId self.streamUrl = output.streamUrl @@ -44382,9 +44181,8 @@ public enum SendCommandOutputError: Swift.Error, Swift.Equatable { extension SendCommandOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendCommandOutputResponseBody = try responseDecoder.decode(responseBody: data) self.command = output.command } else { @@ -44514,9 +44312,8 @@ extension SSMClientTypes { extension ServiceSettingNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceSettingNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -44530,7 +44327,7 @@ extension ServiceSettingNotFound { } /// The specified service setting wasn't found. Either the service name or the setting hasn't been provisioned by the Amazon Web Services service team. -public struct ServiceSettingNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceSettingNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -45520,9 +45317,8 @@ public enum StartAutomationExecutionOutputError: Swift.Error, Swift.Equatable { extension StartAutomationExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAutomationExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.automationExecutionId = output.automationExecutionId } else { @@ -45814,9 +45610,8 @@ public enum StartChangeRequestExecutionOutputError: Swift.Error, Swift.Equatable extension StartChangeRequestExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartChangeRequestExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.automationExecutionId = output.automationExecutionId } else { @@ -45987,9 +45782,8 @@ public enum StartSessionOutputError: Swift.Error, Swift.Equatable { extension StartSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionId = output.sessionId self.streamUrl = output.streamUrl @@ -46056,7 +45850,7 @@ extension StatusUnchanged { } /// The updated status is the same as the current status. -public struct StatusUnchanged: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StatusUnchanged: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46648,9 +46442,8 @@ extension SSMClientTypes { extension SubTypeCountLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SubTypeCountLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -46664,7 +46457,7 @@ extension SubTypeCountLimitExceededException { } /// The sub-type count exceeded the limit for the inventory type. -public struct SubTypeCountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SubTypeCountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46836,9 +46629,8 @@ extension SSMClientTypes { extension TargetInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TargetInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -46852,7 +46644,7 @@ extension TargetInUseException { } /// You specified the Safe option for the DeregisterTargetFromMaintenanceWindow operation, but the target is still referenced in a task. -public struct TargetInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46997,9 +46789,8 @@ extension SSMClientTypes { extension TargetNotConnected { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TargetNotConnectedBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47013,7 +46804,7 @@ extension TargetNotConnected { } /// The specified target managed node for the session isn't fully configured for use with Session Manager. For more information, see [Getting started with Session Manager](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html) in the Amazon Web Services Systems Manager User Guide. This error is also returned if you attempt to start a session on a managed node that is located in a different account or Region -public struct TargetNotConnected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TargetNotConnected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47119,9 +46910,8 @@ public enum TerminateSessionOutputError: Swift.Error, Swift.Equatable { extension TerminateSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sessionId = output.sessionId } else { @@ -47168,7 +46958,7 @@ extension TooManyTagsError { } /// The Targets parameter includes too many tags. Remove one or more tags and try the command again. -public struct TooManyTagsError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47182,9 +46972,8 @@ public struct TooManyTagsError: AWSClientRuntime.AWSHttpServiceError, Swift.Equa extension TooManyUpdates { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyUpdatesBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47198,7 +46987,7 @@ extension TooManyUpdates { } /// There are concurrent updates for a resource that supports one update at a time. -public struct TooManyUpdates: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyUpdates: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47234,9 +47023,8 @@ extension TooManyUpdatesBody: Swift.Decodable { extension TotalSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TotalSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47250,7 +47038,7 @@ extension TotalSizeLimitExceededException { } /// The size of inventory data has exceeded the total size limit for the resource. -public struct TotalSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TotalSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47400,9 +47188,8 @@ public enum UnlabelParameterVersionOutputError: Swift.Error, Swift.Equatable { extension UnlabelParameterVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnlabelParameterVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invalidLabels = output.invalidLabels self.removedLabels = output.removedLabels @@ -47469,9 +47256,8 @@ extension UnlabelParameterVersionOutputResponseBody: Swift.Decodable { extension UnsupportedCalendarException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedCalendarExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47485,7 +47271,7 @@ extension UnsupportedCalendarException { } /// The calendar entry contained in the specified SSM document isn't supported. -public struct UnsupportedCalendarException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedCalendarException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47521,9 +47307,8 @@ extension UnsupportedCalendarExceptionBody: Swift.Decodable { extension UnsupportedFeatureRequiredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedFeatureRequiredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47537,7 +47322,7 @@ extension UnsupportedFeatureRequiredException { } /// Patching for applications released by Microsoft is only available on EC2 instances and advanced instances. To patch applications released by Microsoft on on-premises servers and VMs, you must enable advanced instances. For more information, see [Enabling the advanced-instances tier](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html) in the Amazon Web Services Systems Manager User Guide. -public struct UnsupportedFeatureRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedFeatureRequiredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47573,9 +47358,8 @@ extension UnsupportedFeatureRequiredExceptionBody: Swift.Decodable { extension UnsupportedInventoryItemContextException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedInventoryItemContextExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.typeName = output.typeName @@ -47591,7 +47375,7 @@ extension UnsupportedInventoryItemContextException { } /// The Context attribute that you specified for the InventoryItem isn't allowed for this inventory type. You can only use the Context attribute with inventory types like AWS:ComplianceItem. -public struct UnsupportedInventoryItemContextException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedInventoryItemContextException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47634,9 +47418,8 @@ extension UnsupportedInventoryItemContextExceptionBody: Swift.Decodable { extension UnsupportedInventorySchemaVersionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedInventorySchemaVersionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47650,7 +47433,7 @@ extension UnsupportedInventorySchemaVersionException { } /// Inventory item type schema version has to match supported versions in the service. Check output of GetInventorySchema to see the available schema version for each type. -public struct UnsupportedInventorySchemaVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedInventorySchemaVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47686,9 +47469,8 @@ extension UnsupportedInventorySchemaVersionExceptionBody: Swift.Decodable { extension UnsupportedOperatingSystem { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperatingSystemBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47702,7 +47484,7 @@ extension UnsupportedOperatingSystem { } /// The operating systems you specified isn't supported, or the operation isn't supported for the operating system. -public struct UnsupportedOperatingSystem: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperatingSystem: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47738,9 +47520,8 @@ extension UnsupportedOperatingSystemBody: Swift.Decodable { extension UnsupportedParameterType { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedParameterTypeBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47754,7 +47535,7 @@ extension UnsupportedParameterType { } /// The parameter type isn't supported. -public struct UnsupportedParameterType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedParameterType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -47790,9 +47571,8 @@ extension UnsupportedParameterTypeBody: Swift.Decodable { extension UnsupportedPlatformType { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedPlatformTypeBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -47806,7 +47586,7 @@ extension UnsupportedPlatformType { } /// The document doesn't support the platform type of the given managed node ID(s). For example, you sent an document for a Windows managed node to a Linux node. -public struct UnsupportedPlatformType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedPlatformType: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -48261,9 +48041,8 @@ public enum UpdateAssociationOutputError: Swift.Error, Swift.Equatable { extension UpdateAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationDescription = output.associationDescription } else { @@ -48408,9 +48187,8 @@ public enum UpdateAssociationStatusOutputError: Swift.Error, Swift.Equatable { extension UpdateAssociationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAssociationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationDescription = output.associationDescription } else { @@ -48538,9 +48316,8 @@ public enum UpdateDocumentDefaultVersionOutputError: Swift.Error, Swift.Equatabl extension UpdateDocumentDefaultVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDocumentDefaultVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description } else { @@ -48875,9 +48652,8 @@ public enum UpdateDocumentOutputError: Swift.Error, Swift.Equatable { extension UpdateDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentDescription = output.documentDescription } else { @@ -49142,9 +48918,8 @@ extension UpdateMaintenanceWindowOutputResponse: Swift.CustomDebugStringConverti extension UpdateMaintenanceWindowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMaintenanceWindowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.allowUnassociatedTargets = output.allowUnassociatedTargets self.cutoff = output.cutoff @@ -49460,9 +49235,8 @@ extension UpdateMaintenanceWindowTargetOutputResponse: Swift.CustomDebugStringCo extension UpdateMaintenanceWindowTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMaintenanceWindowTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.name = output.name @@ -49862,9 +49636,8 @@ extension UpdateMaintenanceWindowTaskOutputResponse: Swift.CustomDebugStringConv extension UpdateMaintenanceWindowTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMaintenanceWindowTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alarmConfiguration = output.alarmConfiguration self.cutoffBehavior = output.cutoffBehavior @@ -50600,9 +50373,8 @@ public enum UpdateOpsMetadataOutputError: Swift.Error, Swift.Equatable { extension UpdateOpsMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateOpsMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.opsMetadataArn = output.opsMetadataArn } else { @@ -50885,9 +50657,8 @@ public enum UpdatePatchBaselineOutputError: Swift.Error, Swift.Equatable { extension UpdatePatchBaselineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePatchBaselineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approvalRules = output.approvalRules self.approvedPatches = output.approvedPatches diff --git a/Sources/Services/AWSSSMContacts/SSMContactsClient.swift b/Sources/Services/AWSSSMContacts/SSMContactsClient.swift index 55404a56873..c2bf2b84363 100644 --- a/Sources/Services/AWSSSMContacts/SSMContactsClient.swift +++ b/Sources/Services/AWSSSMContacts/SSMContactsClient.swift @@ -208,6 +208,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptPage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateContactChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContact") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -304,7 +307,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContactChannel") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -348,7 +352,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +372,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRotation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +389,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +409,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRotationOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +426,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +446,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateContactChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +463,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +483,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -492,7 +500,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -512,6 +520,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContactChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -528,7 +537,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +557,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRotation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +574,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +594,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRotationOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -600,7 +611,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -620,6 +631,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEngagement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -636,7 +648,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -656,6 +668,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +685,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +705,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +722,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +742,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContactChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +759,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +779,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContactPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +796,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +816,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRotation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +833,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +853,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRotationOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +870,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +890,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContactChannels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +907,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +927,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +944,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +964,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEngagements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +981,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +1001,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPageReceipts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1018,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1038,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPageResolutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1055,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1075,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPagesByContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1068,7 +1092,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1088,6 +1112,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPagesByEngagement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1104,7 +1129,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1124,6 +1149,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPreviewRotationShifts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1140,7 +1166,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1186,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRotationOverrides") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1203,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1223,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRotationShifts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1212,7 +1240,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1232,6 +1260,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRotations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1248,7 +1277,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1268,6 +1297,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1284,7 +1314,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1304,6 +1334,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putContactPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1320,7 +1351,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1340,6 +1371,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendActivationCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1356,7 +1388,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1376,6 +1408,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startEngagement") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1400,7 +1433,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1420,6 +1453,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopEngagement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1436,7 +1470,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1456,6 +1490,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1472,7 +1507,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1492,6 +1527,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1508,7 +1544,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1528,6 +1564,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1544,7 +1581,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1564,6 +1601,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContactChannel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1580,7 +1618,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1600,6 +1638,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-contacts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRotation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1616,7 +1655,7 @@ extension SSMContactsClient: SSMContactsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSSMContacts/models/Models.swift b/Sources/Services/AWSSSMContacts/models/Models.swift index 92113073a1d..32acc5cd0ed 100644 --- a/Sources/Services/AWSSSMContacts/models/Models.swift +++ b/Sources/Services/AWSSSMContacts/models/Models.swift @@ -218,9 +218,8 @@ extension SSMContactsClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -234,7 +233,7 @@ extension AccessDeniedException { } /// You don't have sufficient access to perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -485,9 +484,8 @@ extension SSMContactsClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.dependentEntities = output.dependentEntities self.message = output.message @@ -507,7 +505,7 @@ extension ConflictException { } /// Updating or deleting a resource causes an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1065,9 +1063,8 @@ public enum CreateContactChannelOutputError: Swift.Error, Swift.Equatable { extension CreateContactChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContactChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactChannelArn = output.contactChannelArn } else { @@ -1263,9 +1260,8 @@ public enum CreateContactOutputError: Swift.Error, Swift.Equatable { extension CreateContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactArn = output.contactArn } else { @@ -1484,9 +1480,8 @@ public enum CreateRotationOutputError: Swift.Error, Swift.Equatable { extension CreateRotationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRotationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rotationArn = output.rotationArn } else { @@ -1669,9 +1664,8 @@ public enum CreateRotationOverrideOutputError: Swift.Error, Swift.Equatable { extension CreateRotationOverrideOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRotationOverrideOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rotationOverrideId = output.rotationOverrideId } else { @@ -1711,9 +1705,8 @@ extension CreateRotationOverrideOutputResponseBody: Swift.Decodable { extension DataEncryptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DataEncryptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1727,7 +1720,7 @@ extension DataEncryptionException { } /// The operation failed to due an encryption key error. -public struct DataEncryptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DataEncryptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2407,9 +2400,8 @@ public enum DescribeEngagementOutputError: Swift.Error, Swift.Equatable { extension DescribeEngagementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEngagementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactArn = output.contactArn self.content = output.content @@ -2623,9 +2615,8 @@ public enum DescribePageOutputError: Swift.Error, Swift.Equatable { extension DescribePageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactArn = output.contactArn self.content = output.content @@ -2948,9 +2939,8 @@ public enum GetContactChannelOutputError: Swift.Error, Swift.Equatable { extension GetContactChannelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactChannelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activationStatus = output.activationStatus self.contactArn = output.contactArn @@ -3124,9 +3114,8 @@ public enum GetContactOutputError: Swift.Error, Swift.Equatable { extension GetContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.contactArn = output.contactArn @@ -3287,9 +3276,8 @@ public enum GetContactPolicyOutputError: Swift.Error, Swift.Equatable { extension GetContactPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContactPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactArn = output.contactArn self.policy = output.policy @@ -3416,9 +3404,8 @@ public enum GetRotationOutputError: Swift.Error, Swift.Equatable { extension GetRotationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRotationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactIds = output.contactIds self.name = output.name @@ -3613,9 +3600,8 @@ public enum GetRotationOverrideOutputError: Swift.Error, Swift.Equatable { extension GetRotationOverrideOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRotationOverrideOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createTime = output.createTime self.endTime = output.endTime @@ -3765,9 +3751,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3781,7 +3766,7 @@ extension InternalServerException { } /// Unexpected error occurred while processing the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3926,9 +3911,8 @@ public enum ListContactChannelsOutputError: Swift.Error, Swift.Equatable { extension ListContactChannelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContactChannelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contactChannels = output.contactChannels self.nextToken = output.nextToken @@ -4098,9 +4082,8 @@ public enum ListContactsOutputError: Swift.Error, Swift.Equatable { extension ListContactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contacts = output.contacts self.nextToken = output.nextToken @@ -4269,9 +4252,8 @@ public enum ListEngagementsOutputError: Swift.Error, Swift.Equatable { extension ListEngagementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEngagementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engagements = output.engagements self.nextToken = output.nextToken @@ -4432,9 +4414,8 @@ public enum ListPageReceiptsOutputError: Swift.Error, Swift.Equatable { extension ListPageReceiptsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPageReceiptsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.receipts = output.receipts @@ -4582,9 +4563,8 @@ public enum ListPageResolutionsOutputError: Swift.Error, Swift.Equatable { extension ListPageResolutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPageResolutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pageResolutions = output.pageResolutions @@ -4745,9 +4725,8 @@ public enum ListPagesByContactOutputError: Swift.Error, Swift.Equatable { extension ListPagesByContactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPagesByContactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pages = output.pages @@ -4908,9 +4887,8 @@ public enum ListPagesByEngagementOutputError: Swift.Error, Swift.Equatable { extension ListPagesByEngagementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPagesByEngagementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pages = output.pages @@ -5168,9 +5146,8 @@ public enum ListPreviewRotationShiftsOutputError: Swift.Error, Swift.Equatable { extension ListPreviewRotationShiftsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPreviewRotationShiftsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rotationShifts = output.rotationShifts @@ -5356,9 +5333,8 @@ public enum ListRotationOverridesOutputError: Swift.Error, Swift.Equatable { extension ListRotationOverridesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRotationOverridesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rotationOverrides = output.rotationOverrides @@ -5545,9 +5521,8 @@ public enum ListRotationShiftsOutputError: Swift.Error, Swift.Equatable { extension ListRotationShiftsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRotationShiftsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rotationShifts = output.rotationShifts @@ -5706,9 +5681,8 @@ public enum ListRotationsOutputError: Swift.Error, Swift.Equatable { extension ListRotationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRotationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rotations = output.rotations @@ -5845,9 +5819,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -6600,9 +6573,8 @@ extension SSMContactsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -6620,7 +6592,7 @@ extension ResourceNotFoundException { } /// Request references a resource that doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7047,9 +7019,8 @@ public struct SendActivationCodeOutputResponse: Swift.Equatable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -7071,7 +7042,7 @@ extension ServiceQuotaExceededException { } /// Request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7448,9 +7419,8 @@ public enum StartEngagementOutputError: Swift.Error, Swift.Equatable { extension StartEngagementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartEngagementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.engagementArn = output.engagementArn } else { @@ -7800,9 +7770,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -7820,7 +7789,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8418,9 +8387,8 @@ public struct UpdateRotationOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -8438,7 +8406,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSSMIncidents/SSMIncidentsClient.swift b/Sources/Services/AWSSSMIncidents/SSMIncidentsClient.swift index 29511cbf4c9..70f78b71097 100644 --- a/Sources/Services/AWSSSMIncidents/SSMIncidentsClient.swift +++ b/Sources/Services/AWSSSMIncidents/SSMIncidentsClient.swift @@ -208,6 +208,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReplicationSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResponsePlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTimelineEvent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -337,6 +340,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIncidentRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +356,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +376,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteReplicationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -385,7 +390,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -405,6 +410,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +426,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +446,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResponsePlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -455,7 +462,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -475,6 +482,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTimelineEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -490,7 +498,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -510,6 +518,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIncidentRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +532,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -543,6 +552,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getReplicationSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +566,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -592,7 +603,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -612,6 +623,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResponsePlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -625,7 +637,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -645,6 +657,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTimelineEvent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -658,7 +671,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -678,6 +691,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIncidentRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -693,7 +707,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +727,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRelatedItems") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listReplicationSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -763,7 +779,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -783,6 +799,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResponsePlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -798,7 +815,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -818,6 +835,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -830,7 +848,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -850,6 +868,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTimelineEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -865,7 +884,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -885,6 +904,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -900,7 +920,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -920,6 +940,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startIncident") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -943,7 +964,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -963,6 +984,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -978,7 +1000,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1020,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1011,7 +1034,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1031,6 +1054,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeletionProtection") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1054,7 +1078,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1074,6 +1098,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIncidentRecord") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1097,7 +1122,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1117,6 +1142,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRelatedItems") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1140,7 +1166,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1160,6 +1186,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateReplicationSet") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1183,7 +1210,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1203,6 +1230,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResponsePlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1226,7 +1254,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1246,6 +1274,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-incidents") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTimelineEvent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1269,7 +1298,7 @@ extension SSMIncidentsClient: SSMIncidentsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSSMIncidents/models/Models.swift b/Sources/Services/AWSSSMIncidents/models/Models.swift index 07327a798a6..fe3a6e0da28 100644 --- a/Sources/Services/AWSSSMIncidents/models/Models.swift +++ b/Sources/Services/AWSSSMIncidents/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient access to perform this operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -364,9 +363,8 @@ extension SSMIncidentsClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceIdentifier = output.resourceIdentifier @@ -386,7 +384,7 @@ extension ConflictException { } /// Updating or deleting a resource causes an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -575,9 +573,8 @@ public enum CreateReplicationSetOutputError: Swift.Error, Swift.Equatable { extension CreateReplicationSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReplicationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -842,9 +839,8 @@ public enum CreateResponsePlanOutputError: Swift.Error, Swift.Equatable { extension CreateResponsePlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResponsePlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -1039,9 +1035,8 @@ public enum CreateTimelineEventOutputError: Swift.Error, Swift.Equatable { extension CreateTimelineEventOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTimelineEventOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventId = output.eventId self.incidentRecordArn = output.incidentRecordArn @@ -1909,9 +1904,8 @@ public enum GetIncidentRecordOutputError: Swift.Error, Swift.Equatable { extension GetIncidentRecordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIncidentRecordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.incidentRecord = output.incidentRecord } else { @@ -2040,9 +2034,8 @@ public enum GetReplicationSetOutputError: Swift.Error, Swift.Equatable { extension GetReplicationSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetReplicationSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.replicationSet = output.replicationSet } else { @@ -2191,9 +2184,8 @@ public enum GetResourcePoliciesOutputError: Swift.Error, Swift.Equatable { extension GetResourcePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourcePolicies = output.resourcePolicies @@ -2325,9 +2317,8 @@ public enum GetResponsePlanOutputError: Swift.Error, Swift.Equatable { extension GetResponsePlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResponsePlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actions = output.actions self.arn = output.arn @@ -2550,9 +2541,8 @@ public enum GetTimelineEventOutputError: Swift.Error, Swift.Equatable { extension GetTimelineEventOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTimelineEventOutputResponseBody = try responseDecoder.decode(responseBody: data) self.event = output.event } else { @@ -3138,9 +3128,8 @@ extension SSMIncidentsClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3154,7 +3143,7 @@ extension InternalServerException { } /// The request processing has failed because of an unknown error, exception or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3486,9 +3475,8 @@ public enum ListIncidentRecordsOutputError: Swift.Error, Swift.Equatable { extension ListIncidentRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIncidentRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.incidentRecordSummaries = output.incidentRecordSummaries self.nextToken = output.nextToken @@ -3647,9 +3635,8 @@ public enum ListRelatedItemsOutputError: Swift.Error, Swift.Equatable { extension ListRelatedItemsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRelatedItemsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.relatedItems = output.relatedItems @@ -3795,9 +3782,8 @@ public enum ListReplicationSetsOutputError: Swift.Error, Swift.Equatable { extension ListReplicationSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListReplicationSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.replicationSetArns = output.replicationSetArns @@ -3943,9 +3929,8 @@ public enum ListResponsePlansOutputError: Swift.Error, Swift.Equatable { extension ListResponsePlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResponsePlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.responsePlanSummaries = output.responsePlanSummaries @@ -4065,9 +4050,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4277,9 +4261,8 @@ public enum ListTimelineEventsOutputError: Swift.Error, Swift.Equatable { extension ListTimelineEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTimelineEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.eventSummaries = output.eventSummaries self.nextToken = output.nextToken @@ -4616,9 +4599,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyId = output.policyId } else { @@ -5075,9 +5057,8 @@ extension SSMIncidentsClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceIdentifier = output.resourceIdentifier @@ -5095,7 +5076,7 @@ extension ResourceNotFoundException { } /// Request references a resource which doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5333,9 +5314,8 @@ extension SSMIncidentsClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -5357,7 +5337,7 @@ extension ServiceQuotaExceededException { } /// Request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5775,9 +5755,8 @@ public enum StartIncidentOutputError: Swift.Error, Swift.Equatable { extension StartIncidentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartIncidentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.incidentRecordArn = output.incidentRecordArn } else { @@ -5929,9 +5908,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -5949,7 +5927,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7385,9 +7363,8 @@ public struct UpdateTimelineEventOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7401,7 +7378,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSSO/SSOClient.swift b/Sources/Services/AWSSSO/SSOClient.swift index d3da6476b77..bb6926d0fe0 100644 --- a/Sources/Services/AWSSSO/SSOClient.swift +++ b/Sources/Services/AWSSSO/SSOClient.swift @@ -206,6 +206,7 @@ extension SSOClient: SSOClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "getRoleCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -218,7 +219,7 @@ extension SSOClient: SSOClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -236,6 +237,7 @@ extension SSOClient: SSOClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountRoles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -248,7 +250,7 @@ extension SSOClient: SSOClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -266,6 +268,7 @@ extension SSOClient: SSOClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "listAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -278,7 +281,7 @@ extension SSOClient: SSOClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -296,6 +299,7 @@ extension SSOClient: SSOClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "logout") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -307,7 +311,7 @@ extension SSOClient: SSOClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSSO/models/Models.swift b/Sources/Services/AWSSSO/models/Models.swift index d36e7b3ad8d..abaf88fd99f 100644 --- a/Sources/Services/AWSSSO/models/Models.swift +++ b/Sources/Services/AWSSSO/models/Models.swift @@ -161,9 +161,8 @@ public enum GetRoleCredentialsOutputError: Swift.Error, Swift.Equatable { extension GetRoleCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRoleCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.roleCredentials = output.roleCredentials } else { @@ -202,9 +201,8 @@ extension GetRoleCredentialsOutputResponseBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -218,7 +216,7 @@ extension InvalidRequestException { } /// Indicates that a problem occurred with the input to the request. For example, a required parameter might be missing or out of range. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -361,9 +359,8 @@ public enum ListAccountRolesOutputError: Swift.Error, Swift.Equatable { extension ListAccountRolesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountRolesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.roleList = output.roleList @@ -517,9 +514,8 @@ public enum ListAccountsOutputError: Swift.Error, Swift.Equatable { extension ListAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountList = output.accountList self.nextToken = output.nextToken @@ -656,9 +652,8 @@ public struct LogoutOutputResponse: Swift.Equatable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -672,7 +667,7 @@ extension ResourceNotFoundException { } /// The specified resource doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -823,9 +818,8 @@ extension SSOClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -839,7 +833,7 @@ extension TooManyRequestsException { } /// Indicates that the request is being made too frequently and is more than what the server can handle. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -875,9 +869,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -891,7 +884,7 @@ extension UnauthorizedException { } /// Indicates that the request is not authorized. This can happen due to an invalid access token in the request. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSSOAdmin/SSOAdminClient.swift b/Sources/Services/AWSSSOAdmin/SSOAdminClient.swift index e1178f7cffb..52997e34836 100644 --- a/Sources/Services/AWSSSOAdmin/SSOAdminClient.swift +++ b/Sources/Services/AWSSSOAdmin/SSOAdminClient.swift @@ -208,6 +208,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachCustomerManagedPolicyReferenceToPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachManagedPolicyToPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccountAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInstanceAccessControlAttributeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccountAssignment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInlinePolicyFromPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInstanceAccessControlAttributeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePermissionsBoundaryFromPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAssignmentCreationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountAssignmentDeletionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInstanceAccessControlAttributeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePermissionSetProvisioningStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachCustomerManagedPolicyReferenceFromPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachManagedPolicyFromPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInlinePolicyForPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPermissionsBoundaryForPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountAssignmentCreationStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountAssignmentDeletionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountAssignments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccountsForProvisionedPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCustomerManagedPolicyReferencesInPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listManagedPoliciesInPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissionSetProvisioningStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissionSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPermissionSetsProvisionedToAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "provisionPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putInlinePolicyToPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPermissionsBoundaryToPermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInstanceAccessControlAttributeConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sso") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePermissionSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension SSOAdminClient: SSOAdminClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSSOAdmin/models/Models.swift b/Sources/Services/AWSSSOAdmin/models/Models.swift index ea82726486a..3ee0da47c78 100644 --- a/Sources/Services/AWSSSOAdmin/models/Models.swift +++ b/Sources/Services/AWSSSOAdmin/models/Models.swift @@ -99,9 +99,8 @@ extension SSOAdminClientTypes { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -115,7 +114,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -667,9 +666,8 @@ extension SSOAdminClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -683,7 +681,7 @@ extension ConflictException { } /// Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -866,9 +864,8 @@ public enum CreateAccountAssignmentOutputError: Swift.Error, Swift.Equatable { extension CreateAccountAssignmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccountAssignmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAssignmentCreationStatus = output.accountAssignmentCreationStatus } else { @@ -1165,9 +1162,8 @@ public enum CreatePermissionSetOutputError: Swift.Error, Swift.Equatable { extension CreatePermissionSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePermissionSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionSet = output.permissionSet } else { @@ -1397,9 +1393,8 @@ public enum DeleteAccountAssignmentOutputError: Swift.Error, Swift.Equatable { extension DeleteAccountAssignmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAccountAssignmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAssignmentDeletionStatus = output.accountAssignmentDeletionStatus } else { @@ -1926,9 +1921,8 @@ public enum DescribeAccountAssignmentCreationStatusOutputError: Swift.Error, Swi extension DescribeAccountAssignmentCreationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAssignmentCreationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAssignmentCreationStatus = output.accountAssignmentCreationStatus } else { @@ -2058,9 +2052,8 @@ public enum DescribeAccountAssignmentDeletionStatusOutputError: Swift.Error, Swi extension DescribeAccountAssignmentDeletionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountAssignmentDeletionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAssignmentDeletionStatus = output.accountAssignmentDeletionStatus } else { @@ -2177,9 +2170,8 @@ public enum DescribeInstanceAccessControlAttributeConfigurationOutputError: Swif extension DescribeInstanceAccessControlAttributeConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInstanceAccessControlAttributeConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instanceAccessControlAttributeConfiguration = output.instanceAccessControlAttributeConfiguration self.status = output.status @@ -2329,9 +2321,8 @@ public enum DescribePermissionSetOutputError: Swift.Error, Swift.Equatable { extension DescribePermissionSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePermissionSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionSet = output.permissionSet } else { @@ -2461,9 +2452,8 @@ public enum DescribePermissionSetProvisioningStatusOutputError: Swift.Error, Swi extension DescribePermissionSetProvisioningStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePermissionSetProvisioningStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionSetProvisioningStatus = output.permissionSetProvisioningStatus } else { @@ -2825,9 +2815,8 @@ public enum GetInlinePolicyForPermissionSetOutputError: Swift.Error, Swift.Equat extension GetInlinePolicyForPermissionSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInlinePolicyForPermissionSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inlinePolicy = output.inlinePolicy } else { @@ -2957,9 +2946,8 @@ public enum GetPermissionsBoundaryForPermissionSetOutputError: Swift.Error, Swif extension GetPermissionsBoundaryForPermissionSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPermissionsBoundaryForPermissionSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionsBoundary = output.permissionsBoundary } else { @@ -3126,9 +3114,8 @@ extension SSOAdminClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3142,7 +3129,7 @@ extension InternalServerException { } /// The request processing has failed because of an unknown error, exception, or failure with an internal server. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3292,9 +3279,8 @@ public enum ListAccountAssignmentCreationStatusOutputError: Swift.Error, Swift.E extension ListAccountAssignmentCreationStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountAssignmentCreationStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAssignmentsCreationStatus = output.accountAssignmentsCreationStatus self.nextToken = output.nextToken @@ -3466,9 +3452,8 @@ public enum ListAccountAssignmentDeletionStatusOutputError: Swift.Error, Swift.E extension ListAccountAssignmentDeletionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountAssignmentDeletionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAssignmentsDeletionStatus = output.accountAssignmentsDeletionStatus self.nextToken = output.nextToken @@ -3654,9 +3639,8 @@ public enum ListAccountAssignmentsOutputError: Swift.Error, Swift.Equatable { extension ListAccountAssignmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountAssignmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAssignments = output.accountAssignments self.nextToken = output.nextToken @@ -3841,9 +3825,8 @@ public enum ListAccountsForProvisionedPermissionSetOutputError: Swift.Error, Swi extension ListAccountsForProvisionedPermissionSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccountsForProvisionedPermissionSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountIds = output.accountIds self.nextToken = output.nextToken @@ -4016,9 +3999,8 @@ public enum ListCustomerManagedPolicyReferencesInPermissionSetOutputError: Swift extension ListCustomerManagedPolicyReferencesInPermissionSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCustomerManagedPolicyReferencesInPermissionSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customerManagedPolicyReferences = output.customerManagedPolicyReferences self.nextToken = output.nextToken @@ -4163,9 +4145,8 @@ public enum ListInstancesOutputError: Swift.Error, Swift.Equatable { extension ListInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.nextToken = output.nextToken @@ -4338,9 +4319,8 @@ public enum ListManagedPoliciesInPermissionSetOutputError: Swift.Error, Swift.Eq extension ListManagedPoliciesInPermissionSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListManagedPoliciesInPermissionSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachedManagedPolicies = output.attachedManagedPolicies self.nextToken = output.nextToken @@ -4512,9 +4492,8 @@ public enum ListPermissionSetProvisioningStatusOutputError: Swift.Error, Swift.E extension ListPermissionSetProvisioningStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionSetProvisioningStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissionSetsProvisioningStatus = output.permissionSetsProvisioningStatus @@ -4674,9 +4653,8 @@ public enum ListPermissionSetsOutputError: Swift.Error, Swift.Equatable { extension ListPermissionSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissionSets = output.permissionSets @@ -4861,9 +4839,8 @@ public enum ListPermissionSetsProvisionedToAccountOutputError: Swift.Error, Swif extension ListPermissionSetsProvisionedToAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPermissionSetsProvisionedToAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissionSets = output.permissionSets @@ -5024,9 +5001,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -5539,9 +5515,8 @@ public enum ProvisionPermissionSetOutputError: Swift.Error, Swift.Equatable { extension ProvisionPermissionSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionPermissionSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.permissionSetProvisioningStatus = output.permissionSetProvisioningStatus } else { @@ -5878,9 +5853,8 @@ public struct PutPermissionsBoundaryToPermissionSetOutputResponse: Swift.Equatab extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5894,7 +5868,7 @@ extension ResourceNotFoundException { } /// Indicates that a requested resource is not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5930,9 +5904,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5946,7 +5919,7 @@ extension ServiceQuotaExceededException { } /// Indicates that the principal has crossed the permitted number of resources that can be created. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6223,9 +6196,8 @@ extension SSOAdminClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6239,7 +6211,7 @@ extension ThrottlingException { } /// Indicates that the principal has crossed the throttling limits of the API operations. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6645,9 +6617,8 @@ public struct UpdatePermissionSetOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6661,7 +6632,7 @@ extension ValidationException { } /// The request failed because it contains a syntax error. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSSOOIDC/SSOOIDCClient.swift b/Sources/Services/AWSSSOOIDC/SSOOIDCClient.swift index f4d6cdbdb00..9caa8e1ab60 100644 --- a/Sources/Services/AWSSSOOIDC/SSOOIDCClient.swift +++ b/Sources/Services/AWSSSOOIDC/SSOOIDCClient.swift @@ -206,6 +206,7 @@ extension SSOOIDCClient: SSOOIDCClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "createToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -219,7 +220,7 @@ extension SSOOIDCClient: SSOOIDCClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -237,6 +238,7 @@ extension SSOOIDCClient: SSOOIDCClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "registerClient") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -250,7 +252,7 @@ extension SSOOIDCClient: SSOOIDCClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -268,6 +270,7 @@ extension SSOOIDCClient: SSOOIDCClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "startDeviceAuthorization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -281,7 +284,7 @@ extension SSOOIDCClient: SSOOIDCClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSSOOIDC/models/Models.swift b/Sources/Services/AWSSSOOIDC/models/Models.swift index c7f573f5642..47cb57dda7a 100644 --- a/Sources/Services/AWSSSOOIDC/models/Models.swift +++ b/Sources/Services/AWSSSOOIDC/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -65,9 +64,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension AuthorizationPendingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AuthorizationPendingExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -83,7 +81,7 @@ extension AuthorizationPendingException { } /// Indicates that a request to authorize a client with an access user session token is pending. -public struct AuthorizationPendingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AuthorizationPendingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -314,9 +312,8 @@ public enum CreateTokenOutputError: Swift.Error, Swift.Equatable { extension CreateTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessToken = output.accessToken self.expiresIn = output.expiresIn @@ -395,9 +392,8 @@ extension CreateTokenOutputResponseBody: Swift.Decodable { extension ExpiredTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExpiredTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -413,7 +409,7 @@ extension ExpiredTokenException { } /// Indicates that the token issued by the service is expired and is no longer valid. -public struct ExpiredTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -456,9 +452,8 @@ extension ExpiredTokenExceptionBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -474,7 +469,7 @@ extension InternalServerException { } /// Indicates that an error from the service occurred while trying to process a request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -517,9 +512,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClientExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -535,7 +529,7 @@ extension InvalidClientException { } /// Indicates that the clientId or clientSecret in the request is invalid. For example, this can occur when a client sends an incorrect clientId or an expired clientSecret. -public struct InvalidClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -578,9 +572,8 @@ extension InvalidClientExceptionBody: Swift.Decodable { extension InvalidClientMetadataException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidClientMetadataExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -596,7 +589,7 @@ extension InvalidClientMetadataException { } /// Indicates that the client information sent in the request during registration is invalid. -public struct InvalidClientMetadataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidClientMetadataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -639,9 +632,8 @@ extension InvalidClientMetadataExceptionBody: Swift.Decodable { extension InvalidGrantException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidGrantExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -657,7 +649,7 @@ extension InvalidGrantException { } /// Indicates that a request contains an invalid grant. This can occur if a client makes a [CreateToken] request with an invalid grant type. -public struct InvalidGrantException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGrantException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -700,9 +692,8 @@ extension InvalidGrantExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -718,7 +709,7 @@ extension InvalidRequestException { } /// Indicates that something is wrong with the input to the request. For example, a required parameter might be missing or out of range. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -761,9 +752,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension InvalidScopeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidScopeExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -779,7 +769,7 @@ extension InvalidScopeException { } /// Indicates that the scope provided in the request is invalid. -public struct InvalidScopeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidScopeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -935,9 +925,8 @@ public enum RegisterClientOutputError: Swift.Error, Swift.Equatable { extension RegisterClientOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterClientOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizationEndpoint = output.authorizationEndpoint self.clientId = output.clientId @@ -1026,9 +1015,8 @@ extension RegisterClientOutputResponseBody: Swift.Decodable { extension SlowDownException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SlowDownExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -1044,7 +1032,7 @@ extension SlowDownException { } /// Indicates that the client is making the request too frequently and is more than the service can handle. -public struct SlowDownException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct SlowDownException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1191,9 +1179,8 @@ public enum StartDeviceAuthorizationOutputError: Swift.Error, Swift.Equatable { extension StartDeviceAuthorizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDeviceAuthorizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceCode = output.deviceCode self.expiresIn = output.expiresIn @@ -1282,9 +1269,8 @@ extension StartDeviceAuthorizationOutputResponseBody: Swift.Decodable { extension UnauthorizedClientException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedClientExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -1300,7 +1286,7 @@ extension UnauthorizedClientException { } /// Indicates that the client is not currently authorized to make the request. This can happen when a clientId is not issued for a public client. -public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedClientException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1343,9 +1329,8 @@ extension UnauthorizedClientExceptionBody: Swift.Decodable { extension UnsupportedGrantTypeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedGrantTypeExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.error_description = output.error_description @@ -1361,7 +1346,7 @@ extension UnsupportedGrantTypeException { } /// Indicates that the grant type in the request is not supported by the service. -public struct UnsupportedGrantTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedGrantTypeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSTS/STSClient.swift b/Sources/Services/AWSSTS/STSClient.swift index 65e9fb8e553..f8cf45e7b7b 100644 --- a/Sources/Services/AWSSTS/STSClient.swift +++ b/Sources/Services/AWSSTS/STSClient.swift @@ -218,6 +218,7 @@ extension STSClient: STSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assumeRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -233,7 +234,7 @@ extension STSClient: STSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -259,6 +260,7 @@ extension STSClient: STSClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "assumeRoleWithSAML") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -272,7 +274,7 @@ extension STSClient: STSClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -298,6 +300,7 @@ extension STSClient: STSClientProtocol { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "assumeRoleWithWebIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -311,7 +314,7 @@ extension STSClient: STSClientProtocol { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -341,6 +344,7 @@ extension STSClient: STSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "decodeAuthorizationMessage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -356,7 +360,7 @@ extension STSClient: STSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -376,6 +380,7 @@ extension STSClient: STSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessKeyInfo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -391,7 +396,7 @@ extension STSClient: STSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -411,6 +416,7 @@ extension STSClient: STSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCallerIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -426,7 +432,7 @@ extension STSClient: STSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +459,7 @@ extension STSClient: STSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFederationToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +475,7 @@ extension STSClient: STSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -495,6 +502,7 @@ extension STSClient: STSClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSessionToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -510,7 +518,7 @@ extension STSClient: STSClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSTS/models/Models.swift b/Sources/Services/AWSSTS/models/Models.swift index 3b60a298556..3f804fc3bcb 100644 --- a/Sources/Services/AWSSTS/models/Models.swift +++ b/Sources/Services/AWSSTS/models/Models.swift @@ -267,9 +267,8 @@ public enum AssumeRoleOutputError: Swift.Error, Swift.Equatable { extension AssumeRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssumeRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assumedRoleUser = output.assumedRoleUser self.credentials = output.credentials @@ -500,9 +499,8 @@ public enum AssumeRoleWithSAMLOutputError: Swift.Error, Swift.Equatable { extension AssumeRoleWithSAMLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssumeRoleWithSAMLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assumedRoleUser = output.assumedRoleUser self.audience = output.audience @@ -805,9 +803,8 @@ public enum AssumeRoleWithWebIdentityOutputError: Swift.Error, Swift.Equatable { extension AssumeRoleWithWebIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssumeRoleWithWebIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assumedRoleUser = output.assumedRoleUser self.audience = output.audience @@ -1091,9 +1088,8 @@ public enum DecodeAuthorizationMessageOutputError: Swift.Error, Swift.Equatable extension DecodeAuthorizationMessageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DecodeAuthorizationMessageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.decodedMessage = output.decodedMessage } else { @@ -1134,7 +1130,7 @@ extension DecodeAuthorizationMessageOutputResponseBody: Swift.Decodable { extension ExpiredTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1149,7 +1145,7 @@ extension ExpiredTokenException { } /// The web identity token that was passed is expired or is not valid. Get a new identity token from the identity provider and then retry the request. -public struct ExpiredTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ExpiredTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1297,9 +1293,8 @@ public enum GetAccessKeyInfoOutputError: Swift.Error, Swift.Equatable { extension GetAccessKeyInfoOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessKeyInfoOutputResponseBody = try responseDecoder.decode(responseBody: data) self.account = output.account } else { @@ -1364,6 +1359,7 @@ extension GetCallerIdentityInput { .withRegion(value: config.region) .withSigningName(value: "sts") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCallerIdentity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1379,7 +1375,7 @@ extension GetCallerIdentityInput { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } @@ -1419,9 +1415,8 @@ public enum GetCallerIdentityOutputError: Swift.Error, Swift.Equatable { extension GetCallerIdentityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCallerIdentityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.account = output.account self.arn = output.arn @@ -1649,9 +1644,8 @@ public enum GetFederationTokenOutputError: Swift.Error, Swift.Equatable { extension GetFederationTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFederationTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.credentials = output.credentials self.federatedUser = output.federatedUser @@ -1800,9 +1794,8 @@ public enum GetSessionTokenOutputError: Swift.Error, Swift.Equatable { extension GetSessionTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSessionTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.credentials = output.credentials } else { @@ -1843,7 +1836,7 @@ extension GetSessionTokenOutputResponseBody: Swift.Decodable { extension IDPCommunicationErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1858,7 +1851,7 @@ extension IDPCommunicationErrorException { } /// The request could not be fulfilled because the identity provider (IDP) that was asked to verify the incoming identity token could not be reached. This is often a transient error caused by network conditions. Retry the request a limited number of times so that you don't exceed the request rate. If the error persists, the identity provider might be down or not responding. -public struct IDPCommunicationErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IDPCommunicationErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1894,7 +1887,7 @@ extension IDPCommunicationErrorExceptionBody: Swift.Decodable { extension IDPRejectedClaimException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1909,7 +1902,7 @@ extension IDPRejectedClaimException { } /// The identity provider (IdP) reported that authentication failed. This might be because the claim is invalid. If this error is returned for the AssumeRoleWithWebIdentity operation, it can also mean that the claim has expired or has been explicitly revoked. -public struct IDPRejectedClaimException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IDPRejectedClaimException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1945,7 +1938,7 @@ extension IDPRejectedClaimExceptionBody: Swift.Decodable { extension InvalidAuthorizationMessageException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -1960,7 +1953,7 @@ extension InvalidAuthorizationMessageException { } /// The error returned if the message passed to DecodeAuthorizationMessage was invalid. This can happen if the token contains invalid characters, such as linebreaks. -public struct InvalidAuthorizationMessageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAuthorizationMessageException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1996,7 +1989,7 @@ extension InvalidAuthorizationMessageExceptionBody: Swift.Decodable { extension InvalidIdentityTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2011,7 +2004,7 @@ extension InvalidIdentityTokenException { } /// The web identity token that was passed could not be validated by Amazon Web Services. Get a new identity token from the identity provider and then retry the request. -public struct InvalidIdentityTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidIdentityTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2047,7 +2040,7 @@ extension InvalidIdentityTokenExceptionBody: Swift.Decodable { extension MalformedPolicyDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2062,7 +2055,7 @@ extension MalformedPolicyDocumentException { } /// The request was rejected because the policy document was malformed. The error message describes the specific error. -public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2098,7 +2091,7 @@ extension MalformedPolicyDocumentExceptionBody: Swift.Decodable { extension PackedPolicyTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2113,7 +2106,7 @@ extension PackedPolicyTooLargeException { } /// The request was rejected because the total packed size of the session policies and session tags combined was too large. An Amazon Web Services conversion compresses the session policy document, session policy ARNs, and session tags into a packed binary format that has a separate limit. The error message indicates by percentage how close the policies and tags are to the upper size limit. For more information, see [Passing Session Tags in STS](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html) in the IAM User Guide. You could receive this error even though you meet other defined session policy and session tag limits. For more information, see [IAM and STS Entity Character Limits](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length) in the IAM User Guide. -public struct PackedPolicyTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PackedPolicyTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2184,7 +2177,7 @@ extension STSClientTypes { extension RegionDisabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.message = output.error.message @@ -2199,7 +2192,7 @@ extension RegionDisabledException { } /// STS is not activated in the requested region for the account that is being asked to generate credentials. The account administrator must use the IAM console to activate STS in that region. For more information, see [Activating and Deactivating Amazon Web Services STS in an Amazon Web Services Region](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) in the IAM User Guide. -public struct RegionDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RegionDisabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSWF/SWFClient.swift b/Sources/Services/AWSSWF/SWFClient.swift index 285ecc021fd..3370723ce3b 100644 --- a/Sources/Services/AWSSWF/SWFClient.swift +++ b/Sources/Services/AWSSWF/SWFClient.swift @@ -226,6 +226,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "countClosedWorkflowExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -242,7 +243,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +281,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "countOpenWorkflowExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +298,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -325,6 +327,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "countPendingActivityTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -341,7 +344,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -370,6 +373,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "countPendingDecisionTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -386,7 +390,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -422,6 +426,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprecateActivityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -438,7 +443,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -467,6 +472,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprecateDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -483,7 +489,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -519,6 +525,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deprecateWorkflowType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +542,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +578,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeActivityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -587,7 +595,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -616,6 +624,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -632,7 +641,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -661,6 +670,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkflowExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -677,7 +687,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +723,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkflowType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -729,7 +740,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -758,6 +769,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkflowExecutionHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -774,7 +786,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +815,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActivityTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -819,7 +832,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -857,6 +870,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClosedWorkflowExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -873,7 +887,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -902,6 +916,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -918,7 +933,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -956,6 +971,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOpenWorkflowExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -972,7 +988,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -992,6 +1008,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1008,7 +1025,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1037,6 +1054,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflowTypes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1053,7 +1071,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1082,6 +1100,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pollForActivityTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1098,7 +1117,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1127,6 +1146,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "pollForDecisionTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1143,7 +1163,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1172,6 +1192,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "recordActivityTaskHeartbeat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1188,7 +1209,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1226,6 +1247,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerActivityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1242,7 +1264,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1271,6 +1293,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1287,7 +1310,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1325,6 +1348,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerWorkflowType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1341,7 +1365,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1370,6 +1394,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "requestCancelWorkflowExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1386,7 +1411,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1415,6 +1440,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "respondActivityTaskCanceled") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1431,7 +1457,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1460,6 +1486,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "respondActivityTaskCompleted") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1476,7 +1503,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1505,6 +1532,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "respondActivityTaskFailed") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1521,7 +1549,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1541,6 +1569,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "respondDecisionTaskCompleted") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1557,7 +1586,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1586,6 +1615,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "signalWorkflowExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1602,7 +1632,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1650,6 +1680,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startWorkflowExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1666,7 +1697,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1686,6 +1717,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1702,7 +1734,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1731,6 +1763,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateWorkflowExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1747,7 +1780,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1783,6 +1816,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "undeprecateActivityType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1799,7 +1833,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1862,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "undeprecateDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1879,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1880,6 +1915,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "undeprecateWorkflowType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1896,7 +1932,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1916,6 +1952,7 @@ extension SWFClient: SWFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "swf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1932,7 +1969,7 @@ extension SWFClient: SWFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSWF/models/Models.swift b/Sources/Services/AWSSWF/models/Models.swift index df867874f6a..7222cc4b8da 100644 --- a/Sources/Services/AWSSWF/models/Models.swift +++ b/Sources/Services/AWSSWF/models/Models.swift @@ -2091,9 +2091,8 @@ public enum CountClosedWorkflowExecutionsOutputError: Swift.Error, Swift.Equatab extension CountClosedWorkflowExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CountClosedWorkflowExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.truncated = output.truncated @@ -2265,9 +2264,8 @@ public enum CountOpenWorkflowExecutionsOutputError: Swift.Error, Swift.Equatable extension CountOpenWorkflowExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CountOpenWorkflowExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.truncated = output.truncated @@ -2403,9 +2401,8 @@ public enum CountPendingActivityTasksOutputError: Swift.Error, Swift.Equatable { extension CountPendingActivityTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CountPendingActivityTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.truncated = output.truncated @@ -2541,9 +2538,8 @@ public enum CountPendingDecisionTasksOutputError: Swift.Error, Swift.Equatable { extension CountPendingDecisionTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CountPendingDecisionTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.count = output.count self.truncated = output.truncated @@ -3156,9 +3152,8 @@ extension SWFClientTypes { extension DefaultUndefinedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DefaultUndefinedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3172,7 +3167,7 @@ extension DefaultUndefinedFault { } /// The StartWorkflowExecution API action was called without the required parameters set. Some workflow execution parameters, such as the decision taskList, must be set to start the execution. However, these parameters might have been set as defaults when the workflow type was registered. In this case, you can omit these parameters from the StartWorkflowExecution call and Amazon SWF uses the values defined in the workflow type. If these parameters aren't set and no default parameters were defined in the workflow type, this error is displayed. -public struct DefaultUndefinedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DefaultUndefinedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3571,9 +3566,8 @@ public enum DescribeActivityTypeOutputError: Swift.Error, Swift.Equatable { extension DescribeActivityTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeActivityTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration self.typeInfo = output.typeInfo @@ -3701,9 +3695,8 @@ public enum DescribeDomainOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration self.domainInfo = output.domainInfo @@ -3840,9 +3833,8 @@ public enum DescribeWorkflowExecutionOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkflowExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkflowExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionConfiguration = output.executionConfiguration self.executionInfo = output.executionInfo @@ -4010,9 +4002,8 @@ public enum DescribeWorkflowTypeOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkflowTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkflowTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration self.typeInfo = output.typeInfo @@ -4068,9 +4059,8 @@ extension DescribeWorkflowTypeOutputResponseBody: Swift.Decodable { extension DomainAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DomainAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4084,7 +4074,7 @@ extension DomainAlreadyExistsFault { } /// Returned if the domain already exists. You may get this fault if you are registering a domain that is either already registered or deprecated, or if you undeprecate a domain that is currently registered. -public struct DomainAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DomainAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4157,9 +4147,8 @@ extension SWFClientTypes { extension DomainDeprecatedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DomainDeprecatedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4173,7 +4162,7 @@ extension DomainDeprecatedFault { } /// Returned when the specified domain has been deprecated. -public struct DomainDeprecatedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DomainDeprecatedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4895,9 +4884,8 @@ public enum GetWorkflowExecutionHistoryOutputError: Swift.Error, Swift.Equatable extension GetWorkflowExecutionHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkflowExecutionHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextPageToken = output.nextPageToken @@ -5985,9 +5973,8 @@ extension SWFClientTypes { extension LimitExceededFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6001,7 +5988,7 @@ extension LimitExceededFault { } /// Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS. -public struct LimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6171,9 +6158,8 @@ public enum ListActivityTypesOutputError: Swift.Error, Swift.Equatable { extension ListActivityTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActivityTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.typeInfos = output.typeInfos @@ -6413,9 +6399,8 @@ public enum ListClosedWorkflowExecutionsOutputError: Swift.Error, Swift.Equatabl extension ListClosedWorkflowExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClosedWorkflowExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionInfos = output.executionInfos self.nextPageToken = output.nextPageToken @@ -6581,9 +6566,8 @@ public enum ListDomainsOutputError: Swift.Error, Swift.Equatable { extension ListDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainInfos = output.domainInfos self.nextPageToken = output.nextPageToken @@ -6800,9 +6784,8 @@ public enum ListOpenWorkflowExecutionsOutputError: Swift.Error, Swift.Equatable extension ListOpenWorkflowExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOpenWorkflowExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionInfos = output.executionInfos self.nextPageToken = output.nextPageToken @@ -6936,9 +6919,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7119,9 +7101,8 @@ public enum ListWorkflowTypesOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowTypesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowTypesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.typeInfos = output.typeInfos @@ -7238,9 +7219,8 @@ extension SWFClientTypes { extension OperationNotPermittedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotPermittedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7254,7 +7234,7 @@ extension OperationNotPermittedFault { } /// Returned when the caller doesn't have sufficient permissions to invoke the action. -public struct OperationNotPermittedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotPermittedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7390,9 +7370,8 @@ public enum PollForActivityTaskOutputError: Swift.Error, Swift.Equatable { extension PollForActivityTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PollForActivityTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activityId = output.activityId self.activityType = output.activityType @@ -7622,9 +7601,8 @@ public enum PollForDecisionTaskOutputError: Swift.Error, Swift.Equatable { extension PollForDecisionTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PollForDecisionTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.events = output.events self.nextPageToken = output.nextPageToken @@ -7822,9 +7800,8 @@ public enum RecordActivityTaskHeartbeatOutputError: Swift.Error, Swift.Equatable extension RecordActivityTaskHeartbeatOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RecordActivityTaskHeartbeatOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cancelRequested = output.cancelRequested } else { @@ -11380,9 +11357,8 @@ public enum StartWorkflowExecutionOutputError: Swift.Error, Swift.Equatable { extension StartWorkflowExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartWorkflowExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.runId = output.runId } else { @@ -11930,9 +11906,8 @@ extension SWFClientTypes { extension TooManyTagsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11946,7 +11921,7 @@ extension TooManyTagsFault { } /// You've exceeded the number of tags allowed for a domain. -public struct TooManyTagsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11982,9 +11957,8 @@ extension TooManyTagsFaultBody: Swift.Decodable { extension TypeAlreadyExistsFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TypeAlreadyExistsFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11998,7 +11972,7 @@ extension TypeAlreadyExistsFault { } /// Returned if the type already exists in the specified domain. You may get this fault if you are registering a type that is either already registered or deprecated, or if you undeprecate a type that is currently registered. -public struct TypeAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TypeAlreadyExistsFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12035,9 +12009,8 @@ extension TypeAlreadyExistsFaultBody: Swift.Decodable { extension TypeDeprecatedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TypeDeprecatedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12051,7 +12024,7 @@ extension TypeDeprecatedFault { } /// Returned when the specified activity or workflow type was already deprecated. -public struct TypeDeprecatedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TypeDeprecatedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12366,9 +12339,8 @@ public struct UndeprecateWorkflowTypeOutputResponse: Swift.Equatable { extension UnknownResourceFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnknownResourceFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12382,7 +12354,7 @@ extension UnknownResourceFault { } /// Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation. -public struct UnknownResourceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnknownResourceFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12575,9 +12547,8 @@ extension SWFClientTypes { extension WorkflowExecutionAlreadyStartedFault { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WorkflowExecutionAlreadyStartedFaultBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12591,7 +12562,7 @@ extension WorkflowExecutionAlreadyStartedFault { } /// Returned by [StartWorkflowExecution] when an open execution with the same workflowId is already running in the specified domain. -public struct WorkflowExecutionAlreadyStartedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WorkflowExecutionAlreadyStartedFault: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSageMaker/SageMakerClient.swift b/Sources/Services/AWSSageMaker/SageMakerClient.swift index 0517dfe6c9a..3a1718ede4a 100644 --- a/Sources/Services/AWSSageMaker/SageMakerClient.swift +++ b/Sources/Services/AWSSageMaker/SageMakerClient.swift @@ -208,6 +208,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTrialComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDescribeModelPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlgorithm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAppImageConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAutoMLJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAutoMLJobV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCodeRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -651,6 +663,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCompilationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -667,7 +680,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -687,6 +700,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContext") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -703,7 +717,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -723,6 +737,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDataQualityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -739,7 +754,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -759,6 +774,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDeviceFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -775,7 +791,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -802,6 +818,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -818,7 +835,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -838,6 +855,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEdgeDeploymentPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -854,7 +872,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -874,6 +892,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEdgeDeploymentStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -890,7 +909,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -910,6 +929,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEdgePackagingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -926,7 +946,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -950,6 +970,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -966,7 +987,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -986,6 +1007,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createEndpointConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1002,7 +1024,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1022,6 +1044,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1038,7 +1061,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1058,6 +1081,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFeatureGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1074,7 +1098,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1094,6 +1118,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFlowDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1110,7 +1135,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1130,6 +1155,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHub") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1146,7 +1172,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1166,6 +1192,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHumanTaskUi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1182,7 +1209,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1202,6 +1229,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHyperParameterTuningJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1218,7 +1246,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1238,6 +1266,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1254,7 +1283,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1274,6 +1303,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImageVersion") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1298,7 +1328,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1318,6 +1348,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInferenceExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1334,7 +1365,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1354,6 +1385,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInferenceRecommendationsJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1370,7 +1402,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1399,6 +1431,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLabelingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1415,7 +1448,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1435,6 +1468,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1451,7 +1485,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1471,6 +1505,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelBiasJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1487,7 +1522,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1507,6 +1542,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelCard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1523,7 +1559,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1543,6 +1579,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelCardExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1559,7 +1596,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1579,6 +1616,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelExplainabilityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1595,7 +1633,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1619,6 +1657,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelPackage") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1643,7 +1682,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1663,6 +1702,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelPackageGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1679,7 +1719,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1699,6 +1739,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createModelQualityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1715,7 +1756,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1735,6 +1776,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMonitoringSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1751,7 +1793,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1780,6 +1822,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNotebookInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1796,7 +1839,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1816,6 +1859,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNotebookInstanceLifecycleConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1832,7 +1876,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1852,6 +1896,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1876,7 +1921,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1896,6 +1941,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPresignedDomainUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1912,7 +1958,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1932,6 +1978,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPresignedNotebookInstanceUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1948,7 +1995,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1968,6 +2015,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProcessingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1984,7 +2032,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2004,6 +2052,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2020,7 +2069,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2040,6 +2089,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSpace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2056,7 +2106,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2076,6 +2126,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStudioLifecycleConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2092,7 +2143,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2135,6 +2186,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrainingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2151,7 +2203,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2184,6 +2236,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTransformJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2200,7 +2253,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2220,6 +2273,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrial") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2236,7 +2290,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2256,6 +2310,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrialComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2272,7 +2327,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2292,6 +2347,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2308,7 +2364,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2328,6 +2384,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkforce") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2344,7 +2401,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2364,6 +2421,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkteam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2380,7 +2438,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2400,6 +2458,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2416,7 +2475,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2436,6 +2495,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlgorithm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2452,7 +2512,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2472,6 +2532,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2488,7 +2549,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2508,6 +2569,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAppImageConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2524,7 +2586,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2544,6 +2606,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2560,7 +2623,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2580,6 +2643,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2596,7 +2660,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2616,6 +2680,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCodeRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2632,7 +2697,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2652,6 +2717,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContext") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2668,7 +2734,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2688,6 +2754,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDataQualityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2704,7 +2771,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2724,6 +2791,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDeviceFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2740,7 +2808,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2760,6 +2828,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2776,7 +2845,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2796,6 +2865,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEdgeDeploymentPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2812,7 +2882,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2832,6 +2902,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEdgeDeploymentStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2848,7 +2919,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2868,6 +2939,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2884,7 +2956,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2904,6 +2976,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEndpointConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2920,7 +2993,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2940,6 +3013,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2956,7 +3030,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2976,6 +3050,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFeatureGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2992,7 +3067,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3012,6 +3087,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFlowDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3028,7 +3104,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3048,6 +3124,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHub") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3064,7 +3141,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3084,6 +3161,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHubContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3100,7 +3178,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3120,6 +3198,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHumanTaskUi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3136,7 +3215,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3156,6 +3235,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3172,7 +3252,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3192,6 +3272,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImageVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3208,7 +3289,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3228,6 +3309,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInferenceExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3244,7 +3326,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3264,6 +3346,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3280,7 +3363,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3300,6 +3383,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelBiasJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3316,7 +3400,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3336,6 +3420,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelCard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3352,7 +3437,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3372,6 +3457,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelExplainabilityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3388,7 +3474,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3408,6 +3494,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3424,7 +3511,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3444,6 +3531,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelPackageGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3460,7 +3548,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3480,6 +3568,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelPackageGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3496,7 +3585,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3516,6 +3605,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteModelQualityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3532,7 +3622,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3552,6 +3642,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMonitoringSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3568,7 +3659,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3588,6 +3679,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNotebookInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3604,7 +3696,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3624,6 +3716,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNotebookInstanceLifecycleConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3640,7 +3733,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3660,6 +3753,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePipeline") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3684,7 +3778,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3704,6 +3798,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3720,7 +3815,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3740,6 +3835,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSpace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3756,7 +3852,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3776,6 +3872,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteStudioLifecycleConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3792,7 +3889,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3812,6 +3909,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3828,7 +3926,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3848,6 +3946,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrial") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3864,7 +3963,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3884,6 +3983,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrialComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3900,7 +4000,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3920,6 +4020,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3936,7 +4037,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3956,6 +4057,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkforce") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3972,7 +4074,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3992,6 +4094,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkteam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4008,7 +4111,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4028,6 +4131,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4044,7 +4148,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4064,6 +4168,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4080,7 +4185,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4100,6 +4205,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAlgorithm") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4116,7 +4222,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4136,6 +4242,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4152,7 +4259,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4172,6 +4279,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAppImageConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4188,7 +4296,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4208,6 +4316,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4224,7 +4333,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4244,6 +4353,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutoMLJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4260,7 +4370,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4280,6 +4390,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAutoMLJobV2") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4296,7 +4407,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4316,6 +4427,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCodeRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4332,7 +4444,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4352,6 +4464,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCompilationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4368,7 +4481,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4388,6 +4501,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeContext") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4404,7 +4518,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4424,6 +4538,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDataQualityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4440,7 +4555,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4460,6 +4575,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4476,7 +4592,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4496,6 +4612,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDeviceFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4512,7 +4629,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4532,6 +4649,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4548,7 +4666,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4568,6 +4686,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEdgeDeploymentPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4584,7 +4703,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4604,6 +4723,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEdgePackagingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4620,7 +4740,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4640,6 +4760,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4656,7 +4777,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4676,6 +4797,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpointConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4692,7 +4814,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4712,6 +4834,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4728,7 +4851,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4748,6 +4871,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFeatureGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4764,7 +4888,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4784,6 +4908,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFeatureMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4800,7 +4925,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4820,6 +4945,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFlowDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4836,7 +4962,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4856,6 +4982,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHub") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4872,7 +4999,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4892,6 +5019,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHubContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4908,7 +5036,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4928,6 +5056,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHumanTaskUi") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4944,7 +5073,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -4964,6 +5093,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHyperParameterTuningJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -4980,7 +5110,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5000,6 +5130,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5016,7 +5147,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5036,6 +5167,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeImageVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5052,7 +5184,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5072,6 +5204,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInferenceExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5088,7 +5221,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5108,6 +5241,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInferenceRecommendationsJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5124,7 +5258,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5144,6 +5278,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLabelingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5160,7 +5295,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5180,6 +5315,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLineageGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5196,7 +5332,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5216,6 +5352,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5232,7 +5369,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5252,6 +5389,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelBiasJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5268,7 +5406,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5288,6 +5426,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelCard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5304,7 +5443,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5324,6 +5463,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelCardExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5340,7 +5480,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5360,6 +5500,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelExplainabilityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5376,7 +5517,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5396,6 +5537,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5412,7 +5554,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5432,6 +5574,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelPackageGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5448,7 +5591,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5468,6 +5611,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeModelQualityJobDefinition") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5484,7 +5628,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5504,6 +5648,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMonitoringSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5520,7 +5665,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5540,6 +5685,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNotebookInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5556,7 +5702,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5576,6 +5722,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNotebookInstanceLifecycleConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5592,7 +5739,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5612,6 +5759,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5628,7 +5776,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5648,6 +5796,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePipelineDefinitionForExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5664,7 +5813,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5684,6 +5833,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePipelineExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5700,7 +5850,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5720,6 +5870,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProcessingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5736,7 +5887,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5756,6 +5907,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5772,7 +5924,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5792,6 +5944,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5808,7 +5961,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5828,6 +5981,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStudioLifecycleConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5844,7 +5998,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5864,6 +6018,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSubscribedWorkteam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5880,7 +6035,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5900,6 +6055,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrainingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5916,7 +6072,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5936,6 +6092,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTransformJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5952,7 +6109,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -5972,6 +6129,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrial") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -5988,7 +6146,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6008,6 +6166,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrialComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6024,7 +6183,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6044,6 +6203,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6060,7 +6220,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6080,6 +6240,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkforce") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6096,7 +6257,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6116,6 +6277,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkteam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6132,7 +6294,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6152,6 +6314,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableSagemakerServicecatalogPortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6168,7 +6331,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6188,6 +6351,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTrialComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6204,7 +6368,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6224,6 +6388,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableSagemakerServicecatalogPortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6240,7 +6405,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6260,6 +6425,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeviceFleetReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6276,7 +6442,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6296,6 +6462,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLineageGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6312,7 +6479,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6332,6 +6499,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getModelPackageGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6348,7 +6516,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6368,6 +6536,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSagemakerServicecatalogPortfolioStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6384,7 +6553,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6404,6 +6573,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSearchSuggestions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6420,7 +6590,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6440,6 +6610,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importHubContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6456,7 +6627,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6476,6 +6647,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6492,7 +6664,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6512,6 +6684,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAlgorithms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6528,7 +6701,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6548,6 +6721,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6564,7 +6738,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6584,6 +6758,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAppImageConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6600,7 +6775,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6620,6 +6795,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6636,7 +6812,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6656,6 +6832,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listArtifacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6672,7 +6849,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6692,6 +6869,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6708,7 +6886,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6728,6 +6906,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAutoMLJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6744,7 +6923,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6764,6 +6943,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCandidatesForAutoMLJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6780,7 +6960,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6800,6 +6980,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCodeRepositories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6816,7 +6997,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6836,6 +7017,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCompilationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6852,7 +7034,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6872,6 +7054,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContexts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6888,7 +7071,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6908,6 +7091,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDataQualityJobDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6924,7 +7108,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6944,6 +7128,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6960,7 +7145,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -6980,6 +7165,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -6996,7 +7182,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7016,6 +7202,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7032,7 +7219,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7052,6 +7239,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEdgeDeploymentPlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7068,7 +7256,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7088,6 +7276,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEdgePackagingJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7104,7 +7293,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7124,6 +7313,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEndpointConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7140,7 +7330,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7160,6 +7350,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7176,7 +7367,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7196,6 +7387,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExperiments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7212,7 +7404,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7232,6 +7424,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFeatureGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7248,7 +7441,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7268,6 +7461,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFlowDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7284,7 +7478,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7304,6 +7498,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHubContentVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7320,7 +7515,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7340,6 +7535,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHubContents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7356,7 +7552,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7376,6 +7572,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHubs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7392,7 +7589,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7412,6 +7609,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHumanTaskUis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7428,7 +7626,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7448,6 +7646,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHyperParameterTuningJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7464,7 +7663,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7484,6 +7683,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImageVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7500,7 +7700,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7520,6 +7720,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7536,7 +7737,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7556,6 +7757,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInferenceExperiments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7572,7 +7774,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7592,6 +7794,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInferenceRecommendationsJobSteps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7608,7 +7811,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7628,6 +7831,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInferenceRecommendationsJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7644,7 +7848,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7664,6 +7868,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLabelingJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7680,7 +7885,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7700,6 +7905,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLabelingJobsForWorkteam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7716,7 +7922,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7736,6 +7942,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLineageGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7752,7 +7959,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7772,6 +7979,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelBiasJobDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7788,7 +7996,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7808,6 +8016,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelCardExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7824,7 +8033,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7844,6 +8053,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelCardVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7860,7 +8070,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7880,6 +8090,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelCards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7896,7 +8107,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7916,6 +8127,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelExplainabilityJobDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7932,7 +8144,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7952,6 +8164,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -7968,7 +8181,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -7988,6 +8201,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelPackageGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8004,7 +8218,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8024,6 +8238,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelPackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8040,7 +8255,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8060,6 +8275,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModelQualityJobDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8076,7 +8292,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8096,6 +8312,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8112,7 +8329,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8132,6 +8349,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMonitoringAlertHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8148,7 +8366,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8168,6 +8386,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMonitoringAlerts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8184,7 +8403,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8204,6 +8423,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMonitoringExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8220,7 +8440,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8240,6 +8460,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMonitoringSchedules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8256,7 +8477,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8276,6 +8497,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotebookInstanceLifecycleConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8292,7 +8514,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8312,6 +8534,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotebookInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8328,7 +8551,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8348,6 +8571,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelineExecutionSteps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8364,7 +8588,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8384,6 +8608,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelineExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8400,7 +8625,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8420,6 +8645,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelineParametersForExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8436,7 +8662,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8456,6 +8682,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPipelines") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8472,7 +8699,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8492,6 +8719,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProcessingJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8508,7 +8736,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8528,6 +8756,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProjects") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8544,7 +8773,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8564,6 +8793,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSpaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8580,7 +8810,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8600,6 +8830,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStageDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8616,7 +8847,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8636,6 +8867,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStudioLifecycleConfigs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8652,7 +8884,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8672,6 +8904,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubscribedWorkteams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8688,7 +8921,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8708,6 +8941,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8724,7 +8958,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8744,6 +8978,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrainingJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8760,7 +8995,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8780,6 +9015,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrainingJobsForHyperParameterTuningJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8796,7 +9032,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8816,6 +9052,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTransformJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8832,7 +9069,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8858,6 +9095,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrialComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8874,7 +9112,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8894,6 +9132,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8910,7 +9149,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8930,6 +9169,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8946,7 +9186,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -8966,6 +9206,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkforces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -8982,7 +9223,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9002,6 +9243,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkteams") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9018,7 +9260,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9038,6 +9280,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putModelPackageGroupPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9054,7 +9297,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9074,6 +9317,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "queryLineage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9090,7 +9334,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9110,6 +9354,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9126,7 +9371,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9146,6 +9391,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "renderUiTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9162,7 +9408,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9182,6 +9428,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retryPipelineExecution") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -9206,7 +9453,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9226,6 +9473,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "search") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9242,7 +9490,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9262,6 +9510,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendPipelineExecutionStepFailure") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -9286,7 +9535,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9306,6 +9555,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendPipelineExecutionStepSuccess") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -9330,7 +9580,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9350,6 +9600,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startEdgeDeploymentStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9366,7 +9617,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9386,6 +9637,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startInferenceExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9402,7 +9654,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9422,6 +9674,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMonitoringSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9438,7 +9691,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9458,6 +9711,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startNotebookInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9474,7 +9728,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9494,6 +9748,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startPipelineExecution") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -9518,7 +9773,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9538,6 +9793,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopAutoMLJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9554,7 +9810,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9574,6 +9830,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopCompilationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9590,7 +9847,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9610,6 +9867,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopEdgeDeploymentStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9626,7 +9884,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9646,6 +9904,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopEdgePackagingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9662,7 +9921,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9682,6 +9941,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopHyperParameterTuningJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9698,7 +9958,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9718,6 +9978,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopInferenceExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9734,7 +9995,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9754,6 +10015,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopInferenceRecommendationsJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9770,7 +10032,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9790,6 +10052,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopLabelingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9806,7 +10069,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9826,6 +10089,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopMonitoringSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9842,7 +10106,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9862,6 +10126,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopNotebookInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9878,7 +10143,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9898,6 +10163,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopPipelineExecution") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -9922,7 +10188,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9942,6 +10208,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopProcessingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9958,7 +10225,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -9978,6 +10245,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopTrainingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -9994,7 +10262,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10014,6 +10282,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopTransformJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10030,7 +10299,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10050,6 +10319,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10066,7 +10336,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10086,6 +10356,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAppImageConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10102,7 +10373,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10122,6 +10393,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10138,7 +10410,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10158,6 +10430,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCodeRepository") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10174,7 +10447,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10194,6 +10467,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContext") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10210,7 +10484,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10230,6 +10504,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDeviceFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10246,7 +10521,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10266,6 +10541,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10282,7 +10558,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10302,6 +10578,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10318,7 +10595,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10338,6 +10615,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10354,7 +10632,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10374,6 +10652,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEndpointWeightsAndCapacities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10390,7 +10669,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10410,6 +10689,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10426,7 +10706,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10446,6 +10726,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFeatureGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10462,7 +10743,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10482,6 +10763,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFeatureMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10498,7 +10780,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10518,6 +10800,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHub") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10534,7 +10817,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10554,6 +10837,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10570,7 +10854,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10590,6 +10874,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateImageVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10606,7 +10891,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10626,6 +10911,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInferenceExperiment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10642,7 +10928,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10662,6 +10948,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateModelCard") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10678,7 +10965,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10698,6 +10985,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateModelPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10714,7 +11002,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10734,6 +11022,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMonitoringAlert") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10750,7 +11039,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10770,6 +11059,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMonitoringSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10786,7 +11076,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10806,6 +11096,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNotebookInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10822,7 +11113,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10842,6 +11133,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNotebookInstanceLifecycleConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10858,7 +11150,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10878,6 +11170,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePipeline") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10894,7 +11187,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10914,6 +11207,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePipelineExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10930,7 +11224,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10950,6 +11244,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -10966,7 +11261,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -10986,6 +11281,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSpace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11002,7 +11298,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11022,6 +11318,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrainingJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11038,7 +11335,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11058,6 +11355,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrial") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11074,7 +11372,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11094,6 +11392,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrialComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11110,7 +11409,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11130,6 +11429,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11146,7 +11446,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11166,6 +11466,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkforce") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11182,7 +11483,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -11202,6 +11503,7 @@ extension SageMakerClient: SageMakerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkteam") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -11218,7 +11520,7 @@ extension SageMakerClient: SageMakerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSageMaker/models/Models.swift b/Sources/Services/AWSSageMaker/models/Models.swift index 0457aa60fad..b663bd1ab50 100644 --- a/Sources/Services/AWSSageMaker/models/Models.swift +++ b/Sources/Services/AWSSageMaker/models/Models.swift @@ -304,9 +304,8 @@ public enum AddAssociationOutputError: Swift.Error, Swift.Equatable { extension AddAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationArn = output.destinationArn self.sourceArn = output.sourceArn @@ -448,9 +447,8 @@ public enum AddTagsOutputError: Swift.Error, Swift.Equatable { extension AddTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2922,9 +2920,8 @@ public enum AssociateTrialComponentOutputError: Swift.Error, Swift.Equatable { extension AssociateTrialComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTrialComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trialArn = output.trialArn self.trialComponentArn = output.trialComponentArn @@ -5709,9 +5706,8 @@ public enum BatchDescribeModelPackageOutputError: Swift.Error, Swift.Equatable { extension BatchDescribeModelPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDescribeModelPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchDescribeModelPackageErrorMap = output.batchDescribeModelPackageErrorMap self.modelPackageSummaries = output.modelPackageSummaries @@ -8720,9 +8716,8 @@ extension SageMakerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8736,7 +8731,7 @@ extension ConflictException { } /// There was a conflict when you attempted to modify a SageMaker entity such as an Experiment or Artifact. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9434,9 +9429,8 @@ public enum CreateActionOutputError: Swift.Error, Swift.Equatable { extension CreateActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionArn = output.actionArn } else { @@ -9648,9 +9642,8 @@ public enum CreateAlgorithmOutputError: Swift.Error, Swift.Equatable { extension CreateAlgorithmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAlgorithmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.algorithmArn = output.algorithmArn } else { @@ -9796,9 +9789,8 @@ public enum CreateAppImageConfigOutputError: Swift.Error, Swift.Equatable { extension CreateAppImageConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppImageConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appImageConfigArn = output.appImageConfigArn } else { @@ -9995,9 +9987,8 @@ public enum CreateAppOutputError: Swift.Error, Swift.Equatable { extension CreateAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn } else { @@ -10191,9 +10182,8 @@ public enum CreateArtifactOutputError: Swift.Error, Swift.Equatable { extension CreateArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifactArn = output.artifactArn } else { @@ -10439,9 +10429,8 @@ public enum CreateAutoMLJobOutputError: Swift.Error, Swift.Equatable { extension CreateAutoMLJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAutoMLJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoMLJobArn = output.autoMLJobArn } else { @@ -10693,9 +10682,8 @@ public enum CreateAutoMLJobV2OutputError: Swift.Error, Swift.Equatable { extension CreateAutoMLJobV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAutoMLJobV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoMLJobArn = output.autoMLJobArn } else { @@ -10840,9 +10828,8 @@ public enum CreateCodeRepositoryOutputError: Swift.Error, Swift.Equatable { extension CreateCodeRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCodeRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeRepositoryArn = output.codeRepositoryArn } else { @@ -11064,9 +11051,8 @@ public enum CreateCompilationJobOutputError: Swift.Error, Swift.Equatable { extension CreateCompilationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCompilationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compilationJobArn = output.compilationJobArn } else { @@ -11264,9 +11250,8 @@ public enum CreateContextOutputError: Swift.Error, Swift.Equatable { extension CreateContextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contextArn = output.contextArn } else { @@ -11502,9 +11487,8 @@ public enum CreateDataQualityJobDefinitionOutputError: Swift.Error, Swift.Equata extension CreateDataQualityJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDataQualityJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionArn = output.jobDefinitionArn } else { @@ -11936,9 +11920,8 @@ public enum CreateDomainOutputError: Swift.Error, Swift.Equatable { extension CreateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainArn = output.domainArn self.url = output.url @@ -12143,9 +12126,8 @@ public enum CreateEdgeDeploymentPlanOutputError: Swift.Error, Swift.Equatable { extension CreateEdgeDeploymentPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEdgeDeploymentPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.edgeDeploymentPlanArn = output.edgeDeploymentPlanArn } else { @@ -12673,9 +12655,8 @@ public enum CreateEndpointConfigOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointConfigArn = output.endpointConfigArn } else { @@ -12834,9 +12815,8 @@ public enum CreateEndpointOutputError: Swift.Error, Swift.Equatable { extension CreateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointArn = output.endpointArn } else { @@ -12994,9 +12974,8 @@ public enum CreateExperimentOutputError: Swift.Error, Swift.Equatable { extension CreateExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentArn = output.experimentArn } else { @@ -13253,9 +13232,8 @@ public enum CreateFeatureGroupOutputError: Swift.Error, Swift.Equatable { extension CreateFeatureGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFeatureGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.featureGroupArn = output.featureGroupArn } else { @@ -13454,9 +13432,8 @@ public enum CreateFlowDefinitionOutputError: Swift.Error, Swift.Equatable { extension CreateFlowDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFlowDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowDefinitionArn = output.flowDefinitionArn } else { @@ -13653,9 +13630,8 @@ public enum CreateHubOutputError: Swift.Error, Swift.Equatable { extension CreateHubOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHubOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hubArn = output.hubArn } else { @@ -13804,9 +13780,8 @@ public enum CreateHumanTaskUiOutputError: Swift.Error, Swift.Equatable { extension CreateHumanTaskUiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHumanTaskUiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.humanTaskUiArn = output.humanTaskUiArn } else { @@ -14003,9 +13978,8 @@ public enum CreateHyperParameterTuningJobOutputError: Swift.Error, Swift.Equatab extension CreateHyperParameterTuningJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHyperParameterTuningJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hyperParameterTuningJobArn = output.hyperParameterTuningJobArn } else { @@ -14178,9 +14152,8 @@ public enum CreateImageOutputError: Swift.Error, Swift.Equatable { extension CreateImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageArn = output.imageArn } else { @@ -14445,9 +14418,8 @@ public enum CreateImageVersionOutputError: Swift.Error, Swift.Equatable { extension CreateImageVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImageVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageVersionArn = output.imageVersionArn } else { @@ -14720,9 +14692,8 @@ public enum CreateInferenceExperimentOutputError: Swift.Error, Swift.Equatable { extension CreateInferenceExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInferenceExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceExperimentArn = output.inferenceExperimentArn } else { @@ -14933,9 +14904,8 @@ public enum CreateInferenceRecommendationsJobOutputError: Swift.Error, Swift.Equ extension CreateInferenceRecommendationsJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInferenceRecommendationsJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobArn = output.jobArn } else { @@ -15217,9 +15187,8 @@ public enum CreateLabelingJobOutputError: Swift.Error, Swift.Equatable { extension CreateLabelingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLabelingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labelingJobArn = output.labelingJobArn } else { @@ -15456,9 +15425,8 @@ public enum CreateModelBiasJobDefinitionOutputError: Swift.Error, Swift.Equatabl extension CreateModelBiasJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelBiasJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionArn = output.jobDefinitionArn } else { @@ -15610,9 +15578,8 @@ public enum CreateModelCardExportJobOutputError: Swift.Error, Swift.Equatable { extension CreateModelCardExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelCardExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelCardExportJobArn = output.modelCardExportJobArn } else { @@ -15799,9 +15766,8 @@ public enum CreateModelCardOutputError: Swift.Error, Swift.Equatable { extension CreateModelCardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelCardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelCardArn = output.modelCardArn } else { @@ -16038,9 +16004,8 @@ public enum CreateModelExplainabilityJobDefinitionOutputError: Swift.Error, Swif extension CreateModelExplainabilityJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelExplainabilityJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionArn = output.jobDefinitionArn } else { @@ -16259,9 +16224,8 @@ public enum CreateModelOutputError: Swift.Error, Swift.Equatable { extension CreateModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelArn = output.modelArn } else { @@ -16407,9 +16371,8 @@ public enum CreateModelPackageGroupOutputError: Swift.Error, Swift.Equatable { extension CreateModelPackageGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelPackageGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelPackageGroupArn = output.modelPackageGroupArn } else { @@ -16766,9 +16729,8 @@ public enum CreateModelPackageOutputError: Swift.Error, Swift.Equatable { extension CreateModelPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelPackageArn = output.modelPackageArn } else { @@ -17005,9 +16967,8 @@ public enum CreateModelQualityJobDefinitionOutputError: Swift.Error, Swift.Equat extension CreateModelQualityJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateModelQualityJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionArn = output.jobDefinitionArn } else { @@ -17156,9 +17117,8 @@ public enum CreateMonitoringScheduleOutputError: Swift.Error, Swift.Equatable { extension CreateMonitoringScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMonitoringScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitoringScheduleArn = output.monitoringScheduleArn } else { @@ -17594,9 +17554,8 @@ public enum CreateNotebookInstanceLifecycleConfigOutputError: Swift.Error, Swift extension CreateNotebookInstanceLifecycleConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNotebookInstanceLifecycleConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notebookInstanceLifecycleConfigArn = output.notebookInstanceLifecycleConfigArn } else { @@ -17657,9 +17616,8 @@ public enum CreateNotebookInstanceOutputError: Swift.Error, Swift.Equatable { extension CreateNotebookInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNotebookInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.notebookInstanceArn = output.notebookInstanceArn } else { @@ -17880,9 +17838,8 @@ public enum CreatePipelineOutputError: Swift.Error, Swift.Equatable { extension CreatePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineArn = output.pipelineArn } else { @@ -18040,9 +17997,8 @@ public enum CreatePresignedDomainUrlOutputError: Swift.Error, Swift.Equatable { extension CreatePresignedDomainUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePresignedDomainUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedUrl = output.authorizedUrl } else { @@ -18161,9 +18117,8 @@ public enum CreatePresignedNotebookInstanceUrlOutputError: Swift.Error, Swift.Eq extension CreatePresignedNotebookInstanceUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePresignedNotebookInstanceUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizedUrl = output.authorizedUrl } else { @@ -18441,9 +18396,8 @@ public enum CreateProcessingJobOutputError: Swift.Error, Swift.Equatable { extension CreateProcessingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProcessingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.processingJobArn = output.processingJobArn } else { @@ -18602,9 +18556,8 @@ public enum CreateProjectOutputError: Swift.Error, Swift.Equatable { extension CreateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectArn = output.projectArn self.projectId = output.projectId @@ -18776,9 +18729,8 @@ public enum CreateSpaceOutputError: Swift.Error, Swift.Equatable { extension CreateSpaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSpaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.spaceArn = output.spaceArn } else { @@ -18937,9 +18889,8 @@ public enum CreateStudioLifecycleConfigOutputError: Swift.Error, Swift.Equatable extension CreateStudioLifecycleConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStudioLifecycleConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.studioLifecycleConfigArn = output.studioLifecycleConfigArn } else { @@ -19387,9 +19338,8 @@ public enum CreateTrainingJobOutputError: Swift.Error, Swift.Equatable { extension CreateTrainingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrainingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trainingJobArn = output.trainingJobArn } else { @@ -19693,9 +19643,8 @@ public enum CreateTransformJobOutputError: Swift.Error, Swift.Equatable { extension CreateTransformJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTransformJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transformJobArn = output.transformJobArn } else { @@ -19967,9 +19916,8 @@ public enum CreateTrialComponentOutputError: Swift.Error, Swift.Equatable { extension CreateTrialComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrialComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trialComponentArn = output.trialComponentArn } else { @@ -20141,9 +20089,8 @@ public enum CreateTrialOutputError: Swift.Error, Swift.Equatable { extension CreateTrialOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrialOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trialArn = output.trialArn } else { @@ -20327,9 +20274,8 @@ public enum CreateUserProfileOutputError: Swift.Error, Swift.Equatable { extension CreateUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userProfileArn = output.userProfileArn } else { @@ -20508,9 +20454,8 @@ public enum CreateWorkforceOutputError: Swift.Error, Swift.Equatable { extension CreateWorkforceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkforceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workforceArn = output.workforceArn } else { @@ -20708,9 +20653,8 @@ public enum CreateWorkteamOutputError: Swift.Error, Swift.Equatable { extension CreateWorkteamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkteamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workteamArn = output.workteamArn } else { @@ -21902,9 +21846,8 @@ public enum DeleteActionOutputError: Swift.Error, Swift.Equatable { extension DeleteActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionArn = output.actionArn } else { @@ -22314,9 +22257,8 @@ public enum DeleteArtifactOutputError: Swift.Error, Swift.Equatable { extension DeleteArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifactArn = output.artifactArn } else { @@ -22438,9 +22380,8 @@ public enum DeleteAssociationOutputError: Swift.Error, Swift.Equatable { extension DeleteAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.destinationArn = output.destinationArn self.sourceArn = output.sourceArn @@ -22637,9 +22578,8 @@ public enum DeleteContextOutputError: Swift.Error, Swift.Equatable { extension DeleteContextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteContextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contextArn = output.contextArn } else { @@ -23331,9 +23271,8 @@ public enum DeleteExperimentOutputError: Swift.Error, Swift.Equatable { extension DeleteExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentArn = output.experimentArn } else { @@ -24077,9 +24016,8 @@ public enum DeleteInferenceExperimentOutputError: Swift.Error, Swift.Equatable { extension DeleteInferenceExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInferenceExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceExperimentArn = output.inferenceExperimentArn } else { @@ -25076,9 +25014,8 @@ public enum DeletePipelineOutputError: Swift.Error, Swift.Equatable { extension DeletePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineArn = output.pipelineArn } else { @@ -25547,9 +25484,8 @@ public enum DeleteTrialComponentOutputError: Swift.Error, Swift.Equatable { extension DeleteTrialComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTrialComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trialComponentArn = output.trialComponentArn } else { @@ -25658,9 +25594,8 @@ public enum DeleteTrialOutputError: Swift.Error, Swift.Equatable { extension DeleteTrialOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTrialOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trialArn = output.trialArn } else { @@ -25942,9 +25877,8 @@ public enum DeleteWorkteamOutputError: Swift.Error, Swift.Equatable { extension DeleteWorkteamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWorkteamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.success = output.success } else { @@ -26384,9 +26318,8 @@ public enum DescribeActionOutputError: Swift.Error, Swift.Equatable { extension DescribeActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionArn = output.actionArn self.actionName = output.actionName @@ -26622,9 +26555,8 @@ public enum DescribeAlgorithmOutputError: Swift.Error, Swift.Equatable { extension DescribeAlgorithmOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAlgorithmOutputResponseBody = try responseDecoder.decode(responseBody: data) self.algorithmArn = output.algorithmArn self.algorithmDescription = output.algorithmDescription @@ -26839,9 +26771,8 @@ public enum DescribeAppImageConfigOutputError: Swift.Error, Swift.Equatable { extension DescribeAppImageConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppImageConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appImageConfigArn = output.appImageConfigArn self.appImageConfigName = output.appImageConfigName @@ -27040,9 +26971,8 @@ public enum DescribeAppOutputError: Swift.Error, Swift.Equatable { extension DescribeAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appArn = output.appArn self.appName = output.appName @@ -27261,9 +27191,8 @@ public enum DescribeArtifactOutputError: Swift.Error, Swift.Equatable { extension DescribeArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifactArn = output.artifactArn self.artifactName = output.artifactName @@ -27481,9 +27410,8 @@ public enum DescribeAutoMLJobOutputError: Swift.Error, Swift.Equatable { extension DescribeAutoMLJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutoMLJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoMLJobArn = output.autoMLJobArn self.autoMLJobArtifacts = output.autoMLJobArtifacts @@ -27819,9 +27747,8 @@ public enum DescribeAutoMLJobV2OutputError: Swift.Error, Swift.Equatable { extension DescribeAutoMLJobV2OutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAutoMLJobV2OutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoMLJobArn = output.autoMLJobArn self.autoMLJobInputDataConfig = output.autoMLJobInputDataConfig @@ -28135,9 +28062,8 @@ public enum DescribeCodeRepositoryOutputError: Swift.Error, Swift.Equatable { extension DescribeCodeRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCodeRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeRepositoryArn = output.codeRepositoryArn self.codeRepositoryName = output.codeRepositoryName @@ -28290,9 +28216,8 @@ public enum DescribeCompilationJobOutputError: Swift.Error, Swift.Equatable { extension DescribeCompilationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCompilationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compilationEndTime = output.compilationEndTime self.compilationJobArn = output.compilationJobArn @@ -28572,9 +28497,8 @@ public enum DescribeContextOutputError: Swift.Error, Swift.Equatable { extension DescribeContextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeContextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contextArn = output.contextArn self.contextName = output.contextName @@ -28792,9 +28716,8 @@ public enum DescribeDataQualityJobDefinitionOutputError: Swift.Error, Swift.Equa extension DescribeDataQualityJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDataQualityJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.dataQualityAppSpecification = output.dataQualityAppSpecification @@ -29011,9 +28934,8 @@ public enum DescribeDeviceFleetOutputError: Swift.Error, Swift.Equatable { extension DescribeDeviceFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeviceFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -29222,9 +29144,8 @@ public enum DescribeDeviceOutputError: Swift.Error, Swift.Equatable { extension DescribeDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentVersion = output.agentVersion self.description = output.description @@ -29445,9 +29366,8 @@ public enum DescribeDomainOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appNetworkAccessType = output.appNetworkAccessType self.appSecurityGroupManagement = output.appSecurityGroupManagement @@ -29794,9 +29714,8 @@ public enum DescribeEdgeDeploymentPlanOutputError: Swift.Error, Swift.Equatable extension DescribeEdgeDeploymentPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEdgeDeploymentPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.deviceFleetName = output.deviceFleetName @@ -30028,9 +29947,8 @@ public enum DescribeEdgePackagingJobOutputError: Swift.Error, Swift.Equatable { extension DescribeEdgePackagingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEdgePackagingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compilationJobName = output.compilationJobName self.creationTime = output.creationTime @@ -30280,9 +30198,8 @@ public enum DescribeEndpointConfigOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.asyncInferenceConfig = output.asyncInferenceConfig self.creationTime = output.creationTime @@ -30502,9 +30419,8 @@ public enum DescribeEndpointOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.asyncInferenceConfig = output.asyncInferenceConfig self.creationTime = output.creationTime @@ -30783,9 +30699,8 @@ public enum DescribeExperimentOutputError: Swift.Error, Swift.Equatable { extension DescribeExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdBy = output.createdBy self.creationTime = output.creationTime @@ -30986,9 +30901,8 @@ public enum DescribeFeatureGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeFeatureGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFeatureGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -31300,9 +31214,8 @@ public enum DescribeFeatureMetadataOutputError: Swift.Error, Swift.Equatable { extension DescribeFeatureMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFeatureMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -31496,9 +31409,8 @@ public enum DescribeFlowDefinitionOutputError: Swift.Error, Swift.Equatable { extension DescribeFlowDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFlowDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.failureReason = output.failureReason @@ -31742,9 +31654,8 @@ public enum DescribeHubContentOutputError: Swift.Error, Swift.Equatable { extension DescribeHubContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHubContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.documentSchemaVersion = output.documentSchemaVersion @@ -32031,9 +31942,8 @@ public enum DescribeHubOutputError: Swift.Error, Swift.Equatable { extension DescribeHubOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHubOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.failureReason = output.failureReason @@ -32246,9 +32156,8 @@ public enum DescribeHumanTaskUiOutputError: Swift.Error, Swift.Equatable { extension DescribeHumanTaskUiOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHumanTaskUiOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.humanTaskUiArn = output.humanTaskUiArn @@ -32401,9 +32310,8 @@ public enum DescribeHyperParameterTuningJobOutputError: Swift.Error, Swift.Equat extension DescribeHyperParameterTuningJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHyperParameterTuningJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bestTrainingJob = output.bestTrainingJob self.consumedResources = output.consumedResources @@ -32700,9 +32608,8 @@ public enum DescribeImageOutputError: Swift.Error, Swift.Equatable { extension DescribeImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.description = output.description @@ -32927,9 +32834,8 @@ public enum DescribeImageVersionOutputError: Swift.Error, Swift.Equatable { extension DescribeImageVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeImageVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseImage = output.baseImage self.containerImage = output.containerImage @@ -33206,9 +33112,8 @@ public enum DescribeInferenceExperimentOutputError: Swift.Error, Swift.Equatable extension DescribeInferenceExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInferenceExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.completionTime = output.completionTime @@ -33498,9 +33403,8 @@ public enum DescribeInferenceRecommendationsJobOutputError: Swift.Error, Swift.E extension DescribeInferenceRecommendationsJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInferenceRecommendationsJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completionTime = output.completionTime self.creationTime = output.creationTime @@ -33765,9 +33669,8 @@ public enum DescribeLabelingJobOutputError: Swift.Error, Swift.Equatable { extension DescribeLabelingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLabelingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.failureReason = output.failureReason @@ -34113,9 +34016,8 @@ public enum DescribeLineageGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeLineageGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLineageGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdBy = output.createdBy self.creationTime = output.creationTime @@ -34294,9 +34196,8 @@ public enum DescribeModelBiasJobDefinitionOutputError: Swift.Error, Swift.Equata extension DescribeModelBiasJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelBiasJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.jobDefinitionArn = output.jobDefinitionArn @@ -34513,9 +34414,8 @@ public enum DescribeModelCardExportJobOutputError: Swift.Error, Swift.Equatable extension DescribeModelCardExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelCardExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.exportArtifacts = output.exportArtifacts @@ -34745,9 +34645,8 @@ extension DescribeModelCardOutputResponse: Swift.CustomDebugStringConvertible { extension DescribeModelCardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelCardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content self.createdBy = output.createdBy @@ -34983,9 +34882,8 @@ public enum DescribeModelExplainabilityJobDefinitionOutputError: Swift.Error, Sw extension DescribeModelExplainabilityJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelExplainabilityJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.jobDefinitionArn = output.jobDefinitionArn @@ -35200,9 +35098,8 @@ public enum DescribeModelOutputError: Swift.Error, Swift.Equatable { extension DescribeModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containers = output.containers self.creationTime = output.creationTime @@ -35402,9 +35299,8 @@ public enum DescribeModelPackageGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeModelPackageGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelPackageGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdBy = output.createdBy self.creationTime = output.creationTime @@ -35566,9 +35462,8 @@ public enum DescribeModelPackageOutputError: Swift.Error, Swift.Equatable { extension DescribeModelPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.additionalInferenceSpecifications = output.additionalInferenceSpecifications self.approvalDescription = output.approvalDescription @@ -35940,9 +35835,8 @@ public enum DescribeModelQualityJobDefinitionOutputError: Swift.Error, Swift.Equ extension DescribeModelQualityJobDefinitionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeModelQualityJobDefinitionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.jobDefinitionArn = output.jobDefinitionArn @@ -36159,9 +36053,8 @@ public enum DescribeMonitoringScheduleOutputError: Swift.Error, Swift.Equatable extension DescribeMonitoringScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMonitoringScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.endpointName = output.endpointName @@ -36420,9 +36313,8 @@ public enum DescribeNotebookInstanceLifecycleConfigOutputError: Swift.Error, Swi extension DescribeNotebookInstanceLifecycleConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNotebookInstanceLifecycleConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.lastModifiedTime = output.lastModifiedTime @@ -36560,9 +36452,8 @@ public enum DescribeNotebookInstanceOutputError: Swift.Error, Swift.Equatable { extension DescribeNotebookInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNotebookInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acceleratorTypes = output.acceleratorTypes self.additionalCodeRepositories = output.additionalCodeRepositories @@ -36908,9 +36799,8 @@ public enum DescribePipelineDefinitionForExecutionOutputError: Swift.Error, Swif extension DescribePipelineDefinitionForExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePipelineDefinitionForExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.pipelineDefinition = output.pipelineDefinition @@ -37029,9 +36919,8 @@ public enum DescribePipelineExecutionOutputError: Swift.Error, Swift.Equatable { extension DescribePipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdBy = output.createdBy self.creationTime = output.creationTime @@ -37250,9 +37139,8 @@ public enum DescribePipelineOutputError: Swift.Error, Swift.Equatable { extension DescribePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdBy = output.createdBy self.creationTime = output.creationTime @@ -37493,9 +37381,8 @@ public enum DescribeProcessingJobOutputError: Swift.Error, Swift.Equatable { extension DescribeProcessingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProcessingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appSpecification = output.appSpecification self.autoMLJobArn = output.autoMLJobArn @@ -37826,9 +37713,8 @@ public enum DescribeProjectOutputError: Swift.Error, Swift.Equatable { extension DescribeProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdBy = output.createdBy self.creationTime = output.creationTime @@ -38056,9 +37942,8 @@ public enum DescribeSpaceOutputError: Swift.Error, Swift.Equatable { extension DescribeSpaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.domainId = output.domainId @@ -38247,9 +38132,8 @@ public enum DescribeStudioLifecycleConfigOutputError: Swift.Error, Swift.Equatab extension DescribeStudioLifecycleConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStudioLifecycleConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.lastModifiedTime = output.lastModifiedTime @@ -38406,9 +38290,8 @@ public enum DescribeSubscribedWorkteamOutputError: Swift.Error, Swift.Equatable extension DescribeSubscribedWorkteamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSubscribedWorkteamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscribedWorkteam = output.subscribedWorkteam } else { @@ -38530,9 +38413,8 @@ public enum DescribeTrainingJobOutputError: Swift.Error, Swift.Equatable { extension DescribeTrainingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrainingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.algorithmSpecification = output.algorithmSpecification self.autoMLJobArn = output.autoMLJobArn @@ -39205,9 +39087,8 @@ public enum DescribeTransformJobOutputError: Swift.Error, Swift.Equatable { extension DescribeTransformJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTransformJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoMLJobArn = output.autoMLJobArn self.batchStrategy = output.batchStrategy @@ -39538,9 +39419,8 @@ public enum DescribeTrialComponentOutputError: Swift.Error, Swift.Equatable { extension DescribeTrialComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrialComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdBy = output.createdBy self.creationTime = output.creationTime @@ -39870,9 +39750,8 @@ public enum DescribeTrialOutputError: Swift.Error, Swift.Equatable { extension DescribeTrialOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrialOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdBy = output.createdBy self.creationTime = output.creationTime @@ -40084,9 +39963,8 @@ public enum DescribeUserProfileOutputError: Swift.Error, Swift.Equatable { extension DescribeUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.domainId = output.domainId @@ -40293,9 +40171,8 @@ public enum DescribeWorkforceOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkforceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkforceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workforce = output.workforce } else { @@ -40403,9 +40280,8 @@ public enum DescribeWorkteamOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkteamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkteamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workteam = output.workteam } else { @@ -41381,9 +41257,8 @@ public enum DisassociateTrialComponentOutputError: Swift.Error, Swift.Equatable extension DisassociateTrialComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateTrialComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trialArn = output.trialArn self.trialComponentArn = output.trialComponentArn @@ -45941,9 +45816,8 @@ public enum GetDeviceFleetReportOutputError: Swift.Error, Swift.Equatable { extension GetDeviceFleetReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceFleetReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agentVersions = output.agentVersions self.description = output.description @@ -46142,9 +46016,8 @@ public enum GetLineageGroupPolicyOutputError: Swift.Error, Swift.Equatable { extension GetLineageGroupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLineageGroupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lineageGroupArn = output.lineageGroupArn self.resourcePolicy = output.resourcePolicy @@ -46261,9 +46134,8 @@ public enum GetModelPackageGroupPolicyOutputError: Swift.Error, Swift.Equatable extension GetModelPackageGroupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetModelPackageGroupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePolicy = output.resourcePolicy } else { @@ -46351,9 +46223,8 @@ public enum GetSagemakerServicecatalogPortfolioStatusOutputError: Swift.Error, S extension GetSagemakerServicecatalogPortfolioStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSagemakerServicecatalogPortfolioStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -46472,9 +46343,8 @@ public enum GetSearchSuggestionsOutputError: Swift.Error, Swift.Equatable { extension GetSearchSuggestionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSearchSuggestionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.propertyNameSuggestions = output.propertyNameSuggestions } else { @@ -50982,9 +50852,8 @@ public enum ImportHubContentOutputError: Swift.Error, Swift.Equatable { extension ImportHubContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportHubContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hubArn = output.hubArn self.hubContentArn = output.hubContentArn @@ -54241,9 +54110,8 @@ public enum ListActionsOutputError: Swift.Error, Swift.Equatable { extension ListActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionSummaries = output.actionSummaries self.nextToken = output.nextToken @@ -54440,9 +54308,8 @@ public enum ListAlgorithmsOutputError: Swift.Error, Swift.Equatable { extension ListAlgorithmsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAlgorithmsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.algorithmSummaryList = output.algorithmSummaryList self.nextToken = output.nextToken @@ -54619,9 +54486,8 @@ public enum ListAliasesOutputError: Swift.Error, Swift.Equatable { extension ListAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sageMakerImageVersionAliases = output.sageMakerImageVersionAliases @@ -54842,9 +54708,8 @@ public enum ListAppImageConfigsOutputError: Swift.Error, Swift.Equatable { extension ListAppImageConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppImageConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appImageConfigs = output.appImageConfigs self.nextToken = output.nextToken @@ -55041,9 +54906,8 @@ public enum ListAppsOutputError: Swift.Error, Swift.Equatable { extension ListAppsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apps = output.apps self.nextToken = output.nextToken @@ -55254,9 +55118,8 @@ public enum ListArtifactsOutputError: Swift.Error, Swift.Equatable { extension ListArtifactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListArtifactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifactSummaries = output.artifactSummaries self.nextToken = output.nextToken @@ -55503,9 +55366,8 @@ public enum ListAssociationsOutputError: Swift.Error, Swift.Equatable { extension ListAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associationSummaries = output.associationSummaries self.nextToken = output.nextToken @@ -55738,9 +55600,8 @@ public enum ListAutoMLJobsOutputError: Swift.Error, Swift.Equatable { extension ListAutoMLJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAutoMLJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoMLJobSummaries = output.autoMLJobSummaries self.nextToken = output.nextToken @@ -55941,9 +55802,8 @@ public enum ListCandidatesForAutoMLJobOutputError: Swift.Error, Swift.Equatable extension ListCandidatesForAutoMLJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCandidatesForAutoMLJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.candidates = output.candidates self.nextToken = output.nextToken @@ -56165,9 +56025,8 @@ public enum ListCodeRepositoriesOutputError: Swift.Error, Swift.Equatable { extension ListCodeRepositoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCodeRepositoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeRepositorySummaryList = output.codeRepositorySummaryList self.nextToken = output.nextToken @@ -56411,9 +56270,8 @@ public enum ListCompilationJobsOutputError: Swift.Error, Swift.Equatable { extension ListCompilationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCompilationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compilationJobSummaries = output.compilationJobSummaries self.nextToken = output.nextToken @@ -56660,9 +56518,8 @@ public enum ListContextsOutputError: Swift.Error, Swift.Equatable { extension ListContextsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContextsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contextSummaries = output.contextSummaries self.nextToken = output.nextToken @@ -56871,9 +56728,8 @@ public enum ListDataQualityJobDefinitionsOutputError: Swift.Error, Swift.Equatab extension ListDataQualityJobDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDataQualityJobDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionSummaries = output.jobDefinitionSummaries self.nextToken = output.nextToken @@ -57095,9 +56951,8 @@ public enum ListDeviceFleetsOutputError: Swift.Error, Swift.Equatable { extension ListDeviceFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceFleetSummaries = output.deviceFleetSummaries self.nextToken = output.nextToken @@ -57306,9 +57161,8 @@ public enum ListDevicesOutputError: Swift.Error, Swift.Equatable { extension ListDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceSummaries = output.deviceSummaries self.nextToken = output.nextToken @@ -57446,9 +57300,8 @@ public enum ListDomainsOutputError: Swift.Error, Swift.Equatable { extension ListDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domains = output.domains self.nextToken = output.nextToken @@ -57681,9 +57534,8 @@ public enum ListEdgeDeploymentPlansOutputError: Swift.Error, Swift.Equatable { extension ListEdgeDeploymentPlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEdgeDeploymentPlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.edgeDeploymentPlanSummaries = output.edgeDeploymentPlanSummaries self.nextToken = output.nextToken @@ -57967,9 +57819,8 @@ public enum ListEdgePackagingJobsOutputError: Swift.Error, Swift.Equatable { extension ListEdgePackagingJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEdgePackagingJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.edgePackagingJobSummaries = output.edgePackagingJobSummaries self.nextToken = output.nextToken @@ -58208,9 +58059,8 @@ public enum ListEndpointConfigsOutputError: Swift.Error, Swift.Equatable { extension ListEndpointConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEndpointConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointConfigs = output.endpointConfigs self.nextToken = output.nextToken @@ -58444,9 +58294,8 @@ public enum ListEndpointsOutputError: Swift.Error, Swift.Equatable { extension ListEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints self.nextToken = output.nextToken @@ -58632,9 +58481,8 @@ public enum ListExperimentsOutputError: Swift.Error, Swift.Equatable { extension ListExperimentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExperimentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentSummaries = output.experimentSummaries self.nextToken = output.nextToken @@ -58855,9 +58703,8 @@ public enum ListFeatureGroupsOutputError: Swift.Error, Swift.Equatable { extension ListFeatureGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFeatureGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.featureGroupSummaries = output.featureGroupSummaries self.nextToken = output.nextToken @@ -59032,9 +58879,8 @@ public enum ListFlowDefinitionsOutputError: Swift.Error, Swift.Equatable { extension ListFlowDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFlowDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.flowDefinitionSummaries = output.flowDefinitionSummaries self.nextToken = output.nextToken @@ -59285,9 +59131,8 @@ public enum ListHubContentVersionsOutputError: Swift.Error, Swift.Equatable { extension ListHubContentVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHubContentVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hubContentSummaries = output.hubContentSummaries self.nextToken = output.nextToken @@ -59525,9 +59370,8 @@ public enum ListHubContentsOutputError: Swift.Error, Swift.Equatable { extension ListHubContentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHubContentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hubContentSummaries = output.hubContentSummaries self.nextToken = output.nextToken @@ -59749,9 +59593,8 @@ public enum ListHubsOutputError: Swift.Error, Swift.Equatable { extension ListHubsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHubsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hubSummaries = output.hubSummaries self.nextToken = output.nextToken @@ -59925,9 +59768,8 @@ public enum ListHumanTaskUisOutputError: Swift.Error, Swift.Equatable { extension ListHumanTaskUisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHumanTaskUisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.humanTaskUiSummaries = output.humanTaskUiSummaries self.nextToken = output.nextToken @@ -60161,9 +60003,8 @@ public enum ListHyperParameterTuningJobsOutputError: Swift.Error, Swift.Equatabl extension ListHyperParameterTuningJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHyperParameterTuningJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hyperParameterTuningJobSummaries = output.hyperParameterTuningJobSummaries self.nextToken = output.nextToken @@ -60388,9 +60229,8 @@ public enum ListImageVersionsOutputError: Swift.Error, Swift.Equatable { extension ListImageVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImageVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageVersions = output.imageVersions self.nextToken = output.nextToken @@ -60611,9 +60451,8 @@ public enum ListImagesOutputError: Swift.Error, Swift.Equatable { extension ListImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.images = output.images self.nextToken = output.nextToken @@ -60858,9 +60697,8 @@ public enum ListInferenceExperimentsOutputError: Swift.Error, Swift.Equatable { extension ListInferenceExperimentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInferenceExperimentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceExperiments = output.inferenceExperiments self.nextToken = output.nextToken @@ -61036,9 +60874,8 @@ public enum ListInferenceRecommendationsJobStepsOutputError: Swift.Error, Swift. extension ListInferenceRecommendationsJobStepsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInferenceRecommendationsJobStepsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.steps = output.steps @@ -61271,9 +61108,8 @@ public enum ListInferenceRecommendationsJobsOutputError: Swift.Error, Swift.Equa extension ListInferenceRecommendationsJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInferenceRecommendationsJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceRecommendationsJobs = output.inferenceRecommendationsJobs self.nextToken = output.nextToken @@ -61521,9 +61357,8 @@ public enum ListLabelingJobsForWorkteamOutputError: Swift.Error, Swift.Equatable extension ListLabelingJobsForWorkteamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLabelingJobsForWorkteamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labelingJobSummaryList = output.labelingJobSummaryList self.nextToken = output.nextToken @@ -61786,9 +61621,8 @@ public enum ListLabelingJobsOutputError: Swift.Error, Swift.Equatable { extension ListLabelingJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLabelingJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.labelingJobSummaryList = output.labelingJobSummaryList self.nextToken = output.nextToken @@ -61973,9 +61807,8 @@ public enum ListLineageGroupsOutputError: Swift.Error, Swift.Equatable { extension ListLineageGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLineageGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lineageGroupSummaries = output.lineageGroupSummaries self.nextToken = output.nextToken @@ -62184,9 +62017,8 @@ public enum ListModelBiasJobDefinitionsOutputError: Swift.Error, Swift.Equatable extension ListModelBiasJobDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelBiasJobDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionSummaries = output.jobDefinitionSummaries self.nextToken = output.nextToken @@ -62421,9 +62253,8 @@ public enum ListModelCardExportJobsOutputError: Swift.Error, Swift.Equatable { extension ListModelCardExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelCardExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelCardExportJobSummaries = output.modelCardExportJobSummaries self.nextToken = output.nextToken @@ -62636,9 +62467,8 @@ public enum ListModelCardVersionsOutputError: Swift.Error, Swift.Equatable { extension ListModelCardVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelCardVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelCardVersionSummaryList = output.modelCardVersionSummaryList self.nextToken = output.nextToken @@ -62848,9 +62678,8 @@ public enum ListModelCardsOutputError: Swift.Error, Swift.Equatable { extension ListModelCardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelCardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelCardSummaries = output.modelCardSummaries self.nextToken = output.nextToken @@ -63060,9 +62889,8 @@ public enum ListModelExplainabilityJobDefinitionsOutputError: Swift.Error, Swift extension ListModelExplainabilityJobDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelExplainabilityJobDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionSummaries = output.jobDefinitionSummaries self.nextToken = output.nextToken @@ -63212,9 +63040,8 @@ public enum ListModelMetadataOutputError: Swift.Error, Swift.Equatable { extension ListModelMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelMetadataSummaries = output.modelMetadataSummaries self.nextToken = output.nextToken @@ -63412,9 +63239,8 @@ public enum ListModelPackageGroupsOutputError: Swift.Error, Swift.Equatable { extension ListModelPackageGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelPackageGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelPackageGroupSummaryList = output.modelPackageGroupSummaryList self.nextToken = output.nextToken @@ -63654,9 +63480,8 @@ public enum ListModelPackagesOutputError: Swift.Error, Swift.Equatable { extension ListModelPackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelPackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelPackageSummaryList = output.modelPackageSummaryList self.nextToken = output.nextToken @@ -63866,9 +63691,8 @@ public enum ListModelQualityJobDefinitionsOutputError: Swift.Error, Swift.Equata extension ListModelQualityJobDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelQualityJobDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobDefinitionSummaries = output.jobDefinitionSummaries self.nextToken = output.nextToken @@ -64066,9 +63890,8 @@ public enum ListModelsOutputError: Swift.Error, Swift.Equatable { extension ListModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.models = output.models self.nextToken = output.nextToken @@ -64292,9 +64115,8 @@ public enum ListMonitoringAlertHistoryOutputError: Swift.Error, Swift.Equatable extension ListMonitoringAlertHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMonitoringAlertHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitoringAlertHistory = output.monitoringAlertHistory self.nextToken = output.nextToken @@ -64446,9 +64268,8 @@ public enum ListMonitoringAlertsOutputError: Swift.Error, Swift.Equatable { extension ListMonitoringAlertsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMonitoringAlertsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitoringAlertSummaries = output.monitoringAlertSummaries self.nextToken = output.nextToken @@ -64741,9 +64562,8 @@ public enum ListMonitoringExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListMonitoringExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMonitoringExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitoringExecutionSummaries = output.monitoringExecutionSummaries self.nextToken = output.nextToken @@ -65013,9 +64833,8 @@ public enum ListMonitoringSchedulesOutputError: Swift.Error, Swift.Equatable { extension ListMonitoringSchedulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMonitoringSchedulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitoringScheduleSummaries = output.monitoringScheduleSummaries self.nextToken = output.nextToken @@ -65237,9 +65056,8 @@ public enum ListNotebookInstanceLifecycleConfigsOutputError: Swift.Error, Swift. extension ListNotebookInstanceLifecycleConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotebookInstanceLifecycleConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notebookInstanceLifecycleConfigs = output.notebookInstanceLifecycleConfigs @@ -65508,9 +65326,8 @@ public enum ListNotebookInstancesOutputError: Swift.Error, Swift.Equatable { extension ListNotebookInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotebookInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notebookInstances = output.notebookInstances @@ -65673,9 +65490,8 @@ public enum ListPipelineExecutionStepsOutputError: Swift.Error, Swift.Equatable extension ListPipelineExecutionStepsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelineExecutionStepsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pipelineExecutionSteps = output.pipelineExecutionSteps @@ -65875,9 +65691,8 @@ public enum ListPipelineExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListPipelineExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelineExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pipelineExecutionSummaries = output.pipelineExecutionSummaries @@ -66029,9 +65844,8 @@ public enum ListPipelineParametersForExecutionOutputError: Swift.Error, Swift.Eq extension ListPipelineParametersForExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelineParametersForExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pipelineParameters = output.pipelineParameters @@ -66228,9 +66042,8 @@ public enum ListPipelinesOutputError: Swift.Error, Swift.Equatable { extension ListPipelinesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPipelinesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.pipelineSummaries = output.pipelineSummaries @@ -66463,9 +66276,8 @@ public enum ListProcessingJobsOutputError: Swift.Error, Swift.Equatable { extension ListProcessingJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProcessingJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.processingJobSummaries = output.processingJobSummaries @@ -66663,9 +66475,8 @@ public enum ListProjectsOutputError: Swift.Error, Swift.Equatable { extension ListProjectsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProjectsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.projectSummaryList = output.projectSummaryList @@ -66851,9 +66662,8 @@ public enum ListSpacesOutputError: Swift.Error, Swift.Equatable { extension ListSpacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSpacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.spaces = output.spaces @@ -67028,9 +66838,8 @@ public enum ListStageDevicesOutputError: Swift.Error, Swift.Equatable { extension ListStageDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStageDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceDeploymentSummaries = output.deviceDeploymentSummaries self.nextToken = output.nextToken @@ -67266,9 +67075,8 @@ public enum ListStudioLifecycleConfigsOutputError: Swift.Error, Swift.Equatable extension ListStudioLifecycleConfigsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStudioLifecycleConfigsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.studioLifecycleConfigs = output.studioLifecycleConfigs @@ -67417,9 +67225,8 @@ public enum ListSubscribedWorkteamsOutputError: Swift.Error, Swift.Equatable { extension ListSubscribedWorkteamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubscribedWorkteamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscribedWorkteams = output.subscribedWorkteams @@ -67570,9 +67377,8 @@ public enum ListTagsOutputError: Swift.Error, Swift.Equatable { extension ListTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -67760,9 +67566,8 @@ public enum ListTrainingJobsForHyperParameterTuningJobOutputError: Swift.Error, extension ListTrainingJobsForHyperParameterTuningJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrainingJobsForHyperParameterTuningJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trainingJobSummaries = output.trainingJobSummaries @@ -68008,9 +67813,8 @@ public enum ListTrainingJobsOutputError: Swift.Error, Swift.Equatable { extension ListTrainingJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrainingJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trainingJobSummaries = output.trainingJobSummaries @@ -68244,9 +68048,8 @@ public enum ListTransformJobsOutputError: Swift.Error, Swift.Equatable { extension ListTransformJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTransformJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.transformJobSummaries = output.transformJobSummaries @@ -68470,9 +68273,8 @@ public enum ListTrialComponentsOutputError: Swift.Error, Swift.Equatable { extension ListTrialComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrialComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trialComponentSummaries = output.trialComponentSummaries @@ -68683,9 +68485,8 @@ public enum ListTrialsOutputError: Swift.Error, Swift.Equatable { extension ListTrialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trialSummaries = output.trialSummaries @@ -68870,9 +68671,8 @@ public enum ListUserProfilesOutputError: Swift.Error, Swift.Equatable { extension ListUserProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userProfiles = output.userProfiles @@ -69045,9 +68845,8 @@ public enum ListWorkforcesOutputError: Swift.Error, Swift.Equatable { extension ListWorkforcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkforcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workforces = output.workforces @@ -69253,9 +69052,8 @@ public enum ListWorkteamsOutputError: Swift.Error, Swift.Equatable { extension ListWorkteamsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkteamsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workteams = output.workteams @@ -82980,9 +82778,8 @@ public enum PutModelPackageGroupPolicyOutputError: Swift.Error, Swift.Equatable extension PutModelPackageGroupPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutModelPackageGroupPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelPackageGroupArn = output.modelPackageGroupArn } else { @@ -83441,9 +83238,8 @@ public enum QueryLineageOutputError: Swift.Error, Swift.Equatable { extension QueryLineageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryLineageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.edges = output.edges self.nextToken = output.nextToken @@ -85233,9 +85029,8 @@ public enum RenderUiTemplateOutputError: Swift.Error, Swift.Equatable { extension RenderUiTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RenderUiTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.renderedContent = output.renderedContent @@ -85646,9 +85441,8 @@ extension SageMakerClientTypes { extension ResourceInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -85662,7 +85456,7 @@ extension ResourceInUse { } /// Resource being accessed is in use. -public struct ResourceInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -85698,9 +85492,8 @@ extension ResourceInUseBody: Swift.Decodable { extension ResourceLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -85714,7 +85507,7 @@ extension ResourceLimitExceeded { } /// You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created. -public struct ResourceLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -85806,9 +85599,8 @@ extension SageMakerClientTypes { extension ResourceNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -85822,7 +85614,7 @@ extension ResourceNotFound { } /// Resource being access is not found. -public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -86160,9 +85952,8 @@ public enum RetryPipelineExecutionOutputError: Swift.Error, Swift.Equatable { extension RetryPipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetryPipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionArn = output.pipelineExecutionArn } else { @@ -86911,9 +86702,8 @@ public enum SearchOutputError: Swift.Error, Swift.Equatable { extension SearchOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -87480,9 +87270,8 @@ public enum SendPipelineExecutionStepFailureOutputError: Swift.Error, Swift.Equa extension SendPipelineExecutionStepFailureOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendPipelineExecutionStepFailureOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionArn = output.pipelineExecutionArn } else { @@ -87629,9 +87418,8 @@ public enum SendPipelineExecutionStepSuccessOutputError: Swift.Error, Swift.Equa extension SendPipelineExecutionStepSuccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SendPipelineExecutionStepSuccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionArn = output.pipelineExecutionArn } else { @@ -89077,9 +88865,8 @@ public enum StartInferenceExperimentOutputError: Swift.Error, Swift.Equatable { extension StartInferenceExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartInferenceExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceExperimentArn = output.inferenceExperimentArn } else { @@ -89424,9 +89211,8 @@ public enum StartPipelineExecutionOutputError: Swift.Error, Swift.Equatable { extension StartPipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartPipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionArn = output.pipelineExecutionArn } else { @@ -90073,9 +89859,8 @@ public enum StopInferenceExperimentOutputError: Swift.Error, Swift.Equatable { extension StopInferenceExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopInferenceExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceExperimentArn = output.inferenceExperimentArn } else { @@ -90516,9 +90301,8 @@ public enum StopPipelineExecutionOutputError: Swift.Error, Swift.Equatable { extension StopPipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopPipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionArn = output.pipelineExecutionArn } else { @@ -95982,9 +95766,8 @@ public enum UpdateActionOutputError: Swift.Error, Swift.Equatable { extension UpdateActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionArn = output.actionArn } else { @@ -96105,9 +95888,8 @@ public enum UpdateAppImageConfigOutputError: Swift.Error, Swift.Equatable { extension UpdateAppImageConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAppImageConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appImageConfigArn = output.appImageConfigArn } else { @@ -96278,9 +96060,8 @@ public enum UpdateArtifactOutputError: Swift.Error, Swift.Equatable { extension UpdateArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.artifactArn = output.artifactArn } else { @@ -96399,9 +96180,8 @@ public enum UpdateCodeRepositoryOutputError: Swift.Error, Swift.Equatable { extension UpdateCodeRepositoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCodeRepositoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.codeRepositoryArn = output.codeRepositoryArn } else { @@ -96573,9 +96353,8 @@ public enum UpdateContextOutputError: Swift.Error, Swift.Equatable { extension UpdateContextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateContextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contextArn = output.contextArn } else { @@ -96968,9 +96747,8 @@ public enum UpdateDomainOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainArn = output.domainArn } else { @@ -97152,9 +96930,8 @@ public enum UpdateEndpointOutputError: Swift.Error, Swift.Equatable { extension UpdateEndpointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEndpointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointArn = output.endpointArn } else { @@ -97289,9 +97066,8 @@ public enum UpdateEndpointWeightsAndCapacitiesOutputError: Swift.Error, Swift.Eq extension UpdateEndpointWeightsAndCapacitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateEndpointWeightsAndCapacitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpointArn = output.endpointArn } else { @@ -97427,9 +97203,8 @@ public enum UpdateExperimentOutputError: Swift.Error, Swift.Equatable { extension UpdateExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.experimentArn = output.experimentArn } else { @@ -97562,9 +97337,8 @@ public enum UpdateFeatureGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateFeatureGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFeatureGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.featureGroupArn = output.featureGroupArn } else { @@ -97875,9 +97649,8 @@ public enum UpdateHubOutputError: Swift.Error, Swift.Equatable { extension UpdateHubOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateHubOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hubArn = output.hubArn } else { @@ -98049,9 +97822,8 @@ public enum UpdateImageOutputError: Swift.Error, Swift.Equatable { extension UpdateImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageArn = output.imageArn } else { @@ -98336,9 +98108,8 @@ public enum UpdateImageVersionOutputError: Swift.Error, Swift.Equatable { extension UpdateImageVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateImageVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageVersionArn = output.imageVersionArn } else { @@ -98521,9 +98292,8 @@ public enum UpdateInferenceExperimentOutputError: Swift.Error, Swift.Equatable { extension UpdateInferenceExperimentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateInferenceExperimentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceExperimentArn = output.inferenceExperimentArn } else { @@ -98674,9 +98444,8 @@ public enum UpdateModelCardOutputError: Swift.Error, Swift.Equatable { extension UpdateModelCardOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateModelCardOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelCardArn = output.modelCardArn } else { @@ -98880,9 +98649,8 @@ public enum UpdateModelPackageOutputError: Swift.Error, Swift.Equatable { extension UpdateModelPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateModelPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.modelPackageArn = output.modelPackageArn } else { @@ -99033,9 +98801,8 @@ public enum UpdateMonitoringAlertOutputError: Swift.Error, Swift.Equatable { extension UpdateMonitoringAlertOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMonitoringAlertOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitoringAlertName = output.monitoringAlertName self.monitoringScheduleArn = output.monitoringScheduleArn @@ -99170,9 +98937,8 @@ public enum UpdateMonitoringScheduleOutputError: Swift.Error, Swift.Equatable { extension UpdateMonitoringScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMonitoringScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.monitoringScheduleArn = output.monitoringScheduleArn } else { @@ -99706,9 +99472,8 @@ public enum UpdatePipelineExecutionOutputError: Swift.Error, Swift.Equatable { extension UpdatePipelineExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePipelineExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineExecutionArn = output.pipelineExecutionArn } else { @@ -99889,9 +99654,8 @@ public enum UpdatePipelineOutputError: Swift.Error, Swift.Equatable { extension UpdatePipelineOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePipelineOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pipelineArn = output.pipelineArn } else { @@ -100046,9 +99810,8 @@ public enum UpdateProjectOutputError: Swift.Error, Swift.Equatable { extension UpdateProjectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProjectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.projectArn = output.projectArn } else { @@ -100187,9 +99950,8 @@ public enum UpdateSpaceOutputError: Swift.Error, Swift.Equatable { extension UpdateSpaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSpaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.spaceArn = output.spaceArn } else { @@ -100346,9 +100108,8 @@ public enum UpdateTrainingJobOutputError: Swift.Error, Swift.Equatable { extension UpdateTrainingJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrainingJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trainingJobArn = output.trainingJobArn } else { @@ -100652,9 +100413,8 @@ public enum UpdateTrialComponentOutputError: Swift.Error, Swift.Equatable { extension UpdateTrialComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrialComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trialComponentArn = output.trialComponentArn } else { @@ -100777,9 +100537,8 @@ public enum UpdateTrialOutputError: Swift.Error, Swift.Equatable { extension UpdateTrialOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrialOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trialArn = output.trialArn } else { @@ -100917,9 +100676,8 @@ public enum UpdateUserProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateUserProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userProfileArn = output.userProfileArn } else { @@ -101064,9 +100822,8 @@ public enum UpdateWorkforceOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkforceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkforceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workforce = output.workforce } else { @@ -101224,9 +100981,8 @@ public enum UpdateWorkteamOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkteamOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkteamOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workteam = output.workteam } else { diff --git a/Sources/Services/AWSSageMakerA2IRuntime/SageMakerA2IRuntimeClient.swift b/Sources/Services/AWSSageMakerA2IRuntime/SageMakerA2IRuntimeClient.swift index 7366597b8e8..cc30462fb3b 100644 --- a/Sources/Services/AWSSageMakerA2IRuntime/SageMakerA2IRuntimeClient.swift +++ b/Sources/Services/AWSSageMakerA2IRuntime/SageMakerA2IRuntimeClient.swift @@ -208,6 +208,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHumanLoop") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHumanLoop") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHumanLoops") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -285,7 +288,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -305,6 +308,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startHumanLoop") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopHumanLoop") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -355,7 +360,7 @@ extension SageMakerA2IRuntimeClient: SageMakerA2IRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSageMakerA2IRuntime/models/Models.swift b/Sources/Services/AWSSageMakerA2IRuntime/models/Models.swift index 0416b224b22..a9c55525e72 100644 --- a/Sources/Services/AWSSageMakerA2IRuntime/models/Models.swift +++ b/Sources/Services/AWSSageMakerA2IRuntime/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension ConflictException { } /// Your request has the same name as another active human loop but has different input data. You cannot start two human loops with the same name and different input data. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -216,9 +215,8 @@ public enum DescribeHumanLoopOutputError: Swift.Error, Swift.Equatable { extension DescribeHumanLoopOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHumanLoopOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationTime = output.creationTime self.failureCode = output.failureCode @@ -568,9 +566,8 @@ extension SageMakerA2IRuntimeClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -584,7 +581,7 @@ extension InternalServerException { } /// We couldn't process your request because of an issue with the server. Try again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -731,9 +728,8 @@ public enum ListHumanLoopsOutputError: Swift.Error, Swift.Equatable { extension ListHumanLoopsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHumanLoopsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.humanLoopSummaries = output.humanLoopSummaries self.nextToken = output.nextToken @@ -792,9 +788,8 @@ extension ListHumanLoopsOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -808,7 +803,7 @@ extension ResourceNotFoundException { } /// We couldn't find the requested resource. Check that your resources exists and were created in the same AWS Region as your request, and try your request again. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -844,9 +839,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -860,7 +854,7 @@ extension ServiceQuotaExceededException { } /// You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your AWS account. For a list of Amazon A2I service quotes, see [Amazon Augmented AI Service Quotes](https://docs.aws.amazon.com/general/latest/gr/a2i.html). Delete some resources or request an increase in your service quota. You can request a quota increase using Service Quotas or the AWS Support Center. To request an increase, see [AWS Service Quotas](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) in the AWS General Reference. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1044,9 +1038,8 @@ public enum StartHumanLoopOutputError: Swift.Error, Swift.Equatable { extension StartHumanLoopOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartHumanLoopOutputResponseBody = try responseDecoder.decode(responseBody: data) self.humanLoopArn = output.humanLoopArn } else { @@ -1171,9 +1164,8 @@ public struct StopHumanLoopOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1187,7 +1179,7 @@ extension ThrottlingException { } /// You exceeded the maximum number of requests. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1223,9 +1215,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1239,7 +1230,7 @@ extension ValidationException { } /// The request isn't valid. Check the syntax and try again. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntimeClient.swift b/Sources/Services/AWSSageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntimeClient.swift index 780f6f86c92..609d170468b 100644 --- a/Sources/Services/AWSSageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntimeClient.swift +++ b/Sources/Services/AWSSageMakerFeatureStoreRuntime/SageMakerFeatureStoreRuntimeClient.swift @@ -208,6 +208,7 @@ extension SageMakerFeatureStoreRuntimeClient: SageMakerFeatureStoreRuntimeClient .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SageMakerFeatureStoreRuntimeClient: SageMakerFeatureStoreRuntimeClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -247,6 +248,7 @@ extension SageMakerFeatureStoreRuntimeClient: SageMakerFeatureStoreRuntimeClient .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension SageMakerFeatureStoreRuntimeClient: SageMakerFeatureStoreRuntimeClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension SageMakerFeatureStoreRuntimeClient: SageMakerFeatureStoreRuntimeClient .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension SageMakerFeatureStoreRuntimeClient: SageMakerFeatureStoreRuntimeClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension SageMakerFeatureStoreRuntimeClient: SageMakerFeatureStoreRuntimeClient .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension SageMakerFeatureStoreRuntimeClient: SageMakerFeatureStoreRuntimeClient operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSageMakerFeatureStoreRuntime/models/Models.swift b/Sources/Services/AWSSageMakerFeatureStoreRuntime/models/Models.swift index 20c7386b0ac..2e0291912ca 100644 --- a/Sources/Services/AWSSageMakerFeatureStoreRuntime/models/Models.swift +++ b/Sources/Services/AWSSageMakerFeatureStoreRuntime/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessForbidden { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessForbiddenBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessForbidden { } /// You do not have permission to perform an action. -public struct AccessForbidden: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessForbidden: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -294,9 +293,8 @@ public enum BatchGetRecordOutputError: Swift.Error, Swift.Equatable { extension BatchGetRecordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetRecordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.records = output.records @@ -743,9 +741,8 @@ public enum GetRecordOutputError: Swift.Error, Swift.Equatable { extension GetRecordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.record = output.record } else { @@ -793,9 +790,8 @@ extension GetRecordOutputResponseBody: Swift.Decodable { extension InternalFailure { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -809,7 +805,7 @@ extension InternalFailure { } /// An internal failure occurred. Try your request again. If the problem persists, contact Amazon Web Services customer support. -public struct InternalFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -981,9 +977,8 @@ public struct PutRecordOutputResponse: Swift.Equatable { extension ResourceNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -997,7 +992,7 @@ extension ResourceNotFound { } /// A resource that is required to perform an action was not found. -public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1033,9 +1028,8 @@ extension ResourceNotFoundBody: Swift.Decodable { extension ServiceUnavailable { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1049,7 +1043,7 @@ extension ServiceUnavailable { } /// The service is currently unavailable. -public struct ServiceUnavailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1117,9 +1111,8 @@ extension SageMakerFeatureStoreRuntimeClientTypes { extension ValidationError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1133,7 +1126,7 @@ extension ValidationError { } /// There was an error validating your request. -public struct ValidationError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSageMakerGeospatial/SageMakerGeospatialClient.swift b/Sources/Services/AWSSageMakerGeospatial/SageMakerGeospatialClient.swift index d854e273894..6c858c7e2b5 100644 --- a/Sources/Services/AWSSageMakerGeospatial/SageMakerGeospatialClient.swift +++ b/Sources/Services/AWSSageMakerGeospatial/SageMakerGeospatialClient.swift @@ -208,6 +208,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEarthObservationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVectorEnrichmentJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportEarthObservationJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -295,7 +298,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -315,6 +318,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportVectorEnrichmentJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -338,7 +342,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -358,6 +362,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEarthObservationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -370,7 +375,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -390,6 +395,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRasterDataCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -402,7 +408,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -422,6 +428,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -435,7 +442,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +462,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVectorEnrichmentJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -467,7 +475,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -487,6 +495,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEarthObservationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -502,7 +511,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -522,6 +531,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRasterDataCollections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +545,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +565,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -567,7 +578,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +598,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVectorEnrichmentJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -602,7 +614,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -622,6 +634,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchRasterDataCollection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -637,7 +650,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +670,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startEarthObservationJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -680,7 +694,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +714,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startVectorEnrichmentJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -723,7 +738,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -743,6 +758,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopEarthObservationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -758,7 +774,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -778,6 +794,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopVectorEnrichmentJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -793,7 +810,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -813,6 +830,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -828,7 +846,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -848,6 +866,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker-geospatial") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -861,7 +880,7 @@ extension SageMakerGeospatialClient: SageMakerGeospatialClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSageMakerGeospatial/models/Models.swift b/Sources/Services/AWSSageMakerGeospatial/models/Models.swift index 8948d4d8662..02f4ed5831b 100644 --- a/Sources/Services/AWSSageMakerGeospatial/models/Models.swift +++ b/Sources/Services/AWSSageMakerGeospatial/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -552,9 +551,8 @@ extension SageMakerGeospatialClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -570,7 +568,7 @@ extension ConflictException { } /// Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1237,9 +1235,8 @@ public enum ExportEarthObservationJobOutputError: Swift.Error, Swift.Equatable { extension ExportEarthObservationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportEarthObservationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -1659,9 +1656,8 @@ public enum ExportVectorEnrichmentJobOutputError: Swift.Error, Swift.Equatable { extension ExportVectorEnrichmentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportVectorEnrichmentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -2013,9 +2009,8 @@ public enum GetEarthObservationJobOutputError: Swift.Error, Swift.Equatable { extension GetEarthObservationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEarthObservationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -2270,9 +2265,8 @@ public enum GetRasterDataCollectionOutputError: Swift.Error, Swift.Equatable { extension GetRasterDataCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRasterDataCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.description = output.description @@ -2584,9 +2578,12 @@ public enum GetTileOutputError: Swift.Error, Swift.Equatable { extension GetTileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - self.binaryFile = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.binaryFile = .data(data) + case .stream(let stream): + self.binaryFile = .stream(stream) + case .none: self.binaryFile = nil } } @@ -2683,9 +2680,8 @@ public enum GetVectorEnrichmentJobOutputError: Swift.Error, Swift.Equatable { extension GetVectorEnrichmentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVectorEnrichmentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -3016,9 +3012,8 @@ extension SageMakerGeospatialClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -3034,7 +3029,7 @@ extension InternalServerException { } /// The request processing has failed because of an unknown error, exception, or failure. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3601,9 +3596,8 @@ extension ListEarthObservationJobsOutputResponse: Swift.CustomDebugStringConvert extension ListEarthObservationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEarthObservationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.earthObservationJobSummaries = output.earthObservationJobSummaries self.nextToken = output.nextToken @@ -3750,9 +3744,8 @@ extension ListRasterDataCollectionsOutputResponse: Swift.CustomDebugStringConver extension ListRasterDataCollectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRasterDataCollectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.rasterDataCollectionSummaries = output.rasterDataCollectionSummaries @@ -3872,9 +3865,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4170,9 +4162,8 @@ extension ListVectorEnrichmentJobsOutputResponse: Swift.CustomDebugStringConvert extension ListVectorEnrichmentJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVectorEnrichmentJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vectorEnrichmentJobSummaries = output.vectorEnrichmentJobSummaries @@ -5562,9 +5553,8 @@ extension SageMakerGeospatialClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -5580,7 +5570,7 @@ extension ResourceNotFoundException { } /// The request references a resource which does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5842,9 +5832,8 @@ extension SearchRasterDataCollectionOutputResponse: Swift.CustomDebugStringConve extension SearchRasterDataCollectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchRasterDataCollectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateResultCount = output.approximateResultCount self.items = output.items @@ -5913,9 +5902,8 @@ extension SearchRasterDataCollectionOutputResponseBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -5931,7 +5919,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded the service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6235,9 +6223,8 @@ public enum StartEarthObservationJobOutputError: Swift.Error, Swift.Equatable { extension StartEarthObservationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartEarthObservationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -6550,9 +6537,8 @@ public enum StartVectorEnrichmentJobOutputError: Swift.Error, Swift.Equatable { extension StartVectorEnrichmentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartVectorEnrichmentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -7149,9 +7135,8 @@ extension SageMakerGeospatialClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -7167,7 +7152,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7488,9 +7473,8 @@ extension SageMakerGeospatialClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -7506,7 +7490,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSageMakerMetrics/SageMakerMetricsClient.swift b/Sources/Services/AWSSageMakerMetrics/SageMakerMetricsClient.swift index 921e41cdef0..2edd90352be 100644 --- a/Sources/Services/AWSSageMakerMetrics/SageMakerMetricsClient.swift +++ b/Sources/Services/AWSSageMakerMetrics/SageMakerMetricsClient.swift @@ -208,6 +208,7 @@ extension SageMakerMetricsClient: SageMakerMetricsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchPutMetrics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SageMakerMetricsClient: SageMakerMetricsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSageMakerMetrics/models/Models.swift b/Sources/Services/AWSSageMakerMetrics/models/Models.swift index 207b9e2da8e..d7b5e26a56e 100644 --- a/Sources/Services/AWSSageMakerMetrics/models/Models.swift +++ b/Sources/Services/AWSSageMakerMetrics/models/Models.swift @@ -150,9 +150,8 @@ public enum BatchPutMetricsOutputError: Swift.Error, Swift.Equatable { extension BatchPutMetricsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchPutMetricsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors } else { diff --git a/Sources/Services/AWSSageMakerRuntime/SageMakerRuntimeClient.swift b/Sources/Services/AWSSageMakerRuntime/SageMakerRuntimeClient.swift index fdc3940ae25..3d45a74965f 100644 --- a/Sources/Services/AWSSageMakerRuntime/SageMakerRuntimeClient.swift +++ b/Sources/Services/AWSSageMakerRuntime/SageMakerRuntimeClient.swift @@ -208,6 +208,7 @@ extension SageMakerRuntimeClient: SageMakerRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "invokeEndpoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension SageMakerRuntimeClient: SageMakerRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SageMakerRuntimeClient: SageMakerRuntimeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "invokeEndpointAsync") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -257,7 +259,7 @@ extension SageMakerRuntimeClient: SageMakerRuntimeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSageMakerRuntime/models/Models.swift b/Sources/Services/AWSSageMakerRuntime/models/Models.swift index 3e1e9743fbe..293ed4f5799 100644 --- a/Sources/Services/AWSSageMakerRuntime/models/Models.swift +++ b/Sources/Services/AWSSageMakerRuntime/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension InternalDependencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalDependencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension InternalDependencyException { } /// Your request caused an exception with an internal dependency. Contact customer support. -public struct InternalDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension InternalDependencyExceptionBody: Swift.Decodable { extension InternalFailure { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension InternalFailure { } /// An internal failure occurred. -public struct InternalFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -237,9 +235,8 @@ extension InvokeEndpointAsyncOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.outputLocation = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvokeEndpointAsyncOutputResponseBody = try responseDecoder.decode(responseBody: data) self.inferenceId = output.inferenceId } else { @@ -298,9 +295,9 @@ public struct InvokeEndpointInputBodyMiddleware: ClientRuntime.Middleware { Self.Context == H.Context { if let body = input.operationInput.body { - let bodydata = body - let bodybody = ClientRuntime.HttpBody.data(bodydata) - input.builder.withBody(bodybody) + let bodyData = body + let bodyBody = ClientRuntime.HttpBody.data(bodyData) + input.builder.withBody(bodyBody) } return try await next.handle(context: context, input: input) } @@ -488,9 +485,12 @@ extension InvokeEndpointOutputResponse: ClientRuntime.HttpResponseBinding { } else { self.invokedProductionVariant = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.body = data - } else { + case .stream(let stream): + self.body = try stream.readToEnd() + case .none: self.body = nil } } @@ -539,9 +539,8 @@ extension InvokeEndpointOutputResponseBody: Swift.Decodable { extension ModelError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModelErrorBody = try responseDecoder.decode(responseBody: data) self.logStreamArn = output.logStreamArn self.message = output.message @@ -561,7 +560,7 @@ extension ModelError { } /// Model (owned by the customer in the container) returned 4xx or 5xx error code. -public struct ModelError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ModelError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -621,9 +620,8 @@ extension ModelErrorBody: Swift.Decodable { extension ModelNotReadyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ModelNotReadyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -637,7 +635,7 @@ extension ModelNotReadyException { } /// Either a serverless endpoint variant's resources are still being provisioned, or a multi-model endpoint is still downloading or loading the target model. Wait and try your request again. -public struct ModelNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ModelNotReadyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -673,9 +671,8 @@ extension ModelNotReadyExceptionBody: Swift.Decodable { extension ServiceUnavailable { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -689,7 +686,7 @@ extension ServiceUnavailable { } /// The service is unavailable. Try your call again. -public struct ServiceUnavailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailable: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -725,9 +722,8 @@ extension ServiceUnavailableBody: Swift.Decodable { extension ValidationError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -741,7 +737,7 @@ extension ValidationError { } /// Inspect your request and try again. -public struct ValidationError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSagemakerEdge/SagemakerEdgeClient.swift b/Sources/Services/AWSSagemakerEdge/SagemakerEdgeClient.swift index e0508f1df42..b417af0917c 100644 --- a/Sources/Services/AWSSagemakerEdge/SagemakerEdgeClient.swift +++ b/Sources/Services/AWSSagemakerEdge/SagemakerEdgeClient.swift @@ -208,6 +208,7 @@ extension SagemakerEdgeClient: SagemakerEdgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeployments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SagemakerEdgeClient: SagemakerEdgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension SagemakerEdgeClient: SagemakerEdgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDeviceRegistration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension SagemakerEdgeClient: SagemakerEdgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension SagemakerEdgeClient: SagemakerEdgeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "sagemaker") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendHeartbeat") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension SagemakerEdgeClient: SagemakerEdgeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSagemakerEdge/models/Models.swift b/Sources/Services/AWSSagemakerEdge/models/Models.swift index 9072cd8889e..38549a93327 100644 --- a/Sources/Services/AWSSagemakerEdge/models/Models.swift +++ b/Sources/Services/AWSSagemakerEdge/models/Models.swift @@ -663,9 +663,8 @@ public enum GetDeploymentsOutputError: Swift.Error, Swift.Equatable { extension GetDeploymentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeploymentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deployments = output.deployments } else { @@ -796,9 +795,8 @@ public enum GetDeviceRegistrationOutputError: Swift.Error, Swift.Equatable { extension GetDeviceRegistrationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDeviceRegistrationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheTTL = output.cacheTTL self.deviceRegistration = output.deviceRegistration @@ -847,9 +845,8 @@ extension GetDeviceRegistrationOutputResponseBody: Swift.Decodable { extension InternalServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -863,7 +860,7 @@ extension InternalServiceException { } /// An internal failure occurred. Try your request again. If the problem persists, contact Amazon Web Services customer support. -public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSavingsplans/SavingsplansClient.swift b/Sources/Services/AWSSavingsplans/SavingsplansClient.swift index aa157a08784..bcd89d64cb1 100644 --- a/Sources/Services/AWSSavingsplans/SavingsplansClient.swift +++ b/Sources/Services/AWSSavingsplans/SavingsplansClient.swift @@ -208,6 +208,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSavingsPlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteQueuedSavingsPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -266,7 +268,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSavingsPlanRates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -301,7 +304,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -321,6 +324,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSavingsPlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -336,7 +340,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -356,6 +360,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSavingsPlansOfferingRates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -371,7 +376,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -391,6 +396,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSavingsPlansOfferings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -406,7 +412,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -426,6 +432,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -441,7 +448,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -461,6 +468,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { .withRegion(value: config.region) .withSigningName(value: "savingsplans") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -511,7 +520,7 @@ extension SavingsplansClient: SavingsplansClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSavingsplans/models/Models.swift b/Sources/Services/AWSSavingsplans/models/Models.swift index a080d932d12..5e13d4e7480 100644 --- a/Sources/Services/AWSSavingsplans/models/Models.swift +++ b/Sources/Services/AWSSavingsplans/models/Models.swift @@ -153,9 +153,8 @@ public enum CreateSavingsPlanOutputError: Swift.Error, Swift.Equatable { extension CreateSavingsPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSavingsPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.savingsPlanId = output.savingsPlanId } else { @@ -432,9 +431,8 @@ public enum DescribeSavingsPlanRatesOutputError: Swift.Error, Swift.Equatable { extension DescribeSavingsPlanRatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSavingsPlanRatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.savingsPlanId = output.savingsPlanId @@ -932,9 +930,8 @@ public enum DescribeSavingsPlansOfferingRatesOutputError: Swift.Error, Swift.Equ extension DescribeSavingsPlansOfferingRatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSavingsPlansOfferingRatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.searchResults = output.searchResults @@ -1327,9 +1324,8 @@ public enum DescribeSavingsPlansOfferingsOutputError: Swift.Error, Swift.Equatab extension DescribeSavingsPlansOfferingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSavingsPlansOfferingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.searchResults = output.searchResults @@ -1411,9 +1407,8 @@ public enum DescribeSavingsPlansOutputError: Swift.Error, Swift.Equatable { extension DescribeSavingsPlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSavingsPlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.savingsPlans = output.savingsPlans @@ -1471,9 +1466,8 @@ extension DescribeSavingsPlansOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1487,7 +1481,7 @@ extension InternalServerException { } /// An unexpected error occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1598,9 +1592,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1733,9 +1726,8 @@ extension SavingsplansClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1749,7 +1741,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3251,9 +3243,8 @@ extension SavingsplansClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3267,7 +3258,7 @@ extension ServiceQuotaExceededException { } /// A service quota has been exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3524,9 +3515,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3540,7 +3530,7 @@ extension ValidationException { } /// One of the input parameters is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSScheduler/SchedulerClient.swift b/Sources/Services/AWSScheduler/SchedulerClient.swift index 203023ebf58..fd38c8710d8 100644 --- a/Sources/Services/AWSScheduler/SchedulerClient.swift +++ b/Sources/Services/AWSScheduler/SchedulerClient.swift @@ -208,6 +208,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSchedule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createScheduleGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchedule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -315,7 +318,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -335,6 +338,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScheduleGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -356,7 +360,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -376,6 +380,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +394,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +414,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getScheduleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -421,7 +427,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -441,6 +447,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listScheduleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -454,7 +461,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -474,6 +481,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchedules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +495,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +515,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +528,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +548,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -554,7 +564,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -574,6 +584,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -587,7 +598,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -607,6 +618,7 @@ extension SchedulerClient: SchedulerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "scheduler") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSchedule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -630,7 +642,7 @@ extension SchedulerClient: SchedulerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSScheduler/models/Models.swift b/Sources/Services/AWSScheduler/models/Models.swift index 4d926a04584..882dfb41478 100644 --- a/Sources/Services/AWSScheduler/models/Models.swift +++ b/Sources/Services/AWSScheduler/models/Models.swift @@ -172,9 +172,8 @@ extension SchedulerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -188,7 +187,7 @@ extension ConflictException { } /// Updating or deleting the resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -334,9 +333,8 @@ public enum CreateScheduleGroupOutputError: Swift.Error, Swift.Equatable { extension CreateScheduleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScheduleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduleGroupArn = output.scheduleGroupArn } else { @@ -595,9 +593,8 @@ public enum CreateScheduleOutputError: Swift.Error, Swift.Equatable { extension CreateScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduleArn = output.scheduleArn } else { @@ -1266,9 +1263,8 @@ public enum GetScheduleGroupOutputError: Swift.Error, Swift.Equatable { extension GetScheduleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetScheduleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDate = output.creationDate @@ -1423,9 +1419,8 @@ public enum GetScheduleOutputError: Swift.Error, Swift.Equatable { extension GetScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationDate = output.creationDate @@ -1603,9 +1598,8 @@ extension GetScheduleOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1619,7 +1613,7 @@ extension InternalServerException { } /// Unexpected error encountered while processing the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1809,9 +1803,8 @@ public enum ListScheduleGroupsOutputError: Swift.Error, Swift.Equatable { extension ListScheduleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListScheduleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduleGroups = output.scheduleGroups @@ -1970,9 +1963,8 @@ public enum ListSchedulesOutputError: Swift.Error, Swift.Equatable { extension ListSchedulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchedulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schedules = output.schedules @@ -2090,9 +2082,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2361,9 +2352,8 @@ extension SchedulerClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2377,7 +2367,7 @@ extension ResourceNotFoundException { } /// The request references a resource which does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2787,9 +2777,8 @@ extension SchedulerClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2803,7 +2792,7 @@ extension ServiceQuotaExceededException { } /// The request exceeds a service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3193,9 +3182,8 @@ extension SchedulerClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3209,7 +3197,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3556,9 +3544,8 @@ public enum UpdateScheduleOutputError: Swift.Error, Swift.Equatable { extension UpdateScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduleArn = output.scheduleArn } else { @@ -3598,9 +3585,8 @@ extension UpdateScheduleOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3614,7 +3600,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSchemas/SchemasClient.swift b/Sources/Services/AWSSchemas/SchemasClient.swift index 06d1b37c219..8ef85866c05 100644 --- a/Sources/Services/AWSSchemas/SchemasClient.swift +++ b/Sources/Services/AWSSchemas/SchemasClient.swift @@ -208,6 +208,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDiscoverer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDiscoverer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -390,7 +396,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -410,6 +416,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -422,7 +429,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -442,6 +449,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSchemaVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -454,7 +462,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -474,6 +482,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCodeBinding") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -487,7 +496,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -507,6 +516,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDiscoverer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -519,7 +529,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -539,6 +549,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -551,7 +562,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +582,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +596,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -603,6 +615,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -616,7 +629,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +649,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCodeBindingSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -649,7 +663,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -669,6 +683,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDiscoveredSchema") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -684,7 +699,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -704,6 +719,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -717,7 +733,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -737,6 +753,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDiscoverers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +767,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +787,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegistries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -783,7 +801,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -803,6 +821,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchemaVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +835,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +855,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +869,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +889,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -881,7 +902,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -901,6 +922,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putCodeBinding") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -914,7 +936,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -934,6 +956,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -950,7 +973,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -970,6 +993,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchSchemas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -983,7 +1007,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1003,6 +1027,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDiscoverer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1015,7 +1040,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1035,6 +1060,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopDiscoverer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1047,7 +1073,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1067,6 +1093,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1082,7 +1109,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1102,6 +1129,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1115,7 +1143,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1135,6 +1163,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDiscoverer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1150,7 +1179,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1170,6 +1199,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRegistry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1185,7 +1215,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1205,6 +1235,7 @@ extension SchemasClient: SchemasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "schemas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSchema") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1228,7 +1259,7 @@ extension SchemasClient: SchemasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSchemas/models/Models.swift b/Sources/Services/AWSSchemas/models/Models.swift index 75a4a73b385..a6583e6e4db 100644 --- a/Sources/Services/AWSSchemas/models/Models.swift +++ b/Sources/Services/AWSSchemas/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -21,7 +20,7 @@ extension BadRequestException { } } -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -103,9 +102,8 @@ extension SchemasClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -120,7 +118,7 @@ extension ConflictException { } } -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -295,9 +293,8 @@ public enum CreateDiscovererOutputError: Swift.Error, Swift.Equatable { extension CreateDiscovererOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDiscovererOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossAccount = output.crossAccount self.description = output.description @@ -516,9 +513,8 @@ public enum CreateRegistryOutputError: Swift.Error, Swift.Equatable { extension CreateRegistryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRegistryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.registryArn = output.registryArn @@ -737,9 +733,8 @@ public enum CreateSchemaOutputError: Swift.Error, Swift.Equatable { extension CreateSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.lastModified = output.lastModified @@ -1368,9 +1363,8 @@ public enum DescribeCodeBindingOutputError: Swift.Error, Swift.Equatable { extension DescribeCodeBindingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCodeBindingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.lastModified = output.lastModified @@ -1502,9 +1496,8 @@ public enum DescribeDiscovererOutputError: Swift.Error, Swift.Equatable { extension DescribeDiscovererOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDiscovererOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossAccount = output.crossAccount self.description = output.description @@ -1675,9 +1668,8 @@ public enum DescribeRegistryOutputError: Swift.Error, Swift.Equatable { extension DescribeRegistryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRegistryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.registryArn = output.registryArn @@ -1843,9 +1835,8 @@ public enum DescribeSchemaOutputError: Swift.Error, Swift.Equatable { extension DescribeSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content self.description = output.description @@ -2201,9 +2192,8 @@ public enum ExportSchemaOutputError: Swift.Error, Swift.Equatable { extension ExportSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content self.schemaArn = output.schemaArn @@ -2277,9 +2267,8 @@ extension ExportSchemaOutputResponseBody: Swift.Decodable { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2294,7 +2283,7 @@ extension ForbiddenException { } } -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2437,9 +2426,12 @@ public enum GetCodeBindingSourceOutputError: Swift.Error, Swift.Equatable { extension GetCodeBindingSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.body = data - } else { + case .stream(let stream): + self.body = try stream.readToEnd() + case .none: self.body = nil } } @@ -2577,9 +2569,8 @@ public enum GetDiscoveredSchemaOutputError: Swift.Error, Swift.Equatable { extension GetDiscoveredSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDiscoveredSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content } else { @@ -2690,9 +2681,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.revisionId = output.revisionId @@ -2741,9 +2731,8 @@ extension GetResourcePolicyOutputResponseBody: Swift.Decodable { extension GoneException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GoneExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2758,7 +2747,7 @@ extension GoneException { } } -public struct GoneException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct GoneException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2805,9 +2794,8 @@ extension GoneExceptionBody: Swift.Decodable { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2822,7 +2810,7 @@ extension InternalServerErrorException { } } -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2962,9 +2950,8 @@ public enum ListDiscoverersOutputError: Swift.Error, Swift.Equatable { extension ListDiscoverersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDiscoverersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.discoverers = output.discoverers self.nextToken = output.nextToken @@ -3115,9 +3102,8 @@ public enum ListRegistriesOutputError: Swift.Error, Swift.Equatable { extension ListRegistriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegistriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.registries = output.registries @@ -3270,9 +3256,8 @@ public enum ListSchemaVersionsOutputError: Swift.Error, Swift.Equatable { extension ListSchemaVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchemaVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemaVersions = output.schemaVersions @@ -3423,9 +3408,8 @@ public enum ListSchemasOutputError: Swift.Error, Swift.Equatable { extension ListSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemas = output.schemas @@ -3542,9 +3526,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3592,9 +3575,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3609,7 +3591,7 @@ extension NotFoundException { } } -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3656,9 +3638,8 @@ extension NotFoundExceptionBody: Swift.Decodable { extension PreconditionFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3673,7 +3654,7 @@ extension PreconditionFailedException { } } -public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3818,9 +3799,8 @@ public enum PutCodeBindingOutputError: Swift.Error, Swift.Equatable { extension PutCodeBindingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutCodeBindingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.creationDate = output.creationDate self.lastModified = output.lastModified @@ -4001,9 +3981,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.revisionId = output.revisionId @@ -4495,9 +4474,8 @@ public enum SearchSchemasOutputError: Swift.Error, Swift.Equatable { extension SearchSchemasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchSchemasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.schemas = output.schemas @@ -4555,9 +4533,8 @@ extension SearchSchemasOutputResponseBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4572,7 +4549,7 @@ extension ServiceUnavailableException { } } -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4682,9 +4659,8 @@ public enum StartDiscovererOutputError: Swift.Error, Swift.Equatable { extension StartDiscovererOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDiscovererOutputResponseBody = try responseDecoder.decode(responseBody: data) self.discovererId = output.discovererId self.state = output.state @@ -4796,9 +4772,8 @@ public enum StopDiscovererOutputError: Swift.Error, Swift.Equatable { extension StopDiscovererOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopDiscovererOutputResponseBody = try responseDecoder.decode(responseBody: data) self.discovererId = output.discovererId self.state = output.state @@ -4954,9 +4929,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4971,7 +4945,7 @@ extension TooManyRequestsException { } } -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5050,9 +5024,8 @@ extension SchemasClientTypes { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -5067,7 +5040,7 @@ extension UnauthorizedException { } } -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5304,9 +5277,8 @@ public enum UpdateDiscovererOutputError: Swift.Error, Swift.Equatable { extension UpdateDiscovererOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDiscovererOutputResponseBody = try responseDecoder.decode(responseBody: data) self.crossAccount = output.crossAccount self.description = output.description @@ -5502,9 +5474,8 @@ public enum UpdateRegistryOutputError: Swift.Error, Swift.Equatable { extension UpdateRegistryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRegistryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.registryArn = output.registryArn @@ -5711,9 +5682,8 @@ public enum UpdateSchemaOutputError: Swift.Error, Swift.Equatable { extension UpdateSchemaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSchemaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.lastModified = output.lastModified diff --git a/Sources/Services/AWSSecretsManager/SecretsManagerClient.swift b/Sources/Services/AWSSecretsManager/SecretsManagerClient.swift index 748755fe62b..f2e2072c84b 100644 --- a/Sources/Services/AWSSecretsManager/SecretsManagerClient.swift +++ b/Sources/Services/AWSSecretsManager/SecretsManagerClient.swift @@ -208,6 +208,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelRotateSecret") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSecret") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -268,7 +270,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSecret") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSecret") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRandomPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +438,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSecretValue") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecretVersionIds") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecrets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +566,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -592,7 +603,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -612,6 +623,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSecretValue") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -636,7 +648,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -656,6 +668,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeRegionsFromReplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +685,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +705,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "replicateSecretToRegions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +722,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +742,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreSecret") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +759,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +779,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rotateSecret") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -788,7 +804,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -808,6 +824,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopReplicationToReplica") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -824,7 +841,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -859,6 +876,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -875,7 +893,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -895,6 +913,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -911,7 +930,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -931,6 +950,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecret") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -955,7 +975,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -975,6 +995,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecretVersionStage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -991,7 +1012,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1020,6 +1041,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "secretsmanager") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1036,7 +1058,7 @@ extension SecretsManagerClient: SecretsManagerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSecretsManager/models/Models.swift b/Sources/Services/AWSSecretsManager/models/Models.swift index cd34513c8e3..2faf251be7b 100644 --- a/Sources/Services/AWSSecretsManager/models/Models.swift +++ b/Sources/Services/AWSSecretsManager/models/Models.swift @@ -80,9 +80,8 @@ public enum CancelRotateSecretOutputError: Swift.Error, Swift.Equatable { extension CancelRotateSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelRotateSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -375,9 +374,8 @@ public enum CreateSecretOutputError: Swift.Error, Swift.Equatable { extension CreateSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -461,9 +459,8 @@ extension CreateSecretOutputResponseBody: Swift.Decodable { extension DecryptionFailure { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DecryptionFailureBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -477,7 +474,7 @@ extension DecryptionFailure { } /// Secrets Manager can't decrypt the protected secret text using the provided KMS key. -public struct DecryptionFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DecryptionFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -589,9 +586,8 @@ public enum DeleteResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension DeleteResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -740,9 +736,8 @@ public enum DeleteSecretOutputError: Swift.Error, Swift.Equatable { extension DeleteSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.deletionDate = output.deletionDate @@ -875,9 +870,8 @@ public enum DescribeSecretOutputError: Swift.Error, Swift.Equatable { extension DescribeSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdDate = output.createdDate @@ -1135,9 +1129,8 @@ extension DescribeSecretOutputResponseBody: Swift.Decodable { extension EncryptionFailure { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EncryptionFailureBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1151,7 +1144,7 @@ extension EncryptionFailure { } /// Secrets Manager can't encrypt the protected secret text using the provided KMS key. Check that the KMS key is available, enabled, and not in an invalid state. For more information, see [Key state: Effect on your KMS key](https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html). -public struct EncryptionFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EncryptionFailure: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1467,9 +1460,8 @@ extension GetRandomPasswordOutputResponse: Swift.CustomDebugStringConvertible { extension GetRandomPasswordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRandomPasswordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.randomPassword = output.randomPassword } else { @@ -1584,9 +1576,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -1752,9 +1743,8 @@ extension GetSecretValueOutputResponse: Swift.CustomDebugStringConvertible { extension GetSecretValueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSecretValueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdDate = output.createdDate @@ -1862,9 +1852,8 @@ extension GetSecretValueOutputResponseBody: Swift.Decodable { extension InternalServiceError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1878,7 +1867,7 @@ extension InternalServiceError { } /// An error occurred on the server side. -public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1914,9 +1903,8 @@ extension InternalServiceErrorBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1930,7 +1918,7 @@ extension InvalidNextTokenException { } /// The NextToken value is invalid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1966,9 +1954,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1982,7 +1969,7 @@ extension InvalidParameterException { } /// The parameter name or value is invalid. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2018,9 +2005,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2040,7 +2026,7 @@ extension InvalidRequestException { /// * You tried to enable rotation on a secret that doesn't already have a Lambda function ARN configured and you didn't include such an ARN as a parameter in this call. /// /// * The secret is managed by another service, and you must use that service to update it. For more information, see [Secrets managed by other Amazon Web Services services](https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html). -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2076,9 +2062,8 @@ extension InvalidRequestExceptionBody: Swift.Decodable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2092,7 +2077,7 @@ extension LimitExceededException { } /// The request failed because it would exceed one of the Secrets Manager quotas. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2240,9 +2225,8 @@ public enum ListSecretVersionIdsOutputError: Swift.Error, Swift.Equatable { extension ListSecretVersionIdsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecretVersionIdsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -2453,9 +2437,8 @@ public enum ListSecretsOutputError: Swift.Error, Swift.Equatable { extension ListSecretsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecretsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.secretList = output.secretList @@ -2513,9 +2496,8 @@ extension ListSecretsOutputResponseBody: Swift.Decodable { extension MalformedPolicyDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedPolicyDocumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2529,7 +2511,7 @@ extension MalformedPolicyDocumentException { } /// The resource policy has syntax errors. -public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2565,9 +2547,8 @@ extension MalformedPolicyDocumentExceptionBody: Swift.Decodable { extension PreconditionNotMetException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionNotMetExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2581,7 +2562,7 @@ extension PreconditionNotMetException { } /// The request failed because you did not complete all the prerequisite steps. -public struct PreconditionNotMetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionNotMetException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2617,9 +2598,8 @@ extension PreconditionNotMetExceptionBody: Swift.Decodable { extension PublicPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PublicPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2633,7 +2613,7 @@ extension PublicPolicyException { } /// The BlockPublicPolicy parameter is set to true, and the resource policy did not prevent broad access to the secret. -public struct PublicPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PublicPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2774,9 +2754,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -2983,9 +2962,8 @@ public enum PutSecretValueOutputError: Swift.Error, Swift.Equatable { extension PutSecretValueOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSecretValueOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -3164,9 +3142,8 @@ public enum RemoveRegionsFromReplicationOutputError: Swift.Error, Swift.Equatabl extension RemoveRegionsFromReplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveRegionsFromReplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.replicationStatus = output.replicationStatus @@ -3382,9 +3359,8 @@ public enum ReplicateSecretToRegionsOutputError: Swift.Error, Swift.Equatable { extension ReplicateSecretToRegionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReplicateSecretToRegionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.replicationStatus = output.replicationStatus @@ -3517,9 +3493,8 @@ extension SecretsManagerClientTypes { extension ResourceExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3533,7 +3508,7 @@ extension ResourceExistsException { } /// A resource with the ID you requested already exists. -public struct ResourceExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3569,9 +3544,8 @@ extension ResourceExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3585,7 +3559,7 @@ extension ResourceNotFoundException { } /// Secrets Manager can't find the resource that you asked for. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3697,9 +3671,8 @@ public enum RestoreSecretOutputError: Swift.Error, Swift.Equatable { extension RestoreSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RestoreSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -3872,9 +3845,8 @@ public enum RotateSecretOutputError: Swift.Error, Swift.Equatable { extension RotateSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RotateSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -4459,9 +4431,8 @@ public enum StopReplicationToReplicaOutputError: Swift.Error, Swift.Equatable { extension StopReplicationToReplicaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopReplicationToReplicaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -4920,9 +4891,8 @@ public enum UpdateSecretOutputError: Swift.Error, Swift.Equatable { extension UpdateSecretOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSecretOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -5096,9 +5066,8 @@ public enum UpdateSecretVersionStageOutputError: Swift.Error, Swift.Equatable { extension UpdateSecretVersionStageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSecretVersionStageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.name = output.name @@ -5237,9 +5206,8 @@ public enum ValidateResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension ValidateResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policyValidationPassed = output.policyValidationPassed self.validationErrors = output.validationErrors diff --git a/Sources/Services/AWSSecurityHub/SecurityHubClient.swift b/Sources/Services/AWSSecurityHub/SecurityHubClient.swift index 8f7659d12e7..c1b7092c798 100644 --- a/Sources/Services/AWSSecurityHub/SecurityHubClient.swift +++ b/Sources/Services/AWSSecurityHub/SecurityHubClient.swift @@ -208,6 +208,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptAdministratorInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -259,7 +261,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -279,6 +281,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisableStandards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -294,7 +297,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -314,6 +317,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchEnableStandards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -329,7 +333,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -349,6 +353,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetSecurityControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -364,7 +369,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +389,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetStandardsControlAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -399,7 +405,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +456,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchImportFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +472,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -506,6 +513,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -521,7 +529,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -541,6 +549,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateStandardsControlAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +565,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +585,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createActionTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -591,7 +601,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -611,6 +621,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFindingAggregator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -626,7 +637,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -646,6 +657,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createInsight") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -661,7 +673,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -695,6 +707,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -710,7 +723,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -730,6 +743,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "declineInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -745,7 +759,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -765,6 +779,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteActionTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -777,7 +792,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -797,6 +812,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFindingAggregator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -809,7 +825,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -829,6 +845,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInsight") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -841,7 +858,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -861,6 +878,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -876,7 +894,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -896,6 +914,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -911,7 +930,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -931,6 +950,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeActionTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -946,7 +966,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -966,6 +986,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHub") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -979,7 +1000,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -999,6 +1020,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1011,7 +1033,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1031,6 +1053,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProducts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1044,7 +1067,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1064,6 +1087,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStandards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1077,7 +1101,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1097,6 +1121,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStandardsControls") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1110,7 +1135,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1130,6 +1155,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableImportFindingsForProduct") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1142,7 +1168,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1162,6 +1188,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1177,7 +1204,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1197,6 +1224,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableSecurityHub") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1209,7 +1237,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1229,6 +1257,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFromAdministratorAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1241,7 +1270,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1262,6 +1291,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFromMasterAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1274,7 +1304,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1294,6 +1324,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1309,7 +1340,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1329,6 +1360,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableImportFindingsForProduct") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1344,7 +1376,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1364,6 +1396,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableOrganizationAdminAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1379,7 +1412,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1406,6 +1439,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableSecurityHub") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1421,7 +1455,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1441,6 +1475,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAdministratorAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1453,7 +1488,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1473,6 +1508,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEnabledStandards") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1488,7 +1524,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1508,6 +1544,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindingAggregator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1555,7 +1593,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1575,6 +1613,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsightResults") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1587,7 +1626,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1607,6 +1646,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsights") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1622,7 +1662,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1642,6 +1682,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInvitationsCount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1654,7 +1695,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1675,6 +1716,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMasterAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1687,7 +1729,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1707,6 +1749,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1722,7 +1765,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1742,6 +1785,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "inviteMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1757,7 +1801,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1777,6 +1821,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listEnabledProductsForImport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1790,7 +1835,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1810,6 +1855,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFindingAggregators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1823,7 +1869,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1843,6 +1889,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1856,7 +1903,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1876,6 +1923,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1889,7 +1937,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1909,6 +1957,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizationAdminAccounts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1922,7 +1971,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1942,6 +1991,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityControlDefinitions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1955,7 +2005,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1975,6 +2025,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStandardsControlAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1988,7 +2039,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2008,6 +2059,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2020,7 +2072,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2040,6 +2092,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2055,7 +2108,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2075,6 +2128,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2088,7 +2142,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2108,6 +2162,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateActionTarget") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2123,7 +2178,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2143,6 +2198,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFindingAggregator") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2158,7 +2214,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2178,6 +2234,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFindings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2193,7 +2250,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2213,6 +2270,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInsight") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2228,7 +2286,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2248,6 +2306,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateOrganizationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2263,7 +2322,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2283,6 +2342,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSecurityHubConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2298,7 +2358,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2318,6 +2378,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securityhub") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateStandardsControl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2333,7 +2394,7 @@ extension SecurityHubClient: SecurityHubClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSecurityHub/models/Models.swift b/Sources/Services/AWSSecurityHub/models/Models.swift index 581cfda9406..ba434251aea 100644 --- a/Sources/Services/AWSSecurityHub/models/Models.swift +++ b/Sources/Services/AWSSecurityHub/models/Models.swift @@ -206,9 +206,8 @@ public struct AcceptInvitationOutputResponse: Swift.Equatable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -224,7 +223,7 @@ extension AccessDeniedException { } /// You don't have permission to perform the action specified in the request. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -38319,9 +38318,8 @@ public enum BatchDisableStandardsOutputError: Swift.Error, Swift.Equatable { extension BatchDisableStandardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisableStandardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.standardsSubscriptions = output.standardsSubscriptions } else { @@ -38457,9 +38455,8 @@ public enum BatchEnableStandardsOutputError: Swift.Error, Swift.Equatable { extension BatchEnableStandardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchEnableStandardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.standardsSubscriptions = output.standardsSubscriptions } else { @@ -38595,9 +38592,8 @@ public enum BatchGetSecurityControlsOutputError: Swift.Error, Swift.Equatable { extension BatchGetSecurityControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetSecurityControlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityControls = output.securityControls self.unprocessedIds = output.unprocessedIds @@ -38753,9 +38749,8 @@ public enum BatchGetStandardsControlAssociationsOutputError: Swift.Error, Swift. extension BatchGetStandardsControlAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetStandardsControlAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.standardsControlAssociationDetails = output.standardsControlAssociationDetails self.unprocessedAssociations = output.unprocessedAssociations @@ -38911,9 +38906,8 @@ public enum BatchImportFindingsOutputError: Swift.Error, Swift.Equatable { extension BatchImportFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchImportFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedCount = output.failedCount self.failedFindings = output.failedFindings @@ -39233,9 +39227,8 @@ public enum BatchUpdateFindingsOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.processedFindings = output.processedFindings self.unprocessedFindings = output.unprocessedFindings @@ -39474,9 +39467,8 @@ public enum BatchUpdateStandardsControlAssociationsOutputError: Swift.Error, Swi extension BatchUpdateStandardsControlAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateStandardsControlAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAssociationUpdates = output.unprocessedAssociationUpdates } else { @@ -40334,9 +40326,8 @@ public enum CreateActionTargetOutputError: Swift.Error, Swift.Equatable { extension CreateActionTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateActionTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionTargetArn = output.actionTargetArn } else { @@ -40484,9 +40475,8 @@ public enum CreateFindingAggregatorOutputError: Swift.Error, Swift.Equatable { extension CreateFindingAggregatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFindingAggregatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingAggregationRegion = output.findingAggregationRegion self.findingAggregatorArn = output.findingAggregatorArn @@ -40668,9 +40658,8 @@ public enum CreateInsightOutputError: Swift.Error, Swift.Equatable { extension CreateInsightOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateInsightOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightArn = output.insightArn } else { @@ -40800,9 +40789,8 @@ public enum CreateMembersOutputError: Swift.Error, Swift.Equatable { extension CreateMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -41321,9 +41309,8 @@ public enum DeclineInvitationsOutputError: Swift.Error, Swift.Equatable { extension DeclineInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeclineInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -41430,9 +41417,8 @@ public enum DeleteActionTargetOutputError: Swift.Error, Swift.Equatable { extension DeleteActionTargetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteActionTargetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionTargetArn = output.actionTargetArn } else { @@ -41606,9 +41592,8 @@ public enum DeleteInsightOutputError: Swift.Error, Swift.Equatable { extension DeleteInsightOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInsightOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightArn = output.insightArn } else { @@ -41738,9 +41723,8 @@ public enum DeleteInvitationsOutputError: Swift.Error, Swift.Equatable { extension DeleteInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -41878,9 +41862,8 @@ public enum DeleteMembersOutputError: Swift.Error, Swift.Equatable { extension DeleteMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -42039,9 +42022,8 @@ public enum DescribeActionTargetsOutputError: Swift.Error, Swift.Equatable { extension DescribeActionTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeActionTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionTargets = output.actionTargets self.nextToken = output.nextToken @@ -42170,9 +42152,8 @@ public enum DescribeHubOutputError: Swift.Error, Swift.Equatable { extension DescribeHubOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHubOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnableControls = output.autoEnableControls self.controlFindingGenerator = output.controlFindingGenerator @@ -42289,9 +42270,8 @@ public enum DescribeOrganizationConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeOrganizationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnable = output.autoEnable self.autoEnableStandards = output.autoEnableStandards @@ -42434,9 +42414,8 @@ public enum DescribeProductsOutputError: Swift.Error, Swift.Equatable { extension DescribeProductsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProductsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.products = output.products @@ -42579,9 +42558,8 @@ public enum DescribeStandardsControlsOutputError: Swift.Error, Swift.Equatable { extension DescribeStandardsControlsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStandardsControlsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.controls = output.controls self.nextToken = output.nextToken @@ -42713,9 +42691,8 @@ public enum DescribeStandardsOutputError: Swift.Error, Swift.Equatable { extension DescribeStandardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStandardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.standards = output.standards @@ -43341,9 +43318,8 @@ public enum EnableImportFindingsForProductOutputError: Swift.Error, Swift.Equata extension EnableImportFindingsForProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EnableImportFindingsForProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.productSubscriptionArn = output.productSubscriptionArn } else { @@ -44190,9 +44166,8 @@ public enum GetAdministratorAccountOutputError: Swift.Error, Swift.Equatable { extension GetAdministratorAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAdministratorAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.administrator = output.administrator } else { @@ -44342,9 +44317,8 @@ public enum GetEnabledStandardsOutputError: Swift.Error, Swift.Equatable { extension GetEnabledStandardsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEnabledStandardsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.standardsSubscriptions = output.standardsSubscriptions @@ -44465,9 +44439,8 @@ public enum GetFindingAggregatorOutputError: Swift.Error, Swift.Equatable { extension GetFindingAggregatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingAggregatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingAggregationRegion = output.findingAggregationRegion self.findingAggregatorArn = output.findingAggregatorArn @@ -44668,9 +44641,8 @@ public enum GetFindingsOutputError: Swift.Error, Swift.Equatable { extension GetFindingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFindingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findings = output.findings self.nextToken = output.nextToken @@ -44790,9 +44762,8 @@ public enum GetInsightResultsOutputError: Swift.Error, Swift.Equatable { extension GetInsightResultsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightResultsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightResults = output.insightResults } else { @@ -44945,9 +44916,8 @@ public enum GetInsightsOutputError: Swift.Error, Swift.Equatable { extension GetInsightsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insights = output.insights self.nextToken = output.nextToken @@ -45054,9 +45024,8 @@ public enum GetInvitationsCountOutputError: Swift.Error, Swift.Equatable { extension GetInvitationsCountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInvitationsCountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invitationsCount = output.invitationsCount } else { @@ -45145,9 +45114,8 @@ public enum GetMasterAccountOutputError: Swift.Error, Swift.Equatable { extension GetMasterAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMasterAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.master = output.master } else { @@ -45276,9 +45244,8 @@ public enum GetMembersOutputError: Swift.Error, Swift.Equatable { extension GetMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.unprocessedAccounts = output.unprocessedAccounts @@ -45669,9 +45636,8 @@ extension SecurityHubClientTypes { extension InternalException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -45687,7 +45653,7 @@ extension InternalException { } /// Internal server error. -public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -45730,9 +45696,8 @@ extension InternalExceptionBody: Swift.Decodable { extension InvalidAccessException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAccessExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -45748,7 +45713,7 @@ extension InvalidAccessException { } /// The account doesn't have permission to perform this action. -public struct InvalidAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -45791,9 +45756,8 @@ extension InvalidAccessExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -45809,7 +45773,7 @@ extension InvalidInputException { } /// The request was rejected because you supplied an invalid or out-of-range value for an input parameter. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46007,9 +45971,8 @@ public enum InviteMembersOutputError: Swift.Error, Swift.Equatable { extension InviteMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InviteMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedAccounts = output.unprocessedAccounts } else { @@ -46259,9 +46222,8 @@ extension SecurityHubClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -46277,7 +46239,7 @@ extension LimitExceededException { } /// The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -46394,9 +46356,8 @@ public enum ListEnabledProductsForImportOutputError: Swift.Error, Swift.Equatabl extension ListEnabledProductsForImportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListEnabledProductsForImportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.productSubscriptions = output.productSubscriptions @@ -46532,9 +46493,8 @@ public enum ListFindingAggregatorsOutputError: Swift.Error, Swift.Equatable { extension ListFindingAggregatorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFindingAggregatorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingAggregators = output.findingAggregators self.nextToken = output.nextToken @@ -46668,9 +46628,8 @@ public enum ListInvitationsOutputError: Swift.Error, Swift.Equatable { extension ListInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.invitations = output.invitations self.nextToken = output.nextToken @@ -46812,9 +46771,8 @@ public enum ListMembersOutputError: Swift.Error, Swift.Equatable { extension ListMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.nextToken = output.nextToken @@ -46948,9 +46906,8 @@ public enum ListOrganizationAdminAccountsOutputError: Swift.Error, Swift.Equatab extension ListOrganizationAdminAccountsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationAdminAccountsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.adminAccounts = output.adminAccounts self.nextToken = output.nextToken @@ -47092,9 +47049,8 @@ public enum ListSecurityControlDefinitionsOutputError: Swift.Error, Swift.Equata extension ListSecurityControlDefinitionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityControlDefinitionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityControlDefinitions = output.securityControlDefinitions @@ -47240,9 +47196,8 @@ public enum ListStandardsControlAssociationsOutputError: Swift.Error, Swift.Equa extension ListStandardsControlAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStandardsControlAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.standardsControlAssociationSummaries = output.standardsControlAssociationSummaries @@ -47358,9 +47313,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -49672,9 +49626,8 @@ extension SecurityHubClientTypes { extension ResourceConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -49690,7 +49643,7 @@ extension ResourceConflictException { } /// The resource specified in the request conflicts with an existing resource. -public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -50614,9 +50567,8 @@ extension SecurityHubClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -50632,7 +50584,7 @@ extension ResourceNotFoundException { } /// The request was rejected because we can't find the specified resource. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -54922,9 +54874,8 @@ public enum UpdateFindingAggregatorOutputError: Swift.Error, Swift.Equatable { extension UpdateFindingAggregatorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFindingAggregatorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.findingAggregationRegion = output.findingAggregationRegion self.findingAggregatorArn = output.findingAggregatorArn diff --git a/Sources/Services/AWSSecurityLake/SecurityLakeClient.swift b/Sources/Services/AWSSecurityLake/SecurityLakeClient.swift index d8900a2d625..5759ad4ef88 100644 --- a/Sources/Services/AWSSecurityLake/SecurityLakeClient.swift +++ b/Sources/Services/AWSSecurityLake/SecurityLakeClient.swift @@ -208,6 +208,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAwsLogSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomLogSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatalake") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatalakeAutoEnable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatalakeDelegatedAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatalakeExceptionsSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubscriber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubscriptionNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAwsLogSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomLogSource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -536,7 +546,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -556,6 +566,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatalake") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -568,7 +579,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -588,6 +599,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatalakeAutoEnable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -603,7 +615,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -623,6 +635,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatalakeDelegatedAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -635,7 +648,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -655,6 +668,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatalakeExceptionsSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -667,7 +681,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -687,6 +701,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubscriber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +715,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +735,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubscriptionNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -732,7 +748,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -752,6 +768,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatalake") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +781,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +801,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatalakeAutoEnable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -796,7 +814,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -816,6 +834,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatalakeExceptionsExpiry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -828,7 +847,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -848,6 +867,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatalakeExceptionsSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -860,7 +880,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -880,6 +900,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatalakeStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -895,7 +916,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -915,6 +936,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSubscriber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -927,7 +949,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -947,6 +969,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatalakeExceptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -962,7 +985,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -982,6 +1005,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLogSources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -997,7 +1021,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1017,6 +1041,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubscribers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1030,7 +1055,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1050,6 +1075,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatalake") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1065,7 +1091,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1085,6 +1111,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatalakeExceptionsExpiry") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1100,7 +1127,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1120,6 +1147,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatalakeExceptionsSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1135,7 +1163,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1155,6 +1183,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubscriber") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1170,7 +1199,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1190,6 +1219,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "securitylake") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubscriptionNotificationConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1205,7 +1235,7 @@ extension SecurityLakeClient: SecurityLakeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSecurityLake/models/Models.swift b/Sources/Services/AWSSecurityLake/models/Models.swift index a07a29166e3..62e9cb7a251 100644 --- a/Sources/Services/AWSSecurityLake/models/Models.swift +++ b/Sources/Services/AWSSecurityLake/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -99,9 +98,8 @@ extension SecurityLakeClientTypes { extension AccountNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccountNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -115,7 +113,7 @@ extension AccountNotFoundException { } /// Amazon Security Lake cannot find an Amazon Web Services account with the accountID that you specified, or the account whose credentials you used to make this request isn't a member of an organization. -public struct AccountNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccountNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -328,9 +326,8 @@ extension SecurityLakeClientTypes { extension BucketNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BucketNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -344,7 +341,7 @@ extension BucketNotFoundException { } /// Amazon Security Lake generally returns 404 errors if the requested object is missing from the bucket. -public struct BucketNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BucketNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -381,9 +378,8 @@ extension BucketNotFoundExceptionBody: Swift.Decodable { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -397,7 +393,7 @@ extension ConcurrentModificationException { } /// More than one process tried to modify a resource at the same time. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -434,9 +430,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -454,7 +449,7 @@ extension ConflictException { } /// Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -509,9 +504,8 @@ extension ConflictExceptionBody: Swift.Decodable { extension ConflictSourceNamesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictSourceNamesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -525,7 +519,7 @@ extension ConflictSourceNamesException { } /// There was a conflict when you attempted to modify a Security Lake source name. -public struct ConflictSourceNamesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictSourceNamesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -562,9 +556,8 @@ extension ConflictSourceNamesExceptionBody: Swift.Decodable { extension ConflictSubscriptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictSubscriptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -578,7 +571,7 @@ extension ConflictSubscriptionException { } /// A conflicting subscription exception operation is in progress. -public struct ConflictSubscriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictSubscriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -809,9 +802,8 @@ public enum CreateAwsLogSourceOutputError: Swift.Error, Swift.Equatable { extension CreateAwsLogSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAwsLogSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.processing = output.processing @@ -1003,9 +995,8 @@ public enum CreateCustomLogSourceOutputError: Swift.Error, Swift.Equatable { extension CreateCustomLogSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCustomLogSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customDataLocation = output.customDataLocation self.glueCrawlerName = output.glueCrawlerName @@ -1694,9 +1685,8 @@ public enum CreateSubscriberOutputError: Swift.Error, Swift.Equatable { extension CreateSubscriberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSubscriberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceShareArn = output.resourceShareArn self.resourceShareName = output.resourceShareName @@ -1935,9 +1925,8 @@ public enum CreateSubscriptionNotificationConfigurationOutputError: Swift.Error, extension CreateSubscriptionNotificationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSubscriptionNotificationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queueArn = output.queueArn } else { @@ -2166,9 +2155,8 @@ public enum DeleteAwsLogSourceOutputError: Swift.Error, Swift.Equatable { extension DeleteAwsLogSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAwsLogSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failed = output.failed self.processing = output.processing @@ -2312,9 +2300,8 @@ public enum DeleteCustomLogSourceOutputError: Swift.Error, Swift.Equatable { extension DeleteCustomLogSourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteCustomLogSourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customDataLocation = output.customDataLocation } else { @@ -2569,9 +2556,8 @@ public enum DeleteDatalakeExceptionsSubscriptionOutputError: Swift.Error, Swift. extension DeleteDatalakeExceptionsSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteDatalakeExceptionsSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -2906,9 +2892,8 @@ extension SecurityLakeClientTypes { extension EventBridgeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EventBridgeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2922,7 +2907,7 @@ extension EventBridgeException { } /// Represents an error interacting with the Amazon EventBridge service. -public struct EventBridgeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EventBridgeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3122,9 +3107,8 @@ public enum GetDatalakeAutoEnableOutputError: Swift.Error, Swift.Equatable { extension GetDatalakeAutoEnableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatalakeAutoEnableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.autoEnableNewAccounts = output.autoEnableNewAccounts } else { @@ -3221,9 +3205,8 @@ public enum GetDatalakeExceptionsExpiryOutputError: Swift.Error, Swift.Equatable extension GetDatalakeExceptionsExpiryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatalakeExceptionsExpiryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.exceptionMessageExpiry = output.exceptionMessageExpiry } else { @@ -3311,9 +3294,8 @@ public enum GetDatalakeExceptionsSubscriptionOutputError: Swift.Error, Swift.Equ extension GetDatalakeExceptionsSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatalakeExceptionsSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protocolAndNotificationEndpoint = output.protocolAndNotificationEndpoint } else { @@ -3403,9 +3385,8 @@ public enum GetDatalakeOutputError: Swift.Error, Swift.Equatable { extension GetDatalakeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatalakeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configurations = output.configurations } else { @@ -3565,9 +3546,8 @@ public enum GetDatalakeStatusOutputError: Swift.Error, Swift.Equatable { extension GetDatalakeStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatalakeStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountSourcesList = output.accountSourcesList self.nextToken = output.nextToken @@ -3687,9 +3667,8 @@ public enum GetSubscriberOutputError: Swift.Error, Swift.Equatable { extension GetSubscriberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSubscriberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscriber = output.subscriber } else { @@ -3765,9 +3744,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3781,7 +3759,7 @@ extension InternalServerException { } /// Internal service exceptions are sometimes caused by transient issues. Before you start troubleshooting, perform the operation again. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3822,9 +3800,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidInputException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3838,7 +3815,7 @@ extension InvalidInputException { } /// The request was rejected because a value that's not valid or is out of range was supplied for an input parameter. -public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4283,9 +4260,8 @@ public enum ListDatalakeExceptionsOutputError: Swift.Error, Swift.Equatable { extension ListDatalakeExceptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatalakeExceptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.nonRetryableFailures = output.nonRetryableFailures @@ -4559,9 +4535,8 @@ public enum ListLogSourcesOutputError: Swift.Error, Swift.Equatable { extension ListLogSourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLogSourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.regionSourceTypesAccountsList = output.regionSourceTypesAccountsList @@ -4723,9 +4698,8 @@ public enum ListSubscribersOutputError: Swift.Error, Swift.Equatable { extension ListSubscribersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubscribersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.subscribers = output.subscribers @@ -5048,9 +5022,8 @@ extension SecurityLakeClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -5068,7 +5041,7 @@ extension ResourceNotFoundException { } /// The resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5168,9 +5141,8 @@ extension SecurityLakeClientTypes { extension S3Exception { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: S3ExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5184,7 +5156,7 @@ extension S3Exception { } /// Provides an extension of the AmazonServiceException for errors reported by Amazon S3 while processing a request. In particular, this class provides access to the Amazon S3 extended request ID. If Amazon S3 is incorrectly handling a request and you need to contact Amazon, this extended request ID may provide useful debugging information. -public struct S3Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct S3Exception: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5221,9 +5193,8 @@ extension S3ExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -5245,7 +5216,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5803,9 +5774,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -5823,7 +5793,7 @@ extension ThrottlingException { } /// The limit on the number of requests per second was exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6358,9 +6328,8 @@ public enum UpdateSubscriberOutputError: Swift.Error, Swift.Equatable { extension UpdateSubscriberOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSubscriberOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscriber = output.subscriber } else { @@ -6548,9 +6517,8 @@ public enum UpdateSubscriptionNotificationConfigurationOutputError: Swift.Error, extension UpdateSubscriptionNotificationConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSubscriptionNotificationConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.queueArn = output.queueArn } else { @@ -6589,9 +6557,8 @@ extension UpdateSubscriptionNotificationConfigurationOutputResponseBody: Swift.D extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -6609,7 +6576,7 @@ extension ValidationException { } /// Your signing certificate could not be validated. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSServerlessApplicationRepository/ServerlessApplicationRepositoryClient.swift b/Sources/Services/AWSServerlessApplicationRepository/ServerlessApplicationRepositoryClient.swift index c2134a8f0f7..4fc13f25a37 100644 --- a/Sources/Services/AWSServerlessApplicationRepository/ServerlessApplicationRepositoryClient.swift +++ b/Sources/Services/AWSServerlessApplicationRepository/ServerlessApplicationRepositoryClient.swift @@ -208,6 +208,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplicationVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCloudFormationChangeSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCloudFormationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -360,7 +365,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +385,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -393,7 +399,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -413,6 +419,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplicationPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -425,7 +432,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -445,6 +452,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCloudFormationTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -457,7 +465,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -477,6 +485,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationDependencies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -490,7 +499,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -510,6 +519,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplicationVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -523,7 +533,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -543,6 +553,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +567,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +587,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putApplicationPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -591,7 +603,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -611,6 +623,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "unshareApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -626,7 +639,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -646,6 +659,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository .withRegion(value: config.region) .withSigningName(value: "serverlessrepo") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -661,7 +675,7 @@ extension ServerlessApplicationRepositoryClient: ServerlessApplicationRepository operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSServerlessApplicationRepository/models/Models.swift b/Sources/Services/AWSServerlessApplicationRepository/models/Models.swift index 2941ad144c9..c4594391def 100644 --- a/Sources/Services/AWSServerlessApplicationRepository/models/Models.swift +++ b/Sources/Services/AWSServerlessApplicationRepository/models/Models.swift @@ -275,9 +275,8 @@ extension ServerlessApplicationRepositoryClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -293,7 +292,7 @@ extension BadRequestException { } /// One of the parameters in the request is invalid. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -377,9 +376,8 @@ extension ServerlessApplicationRepositoryClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -395,7 +393,7 @@ extension ConflictException { } /// The resource already exists. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -700,9 +698,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.author = output.author @@ -999,9 +996,8 @@ public enum CreateApplicationVersionOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.creationTime = output.creationTime @@ -1414,9 +1410,8 @@ public enum CreateCloudFormationChangeSetOutputError: Swift.Error, Swift.Equatab extension CreateCloudFormationChangeSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCloudFormationChangeSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.changeSetId = output.changeSetId @@ -1570,9 +1565,8 @@ public enum CreateCloudFormationTemplateOutputError: Swift.Error, Swift.Equatabl extension CreateCloudFormationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCloudFormationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.creationTime = output.creationTime @@ -1744,9 +1738,8 @@ public struct DeleteApplicationOutputResponse: Swift.Equatable { extension ForbiddenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ForbiddenExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -1762,7 +1755,7 @@ extension ForbiddenException { } /// The client is not authenticated. -public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ForbiddenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1885,9 +1878,8 @@ public enum GetApplicationOutputError: Swift.Error, Swift.Equatable { extension GetApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.author = output.author @@ -2116,9 +2108,8 @@ public enum GetApplicationPolicyOutputError: Swift.Error, Swift.Equatable { extension GetApplicationPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statements = output.statements } else { @@ -2235,9 +2226,8 @@ public enum GetCloudFormationTemplateOutputError: Swift.Error, Swift.Equatable { extension GetCloudFormationTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCloudFormationTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.creationTime = output.creationTime @@ -2336,9 +2326,8 @@ extension GetCloudFormationTemplateOutputResponseBody: Swift.Decodable { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -2354,7 +2343,7 @@ extension InternalServerErrorException { } /// The AWS Serverless Application Repository service encountered an internal error. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2493,9 +2482,8 @@ public enum ListApplicationDependenciesOutputError: Swift.Error, Swift.Equatable extension ListApplicationDependenciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationDependenciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dependencies = output.dependencies self.nextToken = output.nextToken @@ -2639,9 +2627,8 @@ public enum ListApplicationVersionsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.versions = output.versions @@ -2775,9 +2762,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications self.nextToken = output.nextToken @@ -2835,9 +2821,8 @@ extension ListApplicationsOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -2853,7 +2838,7 @@ extension NotFoundException { } /// The resource (for example, an access policy statement) specified in the request doesn't exist. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3224,9 +3209,8 @@ public enum PutApplicationPolicyOutputError: Swift.Error, Swift.Equatable { extension PutApplicationPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutApplicationPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statements = output.statements } else { @@ -3460,9 +3444,8 @@ extension ServerlessApplicationRepositoryClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.errorCode = output.errorCode self.message = output.message @@ -3478,7 +3461,7 @@ extension TooManyRequestsException { } /// The client is sending more than the allowed number of requests per unit of time. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3778,9 +3761,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationId = output.applicationId self.author = output.author diff --git a/Sources/Services/AWSServiceCatalog/ServiceCatalogClient.swift b/Sources/Services/AWSServiceCatalog/ServiceCatalogClient.swift index 496c566ea60..0d893bc7de4 100644 --- a/Sources/Services/AWSServiceCatalog/ServiceCatalogClient.swift +++ b/Sources/Services/AWSServiceCatalog/ServiceCatalogClient.swift @@ -208,6 +208,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "acceptPortfolioShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateBudgetWithResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associatePrincipalWithPortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateProductWithPortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateServiceActionWithProvisioningArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTagOptionWithResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchAssociateServiceActionWithProvisioningArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchDisassociateServiceActionFromProvisioningArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyProduct") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -520,7 +529,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConstraint") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -564,7 +574,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +594,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPortfolio") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -608,7 +619,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +639,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPortfolioShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -644,7 +656,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -664,6 +676,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProduct") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -688,7 +701,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -708,6 +721,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProvisionedProductPlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -732,7 +746,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -752,6 +766,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProvisioningArtifact") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -776,7 +791,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -796,6 +811,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceAction") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -820,7 +836,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -840,6 +856,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTagOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -856,7 +873,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -876,6 +893,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConstraint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -892,7 +910,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -912,6 +930,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -928,7 +947,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -948,6 +967,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePortfolioShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -964,7 +984,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -984,6 +1004,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProduct") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1000,7 +1021,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1020,6 +1041,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProvisionedProductPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1036,7 +1058,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1056,6 +1078,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProvisioningArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1072,7 +1095,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1092,6 +1115,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1108,7 +1132,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1128,6 +1152,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTagOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1144,7 +1169,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1164,6 +1189,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConstraint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1180,7 +1206,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1200,6 +1226,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCopyProductStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1216,7 +1243,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1236,6 +1263,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1252,7 +1280,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1272,6 +1300,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePortfolioShareStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1288,7 +1317,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1308,6 +1337,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describePortfolioShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1324,7 +1354,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1344,6 +1374,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProduct") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1360,7 +1391,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1380,6 +1411,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProductAsAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1396,7 +1428,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1416,6 +1448,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProductView") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1432,7 +1465,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1452,6 +1485,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProvisionedProduct") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1468,7 +1502,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1488,6 +1522,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProvisionedProductPlan") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1504,7 +1539,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1524,6 +1559,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProvisioningArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1540,7 +1576,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1560,6 +1596,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProvisioningParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1576,7 +1613,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1596,6 +1633,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRecord") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1612,7 +1650,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1632,6 +1670,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServiceAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1648,7 +1687,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1668,6 +1707,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServiceActionExecutionParameters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1684,7 +1724,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1704,6 +1744,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTagOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1720,7 +1761,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1740,6 +1781,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableAWSOrganizationsAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1756,7 +1798,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1776,6 +1818,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateBudgetFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1792,7 +1835,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1812,6 +1855,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociatePrincipalFromPortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1828,7 +1872,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1848,6 +1892,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateProductFromPortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1864,7 +1909,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1884,6 +1929,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateServiceActionFromProvisioningArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1900,7 +1946,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1920,6 +1966,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTagOptionFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1936,7 +1983,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1956,6 +2003,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableAWSOrganizationsAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1972,7 +2020,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1992,6 +2040,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeProvisionedProductPlan") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2016,7 +2065,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2036,6 +2085,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeProvisionedProductServiceAction") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2060,7 +2110,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2080,6 +2130,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAWSOrganizationsAccessStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2096,7 +2147,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2116,6 +2167,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getProvisionedProductOutputs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2132,7 +2184,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2152,6 +2204,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importAsProvisionedProduct") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2176,7 +2229,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2196,6 +2249,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAcceptedPortfolioShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2212,7 +2266,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2232,6 +2286,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBudgetsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2248,7 +2303,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2268,6 +2323,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConstraintsForPortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2284,7 +2340,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2304,6 +2360,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLaunchPaths") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2320,7 +2377,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2340,6 +2397,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizationPortfolioAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2356,7 +2414,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2376,6 +2434,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPortfolioAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2392,7 +2451,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2412,6 +2471,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPortfolios") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2428,7 +2488,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2448,6 +2508,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPortfoliosForProduct") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2464,7 +2525,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2484,6 +2545,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPrincipalsForPortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2500,7 +2562,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2520,6 +2582,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProvisionedProductPlans") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2536,7 +2599,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2556,6 +2619,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProvisioningArtifacts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2572,7 +2636,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2592,6 +2656,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProvisioningArtifactsForServiceAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2608,7 +2673,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2628,6 +2693,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRecordHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2644,7 +2710,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2664,6 +2730,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourcesForTagOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2680,7 +2747,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2700,6 +2767,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceActions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2716,7 +2784,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2736,6 +2804,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceActionsForProvisioningArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2752,7 +2821,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2772,6 +2841,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listStackInstancesForProvisionedProduct") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2788,7 +2858,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2808,6 +2878,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagOptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2824,7 +2895,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2844,6 +2915,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyProvisionProductEngineWorkflowResult") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2868,7 +2940,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2888,6 +2960,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyTerminateProvisionedProductEngineWorkflowResult") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2912,7 +2985,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2932,6 +3005,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyUpdateProvisionedProductEngineWorkflowResult") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2956,7 +3030,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2976,6 +3050,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "provisionProduct") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3000,7 +3075,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3020,6 +3095,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rejectPortfolioShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3036,7 +3112,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3056,6 +3132,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "scanProvisionedProducts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3072,7 +3149,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3092,6 +3169,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchProducts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3108,7 +3186,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3128,6 +3206,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchProductsAsAdmin") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3144,7 +3223,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3164,6 +3243,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchProvisionedProducts") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3180,7 +3260,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3200,6 +3280,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateProvisionedProduct") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3224,7 +3305,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3244,6 +3325,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConstraint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3260,7 +3342,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3280,6 +3362,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePortfolio") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3296,7 +3379,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3316,6 +3399,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePortfolioShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3332,7 +3416,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3352,6 +3436,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProduct") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3368,7 +3453,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3388,6 +3473,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProvisionedProduct") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3412,7 +3498,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3432,6 +3518,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProvisionedProductProperties") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -3456,7 +3543,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3476,6 +3563,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProvisioningArtifact") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3492,7 +3580,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3512,6 +3600,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceAction") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3528,7 +3617,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3548,6 +3637,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTagOption") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3564,7 +3654,7 @@ extension ServiceCatalogClient: ServiceCatalogClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSServiceCatalog/models/Models.swift b/Sources/Services/AWSServiceCatalog/models/Models.swift index beb0d131c21..8b1094448df 100644 --- a/Sources/Services/AWSServiceCatalog/models/Models.swift +++ b/Sources/Services/AWSServiceCatalog/models/Models.swift @@ -925,9 +925,8 @@ public enum BatchAssociateServiceActionWithProvisioningArtifactOutputError: Swif extension BatchAssociateServiceActionWithProvisioningArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchAssociateServiceActionWithProvisioningArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedServiceActionAssociations = output.failedServiceActionAssociations } else { @@ -1073,9 +1072,8 @@ public enum BatchDisassociateServiceActionFromProvisioningArtifactOutputError: S extension BatchDisassociateServiceActionFromProvisioningArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchDisassociateServiceActionFromProvisioningArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedServiceActionAssociations = output.failedServiceActionAssociations } else { @@ -1657,9 +1655,8 @@ public enum CopyProductOutputError: Swift.Error, Swift.Equatable { extension CopyProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.copyProductToken = output.copyProductToken } else { @@ -1899,9 +1896,8 @@ public enum CreateConstraintOutputError: Swift.Error, Swift.Equatable { extension CreateConstraintOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConstraintOutputResponseBody = try responseDecoder.decode(responseBody: data) self.constraintDetail = output.constraintDetail self.constraintParameters = output.constraintParameters @@ -2112,9 +2108,8 @@ public enum CreatePortfolioOutputError: Swift.Error, Swift.Equatable { extension CreatePortfolioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePortfolioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portfolioDetail = output.portfolioDetail self.tags = output.tags @@ -2314,9 +2309,8 @@ public enum CreatePortfolioShareOutputError: Swift.Error, Swift.Equatable { extension CreatePortfolioShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePortfolioShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portfolioShareToken = output.portfolioShareToken } else { @@ -2596,9 +2590,8 @@ public enum CreateProductOutputError: Swift.Error, Swift.Equatable { extension CreateProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.productViewDetail = output.productViewDetail self.provisioningArtifactDetail = output.provisioningArtifactDetail @@ -2905,9 +2898,8 @@ public enum CreateProvisionedProductPlanOutputError: Swift.Error, Swift.Equatabl extension CreateProvisionedProductPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProvisionedProductPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.planId = output.planId self.planName = output.planName @@ -3102,9 +3094,8 @@ public enum CreateProvisioningArtifactOutputError: Swift.Error, Swift.Equatable extension CreateProvisioningArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProvisioningArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.info = output.info self.provisioningArtifactDetail = output.provisioningArtifactDetail @@ -3323,9 +3314,8 @@ public enum CreateServiceActionOutputError: Swift.Error, Swift.Equatable { extension CreateServiceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceActionDetail = output.serviceActionDetail } else { @@ -3451,9 +3441,8 @@ public enum CreateTagOptionOutputError: Swift.Error, Swift.Equatable { extension CreateTagOptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTagOptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagOptionDetail = output.tagOptionDetail } else { @@ -3808,9 +3797,8 @@ public enum DeletePortfolioShareOutputError: Swift.Error, Swift.Equatable { extension DeletePortfolioShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeletePortfolioShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portfolioShareToken = output.portfolioShareToken } else { @@ -4430,9 +4418,8 @@ public enum DescribeConstraintOutputError: Swift.Error, Swift.Equatable { extension DescribeConstraintOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConstraintOutputResponseBody = try responseDecoder.decode(responseBody: data) self.constraintDetail = output.constraintDetail self.constraintParameters = output.constraintParameters @@ -4577,9 +4564,8 @@ public enum DescribeCopyProductStatusOutputError: Swift.Error, Swift.Equatable { extension DescribeCopyProductStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCopyProductStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.copyProductStatus = output.copyProductStatus self.statusDetail = output.statusDetail @@ -4724,9 +4710,8 @@ public enum DescribePortfolioOutputError: Swift.Error, Swift.Equatable { extension DescribePortfolioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePortfolioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.budgets = output.budgets self.portfolioDetail = output.portfolioDetail @@ -4896,9 +4881,8 @@ public enum DescribePortfolioShareStatusOutputError: Swift.Error, Swift.Equatabl extension DescribePortfolioShareStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePortfolioShareStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationNodeValue = output.organizationNodeValue self.portfolioId = output.portfolioId @@ -5124,9 +5108,8 @@ public enum DescribePortfolioSharesOutputError: Swift.Error, Swift.Equatable { extension DescribePortfolioSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribePortfolioSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.portfolioShareDetails = output.portfolioShareDetails @@ -5295,9 +5278,8 @@ public enum DescribeProductAsAdminOutputError: Swift.Error, Swift.Equatable { extension DescribeProductAsAdminOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProductAsAdminOutputResponseBody = try responseDecoder.decode(responseBody: data) self.budgets = output.budgets self.productViewDetail = output.productViewDetail @@ -5511,9 +5493,8 @@ public enum DescribeProductOutputError: Swift.Error, Swift.Equatable { extension DescribeProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.budgets = output.budgets self.launchPaths = output.launchPaths @@ -5697,9 +5678,8 @@ public enum DescribeProductViewOutputError: Swift.Error, Swift.Equatable { extension DescribeProductViewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProductViewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.productViewSummary = output.productViewSummary self.provisioningArtifacts = output.provisioningArtifacts @@ -5857,9 +5837,8 @@ public enum DescribeProvisionedProductOutputError: Swift.Error, Swift.Equatable extension DescribeProvisionedProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProvisionedProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudWatchDashboards = output.cloudWatchDashboards self.provisionedProductDetail = output.provisionedProductDetail @@ -6029,9 +6008,8 @@ public enum DescribeProvisionedProductPlanOutputError: Swift.Error, Swift.Equata extension DescribeProvisionedProductPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProvisionedProductPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.provisionedProductPlanDetails = output.provisionedProductPlanDetails @@ -6234,9 +6212,8 @@ public enum DescribeProvisioningArtifactOutputError: Swift.Error, Swift.Equatabl extension DescribeProvisioningArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProvisioningArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.info = output.info self.provisioningArtifactDetail = output.provisioningArtifactDetail @@ -6451,9 +6428,8 @@ public enum DescribeProvisioningParametersOutputError: Swift.Error, Swift.Equata extension DescribeProvisioningParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProvisioningParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.constraintSummaries = output.constraintSummaries self.provisioningArtifactOutputKeys = output.provisioningArtifactOutputKeys @@ -6717,9 +6693,8 @@ public enum DescribeRecordOutputError: Swift.Error, Swift.Equatable { extension DescribeRecordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRecordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.recordDetail = output.recordDetail @@ -6888,9 +6863,8 @@ public enum DescribeServiceActionExecutionParametersOutputError: Swift.Error, Sw extension DescribeServiceActionExecutionParametersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServiceActionExecutionParametersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceActionParameters = output.serviceActionParameters } else { @@ -7024,9 +6998,8 @@ public enum DescribeServiceActionOutputError: Swift.Error, Swift.Equatable { extension DescribeServiceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServiceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceActionDetail = output.serviceActionDetail } else { @@ -7125,9 +7098,8 @@ public enum DescribeTagOptionOutputError: Swift.Error, Swift.Equatable { extension DescribeTagOptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagOptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagOptionDetail = output.tagOptionDetail } else { @@ -7756,9 +7728,8 @@ public struct DisassociateTagOptionFromResourceOutputResponse: Swift.Equatable { extension DuplicateResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7772,7 +7743,7 @@ extension DuplicateResourceException { } /// The specified resource is a duplicate. -public struct DuplicateResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8074,9 +8045,8 @@ public enum ExecuteProvisionedProductPlanOutputError: Swift.Error, Swift.Equatab extension ExecuteProvisionedProductPlanOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteProvisionedProductPlanOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordDetail = output.recordDetail } else { @@ -8265,9 +8235,8 @@ public enum ExecuteProvisionedProductServiceActionOutputError: Swift.Error, Swif extension ExecuteProvisionedProductServiceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExecuteProvisionedProductServiceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordDetail = output.recordDetail } else { @@ -8500,9 +8469,8 @@ public enum GetAWSOrganizationsAccessStatusOutputError: Swift.Error, Swift.Equat extension GetAWSOrganizationsAccessStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAWSOrganizationsAccessStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accessStatus = output.accessStatus } else { @@ -8688,9 +8656,8 @@ public enum GetProvisionedProductOutputsOutputError: Swift.Error, Swift.Equatabl extension GetProvisionedProductOutputsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetProvisionedProductOutputsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.outputs = output.outputs @@ -8892,9 +8859,8 @@ public enum ImportAsProvisionedProductOutputError: Swift.Error, Swift.Equatable extension ImportAsProvisionedProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportAsProvisionedProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordDetail = output.recordDetail } else { @@ -8933,9 +8899,8 @@ extension ImportAsProvisionedProductOutputResponseBody: Swift.Decodable { extension InvalidParametersException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParametersExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8949,7 +8914,7 @@ extension InvalidParametersException { } /// One or more parameters provided to the operation are not valid. -public struct InvalidParametersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParametersException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8985,9 +8950,8 @@ extension InvalidParametersExceptionBody: Swift.Decodable { extension InvalidStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9001,7 +8965,7 @@ extension InvalidStateException { } /// An attempt was made to modify a resource that is in a state that is not valid. Check your resources to ensure that they are in valid states before retrying the operation. -public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9288,9 +9252,8 @@ extension ServiceCatalogClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9304,7 +9267,7 @@ extension LimitExceededException { } /// The current limits of the service would have been exceeded by this operation. Decrease your resource use or increase your service limits and retry the operation. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9457,9 +9420,8 @@ public enum ListAcceptedPortfolioSharesOutputError: Swift.Error, Swift.Equatable extension ListAcceptedPortfolioSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAcceptedPortfolioSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.portfolioDetails = output.portfolioDetails @@ -9629,9 +9591,8 @@ public enum ListBudgetsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListBudgetsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBudgetsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.budgets = output.budgets self.nextPageToken = output.nextPageToken @@ -9813,9 +9774,8 @@ public enum ListConstraintsForPortfolioOutputError: Swift.Error, Swift.Equatable extension ListConstraintsForPortfolioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConstraintsForPortfolioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.constraintDetails = output.constraintDetails self.nextPageToken = output.nextPageToken @@ -9985,9 +9945,8 @@ public enum ListLaunchPathsOutputError: Swift.Error, Swift.Equatable { extension ListLaunchPathsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLaunchPathsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.launchPathSummaries = output.launchPathSummaries self.nextPageToken = output.nextPageToken @@ -10178,9 +10137,8 @@ public enum ListOrganizationPortfolioAccessOutputError: Swift.Error, Swift.Equat extension ListOrganizationPortfolioAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationPortfolioAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.organizationNodes = output.organizationNodes @@ -10362,9 +10320,8 @@ public enum ListPortfolioAccessOutputError: Swift.Error, Swift.Equatable { extension ListPortfolioAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPortfolioAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountIds = output.accountIds self.nextPageToken = output.nextPageToken @@ -10534,9 +10491,8 @@ public enum ListPortfoliosForProductOutputError: Swift.Error, Swift.Equatable { extension ListPortfoliosForProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPortfoliosForProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.portfolioDetails = output.portfolioDetails @@ -10691,9 +10647,8 @@ public enum ListPortfoliosOutputError: Swift.Error, Swift.Equatable { extension ListPortfoliosOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPortfoliosOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.portfolioDetails = output.portfolioDetails @@ -10863,9 +10818,8 @@ public enum ListPrincipalsForPortfolioOutputError: Swift.Error, Swift.Equatable extension ListPrincipalsForPortfolioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPrincipalsForPortfolioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.principals = output.principals @@ -11046,9 +11000,8 @@ public enum ListProvisionedProductPlansOutputError: Swift.Error, Swift.Equatable extension ListProvisionedProductPlansOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProvisionedProductPlansOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.provisionedProductPlans = output.provisionedProductPlans @@ -11218,9 +11171,8 @@ public enum ListProvisioningArtifactsForServiceActionOutputError: Swift.Error, S extension ListProvisioningArtifactsForServiceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProvisioningArtifactsForServiceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.provisioningArtifactViews = output.provisioningArtifactViews @@ -11366,9 +11318,8 @@ public enum ListProvisioningArtifactsOutputError: Swift.Error, Swift.Equatable { extension ListProvisioningArtifactsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProvisioningArtifactsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.provisioningArtifactDetails = output.provisioningArtifactDetails @@ -11547,9 +11498,8 @@ public enum ListRecordHistoryOutputError: Swift.Error, Swift.Equatable { extension ListRecordHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRecordHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.recordDetails = output.recordDetails @@ -11734,9 +11684,8 @@ public enum ListResourcesForTagOptionOutputError: Swift.Error, Swift.Equatable { extension ListResourcesForTagOptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesForTagOptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pageToken = output.pageToken self.resourceDetails = output.resourceDetails @@ -11919,9 +11868,8 @@ public enum ListServiceActionsForProvisioningArtifactOutputError: Swift.Error, S extension ListServiceActionsForProvisioningArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceActionsForProvisioningArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.serviceActionSummaries = output.serviceActionSummaries @@ -12076,9 +12024,8 @@ public enum ListServiceActionsOutputError: Swift.Error, Swift.Equatable { extension ListServiceActionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceActionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.serviceActionSummaries = output.serviceActionSummaries @@ -12248,9 +12195,8 @@ public enum ListStackInstancesForProvisionedProductOutputError: Swift.Error, Swi extension ListStackInstancesForProvisionedProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListStackInstancesForProvisionedProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.stackInstances = output.stackInstances @@ -12458,9 +12404,8 @@ public enum ListTagOptionsOutputError: Swift.Error, Swift.Equatable { extension ListTagOptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagOptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.pageToken = output.pageToken self.tagOptionDetails = output.tagOptionDetails @@ -12977,9 +12922,8 @@ public struct NotifyUpdateProvisionedProductEngineWorkflowResultOutputResponse: extension OperationNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -12993,7 +12937,7 @@ extension OperationNotSupportedException { } /// The operation is not supported. -public struct OperationNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14177,9 +14121,8 @@ public enum ProvisionProductOutputError: Swift.Error, Swift.Equatable { extension ProvisionProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordDetail = output.recordDetail } else { @@ -16837,9 +16780,8 @@ extension ServiceCatalogClientTypes { extension ResourceInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16853,7 +16795,7 @@ extension ResourceInUseException { } /// A resource that is currently in use. Ensure that the resource is not in use and retry the operation. -public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16889,9 +16831,8 @@ extension ResourceInUseExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16905,7 +16846,7 @@ extension ResourceNotFoundException { } /// The specified resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17105,9 +17046,8 @@ public enum ScanProvisionedProductsOutputError: Swift.Error, Swift.Equatable { extension ScanProvisionedProductsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ScanProvisionedProductsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.provisionedProducts = output.provisionedProducts @@ -17346,9 +17286,8 @@ public enum SearchProductsAsAdminOutputError: Swift.Error, Swift.Equatable { extension SearchProductsAsAdminOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchProductsAsAdminOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.productViewDetails = output.productViewDetails @@ -17561,9 +17500,8 @@ public enum SearchProductsOutputError: Swift.Error, Swift.Equatable { extension SearchProductsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchProductsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.productViewAggregations = output.productViewAggregations @@ -17814,9 +17752,8 @@ public enum SearchProvisionedProductsOutputError: Swift.Error, Swift.Equatable { extension SearchProvisionedProductsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchProvisionedProductsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextPageToken = output.nextPageToken self.provisionedProducts = output.provisionedProducts @@ -18847,9 +18784,8 @@ extension ServiceCatalogClientTypes { extension TagOptionNotMigratedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagOptionNotMigratedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -18863,7 +18799,7 @@ extension TagOptionNotMigratedException { } /// An operation requiring TagOptions failed because the TagOptions migration process has not been performed for this account. Use the Amazon Web Services Management Console to perform the migration process before retrying the operation. -public struct TagOptionNotMigratedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagOptionNotMigratedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -19090,9 +19026,8 @@ public enum TerminateProvisionedProductOutputError: Swift.Error, Swift.Equatable extension TerminateProvisionedProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateProvisionedProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordDetail = output.recordDetail } else { @@ -19288,9 +19223,8 @@ public enum UpdateConstraintOutputError: Swift.Error, Swift.Equatable { extension UpdateConstraintOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConstraintOutputResponseBody = try responseDecoder.decode(responseBody: data) self.constraintDetail = output.constraintDetail self.constraintParameters = output.constraintParameters @@ -19525,9 +19459,8 @@ public enum UpdatePortfolioOutputError: Swift.Error, Swift.Equatable { extension UpdatePortfolioOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePortfolioOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portfolioDetail = output.portfolioDetail self.tags = output.tags @@ -19725,9 +19658,8 @@ public enum UpdatePortfolioShareOutputError: Swift.Error, Swift.Equatable { extension UpdatePortfolioShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePortfolioShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portfolioShareToken = output.portfolioShareToken self.status = output.status @@ -20014,9 +19946,8 @@ public enum UpdateProductOutputError: Swift.Error, Swift.Equatable { extension UpdateProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.productViewDetail = output.productViewDetail self.tags = output.tags @@ -20318,9 +20249,8 @@ public enum UpdateProvisionedProductOutputError: Swift.Error, Swift.Equatable { extension UpdateProvisionedProductOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProvisionedProductOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordDetail = output.recordDetail } else { @@ -20487,9 +20417,8 @@ public enum UpdateProvisionedProductPropertiesOutputError: Swift.Error, Swift.Eq extension UpdateProvisionedProductPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProvisionedProductPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.provisionedProductId = output.provisionedProductId self.provisionedProductProperties = output.provisionedProductProperties @@ -20716,9 +20645,8 @@ public enum UpdateProvisioningArtifactOutputError: Swift.Error, Swift.Equatable extension UpdateProvisioningArtifactOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProvisioningArtifactOutputResponseBody = try responseDecoder.decode(responseBody: data) self.info = output.info self.provisioningArtifactDetail = output.provisioningArtifactDetail @@ -21096,9 +21024,8 @@ public enum UpdateServiceActionOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceActionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceActionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceActionDetail = output.serviceActionDetail } else { @@ -21237,9 +21164,8 @@ public enum UpdateTagOptionOutputError: Swift.Error, Swift.Equatable { extension UpdateTagOptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTagOptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagOptionDetail = output.tagOptionDetail } else { diff --git a/Sources/Services/AWSServiceCatalogAppRegistry/ServiceCatalogAppRegistryClient.swift b/Sources/Services/AWSServiceCatalogAppRegistry/ServiceCatalogAppRegistryClient.swift index 89819d047bc..b0e73a0a380 100644 --- a/Sources/Services/AWSServiceCatalogAppRegistry/ServiceCatalogAppRegistryClient.swift +++ b/Sources/Services/AWSServiceCatalogAppRegistry/ServiceCatalogAppRegistryClient.swift @@ -208,6 +208,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateAttributeGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -252,7 +254,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -272,6 +274,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createApplication") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -295,7 +298,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -315,6 +318,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAttributeGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -338,7 +342,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -358,6 +362,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -370,7 +375,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -390,6 +395,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAttributeGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -402,7 +408,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -422,6 +428,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateAttributeGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -434,7 +441,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -454,6 +461,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -466,7 +474,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -486,6 +494,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -498,7 +507,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -518,6 +527,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssociatedResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -530,7 +540,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -550,6 +560,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAttributeGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -562,7 +573,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -582,6 +593,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -594,7 +606,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -614,6 +626,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -627,7 +640,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -647,6 +660,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociatedAttributeGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -660,7 +674,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +694,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociatedResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -693,7 +708,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +728,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttributeGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -726,7 +742,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -746,6 +762,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttributeGroupsForApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -759,7 +776,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -779,6 +796,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -791,7 +809,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -811,6 +829,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -826,7 +845,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -846,6 +865,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "syncResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -858,7 +878,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -878,6 +898,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -893,7 +914,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -913,6 +934,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -926,7 +948,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -946,6 +968,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -961,7 +984,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -981,6 +1004,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc .withRegion(value: config.region) .withSigningName(value: "servicecatalog") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAttributeGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1020,7 @@ extension ServiceCatalogAppRegistryClient: ServiceCatalogAppRegistryClientProtoc operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSServiceCatalogAppRegistry/models/Models.swift b/Sources/Services/AWSServiceCatalogAppRegistry/models/Models.swift index a7a666d2f56..9d07c1524fb 100644 --- a/Sources/Services/AWSServiceCatalogAppRegistry/models/Models.swift +++ b/Sources/Services/AWSServiceCatalogAppRegistry/models/Models.swift @@ -300,9 +300,8 @@ public enum AssociateAttributeGroupOutputError: Swift.Error, Swift.Equatable { extension AssociateAttributeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateAttributeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationArn = output.applicationArn self.attributeGroupArn = output.attributeGroupArn @@ -430,9 +429,8 @@ public enum AssociateResourceOutputError: Swift.Error, Swift.Equatable { extension AssociateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationArn = output.applicationArn self.resourceArn = output.resourceArn @@ -749,9 +747,8 @@ extension ServiceCatalogAppRegistryClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -765,7 +762,7 @@ extension ConflictException { } /// There was a conflict when processing the request (for example, a resource with the given name already exists within the account). -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -928,9 +925,8 @@ public enum CreateApplicationOutputError: Swift.Error, Swift.Equatable { extension CreateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -1107,9 +1103,8 @@ public enum CreateAttributeGroupOutputError: Swift.Error, Swift.Equatable { extension CreateAttributeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAttributeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributeGroup = output.attributeGroup } else { @@ -1205,9 +1200,8 @@ public enum DeleteApplicationOutputError: Swift.Error, Swift.Equatable { extension DeleteApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -1303,9 +1297,8 @@ public enum DeleteAttributeGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteAttributeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAttributeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributeGroup = output.attributeGroup } else { @@ -1409,9 +1402,8 @@ public enum DisassociateAttributeGroupOutputError: Swift.Error, Swift.Equatable extension DisassociateAttributeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateAttributeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationArn = output.applicationArn self.attributeGroupArn = output.attributeGroupArn @@ -1535,9 +1527,8 @@ public enum DisassociateResourceOutputError: Swift.Error, Swift.Equatable { extension DisassociateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationArn = output.applicationArn self.resourceArn = output.resourceArn @@ -1645,9 +1636,8 @@ public enum GetApplicationOutputError: Swift.Error, Swift.Equatable { extension GetApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.associatedResourceCount = output.associatedResourceCount @@ -1848,9 +1838,8 @@ public enum GetAssociatedResourceOutputError: Swift.Error, Swift.Equatable { extension GetAssociatedResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssociatedResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resource = output.resource } else { @@ -1948,9 +1937,8 @@ public enum GetAttributeGroupOutputError: Swift.Error, Swift.Equatable { extension GetAttributeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAttributeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.attributes = output.attributes @@ -2120,9 +2108,8 @@ public enum GetConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.configuration = output.configuration } else { @@ -2196,9 +2183,8 @@ extension ServiceCatalogAppRegistryClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2212,7 +2198,7 @@ extension InternalServerException { } /// The service is experiencing internal problems. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2320,9 +2306,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications self.nextToken = output.nextToken @@ -2462,9 +2447,8 @@ public enum ListAssociatedAttributeGroupsOutputError: Swift.Error, Swift.Equatab extension ListAssociatedAttributeGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociatedAttributeGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributeGroups = output.attributeGroups self.nextToken = output.nextToken @@ -2604,9 +2588,8 @@ public enum ListAssociatedResourcesOutputError: Swift.Error, Swift.Equatable { extension ListAssociatedResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociatedResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resources = output.resources @@ -2746,9 +2729,8 @@ public enum ListAttributeGroupsForApplicationOutputError: Swift.Error, Swift.Equ extension ListAttributeGroupsForApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttributeGroupsForApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributeGroupsDetails = output.attributeGroupsDetails self.nextToken = output.nextToken @@ -2878,9 +2860,8 @@ public enum ListAttributeGroupsOutputError: Swift.Error, Swift.Equatable { extension ListAttributeGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttributeGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributeGroups = output.attributeGroups self.nextToken = output.nextToken @@ -2995,9 +2976,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3428,9 +3408,8 @@ extension ServiceCatalogAppRegistryClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3444,7 +3423,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3512,9 +3491,8 @@ extension ServiceCatalogAppRegistryClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3528,7 +3506,7 @@ extension ServiceQuotaExceededException { } /// The maximum number of resources per account has been reached. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3665,9 +3643,8 @@ public enum SyncResourceOutputError: Swift.Error, Swift.Equatable { extension SyncResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SyncResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.actionTaken = output.actionTaken self.applicationArn = output.applicationArn @@ -3865,9 +3842,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.serviceCode = output.serviceCode @@ -3883,7 +3859,7 @@ extension ThrottlingException { } /// The maximum number of API requests has been exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4116,9 +4092,8 @@ public enum UpdateApplicationOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application } else { @@ -4265,9 +4240,8 @@ public enum UpdateAttributeGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateAttributeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAttributeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attributeGroup = output.attributeGroup } else { @@ -4306,9 +4280,8 @@ extension UpdateAttributeGroupOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4322,7 +4295,7 @@ extension ValidationException { } /// The request has invalid or missing parameters. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSServiceDiscovery/ServiceDiscoveryClient.swift b/Sources/Services/AWSServiceDiscovery/ServiceDiscoveryClient.swift index 61184c28604..32ce75cdf1d 100644 --- a/Sources/Services/AWSServiceDiscovery/ServiceDiscoveryClient.swift +++ b/Sources/Services/AWSServiceDiscovery/ServiceDiscoveryClient.swift @@ -208,6 +208,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createHttpNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPrivateDnsNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -276,7 +278,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -296,6 +298,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPublicDnsNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -320,7 +323,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +363,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createService") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -384,7 +388,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +408,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +425,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +445,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +462,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +482,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -492,7 +499,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -512,6 +519,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "discoverInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware(hostPrefix: "data-")) @@ -528,7 +536,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +556,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +573,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +593,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInstancesHealthStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -600,7 +610,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -620,6 +630,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNamespace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -636,7 +647,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -656,6 +667,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +684,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +704,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +721,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +741,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +758,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +778,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNamespaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +795,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +815,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +832,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +852,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +869,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +889,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +906,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -926,6 +944,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerInstance") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -950,7 +969,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -970,6 +989,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -986,7 +1006,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1006,6 +1026,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1022,7 +1043,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1042,6 +1063,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHttpNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1066,7 +1088,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1086,6 +1108,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateInstanceCustomHealthStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1102,7 +1125,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1145,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePrivateDnsNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1146,7 +1170,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1166,6 +1190,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePublicDnsNamespace") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1190,7 +1215,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1224,6 +1249,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicediscovery") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1266,7 @@ extension ServiceDiscoveryClient: ServiceDiscoveryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSServiceDiscovery/models/Models.swift b/Sources/Services/AWSServiceDiscovery/models/Models.swift index e7048863ee7..5a98a4ebd6c 100644 --- a/Sources/Services/AWSServiceDiscovery/models/Models.swift +++ b/Sources/Services/AWSServiceDiscovery/models/Models.swift @@ -130,9 +130,8 @@ public enum CreateHttpNamespaceOutputError: Swift.Error, Swift.Equatable { extension CreateHttpNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateHttpNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -322,9 +321,8 @@ public enum CreatePrivateDnsNamespaceOutputError: Swift.Error, Swift.Equatable { extension CreatePrivateDnsNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePrivateDnsNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -501,9 +499,8 @@ public enum CreatePublicDnsNamespaceOutputError: Swift.Error, Swift.Equatable { extension CreatePublicDnsNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePublicDnsNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -735,9 +732,8 @@ public enum CreateServiceOutputError: Swift.Error, Swift.Equatable { extension CreateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -776,9 +772,8 @@ extension CreateServiceOutputResponseBody: Swift.Decodable { extension CustomHealthNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CustomHealthNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -792,7 +787,7 @@ extension CustomHealthNotFound { } /// The health check for the instance that's specified by ServiceId and InstanceId isn't a custom health check. -public struct CustomHealthNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomHealthNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -936,9 +931,8 @@ public enum DeleteNamespaceOutputError: Swift.Error, Swift.Equatable { extension DeleteNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -1152,9 +1146,8 @@ public enum DeregisterInstanceOutputError: Swift.Error, Swift.Equatable { extension DeregisterInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -1354,9 +1347,8 @@ public enum DiscoverInstancesOutputError: Swift.Error, Swift.Equatable { extension DiscoverInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DiscoverInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances } else { @@ -1657,9 +1649,8 @@ extension ServiceDiscoveryClientTypes { extension DuplicateRequest { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DuplicateRequestBody = try responseDecoder.decode(responseBody: data) self.duplicateOperationId = output.duplicateOperationId self.message = output.message @@ -1675,7 +1666,7 @@ extension DuplicateRequest { } /// The operation is already in progress. -public struct DuplicateRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DuplicateRequest: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1844,9 +1835,8 @@ public enum GetInstanceOutputError: Swift.Error, Swift.Equatable { extension GetInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instance = output.instance } else { @@ -2007,9 +1997,8 @@ public enum GetInstancesHealthStatusOutputError: Swift.Error, Swift.Equatable { extension GetInstancesHealthStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInstancesHealthStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.status = output.status @@ -2139,9 +2128,8 @@ public enum GetNamespaceOutputError: Swift.Error, Swift.Equatable { extension GetNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespace = output.namespace } else { @@ -2252,9 +2240,8 @@ public enum GetOperationOutputError: Swift.Error, Swift.Equatable { extension GetOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -2365,9 +2352,8 @@ public enum GetServiceOutputError: Swift.Error, Swift.Equatable { extension GetServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.service = output.service } else { @@ -2897,9 +2883,8 @@ extension ServiceDiscoveryClientTypes { extension InstanceNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstanceNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2913,7 +2898,7 @@ extension InstanceNotFound { } /// No instance exists with the specified ID, or the instance was recently registered, and information about the instance hasn't propagated yet. -public struct InstanceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InstanceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3013,9 +2998,8 @@ extension ServiceDiscoveryClientTypes { extension InvalidInput { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3029,7 +3013,7 @@ extension InvalidInput { } /// One or more specified values aren't valid. For example, a required value might be missing, a numeric value might be outside the allowed range, or a string value might exceed length constraints. -public struct InvalidInput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInput: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3161,9 +3145,8 @@ public enum ListInstancesOutputError: Swift.Error, Swift.Equatable { extension ListInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances self.nextToken = output.nextToken @@ -3326,9 +3309,8 @@ public enum ListNamespacesOutputError: Swift.Error, Swift.Equatable { extension ListNamespacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNamespacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.namespaces = output.namespaces self.nextToken = output.nextToken @@ -3491,9 +3473,8 @@ public enum ListOperationsOutputError: Swift.Error, Swift.Equatable { extension ListOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.operations = output.operations @@ -3656,9 +3637,8 @@ public enum ListServicesOutputError: Swift.Error, Swift.Equatable { extension ListServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.services = output.services @@ -3788,9 +3768,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3953,9 +3932,8 @@ extension ServiceDiscoveryClientTypes { extension NamespaceAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NamespaceAlreadyExistsBody = try responseDecoder.decode(responseBody: data) self.creatorRequestId = output.creatorRequestId self.message = output.message @@ -3973,7 +3951,7 @@ extension NamespaceAlreadyExists { } /// The namespace that you're trying to create already exists. -public struct NamespaceAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NamespaceAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4145,9 +4123,8 @@ extension ServiceDiscoveryClientTypes { extension NamespaceNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NamespaceNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4161,7 +4138,7 @@ extension NamespaceNotFound { } /// No namespace exists with the specified ID. -public struct NamespaceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NamespaceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4649,9 +4626,8 @@ extension ServiceDiscoveryClientTypes { extension OperationNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4665,7 +4641,7 @@ extension OperationNotFound { } /// No operation exists with the specified ID. -public struct OperationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5446,9 +5422,8 @@ public enum RegisterInstanceOutputError: Swift.Error, Swift.Equatable { extension RegisterInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -5487,9 +5462,8 @@ extension RegisterInstanceOutputResponseBody: Swift.Decodable { extension RequestLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5503,7 +5477,7 @@ extension RequestLimitExceeded { } /// The operation can't be completed because you've reached the quota for the number of requests. For more information, see [Cloud Map API request throttling quota](https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in the Cloud Map Developer Guide. -public struct RequestLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5539,9 +5513,8 @@ extension RequestLimitExceededBody: Swift.Decodable { extension ResourceInUse { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceInUseBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5555,7 +5528,7 @@ extension ResourceInUse { } /// The specified resource can't be deleted because it contains other resources. For example, you can't delete a service that contains any instances. -public struct ResourceInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceInUse: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5591,9 +5564,8 @@ extension ResourceInUseBody: Swift.Decodable { extension ResourceLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5607,7 +5579,7 @@ extension ResourceLimitExceeded { } /// The resource can't be created because you've reached the quota on the number of resources. -public struct ResourceLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5643,9 +5615,8 @@ extension ResourceLimitExceededBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5659,7 +5630,7 @@ extension ResourceNotFoundException { } /// The operation can't be completed because the resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5944,9 +5915,8 @@ extension ServiceDiscoveryClientTypes { extension ServiceAlreadyExists { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceAlreadyExistsBody = try responseDecoder.decode(responseBody: data) self.creatorRequestId = output.creatorRequestId self.message = output.message @@ -5964,7 +5934,7 @@ extension ServiceAlreadyExists { } /// The service can't be created because a service with the same name already exists. -public struct ServiceAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceAlreadyExists: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6171,9 +6141,8 @@ extension ServiceDiscoveryClientTypes { extension ServiceNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6187,7 +6156,7 @@ extension ServiceNotFound { } /// No service exists with the specified ID. -public struct ServiceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6575,9 +6544,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -6593,7 +6561,7 @@ extension TooManyTagsException { } /// The list of tags on the resource is over the quota. The maximum number of tags that can be applied to a resource is 50. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6845,9 +6813,8 @@ public enum UpdateHttpNamespaceOutputError: Swift.Error, Swift.Equatable { extension UpdateHttpNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateHttpNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -7099,9 +7066,8 @@ public enum UpdatePrivateDnsNamespaceOutputError: Swift.Error, Swift.Equatable { extension UpdatePrivateDnsNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePrivateDnsNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -7241,9 +7207,8 @@ public enum UpdatePublicDnsNamespaceOutputError: Swift.Error, Swift.Equatable { extension UpdatePublicDnsNamespaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePublicDnsNamespaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { @@ -7369,9 +7334,8 @@ public enum UpdateServiceOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationId = output.operationId } else { diff --git a/Sources/Services/AWSServiceQuotas/ServiceQuotasClient.swift b/Sources/Services/AWSServiceQuotas/ServiceQuotasClient.swift index 4522f606e07..bbb54da28ed 100644 --- a/Sources/Services/AWSServiceQuotas/ServiceQuotasClient.swift +++ b/Sources/Services/AWSServiceQuotas/ServiceQuotasClient.swift @@ -208,6 +208,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateServiceQuotaTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceQuotaIncreaseRequestFromTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateServiceQuotaTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAWSDefaultServiceQuota") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssociationForServiceQuotaTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRequestedServiceQuotaChange") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceQuota") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceQuotaIncreaseRequestFromTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAWSDefaultServiceQuotas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRequestedServiceQuotaChangeHistory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRequestedServiceQuotaChangeHistoryByQuota") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceQuotaIncreaseRequestsInTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceQuotas") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putServiceQuotaIncreaseRequestIntoTemplate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "requestServiceQuotaIncrease") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { .withRegion(value: config.region) .withSigningName(value: "servicequotas") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension ServiceQuotasClient: ServiceQuotasClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSServiceQuotas/models/Models.swift b/Sources/Services/AWSServiceQuotas/models/Models.swift index b73b336ec1e..307bf58fa4a 100644 --- a/Sources/Services/AWSServiceQuotas/models/Models.swift +++ b/Sources/Services/AWSServiceQuotas/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AWSServiceAccessNotEnabledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AWSServiceAccessNotEnabledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AWSServiceAccessNotEnabledException { } /// The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your organization. -public struct AWSServiceAccessNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AWSServiceAccessNotEnabledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AWSServiceAccessNotEnabledExceptionBody: Swift.Decodable { extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension AccessDeniedException { } /// You do not have sufficient permission to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -304,9 +302,8 @@ public struct DeleteServiceQuotaIncreaseRequestFromTemplateOutputResponse: Swift extension DependencyAccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DependencyAccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -320,7 +317,7 @@ extension DependencyAccessDeniedException { } /// You can't perform this action because a dependency does not have access. -public struct DependencyAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DependencyAccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -612,9 +609,8 @@ public enum GetAWSDefaultServiceQuotaOutputError: Swift.Error, Swift.Equatable { extension GetAWSDefaultServiceQuotaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAWSDefaultServiceQuotaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.quota = output.quota } else { @@ -717,9 +713,8 @@ public enum GetAssociationForServiceQuotaTemplateOutputError: Swift.Error, Swift extension GetAssociationForServiceQuotaTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssociationForServiceQuotaTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceQuotaTemplateAssociationStatus = output.serviceQuotaTemplateAssociationStatus } else { @@ -836,9 +831,8 @@ public enum GetRequestedServiceQuotaChangeOutputError: Swift.Error, Swift.Equata extension GetRequestedServiceQuotaChangeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRequestedServiceQuotaChangeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestedQuota = output.requestedQuota } else { @@ -989,9 +983,8 @@ public enum GetServiceQuotaIncreaseRequestFromTemplateOutputError: Swift.Error, extension GetServiceQuotaIncreaseRequestFromTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceQuotaIncreaseRequestFromTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceQuotaIncreaseRequestInTemplate = output.serviceQuotaIncreaseRequestInTemplate } else { @@ -1121,9 +1114,8 @@ public enum GetServiceQuotaOutputError: Swift.Error, Swift.Equatable { extension GetServiceQuotaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceQuotaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.quota = output.quota } else { @@ -1162,9 +1154,8 @@ extension GetServiceQuotaOutputResponseBody: Swift.Decodable { extension IllegalArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1178,7 +1169,7 @@ extension IllegalArgumentException { } /// Invalid input was provided. -public struct IllegalArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1214,9 +1205,8 @@ extension IllegalArgumentExceptionBody: Swift.Decodable { extension InvalidPaginationTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPaginationTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1230,7 +1220,7 @@ extension InvalidPaginationTokenException { } /// Invalid input was provided. -public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1266,9 +1256,8 @@ extension InvalidPaginationTokenExceptionBody: Swift.Decodable { extension InvalidResourceStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1282,7 +1271,7 @@ extension InvalidResourceStateException { } /// The resource is in an invalid state. -public struct InvalidResourceStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1422,9 +1411,8 @@ public enum ListAWSDefaultServiceQuotasOutputError: Swift.Error, Swift.Equatable extension ListAWSDefaultServiceQuotasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAWSDefaultServiceQuotasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.quotas = output.quotas @@ -1611,9 +1599,8 @@ public enum ListRequestedServiceQuotaChangeHistoryByQuotaOutputError: Swift.Erro extension ListRequestedServiceQuotaChangeHistoryByQuotaOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRequestedServiceQuotaChangeHistoryByQuotaOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestedQuotas = output.requestedQuotas @@ -1786,9 +1773,8 @@ public enum ListRequestedServiceQuotaChangeHistoryOutputError: Swift.Error, Swif extension ListRequestedServiceQuotaChangeHistoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRequestedServiceQuotaChangeHistoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.requestedQuotas = output.requestedQuotas @@ -1965,9 +1951,8 @@ public enum ListServiceQuotaIncreaseRequestsInTemplateOutputError: Swift.Error, extension ListServiceQuotaIncreaseRequestsInTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceQuotaIncreaseRequestsInTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serviceQuotaIncreaseRequestInTemplateList = output.serviceQuotaIncreaseRequestInTemplateList @@ -2129,9 +2114,8 @@ public enum ListServiceQuotasOutputError: Swift.Error, Swift.Equatable { extension ListServiceQuotasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceQuotasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.quotas = output.quotas @@ -2278,9 +2262,8 @@ public enum ListServicesOutputError: Swift.Error, Swift.Equatable { extension ListServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.services = output.services @@ -2416,9 +2399,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2543,9 +2525,8 @@ extension ServiceQuotasClientTypes { extension NoAvailableOrganizationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoAvailableOrganizationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2559,7 +2540,7 @@ extension NoAvailableOrganizationException { } /// The account making this call is not a member of an organization. -public struct NoAvailableOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoAvailableOrganizationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2595,9 +2576,8 @@ extension NoAvailableOrganizationExceptionBody: Swift.Decodable { extension NoSuchResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoSuchResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2611,7 +2591,7 @@ extension NoSuchResourceException { } /// The specified resource does not exist. -public struct NoSuchResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoSuchResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2647,9 +2627,8 @@ extension NoSuchResourceExceptionBody: Swift.Decodable { extension OrganizationNotInAllFeaturesModeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationNotInAllFeaturesModeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2663,7 +2642,7 @@ extension OrganizationNotInAllFeaturesModeException { } /// The organization that your account belongs to is not in All Features mode. -public struct OrganizationNotInAllFeaturesModeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationNotInAllFeaturesModeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2873,9 +2852,8 @@ public enum PutServiceQuotaIncreaseRequestIntoTemplateOutputError: Swift.Error, extension PutServiceQuotaIncreaseRequestIntoTemplateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutServiceQuotaIncreaseRequestIntoTemplateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serviceQuotaIncreaseRequestInTemplate = output.serviceQuotaIncreaseRequestInTemplate } else { @@ -2914,9 +2892,8 @@ extension PutServiceQuotaIncreaseRequestIntoTemplateOutputResponseBody: Swift.De extension QuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2930,7 +2907,7 @@ extension QuotaExceededException { } /// You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase. -public struct QuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3123,9 +3100,8 @@ public enum RequestServiceQuotaIncreaseOutputError: Swift.Error, Swift.Equatable extension RequestServiceQuotaIncreaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestServiceQuotaIncreaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.requestedQuota = output.requestedQuota } else { @@ -3370,9 +3346,8 @@ extension ServiceQuotasClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3386,7 +3361,7 @@ extension ResourceAlreadyExistsException { } /// The specified resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3422,9 +3397,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ServiceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3438,7 +3412,7 @@ extension ServiceException { } /// Something went wrong. -public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3801,9 +3775,8 @@ extension ServiceQuotasClientTypes { extension ServiceQuotaTemplateNotInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaTemplateNotInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3817,7 +3790,7 @@ extension ServiceQuotaTemplateNotInUseException { } /// The quota request template is not associated with your organization. -public struct ServiceQuotaTemplateNotInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaTemplateNotInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3900,9 +3873,8 @@ extension ServiceQuotasClientTypes { extension TagPolicyViolationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TagPolicyViolationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3916,7 +3888,7 @@ extension TagPolicyViolationException { } /// The specified tag is a reserved word and cannot be used. -public struct TagPolicyViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TagPolicyViolationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4069,9 +4041,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TemplatesNotAvailableInRegionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TemplatesNotAvailableInRegionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4085,7 +4056,7 @@ extension TemplatesNotAvailableInRegionException { } /// The Service Quotas template is not available in this AWS Region. -public struct TemplatesNotAvailableInRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TemplatesNotAvailableInRegionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4121,9 +4092,8 @@ extension TemplatesNotAvailableInRegionExceptionBody: Swift.Decodable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4137,7 +4107,7 @@ extension TooManyRequestsException { } /// Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4173,9 +4143,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4189,7 +4158,7 @@ extension TooManyTagsException { } /// You've exceeded the number of tags allowed for a resource. For more information, see [Tag restrictions](https://docs.aws.amazon.com/servicequotas/latest/userguide/sq-tagging.html#sq-tagging-restrictions) in the Service Quotas User Guide. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSShield/ShieldClient.swift b/Sources/Services/AWSShield/ShieldClient.swift index 05088ae668c..ae2c4df0848 100644 --- a/Sources/Services/AWSShield/ShieldClient.swift +++ b/Sources/Services/AWSShield/ShieldClient.swift @@ -208,6 +208,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDRTLogBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDRTRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateHealthCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateProactiveEngagementDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProtectionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProtectionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -533,6 +542,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -549,7 +559,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAttack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -585,7 +596,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +616,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAttackStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -621,7 +633,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -641,6 +653,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDRTAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -657,7 +670,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -677,6 +690,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEmergencyContactSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -693,7 +707,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +727,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProtection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -729,7 +744,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -749,6 +764,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProtectionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -765,7 +781,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -785,6 +801,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -801,7 +818,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -821,6 +838,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableApplicationLayerAutomaticResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -837,7 +855,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -857,6 +875,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableProactiveEngagement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -873,7 +892,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -893,6 +912,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDRTLogBucket") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -909,7 +929,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -929,6 +949,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDRTRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -945,7 +966,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -965,6 +986,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateHealthCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -981,7 +1003,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1001,6 +1023,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableApplicationLayerAutomaticResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1017,7 +1040,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1037,6 +1060,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "enableProactiveEngagement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1053,7 +1077,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1073,6 +1097,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSubscriptionState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1089,7 +1114,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1109,6 +1134,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAttacks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1125,7 +1151,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1145,6 +1171,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProtectionGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1161,7 +1188,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1181,6 +1208,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProtections") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1197,7 +1225,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1217,6 +1245,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourcesInProtectionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1233,7 +1262,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1253,6 +1282,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1269,7 +1299,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1289,6 +1319,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1305,7 +1336,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1325,6 +1356,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1341,7 +1373,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1361,6 +1393,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplicationLayerAutomaticResponse") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1377,7 +1410,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1397,6 +1430,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateEmergencyContactSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1413,7 +1447,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1433,6 +1467,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProtectionGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1449,7 +1484,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1469,6 +1504,7 @@ extension ShieldClient: ShieldClientProtocol { .withRegion(value: config.region) .withSigningName(value: "shield") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1485,7 +1521,7 @@ extension ShieldClient: ShieldClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSShield/models/Models.swift b/Sources/Services/AWSShield/models/Models.swift index 1317441a20f..94194159702 100644 --- a/Sources/Services/AWSShield/models/Models.swift +++ b/Sources/Services/AWSShield/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Exception that indicates the specified AttackId does not exist, or the requester does not have the appropriate permissions to access the AttackId. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -56,9 +55,8 @@ extension AccessDeniedExceptionBody: Swift.Decodable { extension AccessDeniedForDependencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedForDependencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -72,7 +70,7 @@ extension AccessDeniedForDependencyException { } /// In order to grant the necessary access to the Shield Response Team (SRT) the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see [Granting a User Permissions to Pass a Role to an Amazon Web Services Service](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). -public struct AccessDeniedForDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedForDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1624,9 +1622,8 @@ public enum CreateProtectionOutputError: Swift.Error, Swift.Equatable { extension CreateProtectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProtectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protectionId = output.protectionId } else { @@ -2033,9 +2030,8 @@ public enum DescribeAttackOutputError: Swift.Error, Swift.Equatable { extension DescribeAttackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAttackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attack = output.attack } else { @@ -2124,9 +2120,8 @@ public enum DescribeAttackStatisticsOutputError: Swift.Error, Swift.Equatable { extension DescribeAttackStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAttackStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dataItems = output.dataItems self.timeRange = output.timeRange @@ -2238,9 +2233,8 @@ public enum DescribeDRTAccessOutputError: Swift.Error, Swift.Equatable { extension DescribeDRTAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDRTAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logBucketList = output.logBucketList self.roleArn = output.roleArn @@ -2350,9 +2344,8 @@ public enum DescribeEmergencyContactSettingsOutputError: Swift.Error, Swift.Equa extension DescribeEmergencyContactSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEmergencyContactSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.emergencyContactList = output.emergencyContactList } else { @@ -2472,9 +2465,8 @@ public enum DescribeProtectionGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeProtectionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProtectionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protectionGroup = output.protectionGroup } else { @@ -2599,9 +2591,8 @@ public enum DescribeProtectionOutputError: Swift.Error, Swift.Equatable { extension DescribeProtectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProtectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.protection = output.protection } else { @@ -2692,9 +2683,8 @@ public enum DescribeSubscriptionOutputError: Swift.Error, Swift.Equatable { extension DescribeSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscription = output.subscription } else { @@ -3423,9 +3413,8 @@ public enum GetSubscriptionStateOutputError: Swift.Error, Swift.Equatable { extension GetSubscriptionStateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSubscriptionStateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscriptionState = output.subscriptionState } else { @@ -3669,9 +3658,8 @@ extension ShieldClientTypes { extension InternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3685,7 +3673,7 @@ extension InternalErrorException { } /// Exception that indicates that a problem occurred with the service infrastructure. You can retry the request. -public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3721,9 +3709,8 @@ extension InternalErrorExceptionBody: Swift.Decodable { extension InvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3737,7 +3724,7 @@ extension InvalidOperationException { } /// Exception that indicates that the operation would not cause any change to occur. -public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3773,9 +3760,8 @@ extension InvalidOperationExceptionBody: Swift.Decodable { extension InvalidPaginationTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPaginationTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3789,7 +3775,7 @@ extension InvalidPaginationTokenException { } /// Exception that indicates that the NextToken specified in the request is invalid. Submit the request using the NextToken value that was returned in the prior response. -public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPaginationTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3825,9 +3811,8 @@ extension InvalidPaginationTokenExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -3845,7 +3830,7 @@ extension InvalidParameterException { } /// Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3906,9 +3891,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3922,7 +3906,7 @@ extension InvalidResourceException { } /// Exception that indicates that the resource is invalid. You might not have access to the resource, or the resource might not exist. -public struct InvalidResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4003,9 +3987,8 @@ extension ShieldClientTypes { extension LimitsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.limit = output.limit self.message = output.message @@ -4023,7 +4006,7 @@ extension LimitsExceededException { } /// Exception that indicates that the operation would exceed a limit. -public struct LimitsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4208,9 +4191,8 @@ public enum ListAttacksOutputError: Swift.Error, Swift.Equatable { extension ListAttacksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAttacksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attackSummaries = output.attackSummaries self.nextToken = output.nextToken @@ -4365,9 +4347,8 @@ public enum ListProtectionGroupsOutputError: Swift.Error, Swift.Equatable { extension ListProtectionGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProtectionGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.protectionGroups = output.protectionGroups @@ -4523,9 +4504,8 @@ public enum ListProtectionsOutputError: Swift.Error, Swift.Equatable { extension ListProtectionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProtectionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.protections = output.protections @@ -4681,9 +4661,8 @@ public enum ListResourcesInProtectionGroupOutputError: Swift.Error, Swift.Equata extension ListResourcesInProtectionGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesInProtectionGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourceArns = output.resourceArns @@ -4816,9 +4795,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4866,9 +4844,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension LockedSubscriptionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LockedSubscriptionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4882,7 +4859,7 @@ extension LockedSubscriptionException { } /// You are trying to update a subscription that has not yet completed the 1-year commitment. You can change the AutoRenew parameter during the last 30 days of your subscription. This exception indicates that you are attempting to change AutoRenew prior to that period. -public struct LockedSubscriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LockedSubscriptionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4953,9 +4930,8 @@ extension ShieldClientTypes { extension NoAssociatedRoleException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NoAssociatedRoleExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4969,7 +4945,7 @@ extension NoAssociatedRoleException { } /// The ARN of the role that you specified does not exist. -public struct NoAssociatedRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NoAssociatedRoleException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5005,9 +4981,8 @@ extension NoAssociatedRoleExceptionBody: Swift.Decodable { extension OptimisticLockException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OptimisticLockExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5021,7 +4996,7 @@ extension OptimisticLockException { } /// Exception that indicates that the resource state has been modified by another client. Retrieve the resource and then retry your request. -public struct OptimisticLockException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OptimisticLockException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5577,9 +5552,8 @@ extension ShieldClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -5595,7 +5569,7 @@ extension ResourceAlreadyExistsException { } /// Exception indicating the specified resource already exists. If available, this exception includes details in additional properties. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5639,9 +5613,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -5657,7 +5630,7 @@ extension ResourceNotFoundException { } /// Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSigner/SignerClient.swift b/Sources/Services/AWSSigner/SignerClient.swift index c4d8f619805..ac23952b648 100644 --- a/Sources/Services/AWSSigner/SignerClient.swift +++ b/Sources/Services/AWSSigner/SignerClient.swift @@ -208,6 +208,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addProfilePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelSigningProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSigningJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSigningPlatform") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -319,7 +323,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +343,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSigningProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -352,7 +357,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +377,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProfilePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -385,7 +391,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -405,6 +411,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSigningJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +425,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -438,6 +445,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSigningPlatforms") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -451,7 +459,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -471,6 +479,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSigningProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +493,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +513,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -516,7 +526,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -536,6 +546,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSigningProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -551,7 +562,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +582,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeProfilePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +596,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +616,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeSignature") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -619,7 +632,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -639,6 +652,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeSigningProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -654,7 +668,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -687,6 +701,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSigningJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -710,7 +725,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -730,6 +745,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -745,7 +761,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -765,6 +781,7 @@ extension SignerClient: SignerClientProtocol { .withRegion(value: config.region) .withSigningName(value: "signer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -778,7 +795,7 @@ extension SignerClient: SignerClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSigner/models/Models.swift b/Sources/Services/AWSSigner/models/Models.swift index 2f0efd186d3..76a8eea085d 100644 --- a/Sources/Services/AWSSigner/models/Models.swift +++ b/Sources/Services/AWSSigner/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -205,9 +204,8 @@ public enum AddProfilePermissionOutputError: Swift.Error, Swift.Equatable { extension AddProfilePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddProfilePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.revisionId = output.revisionId } else { @@ -246,9 +244,8 @@ extension AddProfilePermissionOutputResponseBody: Swift.Decodable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -264,7 +261,7 @@ extension BadRequestException { } /// The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -405,9 +402,8 @@ extension SignerClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -423,7 +419,7 @@ extension ConflictException { } /// The resource encountered a conflicting state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -540,9 +536,8 @@ public enum DescribeSigningJobOutputError: Swift.Error, Swift.Equatable { extension DescribeSigningJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSigningJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completedAt = output.completedAt self.createdAt = output.createdAt @@ -955,9 +950,8 @@ public enum GetSigningPlatformOutputError: Swift.Error, Swift.Equatable { extension GetSigningPlatformOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSigningPlatformOutputResponseBody = try responseDecoder.decode(responseBody: data) self.category = output.category self.displayName = output.displayName @@ -1152,9 +1146,8 @@ public enum GetSigningProfileOutputError: Swift.Error, Swift.Equatable { extension GetSigningProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSigningProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.overrides = output.overrides @@ -1467,9 +1460,8 @@ extension SignerClientTypes { extension InternalServiceErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1485,7 +1477,7 @@ extension InternalServiceErrorException { } /// An internal error occurred. -public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1606,9 +1598,8 @@ public enum ListProfilePermissionsOutputError: Swift.Error, Swift.Equatable { extension ListProfilePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProfilePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -1818,9 +1809,8 @@ public enum ListSigningJobsOutputError: Swift.Error, Swift.Equatable { extension ListSigningJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSigningJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -1978,9 +1968,8 @@ public enum ListSigningPlatformsOutputError: Swift.Error, Swift.Equatable { extension ListSigningPlatformsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSigningPlatformsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.platforms = output.platforms @@ -2138,9 +2127,8 @@ public enum ListSigningProfilesOutputError: Swift.Error, Swift.Equatable { extension ListSigningProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSigningProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.profiles = output.profiles @@ -2257,9 +2245,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2307,9 +2294,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2325,7 +2311,7 @@ extension NotFoundException { } /// The signing profile was not found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2603,9 +2589,8 @@ public enum PutSigningProfileOutputError: Swift.Error, Swift.Equatable { extension PutSigningProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSigningProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.profileVersion = output.profileVersion @@ -2755,9 +2740,8 @@ public enum RemoveProfilePermissionOutputError: Swift.Error, Swift.Equatable { extension RemoveProfilePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveProfilePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.revisionId = output.revisionId } else { @@ -2796,9 +2780,8 @@ extension RemoveProfilePermissionOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2814,7 +2797,7 @@ extension ResourceNotFoundException { } /// A specified resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3235,9 +3218,8 @@ extension SignerClientTypes { extension ServiceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3253,7 +3235,7 @@ extension ServiceLimitExceededException { } /// The client is making a request that exceeds service limits. -public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4393,9 +4375,8 @@ public enum StartSigningJobOutputError: Swift.Error, Swift.Equatable { extension StartSigningJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSigningJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobOwner = output.jobOwner @@ -4550,9 +4531,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4569,7 +4549,7 @@ extension ThrottlingException { /// The request was denied due to request throttling. Instead of this error, TooManyRequestsException should be used. @available(*, deprecated, message: "Instead of this error, TooManyRequestsException should be used.") -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4612,9 +4592,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4630,7 +4609,7 @@ extension TooManyRequestsException { } /// The allowed number of job-signing requests has been exceeded. This error supersedes the error ThrottlingException. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4764,9 +4743,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4782,7 +4760,7 @@ extension ValidationException { } /// You signing certificate could not be validated. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSimSpaceWeaver/SimSpaceWeaverClient.swift b/Sources/Services/AWSSimSpaceWeaver/SimSpaceWeaverClient.swift index febffa1eafd..8500d0d8713 100644 --- a/Sources/Services/AWSSimSpaceWeaver/SimSpaceWeaverClient.swift +++ b/Sources/Services/AWSSimSpaceWeaver/SimSpaceWeaverClient.swift @@ -208,6 +208,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSimulation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSimulation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApps") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -353,7 +358,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -373,6 +378,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSimulations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -386,7 +392,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -406,6 +412,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -418,7 +425,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -438,6 +445,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startApp") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -461,7 +469,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -481,6 +489,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startClock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -496,7 +505,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -516,6 +525,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSimulation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -539,7 +549,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -559,6 +569,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopApp") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -574,7 +585,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -594,6 +605,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopClock") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -609,7 +621,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -629,6 +641,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopSimulation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -644,7 +657,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -664,6 +677,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -679,7 +693,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -699,6 +713,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { .withRegion(value: config.region) .withSigningName(value: "simspaceweaver") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -712,7 +727,7 @@ extension SimSpaceWeaverClient: SimSpaceWeaverClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSimSpaceWeaver/models/Models.swift b/Sources/Services/AWSSimSpaceWeaver/models/Models.swift index fcf2c4c50d1..1dedfae5dd1 100644 --- a/Sources/Services/AWSSimSpaceWeaver/models/Models.swift +++ b/Sources/Services/AWSSimSpaceWeaver/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -167,9 +166,8 @@ extension SimSpaceWeaverClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -183,7 +181,7 @@ extension ConflictException { } /// -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -500,9 +498,8 @@ public enum DescribeAppOutputError: Swift.Error, Swift.Equatable { extension DescribeAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.domain = output.domain @@ -682,9 +679,8 @@ public enum DescribeSimulationOutputError: Swift.Error, Swift.Equatable { extension DescribeSimulationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSimulationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -897,9 +893,8 @@ extension SimSpaceWeaverClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -913,7 +908,7 @@ extension InternalServerException { } /// -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1129,9 +1124,8 @@ public enum ListAppsOutputError: Swift.Error, Swift.Equatable { extension ListAppsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAppsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.apps = output.apps self.nextToken = output.nextToken @@ -1263,9 +1257,8 @@ public enum ListSimulationsOutputError: Swift.Error, Swift.Equatable { extension ListSimulationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSimulationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.simulations = output.simulations @@ -1378,9 +1371,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -1579,9 +1571,8 @@ extension SimSpaceWeaverClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1595,7 +1586,7 @@ extension ResourceNotFoundException { } /// -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1676,9 +1667,8 @@ extension SimSpaceWeaverClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1692,7 +1682,7 @@ extension ServiceQuotaExceededException { } /// -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2337,9 +2327,8 @@ public enum StartAppOutputError: Swift.Error, Swift.Equatable { extension StartAppOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAppOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domain = output.domain self.name = output.name @@ -2655,9 +2644,8 @@ public enum StartSimulationOutputError: Swift.Error, Swift.Equatable { extension StartSimulationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSimulationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.creationTime = output.creationTime @@ -3110,9 +3098,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3126,7 +3113,7 @@ extension TooManyTagsException { } /// -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3249,9 +3236,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3265,7 +3251,7 @@ extension ValidationException { } /// -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSnowDeviceManagement/SnowDeviceManagementClient.swift b/Sources/Services/AWSSnowDeviceManagement/SnowDeviceManagementClient.swift index 9c0c73b3e2e..053729aaec1 100644 --- a/Sources/Services/AWSSnowDeviceManagement/SnowDeviceManagementClient.swift +++ b/Sources/Services/AWSSnowDeviceManagement/SnowDeviceManagementClient.swift @@ -208,6 +208,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -263,7 +265,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -283,6 +285,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -295,7 +298,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -315,6 +318,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDeviceEc2Instances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -330,7 +334,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -350,6 +354,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -362,7 +367,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -382,6 +387,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -394,7 +400,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -414,6 +420,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDeviceResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -427,7 +434,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -447,6 +454,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -460,7 +468,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -480,6 +488,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -493,7 +502,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -513,6 +522,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -525,7 +535,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -545,6 +555,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -558,7 +569,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -578,6 +589,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +605,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +625,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snow-device-management") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -626,7 +639,7 @@ extension SnowDeviceManagementClient: SnowDeviceManagementClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSnowDeviceManagement/models/Models.swift b/Sources/Services/AWSSnowDeviceManagement/models/Models.swift index 6f9878cb106..0125c024883 100644 --- a/Sources/Services/AWSSnowDeviceManagement/models/Models.swift +++ b/Sources/Services/AWSSnowDeviceManagement/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -156,9 +155,8 @@ public enum CancelTaskOutputError: Swift.Error, Swift.Equatable { extension CancelTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskId = output.taskId } else { @@ -517,9 +515,8 @@ public enum CreateTaskOutputError: Swift.Error, Swift.Equatable { extension CreateTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskArn = output.taskArn self.taskId = output.taskId @@ -666,9 +663,8 @@ public enum DescribeDeviceEc2InstancesOutputError: Swift.Error, Swift.Equatable extension DescribeDeviceEc2InstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeviceEc2InstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.instances = output.instances } else { @@ -777,9 +773,8 @@ public enum DescribeDeviceOutputError: Swift.Error, Swift.Equatable { extension DescribeDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.associatedWithJob = output.associatedWithJob self.deviceCapacities = output.deviceCapacities @@ -1014,9 +1009,8 @@ public enum DescribeExecutionOutputError: Swift.Error, Swift.Equatable { extension DescribeExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executionId = output.executionId self.lastUpdatedAt = output.lastUpdatedAt @@ -1166,9 +1160,8 @@ public enum DescribeTaskOutputError: Swift.Error, Swift.Equatable { extension DescribeTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.completedAt = output.completedAt self.createdAt = output.createdAt @@ -1932,9 +1925,8 @@ extension SnowDeviceManagementClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1948,7 +1940,7 @@ extension InternalServerException { } /// An unexpected error occurred while processing the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2111,9 +2103,8 @@ public enum ListDeviceResourcesOutputError: Swift.Error, Swift.Equatable { extension ListDeviceResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDeviceResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resources = output.resources @@ -2255,9 +2246,8 @@ public enum ListDevicesOutputError: Swift.Error, Swift.Equatable { extension ListDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.nextToken = output.nextToken @@ -2412,9 +2402,8 @@ public enum ListExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executions = output.executions self.nextToken = output.nextToken @@ -2529,9 +2518,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2663,9 +2651,8 @@ public enum ListTasksOutputError: Swift.Error, Swift.Equatable { extension ListTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tasks = output.tasks @@ -2879,9 +2866,8 @@ extension SnowDeviceManagementClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2895,7 +2881,7 @@ extension ResourceNotFoundException { } /// The request references a resource that doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3033,9 +3019,8 @@ extension SnowDeviceManagementClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3049,7 +3034,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3358,9 +3343,8 @@ extension SnowDeviceManagementClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3374,7 +3358,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3555,9 +3539,8 @@ public struct UntagResourceOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3571,7 +3554,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSnowball/SnowballClient.swift b/Sources/Services/AWSSnowball/SnowballClient.swift index f9421a02a5a..3dc0c91aac9 100644 --- a/Sources/Services/AWSSnowball/SnowballClient.swift +++ b/Sources/Services/AWSSnowball/SnowballClient.swift @@ -208,6 +208,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -421,6 +425,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -437,7 +442,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -457,6 +462,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLongTermPricing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -473,7 +479,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -493,6 +499,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createReturnShippingLabel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -509,7 +516,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -529,6 +536,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -545,7 +553,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -565,6 +573,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAddresses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -581,7 +590,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -601,6 +610,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -617,7 +627,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -637,6 +647,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -653,7 +664,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -673,6 +684,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeReturnShippingLabel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -689,7 +701,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -709,6 +721,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobManifest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -725,7 +738,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -745,6 +758,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getJobUnlockCode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -761,7 +775,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -781,6 +795,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSnowballUsage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -797,7 +812,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -817,6 +832,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSoftwareUpdates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -833,7 +849,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -853,6 +869,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusterJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -869,7 +886,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -889,6 +906,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listClusters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -905,7 +923,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -925,6 +943,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCompatibleImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -941,7 +960,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -961,6 +980,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -977,7 +997,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -997,6 +1017,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLongTermPricing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1013,7 +1034,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1033,6 +1054,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1049,7 +1071,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1069,6 +1091,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCluster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1085,7 +1108,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1105,6 +1128,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1121,7 +1145,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1141,6 +1165,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateJobShipmentState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1157,7 +1182,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1177,6 +1202,7 @@ extension SnowballClient: SnowballClientProtocol { .withRegion(value: config.region) .withSigningName(value: "snowball") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLongTermPricing") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1193,7 +1219,7 @@ extension SnowballClient: SnowballClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSnowball/models/Models.swift b/Sources/Services/AWSSnowball/models/Models.swift index e44c6f8ae01..b382219bbd5 100644 --- a/Sources/Services/AWSSnowball/models/Models.swift +++ b/Sources/Services/AWSSnowball/models/Models.swift @@ -337,9 +337,8 @@ public struct CancelJobOutputResponse: Swift.Equatable { extension ClusterLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ClusterLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -353,7 +352,7 @@ extension ClusterLimitExceededException { } /// Job creation failed. Currently, clusters support five nodes. If you have fewer than five nodes for your cluster and you have more nodes to create for this cluster, try again and create jobs until your cluster has exactly five nodes. -public struct ClusterLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ClusterLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -723,9 +722,8 @@ extension SnowballClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.conflictResource = output.conflictResource self.message = output.message @@ -741,7 +739,7 @@ extension ConflictException { } /// You get this exception when you call CreateReturnShippingLabel more than once when other requests are not completed. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -857,9 +855,8 @@ public enum CreateAddressOutputError: Swift.Error, Swift.Equatable { extension CreateAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addressId = output.addressId } else { @@ -1142,9 +1139,8 @@ public enum CreateClusterOutputError: Swift.Error, Swift.Equatable { extension CreateClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterId = output.clusterId } else { @@ -1460,9 +1456,8 @@ public enum CreateJobOutputError: Swift.Error, Swift.Equatable { extension CreateJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -1595,9 +1590,8 @@ public enum CreateLongTermPricingOutputError: Swift.Error, Swift.Equatable { extension CreateLongTermPricingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLongTermPricingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.longTermPricingId = output.longTermPricingId } else { @@ -1726,9 +1720,8 @@ public enum CreateReturnShippingLabelOutputError: Swift.Error, Swift.Equatable { extension CreateReturnShippingLabelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateReturnShippingLabelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -1947,9 +1940,8 @@ public enum DescribeAddressOutputError: Swift.Error, Swift.Equatable { extension DescribeAddressOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAddressOutputResponseBody = try responseDecoder.decode(responseBody: data) self.address = output.address } else { @@ -2071,9 +2063,8 @@ public enum DescribeAddressesOutputError: Swift.Error, Swift.Equatable { extension DescribeAddressesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAddressesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addresses = output.addresses self.nextToken = output.nextToken @@ -2201,9 +2192,8 @@ public enum DescribeClusterOutputError: Swift.Error, Swift.Equatable { extension DescribeClusterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClusterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterMetadata = output.clusterMetadata } else { @@ -2312,9 +2302,8 @@ public enum DescribeJobOutputError: Swift.Error, Swift.Equatable { extension DescribeJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobMetadata = output.jobMetadata self.subJobMetadata = output.subJobMetadata @@ -2446,9 +2435,8 @@ public enum DescribeReturnShippingLabelOutputError: Swift.Error, Swift.Equatable extension DescribeReturnShippingLabelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeReturnShippingLabelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expirationDate = output.expirationDate self.returnShippingLabelURI = output.returnShippingLabelURI @@ -2665,9 +2653,8 @@ extension SnowballClientTypes { extension Ec2RequestFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: Ec2RequestFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2681,7 +2668,7 @@ extension Ec2RequestFailedException { } /// Your IAM user lacks the necessary Amazon EC2 permissions to perform the attempted action. -public struct Ec2RequestFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct Ec2RequestFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2824,9 +2811,8 @@ public enum GetJobManifestOutputError: Swift.Error, Swift.Equatable { extension GetJobManifestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobManifestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.manifestURI = output.manifestURI } else { @@ -2937,9 +2923,8 @@ public enum GetJobUnlockCodeOutputError: Swift.Error, Swift.Equatable { extension GetJobUnlockCodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetJobUnlockCodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unlockCode = output.unlockCode } else { @@ -3026,9 +3011,8 @@ public enum GetSnowballUsageOutputError: Swift.Error, Swift.Equatable { extension GetSnowballUsageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSnowballUsageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snowballLimit = output.snowballLimit self.snowballsInUse = output.snowballsInUse @@ -3149,9 +3133,8 @@ public enum GetSoftwareUpdatesOutputError: Swift.Error, Swift.Equatable { extension GetSoftwareUpdatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSoftwareUpdatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.updatesURI = output.updatesURI } else { @@ -3225,9 +3208,8 @@ extension SnowballClientTypes { extension InvalidAddressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidAddressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3241,7 +3223,7 @@ extension InvalidAddressException { } /// The address provided was invalid. Check the address with your region's carrier, and try again. -public struct InvalidAddressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidAddressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3277,9 +3259,8 @@ extension InvalidAddressExceptionBody: Swift.Decodable { extension InvalidInputCombinationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidInputCombinationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3293,7 +3274,7 @@ extension InvalidInputCombinationException { } /// Job or cluster creation failed. One or more inputs were invalid. Confirm that the [CreateClusterRequest$SnowballType] value supports your [CreateJobRequest$JobType], and try again. -public struct InvalidInputCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidInputCombinationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3329,9 +3310,8 @@ extension InvalidInputCombinationExceptionBody: Swift.Decodable { extension InvalidJobStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidJobStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3345,7 +3325,7 @@ extension InvalidJobStateException { } /// The action can't be performed because the job's current state doesn't allow that action to be performed. -public struct InvalidJobStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidJobStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3381,9 +3361,8 @@ extension InvalidJobStateExceptionBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3397,7 +3376,7 @@ extension InvalidNextTokenException { } /// The NextToken string was altered unexpectedly, and the operation has stopped. Run the operation without changing the NextToken string, and try again. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3433,9 +3412,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -3451,7 +3429,7 @@ extension InvalidResourceException { } /// The specified resource can't be found. Check the information you provided in your last request, and try again. -public struct InvalidResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4081,9 +4059,8 @@ extension SnowballClientTypes { extension KMSRequestFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: KMSRequestFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4097,7 +4074,7 @@ extension KMSRequestFailedException { } /// The provided Key Management Service key lacks the permissions to perform the specified [CreateJob] or [UpdateJob] action. -public struct KMSRequestFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct KMSRequestFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4331,9 +4308,8 @@ public enum ListClusterJobsOutputError: Swift.Error, Swift.Equatable { extension ListClusterJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClusterJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobListEntries = output.jobListEntries self.nextToken = output.nextToken @@ -4472,9 +4448,8 @@ public enum ListClustersOutputError: Swift.Error, Swift.Equatable { extension ListClustersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListClustersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clusterListEntries = output.clusterListEntries self.nextToken = output.nextToken @@ -4615,9 +4590,8 @@ public enum ListCompatibleImagesOutputError: Swift.Error, Swift.Equatable { extension ListCompatibleImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCompatibleImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.compatibleImages = output.compatibleImages self.nextToken = output.nextToken @@ -4756,9 +4730,8 @@ public enum ListJobsOutputError: Swift.Error, Swift.Equatable { extension ListJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobListEntries = output.jobListEntries self.nextToken = output.nextToken @@ -4899,9 +4872,8 @@ public enum ListLongTermPricingOutputError: Swift.Error, Swift.Equatable { extension ListLongTermPricingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLongTermPricingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.longTermPricingEntries = output.longTermPricingEntries self.nextToken = output.nextToken @@ -5079,9 +5051,8 @@ public enum ListServiceVersionsOutputError: Swift.Error, Swift.Equatable { extension ListServiceVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dependentServices = output.dependentServices self.nextToken = output.nextToken @@ -5538,9 +5509,8 @@ extension SnowballClientTypes { extension ReturnShippingLabelAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReturnShippingLabelAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5554,7 +5524,7 @@ extension ReturnShippingLabelAlreadyExistsException { } /// You get this exception if you call CreateReturnShippingLabel and a valid return shipping label already exists. In this case, use DescribeReturnShippingLabel to get the URL. -public struct ReturnShippingLabelAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReturnShippingLabelAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6267,9 +6237,8 @@ extension SnowballClientTypes { extension UnsupportedAddressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedAddressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6283,7 +6252,7 @@ extension UnsupportedAddressException { } /// The address is either outside the serviceable area for your region, or an error occurred. Check the address with your region's carrier and try again. If the issue persists, contact Amazon Web Services Support. -public struct UnsupportedAddressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedAddressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSsmSap/SsmSapClient.swift b/Sources/Services/AWSSsmSap/SsmSapClient.swift index 5b3bc48f6a2..61b533e69eb 100644 --- a/Sources/Services/AWSSsmSap/SsmSapClient.swift +++ b/Sources/Services/AWSSsmSap/SsmSapClient.swift @@ -208,6 +208,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getComponent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -433,7 +440,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -453,6 +460,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listApplications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -468,7 +476,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -488,6 +496,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listComponents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -503,7 +512,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -523,6 +532,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatabases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -538,7 +548,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -558,6 +568,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -573,7 +584,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -593,6 +604,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -605,7 +617,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -625,6 +637,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -640,7 +653,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -660,6 +673,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerApplication") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -675,7 +689,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -695,6 +709,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -710,7 +725,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -730,6 +745,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -743,7 +759,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -763,6 +779,7 @@ extension SsmSapClient: SsmSapClientProtocol { .withRegion(value: config.region) .withSigningName(value: "ssm-sap") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateApplicationSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -778,7 +795,7 @@ extension SsmSapClient: SsmSapClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSsmSap/models/Models.swift b/Sources/Services/AWSSsmSap/models/Models.swift index b74a6b8a121..5a4bb381b51 100644 --- a/Sources/Services/AWSSsmSap/models/Models.swift +++ b/Sources/Services/AWSSsmSap/models/Models.swift @@ -604,9 +604,8 @@ extension SsmSapClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -620,7 +619,7 @@ extension ConflictException { } /// A conflict has occurred. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1100,9 +1099,8 @@ public enum DeleteResourcePermissionOutputError: Swift.Error, Swift.Equatable { extension DeleteResourcePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteResourcePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -1411,9 +1409,8 @@ public enum GetApplicationOutputError: Swift.Error, Swift.Equatable { extension GetApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application self.tags = output.tags @@ -1556,9 +1553,8 @@ public enum GetComponentOutputError: Swift.Error, Swift.Equatable { extension GetComponentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetComponentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.component = output.component } else { @@ -1704,9 +1700,8 @@ public enum GetDatabaseOutputError: Swift.Error, Swift.Equatable { extension GetDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.database = output.database self.tags = output.tags @@ -1836,9 +1831,8 @@ public enum GetOperationOutputError: Swift.Error, Swift.Equatable { extension GetOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operation = output.operation } else { @@ -1963,9 +1957,8 @@ public enum GetResourcePermissionOutputError: Swift.Error, Swift.Equatable { extension GetResourcePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -2107,9 +2100,8 @@ extension SsmSapClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2123,7 +2115,7 @@ extension InternalServerException { } /// An internal error has occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2244,9 +2236,8 @@ public enum ListApplicationsOutputError: Swift.Error, Swift.Equatable { extension ListApplicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListApplicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applications = output.applications self.nextToken = output.nextToken @@ -2401,9 +2392,8 @@ public enum ListComponentsOutputError: Swift.Error, Swift.Equatable { extension ListComponentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListComponentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.components = output.components self.nextToken = output.nextToken @@ -2570,9 +2560,8 @@ public enum ListDatabasesOutputError: Swift.Error, Swift.Equatable { extension ListDatabasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatabasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databases = output.databases self.nextToken = output.nextToken @@ -2750,9 +2739,8 @@ public enum ListOperationsOutputError: Swift.Error, Swift.Equatable { extension ListOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.operations = output.operations @@ -2867,9 +2855,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3230,9 +3217,8 @@ public enum PutResourcePermissionOutputError: Swift.Error, Swift.Equatable { extension PutResourcePermissionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePermissionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -3456,9 +3442,8 @@ public enum RegisterApplicationOutputError: Swift.Error, Swift.Equatable { extension RegisterApplicationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterApplicationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.application = output.application self.operationId = output.operationId @@ -3507,9 +3492,8 @@ extension RegisterApplicationOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3523,7 +3507,7 @@ extension ResourceNotFoundException { } /// The resource is not available. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3874,9 +3858,8 @@ public enum UpdateApplicationSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateApplicationSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateApplicationSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.operationIds = output.operationIds @@ -3934,9 +3917,8 @@ extension UpdateApplicationSettingsOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3950,7 +3932,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by an AWS service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSStorageGateway/StorageGatewayClient.swift b/Sources/Services/AWSStorageGateway/StorageGatewayClient.swift index ffe74ea7775..e4c5a2d0f6e 100644 --- a/Sources/Services/AWSStorageGateway/StorageGatewayClient.swift +++ b/Sources/Services/AWSStorageGateway/StorageGatewayClient.swift @@ -208,6 +208,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -293,6 +295,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addTagsToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -309,7 +312,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -329,6 +332,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addUploadBuffer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -345,7 +349,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -365,6 +369,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addWorkingStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -381,7 +386,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -401,6 +406,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assignTapePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -417,7 +423,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -437,6 +443,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateFileSystem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -453,7 +460,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -473,6 +480,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "attachVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -489,7 +497,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -509,6 +517,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelArchival") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -525,7 +534,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -545,6 +554,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelRetrieval") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -561,7 +571,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -581,6 +591,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCachediSCSIVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -597,7 +608,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -617,6 +628,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNFSFileShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -633,7 +645,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -653,6 +665,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSMBFileShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -669,7 +682,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -689,6 +702,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshot") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -705,7 +719,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -725,6 +739,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSnapshotFromVolumeRecoveryPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -741,7 +756,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -761,6 +776,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStorediSCSIVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -777,7 +793,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -797,6 +813,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTapePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -813,7 +830,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -833,6 +850,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTapeWithBarcode") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -849,7 +867,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -869,6 +887,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTapes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -885,7 +904,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -905,6 +924,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAutomaticTapeCreationPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -921,7 +941,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -941,6 +961,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBandwidthRateLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -957,7 +978,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -977,6 +998,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteChapCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -993,7 +1015,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1013,6 +1035,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFileShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1029,7 +1052,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1049,6 +1072,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1065,7 +1089,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1085,6 +1109,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSnapshotSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1101,7 +1126,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1121,6 +1146,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTape") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1163,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1183,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTapeArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1173,7 +1200,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1193,6 +1220,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTapePool") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1209,7 +1237,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1229,6 +1257,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1245,7 +1274,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1265,6 +1294,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAvailabilityMonitorTest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1281,7 +1311,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1301,6 +1331,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBandwidthRateLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1317,7 +1348,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1337,6 +1368,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBandwidthRateLimitSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1353,7 +1385,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1373,6 +1405,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1389,7 +1422,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1409,6 +1442,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCachediSCSIVolumes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1425,7 +1459,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1445,6 +1479,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeChapCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1461,7 +1496,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1481,6 +1516,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFileSystemAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1497,7 +1533,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1517,6 +1553,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGatewayInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1533,7 +1570,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1553,6 +1590,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMaintenanceStartTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1569,7 +1607,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1589,6 +1627,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNFSFileShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1605,7 +1644,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1625,6 +1664,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSMBFileShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1641,7 +1681,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1661,6 +1701,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSMBSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1677,7 +1718,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1697,6 +1738,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSnapshotSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1713,7 +1755,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1733,6 +1775,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeStorediSCSIVolumes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1749,7 +1792,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1769,6 +1812,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTapeArchives") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1785,7 +1829,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1805,6 +1849,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTapeRecoveryPoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1821,7 +1866,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1841,6 +1886,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTapes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1857,7 +1903,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1877,6 +1923,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUploadBuffer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1893,7 +1940,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1913,6 +1960,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeVTLDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1929,7 +1977,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1949,6 +1997,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkingStorage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1965,7 +2014,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1985,6 +2034,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detachVolume") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2001,7 +2051,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2021,6 +2071,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disableGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2037,7 +2088,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2057,6 +2108,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFileSystem") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2073,7 +2125,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2093,6 +2145,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "joinDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2109,7 +2162,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2129,6 +2182,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAutomaticTapeCreationPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2145,7 +2199,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2165,6 +2219,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFileShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2181,7 +2236,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2201,6 +2256,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFileSystemAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2217,7 +2273,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2237,6 +2293,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGateways") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2253,7 +2310,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2273,6 +2330,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLocalDisks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2289,7 +2347,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2309,6 +2367,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2325,7 +2384,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2345,6 +2404,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTapePools") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2361,7 +2421,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2381,6 +2441,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTapes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2397,7 +2458,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2417,6 +2478,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVolumeInitiators") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2433,7 +2495,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2453,6 +2515,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVolumeRecoveryPoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2469,7 +2532,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2489,6 +2552,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVolumes") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2505,7 +2569,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2525,6 +2589,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyWhenUploaded") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2541,7 +2606,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2570,6 +2635,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "refreshCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2586,7 +2652,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2606,6 +2672,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeTagsFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2622,7 +2689,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2642,6 +2709,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetCache") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2658,7 +2726,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2678,6 +2746,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retrieveTapeArchive") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2694,7 +2763,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2714,6 +2783,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "retrieveTapeRecoveryPoint") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2730,7 +2800,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2750,6 +2820,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setLocalConsolePassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2766,7 +2837,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2786,6 +2857,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "setSMBGuestPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2802,7 +2874,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2822,6 +2894,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "shutdownGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2838,7 +2911,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2858,6 +2931,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startAvailabilityMonitorTest") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2874,7 +2948,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2894,6 +2968,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startGateway") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2910,7 +2985,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2930,6 +3005,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAutomaticTapeCreationPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2946,7 +3022,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2966,6 +3042,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBandwidthRateLimit") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2982,7 +3059,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3002,6 +3079,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBandwidthRateLimitSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3018,7 +3096,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3038,6 +3116,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateChapCredentials") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3054,7 +3133,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3074,6 +3153,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFileSystemAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3090,7 +3170,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3110,6 +3190,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewayInformation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3126,7 +3207,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3146,6 +3227,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGatewaySoftwareNow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3162,7 +3244,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3182,6 +3264,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMaintenanceStartTime") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3198,7 +3281,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3228,6 +3311,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNFSFileShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3244,7 +3328,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3264,6 +3348,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSMBFileShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3280,7 +3365,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3300,6 +3385,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSMBFileShareVisibility") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3316,7 +3402,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3336,6 +3422,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSMBLocalGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3352,7 +3439,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3372,6 +3459,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSMBSecurityStrategy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3388,7 +3476,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3408,6 +3496,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSnapshotSchedule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3424,7 +3513,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3444,6 +3533,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "storagegateway") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVTLDeviceType") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3460,7 +3550,7 @@ extension StorageGatewayClient: StorageGatewayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSStorageGateway/models/Models.swift b/Sources/Services/AWSStorageGateway/models/Models.swift index d38a2ee9720..3395b4b4631 100644 --- a/Sources/Services/AWSStorageGateway/models/Models.swift +++ b/Sources/Services/AWSStorageGateway/models/Models.swift @@ -190,9 +190,8 @@ public enum ActivateGatewayOutputError: Swift.Error, Swift.Equatable { extension ActivateGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivateGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -376,9 +375,8 @@ public enum AddCacheOutputError: Swift.Error, Swift.Equatable { extension AddCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -515,9 +513,8 @@ public enum AddTagsToResourceOutputError: Swift.Error, Swift.Equatable { extension AddTagsToResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddTagsToResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceARN = output.resourceARN } else { @@ -654,9 +651,8 @@ public enum AddUploadBufferOutputError: Swift.Error, Swift.Equatable { extension AddUploadBufferOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddUploadBufferOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -795,9 +791,8 @@ public enum AddWorkingStorageOutputError: Swift.Error, Swift.Equatable { extension AddWorkingStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddWorkingStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -934,9 +929,8 @@ public enum AssignTapePoolOutputError: Swift.Error, Swift.Equatable { extension AssignTapePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssignTapePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARN = output.tapeARN } else { @@ -1164,9 +1158,8 @@ public enum AssociateFileSystemOutputError: Swift.Error, Swift.Equatable { extension AssociateFileSystemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateFileSystemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystemAssociationARN = output.fileSystemAssociationARN } else { @@ -1328,9 +1321,8 @@ public enum AttachVolumeOutputError: Swift.Error, Swift.Equatable { extension AttachVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.targetARN = output.targetARN self.volumeARN = output.volumeARN @@ -1939,9 +1931,8 @@ public enum CancelArchivalOutputError: Swift.Error, Swift.Equatable { extension CancelArchivalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelArchivalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARN = output.tapeARN } else { @@ -2067,9 +2058,8 @@ public enum CancelRetrievalOutputError: Swift.Error, Swift.Equatable { extension CancelRetrievalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelRetrievalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARN = output.tapeARN } else { @@ -2407,9 +2397,8 @@ public enum CreateCachediSCSIVolumeOutputError: Swift.Error, Swift.Equatable { extension CreateCachediSCSIVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCachediSCSIVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.targetARN = output.targetARN self.volumeARN = output.volumeARN @@ -2804,9 +2793,8 @@ public enum CreateNFSFileShareOutputError: Swift.Error, Swift.Equatable { extension CreateNFSFileShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNFSFileShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileShareARN = output.fileShareARN } else { @@ -3270,9 +3258,8 @@ public enum CreateSMBFileShareOutputError: Swift.Error, Swift.Equatable { extension CreateSMBFileShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSMBFileShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileShareARN = output.fileShareARN } else { @@ -3423,9 +3410,8 @@ public enum CreateSnapshotFromVolumeRecoveryPointOutputError: Swift.Error, Swift extension CreateSnapshotFromVolumeRecoveryPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotFromVolumeRecoveryPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotId = output.snapshotId self.volumeARN = output.volumeARN @@ -3600,9 +3586,8 @@ public enum CreateSnapshotOutputError: Swift.Error, Swift.Equatable { extension CreateSnapshotOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSnapshotOutputResponseBody = try responseDecoder.decode(responseBody: data) self.snapshotId = output.snapshotId self.volumeARN = output.volumeARN @@ -3847,9 +3832,8 @@ public enum CreateStorediSCSIVolumeOutputError: Swift.Error, Swift.Equatable { extension CreateStorediSCSIVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStorediSCSIVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.targetARN = output.targetARN self.volumeARN = output.volumeARN @@ -4042,9 +4026,8 @@ public enum CreateTapePoolOutputError: Swift.Error, Swift.Equatable { extension CreateTapePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTapePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.poolARN = output.poolARN } else { @@ -4254,9 +4237,8 @@ public enum CreateTapeWithBarcodeOutputError: Swift.Error, Swift.Equatable { extension CreateTapeWithBarcodeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTapeWithBarcodeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARN = output.tapeARN } else { @@ -4493,9 +4475,8 @@ public enum CreateTapesOutputError: Swift.Error, Swift.Equatable { extension CreateTapesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTapesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARNs = output.tapeARNs } else { @@ -4616,9 +4597,8 @@ public enum DeleteAutomaticTapeCreationPolicyOutputError: Swift.Error, Swift.Equ extension DeleteAutomaticTapeCreationPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteAutomaticTapeCreationPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -4745,9 +4725,8 @@ public enum DeleteBandwidthRateLimitOutputError: Swift.Error, Swift.Equatable { extension DeleteBandwidthRateLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteBandwidthRateLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -4877,9 +4856,8 @@ public enum DeleteChapCredentialsOutputError: Swift.Error, Swift.Equatable { extension DeleteChapCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteChapCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.initiatorName = output.initiatorName self.targetARN = output.targetARN @@ -5014,9 +4992,8 @@ public enum DeleteFileShareOutputError: Swift.Error, Swift.Equatable { extension DeleteFileShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFileShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileShareARN = output.fileShareARN } else { @@ -5129,9 +5106,8 @@ public enum DeleteGatewayOutputError: Swift.Error, Swift.Equatable { extension DeleteGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -5243,9 +5219,8 @@ public enum DeleteSnapshotScheduleOutputError: Swift.Error, Swift.Equatable { extension DeleteSnapshotScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSnapshotScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volumeARN = output.volumeARN } else { @@ -5369,9 +5344,8 @@ public enum DeleteTapeArchiveOutputError: Swift.Error, Swift.Equatable { extension DeleteTapeArchiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTapeArchiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARN = output.tapeARN } else { @@ -5509,9 +5483,8 @@ public enum DeleteTapeOutputError: Swift.Error, Swift.Equatable { extension DeleteTapeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTapeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARN = output.tapeARN } else { @@ -5623,9 +5596,8 @@ public enum DeleteTapePoolOutputError: Swift.Error, Swift.Equatable { extension DeleteTapePoolOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTapePoolOutputResponseBody = try responseDecoder.decode(responseBody: data) self.poolARN = output.poolARN } else { @@ -5737,9 +5709,8 @@ public enum DeleteVolumeOutputError: Swift.Error, Swift.Equatable { extension DeleteVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volumeARN = output.volumeARN } else { @@ -5851,9 +5822,8 @@ public enum DescribeAvailabilityMonitorTestOutputError: Swift.Error, Swift.Equat extension DescribeAvailabilityMonitorTestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAvailabilityMonitorTestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN self.startTime = output.startTime @@ -5985,9 +5955,8 @@ public enum DescribeBandwidthRateLimitOutputError: Swift.Error, Swift.Equatable extension DescribeBandwidthRateLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBandwidthRateLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.averageDownloadRateLimitInBitsPerSec = output.averageDownloadRateLimitInBitsPerSec self.averageUploadRateLimitInBitsPerSec = output.averageUploadRateLimitInBitsPerSec @@ -6119,9 +6088,8 @@ public enum DescribeBandwidthRateLimitScheduleOutputError: Swift.Error, Swift.Eq extension DescribeBandwidthRateLimitScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBandwidthRateLimitScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bandwidthRateLimitIntervals = output.bandwidthRateLimitIntervals self.gatewayARN = output.gatewayARN @@ -6251,9 +6219,8 @@ public enum DescribeCacheOutputError: Swift.Error, Swift.Equatable { extension DescribeCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cacheAllocatedInBytes = output.cacheAllocatedInBytes self.cacheDirtyPercentage = output.cacheDirtyPercentage @@ -6445,9 +6412,8 @@ public enum DescribeCachediSCSIVolumesOutputError: Swift.Error, Swift.Equatable extension DescribeCachediSCSIVolumesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCachediSCSIVolumesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cachediSCSIVolumes = output.cachediSCSIVolumes } else { @@ -6569,9 +6535,8 @@ public enum DescribeChapCredentialsOutputError: Swift.Error, Swift.Equatable { extension DescribeChapCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeChapCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.chapCredentials = output.chapCredentials } else { @@ -6712,9 +6677,8 @@ public enum DescribeFileSystemAssociationsOutputError: Swift.Error, Swift.Equata extension DescribeFileSystemAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFileSystemAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystemAssociationInfoList = output.fileSystemAssociationInfoList } else { @@ -6835,9 +6799,8 @@ public enum DescribeGatewayInformationOutputError: Swift.Error, Swift.Equatable extension DescribeGatewayInformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGatewayInformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cloudWatchLogGroupARN = output.cloudWatchLogGroupARN self.deprecationDate = output.deprecationDate @@ -7177,9 +7140,8 @@ public enum DescribeMaintenanceStartTimeOutputError: Swift.Error, Swift.Equatabl extension DescribeMaintenanceStartTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMaintenanceStartTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dayOfMonth = output.dayOfMonth self.dayOfWeek = output.dayOfWeek @@ -7364,9 +7326,8 @@ public enum DescribeNFSFileSharesOutputError: Swift.Error, Swift.Equatable { extension DescribeNFSFileSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNFSFileSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nfsFileShareInfoList = output.nfsFileShareInfoList } else { @@ -7500,9 +7461,8 @@ public enum DescribeSMBFileSharesOutputError: Swift.Error, Swift.Equatable { extension DescribeSMBFileSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSMBFileSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.smbFileShareInfoList = output.smbFileShareInfoList } else { @@ -7623,9 +7583,8 @@ public enum DescribeSMBSettingsOutputError: Swift.Error, Swift.Equatable { extension DescribeSMBSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSMBSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeDirectoryStatus = output.activeDirectoryStatus self.domainName = output.domainName @@ -7817,9 +7776,8 @@ public enum DescribeSnapshotScheduleOutputError: Swift.Error, Swift.Equatable { extension DescribeSnapshotScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSnapshotScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.recurrenceInHours = output.recurrenceInHours @@ -8002,9 +7960,8 @@ public enum DescribeStorediSCSIVolumesOutputError: Swift.Error, Swift.Equatable extension DescribeStorediSCSIVolumesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeStorediSCSIVolumesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.storediSCSIVolumes = output.storediSCSIVolumes } else { @@ -8192,9 +8149,8 @@ public enum DescribeTapeArchivesOutputError: Swift.Error, Swift.Equatable { extension DescribeTapeArchivesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTapeArchivesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.tapeArchives = output.tapeArchives @@ -8350,9 +8306,8 @@ public enum DescribeTapeRecoveryPointsOutputError: Swift.Error, Swift.Equatable extension DescribeTapeRecoveryPointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTapeRecoveryPointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN self.marker = output.marker @@ -8542,9 +8497,8 @@ public enum DescribeTapesOutputError: Swift.Error, Swift.Equatable { extension DescribeTapesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTapesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.tapes = output.tapes @@ -8675,9 +8629,8 @@ public enum DescribeUploadBufferOutputError: Swift.Error, Swift.Equatable { extension DescribeUploadBufferOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUploadBufferOutputResponseBody = try responseDecoder.decode(responseBody: data) self.diskIds = output.diskIds self.gatewayARN = output.gatewayARN @@ -8876,9 +8829,8 @@ public enum DescribeVTLDevicesOutputError: Swift.Error, Swift.Equatable { extension DescribeVTLDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeVTLDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN self.marker = output.marker @@ -9020,9 +8972,8 @@ public enum DescribeWorkingStorageOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkingStorageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkingStorageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.diskIds = output.diskIds self.gatewayARN = output.gatewayARN @@ -9186,9 +9137,8 @@ public enum DetachVolumeOutputError: Swift.Error, Swift.Equatable { extension DetachVolumeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetachVolumeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volumeARN = output.volumeARN } else { @@ -9366,9 +9316,8 @@ public enum DisableGatewayOutputError: Swift.Error, Swift.Equatable { extension DisableGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisableGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -9492,9 +9441,8 @@ public enum DisassociateFileSystemOutputError: Swift.Error, Swift.Equatable { extension DisassociateFileSystemOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateFileSystemOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystemAssociationARN = output.fileSystemAssociationARN } else { @@ -10450,9 +10398,8 @@ extension StorageGatewayClientTypes { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.message = output.message @@ -10468,7 +10415,7 @@ extension InternalServerError { } /// An internal server error has occurred during the request. For more information, see the error and message fields. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10513,9 +10460,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidGatewayRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidGatewayRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.message = output.message @@ -10531,7 +10477,7 @@ extension InvalidGatewayRequestException { } /// An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields. -public struct InvalidGatewayRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidGatewayRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10741,9 +10687,8 @@ public enum JoinDomainOutputError: Swift.Error, Swift.Equatable { extension JoinDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: JoinDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activeDirectoryStatus = output.activeDirectoryStatus self.gatewayARN = output.gatewayARN @@ -10878,9 +10823,8 @@ public enum ListAutomaticTapeCreationPoliciesOutputError: Swift.Error, Swift.Equ extension ListAutomaticTapeCreationPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAutomaticTapeCreationPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.automaticTapeCreationPolicyInfos = output.automaticTapeCreationPolicyInfos } else { @@ -11024,9 +10968,8 @@ public enum ListFileSharesOutputError: Swift.Error, Swift.Equatable { extension ListFileSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFileSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileShareInfoList = output.fileShareInfoList self.marker = output.marker @@ -11190,9 +11133,8 @@ public enum ListFileSystemAssociationsOutputError: Swift.Error, Swift.Equatable extension ListFileSystemAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFileSystemAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystemAssociationSummaryList = output.fileSystemAssociationSummaryList self.marker = output.marker @@ -11348,9 +11290,8 @@ public enum ListGatewaysOutputError: Swift.Error, Swift.Equatable { extension ListGatewaysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGatewaysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gateways = output.gateways self.marker = output.marker @@ -11481,9 +11422,8 @@ public enum ListLocalDisksOutputError: Swift.Error, Swift.Equatable { extension ListLocalDisksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLocalDisksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disks = output.disks self.gatewayARN = output.gatewayARN @@ -11640,9 +11580,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.resourceARN = output.resourceARN @@ -11818,9 +11757,8 @@ public enum ListTapePoolsOutputError: Swift.Error, Swift.Equatable { extension ListTapePoolsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTapePoolsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.poolInfos = output.poolInfos @@ -11992,9 +11930,8 @@ public enum ListTapesOutputError: Swift.Error, Swift.Equatable { extension ListTapesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTapesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.tapeInfos = output.tapeInfos @@ -12130,9 +12067,8 @@ public enum ListVolumeInitiatorsOutputError: Swift.Error, Swift.Equatable { extension ListVolumeInitiatorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVolumeInitiatorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.initiators = output.initiators } else { @@ -12253,9 +12189,8 @@ public enum ListVolumeRecoveryPointsOutputError: Swift.Error, Swift.Equatable { extension ListVolumeRecoveryPointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVolumeRecoveryPointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN self.volumeRecoveryPointInfos = output.volumeRecoveryPointInfos @@ -12413,9 +12348,8 @@ public enum ListVolumesOutputError: Swift.Error, Swift.Equatable { extension ListVolumesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVolumesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN self.marker = output.marker @@ -12975,9 +12909,8 @@ public enum NotifyWhenUploadedOutputError: Swift.Error, Swift.Equatable { extension NotifyWhenUploadedOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotifyWhenUploadedOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileShareARN = output.fileShareARN self.notificationId = output.notificationId @@ -13300,9 +13233,8 @@ public enum RefreshCacheOutputError: Swift.Error, Swift.Equatable { extension RefreshCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RefreshCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileShareARN = output.fileShareARN self.notificationId = output.notificationId @@ -13450,9 +13382,8 @@ public enum RemoveTagsFromResourceOutputError: Swift.Error, Swift.Equatable { extension RemoveTagsFromResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RemoveTagsFromResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceARN = output.resourceARN } else { @@ -13564,9 +13495,8 @@ public enum ResetCacheOutputError: Swift.Error, Swift.Equatable { extension ResetCacheOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResetCacheOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -13726,9 +13656,8 @@ public enum RetrieveTapeArchiveOutputError: Swift.Error, Swift.Equatable { extension RetrieveTapeArchiveOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetrieveTapeArchiveOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARN = output.tapeARN } else { @@ -13854,9 +13783,8 @@ public enum RetrieveTapeRecoveryPointOutputError: Swift.Error, Swift.Equatable { extension RetrieveTapeRecoveryPointOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RetrieveTapeRecoveryPointOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tapeARN = output.tapeARN } else { @@ -14341,9 +14269,8 @@ extension StorageGatewayClientTypes { extension ServiceUnavailableError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableErrorBody = try responseDecoder.decode(responseBody: data) self.error = output.error self.message = output.message @@ -14359,7 +14286,7 @@ extension ServiceUnavailableError { } /// An internal server error has occurred because the service is unavailable. For more information, see the error and message fields. -public struct ServiceUnavailableError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14495,9 +14422,8 @@ public enum SetLocalConsolePasswordOutputError: Swift.Error, Swift.Equatable { extension SetLocalConsolePasswordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetLocalConsolePasswordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -14627,9 +14553,8 @@ public enum SetSMBGuestPasswordOutputError: Swift.Error, Swift.Equatable { extension SetSMBGuestPasswordOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SetSMBGuestPasswordOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -14741,9 +14666,8 @@ public enum ShutdownGatewayOutputError: Swift.Error, Swift.Equatable { extension ShutdownGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ShutdownGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -14855,9 +14779,8 @@ public enum StartAvailabilityMonitorTestOutputError: Swift.Error, Swift.Equatabl extension StartAvailabilityMonitorTestOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartAvailabilityMonitorTestOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -14969,9 +14892,8 @@ public enum StartGatewayOutputError: Swift.Error, Swift.Equatable { extension StartGatewayOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartGatewayOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -15899,9 +15821,8 @@ public enum UpdateAutomaticTapeCreationPolicyOutputError: Swift.Error, Swift.Equ extension UpdateAutomaticTapeCreationPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAutomaticTapeCreationPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -16041,9 +15962,8 @@ public enum UpdateBandwidthRateLimitOutputError: Swift.Error, Swift.Equatable { extension UpdateBandwidthRateLimitOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBandwidthRateLimitOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -16180,9 +16100,8 @@ public enum UpdateBandwidthRateLimitScheduleOutputError: Swift.Error, Swift.Equa extension UpdateBandwidthRateLimitScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBandwidthRateLimitScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -16345,9 +16264,8 @@ public enum UpdateChapCredentialsOutputError: Swift.Error, Swift.Equatable { extension UpdateChapCredentialsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateChapCredentialsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.initiatorName = output.initiatorName self.targetARN = output.targetARN @@ -16522,9 +16440,8 @@ public enum UpdateFileSystemAssociationOutputError: Swift.Error, Swift.Equatable extension UpdateFileSystemAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateFileSystemAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileSystemAssociationARN = output.fileSystemAssociationARN } else { @@ -16683,9 +16600,8 @@ public enum UpdateGatewayInformationOutputError: Swift.Error, Swift.Equatable { extension UpdateGatewayInformationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGatewayInformationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN self.gatewayName = output.gatewayName @@ -16808,9 +16724,8 @@ public enum UpdateGatewaySoftwareNowOutputError: Swift.Error, Swift.Equatable { extension UpdateGatewaySoftwareNowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGatewaySoftwareNowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -16981,9 +16896,8 @@ public enum UpdateMaintenanceStartTimeOutputError: Swift.Error, Swift.Equatable extension UpdateMaintenanceStartTimeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMaintenanceStartTimeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -17282,9 +17196,8 @@ public enum UpdateNFSFileShareOutputError: Swift.Error, Swift.Equatable { extension UpdateNFSFileShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNFSFileShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileShareARN = output.fileShareARN } else { @@ -17649,9 +17562,8 @@ public enum UpdateSMBFileShareOutputError: Swift.Error, Swift.Equatable { extension UpdateSMBFileShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSMBFileShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fileShareARN = output.fileShareARN } else { @@ -17776,9 +17688,8 @@ public enum UpdateSMBFileShareVisibilityOutputError: Swift.Error, Swift.Equatabl extension UpdateSMBFileShareVisibilityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSMBFileShareVisibilityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -17902,9 +17813,8 @@ public enum UpdateSMBLocalGroupsOutputError: Swift.Error, Swift.Equatable { extension UpdateSMBLocalGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSMBLocalGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -18028,9 +17938,8 @@ public enum UpdateSMBSecurityStrategyOutputError: Swift.Error, Swift.Equatable { extension UpdateSMBSecurityStrategyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSMBSecurityStrategyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.gatewayARN = output.gatewayARN } else { @@ -18212,9 +18121,8 @@ public enum UpdateSnapshotScheduleOutputError: Swift.Error, Swift.Equatable { extension UpdateSnapshotScheduleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSnapshotScheduleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.volumeARN = output.volumeARN } else { @@ -18339,9 +18247,8 @@ public enum UpdateVTLDeviceTypeOutputError: Swift.Error, Swift.Equatable { extension UpdateVTLDeviceTypeOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVTLDeviceTypeOutputResponseBody = try responseDecoder.decode(responseBody: data) self.vtlDeviceARN = output.vtlDeviceARN } else { diff --git a/Sources/Services/AWSSupport/SupportClient.swift b/Sources/Services/AWSSupport/SupportClient.swift index abcc4fdaa7b..f9b609cd2f3 100644 --- a/Sources/Services/AWSSupport/SupportClient.swift +++ b/Sources/Services/AWSSupport/SupportClient.swift @@ -212,6 +212,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addAttachmentsToSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -228,7 +229,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addCommunicationToCase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -299,6 +301,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -315,7 +318,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -339,6 +342,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAttachment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -355,7 +359,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -386,6 +390,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -402,7 +407,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -426,6 +431,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCommunications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -442,7 +448,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -466,6 +472,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -482,7 +489,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -506,6 +513,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSeverityLevels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -522,7 +530,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -549,6 +557,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrustedAdvisorCheckRefreshStatuses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -565,7 +574,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -610,6 +619,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrustedAdvisorCheckResult") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -626,7 +636,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -653,6 +663,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrustedAdvisorCheckSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -669,7 +680,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +709,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTrustedAdvisorChecks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -714,7 +726,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -741,6 +753,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "refreshTrustedAdvisorCheck") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -757,7 +770,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -781,6 +794,7 @@ extension SupportClient: SupportClientProtocol { .withRegion(value: config.region) .withSigningName(value: "support") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resolveCase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -797,7 +811,7 @@ extension SupportClient: SupportClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSupport/models/Models.swift b/Sources/Services/AWSSupport/models/Models.swift index 32b1f160ae4..a747a4ba69c 100644 --- a/Sources/Services/AWSSupport/models/Models.swift +++ b/Sources/Services/AWSSupport/models/Models.swift @@ -106,9 +106,8 @@ public enum AddAttachmentsToSetOutputError: Swift.Error, Swift.Equatable { extension AddAttachmentsToSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddAttachmentsToSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachmentSetId = output.attachmentSetId self.expiryTime = output.expiryTime @@ -282,9 +281,8 @@ public enum AddCommunicationToCaseOutputError: Swift.Error, Swift.Equatable { extension AddCommunicationToCaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddCommunicationToCaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.result = output.result } else { @@ -414,9 +412,8 @@ extension SupportClientTypes { extension AttachmentIdNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachmentIdNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -430,7 +427,7 @@ extension AttachmentIdNotFound { } /// An attachment with the specified ID could not be found. -public struct AttachmentIdNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AttachmentIdNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -467,9 +464,8 @@ extension AttachmentIdNotFoundBody: Swift.Decodable { extension AttachmentLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachmentLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -483,7 +479,7 @@ extension AttachmentLimitExceeded { } /// The limit for the number of attachment sets created in a short period of time has been exceeded. -public struct AttachmentLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AttachmentLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -520,9 +516,8 @@ extension AttachmentLimitExceededBody: Swift.Decodable { extension AttachmentSetExpired { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachmentSetExpiredBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -536,7 +531,7 @@ extension AttachmentSetExpired { } /// The expiration time of the attachment set has passed. The set expires 1 hour after it is created. -public struct AttachmentSetExpired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AttachmentSetExpired: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -573,9 +568,8 @@ extension AttachmentSetExpiredBody: Swift.Decodable { extension AttachmentSetIdNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachmentSetIdNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -589,7 +583,7 @@ extension AttachmentSetIdNotFound { } /// An attachment set with the specified ID could not be found. -public struct AttachmentSetIdNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AttachmentSetIdNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -626,9 +620,8 @@ extension AttachmentSetIdNotFoundBody: Swift.Decodable { extension AttachmentSetSizeLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AttachmentSetSizeLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -642,7 +635,7 @@ extension AttachmentSetSizeLimitExceeded { } /// A limit for the size of an attachment set has been exceeded. The limits are three attachments and 5 MB per attachment. -public struct AttachmentSetSizeLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AttachmentSetSizeLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -679,9 +672,8 @@ extension AttachmentSetSizeLimitExceededBody: Swift.Decodable { extension CaseCreationLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CaseCreationLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -695,7 +687,7 @@ extension CaseCreationLimitExceeded { } /// The case creation limit for the account has been exceeded. -public struct CaseCreationLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CaseCreationLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -940,9 +932,8 @@ extension SupportClientTypes { extension CaseIdNotFound { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CaseIdNotFoundBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -956,7 +947,7 @@ extension CaseIdNotFound { } /// The requested caseId couldn't be located. -public struct CaseIdNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CaseIdNotFound: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1310,9 +1301,8 @@ public enum CreateCaseOutputError: Swift.Error, Swift.Equatable { extension CreateCaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.caseId = output.caseId } else { @@ -1400,9 +1390,8 @@ extension DescribeAttachmentInputBody: Swift.Decodable { extension DescribeAttachmentLimitExceeded { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAttachmentLimitExceededBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1416,7 +1405,7 @@ extension DescribeAttachmentLimitExceeded { } /// The limit for the number of [DescribeAttachment] requests in a short period of time has been exceeded. -public struct DescribeAttachmentLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DescribeAttachmentLimitExceeded: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1479,9 +1468,8 @@ public enum DescribeAttachmentOutputError: Swift.Error, Swift.Equatable { extension DescribeAttachmentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAttachmentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.attachment = output.attachment } else { @@ -1700,9 +1688,8 @@ public enum DescribeCasesOutputError: Swift.Error, Swift.Equatable { extension DescribeCasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cases = output.cases self.nextToken = output.nextToken @@ -1881,9 +1868,8 @@ public enum DescribeCommunicationsOutputError: Swift.Error, Swift.Equatable { extension DescribeCommunicationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCommunicationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.communications = output.communications self.nextToken = output.nextToken @@ -2035,9 +2021,8 @@ public enum DescribeServicesOutputError: Swift.Error, Swift.Equatable { extension DescribeServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.services = output.services } else { @@ -2155,9 +2140,8 @@ public enum DescribeSeverityLevelsOutputError: Swift.Error, Swift.Equatable { extension DescribeSeverityLevelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSeverityLevelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.severityLevels = output.severityLevels } else { @@ -2290,9 +2274,8 @@ public enum DescribeTrustedAdvisorCheckRefreshStatusesOutputError: Swift.Error, extension DescribeTrustedAdvisorCheckRefreshStatusesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrustedAdvisorCheckRefreshStatusesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.statuses = output.statuses } else { @@ -2447,9 +2430,8 @@ public enum DescribeTrustedAdvisorCheckResultOutputError: Swift.Error, Swift.Equ extension DescribeTrustedAdvisorCheckResultOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrustedAdvisorCheckResultOutputResponseBody = try responseDecoder.decode(responseBody: data) self.result = output.result } else { @@ -2573,9 +2555,8 @@ public enum DescribeTrustedAdvisorCheckSummariesOutputError: Swift.Error, Swift. extension DescribeTrustedAdvisorCheckSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrustedAdvisorCheckSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summaries = output.summaries } else { @@ -2717,9 +2698,8 @@ public enum DescribeTrustedAdvisorChecksOutputError: Swift.Error, Swift.Equatabl extension DescribeTrustedAdvisorChecksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTrustedAdvisorChecksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checks = output.checks } else { @@ -2769,9 +2749,8 @@ extension DescribeTrustedAdvisorChecksOutputResponseBody: Swift.Decodable { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2785,7 +2764,7 @@ extension InternalServerError { } /// An internal server error occurred. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2950,9 +2929,8 @@ public enum RefreshTrustedAdvisorCheckOutputError: Swift.Error, Swift.Equatable extension RefreshTrustedAdvisorCheckOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RefreshTrustedAdvisorCheckOutputResponseBody = try responseDecoder.decode(responseBody: data) self.status = output.status } else { @@ -3064,9 +3042,8 @@ public enum ResolveCaseOutputError: Swift.Error, Swift.Equatable { extension ResolveCaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResolveCaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.finalCaseStatus = output.finalCaseStatus self.initialCaseStatus = output.initialCaseStatus diff --git a/Sources/Services/AWSSupportApp/SupportAppClient.swift b/Sources/Services/AWSSupportApp/SupportAppClient.swift index d1460fb35a4..f97b7010e42 100644 --- a/Sources/Services/AWSSupportApp/SupportAppClient.swift +++ b/Sources/Services/AWSSupportApp/SupportAppClient.swift @@ -215,6 +215,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSlackChannelConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -230,7 +231,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -250,6 +251,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccountAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -262,7 +264,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -282,6 +284,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSlackChannelConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -297,7 +300,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -317,6 +320,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSlackWorkspaceConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccountAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -364,7 +369,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +389,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSlackChannelConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -399,7 +405,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -419,6 +425,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSlackWorkspaceConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -434,7 +441,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -454,6 +461,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccountAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -469,7 +477,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -500,6 +508,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerSlackWorkspaceForOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -515,7 +524,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -535,6 +544,7 @@ extension SupportAppClient: SupportAppClientProtocol { .withRegion(value: config.region) .withSigningName(value: "supportapp") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSlackChannelConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -550,7 +560,7 @@ extension SupportAppClient: SupportAppClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSupportApp/models/Models.swift b/Sources/Services/AWSSupportApp/models/Models.swift index 27d90975b29..b87d8d1420c 100644 --- a/Sources/Services/AWSSupportApp/models/Models.swift +++ b/Sources/Services/AWSSupportApp/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You don't have sufficient permission to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -88,9 +87,8 @@ extension SupportAppClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -116,7 +114,7 @@ extension ConflictException { /// * Call the RegisterSlackWorkspaceForOrganization API from an Amazon Web Services account that doesn't belong to an organization. /// /// * Call the RegisterSlackWorkspaceForOrganization API from a member account, but the management account hasn't registered that workspace yet for the organization. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -632,9 +630,8 @@ public enum GetAccountAliasOutputError: Swift.Error, Swift.Equatable { extension GetAccountAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccountAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountAlias = output.accountAlias } else { @@ -673,9 +670,8 @@ extension GetAccountAliasOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -689,7 +685,7 @@ extension InternalServerException { } /// We can’t process your request right now because of a server issue. Try again later. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -796,9 +792,8 @@ public enum ListSlackChannelConfigurationsOutputError: Swift.Error, Swift.Equata extension ListSlackChannelConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSlackChannelConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.slackChannelConfigurations = output.slackChannelConfigurations @@ -928,9 +923,8 @@ public enum ListSlackWorkspaceConfigurationsOutputError: Swift.Error, Swift.Equa extension ListSlackWorkspaceConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSlackWorkspaceConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.slackWorkspaceConfigurations = output.slackWorkspaceConfigurations @@ -1185,9 +1179,8 @@ public enum RegisterSlackWorkspaceForOrganizationOutputError: Swift.Error, Swift extension RegisterSlackWorkspaceForOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterSlackWorkspaceForOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountType = output.accountType self.teamId = output.teamId @@ -1246,9 +1239,8 @@ extension RegisterSlackWorkspaceForOrganizationOutputResponseBody: Swift.Decodab extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1262,7 +1254,7 @@ extension ResourceNotFoundException { } /// The specified resource is missing or doesn't exist, such as an account alias, Slack channel configuration, or Slack workspace configuration. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1298,9 +1290,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1314,7 +1305,7 @@ extension ServiceQuotaExceededException { } /// Your Service Quotas request exceeds the quota for the service. For example, your Service Quotas request to Amazon Web Services Support App might exceed the maximum number of workspaces or channels per account, or the maximum number of accounts per Slack channel. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1694,9 +1685,8 @@ public enum UpdateSlackChannelConfigurationOutputError: Swift.Error, Swift.Equat extension UpdateSlackChannelConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSlackChannelConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.channelId = output.channelId self.channelName = output.channelName @@ -1805,9 +1795,8 @@ extension UpdateSlackChannelConfigurationOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1821,7 +1810,7 @@ extension ValidationException { } /// Your request input doesn't meet the constraints that the Amazon Web Services Support App specifies. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSSynthetics/SyntheticsClient.swift b/Sources/Services/AWSSynthetics/SyntheticsClient.swift index 82c4959a79a..266664a4442 100644 --- a/Sources/Services/AWSSynthetics/SyntheticsClient.swift +++ b/Sources/Services/AWSSynthetics/SyntheticsClient.swift @@ -208,6 +208,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCanary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCanary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -337,7 +341,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -357,6 +361,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -369,7 +374,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -389,6 +394,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCanaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCanariesLastRun") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -439,7 +446,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -459,6 +466,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRuntimeVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -474,7 +482,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -494,6 +502,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -509,7 +518,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -529,6 +538,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCanary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -541,7 +551,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -561,6 +571,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCanaryRuns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -576,7 +587,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -596,6 +607,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -608,7 +620,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -628,6 +640,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssociatedGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -643,7 +656,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -663,6 +676,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -678,7 +692,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -698,6 +712,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -713,7 +728,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -733,6 +748,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -745,7 +761,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -765,6 +781,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCanary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -777,7 +794,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -797,6 +814,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopCanary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -809,7 +827,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -829,6 +847,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +863,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +883,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -877,7 +897,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -897,6 +917,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "synthetics") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCanary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +933,7 @@ extension SyntheticsClient: SyntheticsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSSynthetics/models/Models.swift b/Sources/Services/AWSSynthetics/models/Models.swift index a461f468463..75a9c5e3469 100644 --- a/Sources/Services/AWSSynthetics/models/Models.swift +++ b/Sources/Services/AWSSynthetics/models/Models.swift @@ -170,9 +170,8 @@ public struct AssociateResourceOutputResponse: Swift.Equatable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -186,7 +185,7 @@ extension BadRequestException { } /// The request was not valid. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1353,9 +1352,8 @@ extension SyntheticsClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1369,7 +1367,7 @@ extension ConflictException { } /// A conflicting operation is already in progress. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1642,9 +1640,8 @@ public enum CreateCanaryOutputError: Swift.Error, Swift.Equatable { extension CreateCanaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCanaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.canary = output.canary } else { @@ -1783,9 +1780,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -2169,9 +2165,8 @@ public enum DescribeCanariesLastRunOutputError: Swift.Error, Swift.Equatable { extension DescribeCanariesLastRunOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCanariesLastRunOutputResponseBody = try responseDecoder.decode(responseBody: data) self.canariesLastRun = output.canariesLastRun self.nextToken = output.nextToken @@ -2253,9 +2248,8 @@ public enum DescribeCanariesOutputError: Swift.Error, Swift.Equatable { extension DescribeCanariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCanariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.canaries = output.canaries self.nextToken = output.nextToken @@ -2396,9 +2390,8 @@ public enum DescribeRuntimeVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeRuntimeVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRuntimeVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.runtimeVersions = output.runtimeVersions @@ -2637,9 +2630,8 @@ public enum GetCanaryOutputError: Swift.Error, Swift.Equatable { extension GetCanaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCanaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.canary = output.canary } else { @@ -2771,9 +2763,8 @@ public enum GetCanaryRunsOutputError: Swift.Error, Swift.Equatable { extension GetCanaryRunsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCanaryRunsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.canaryRuns = output.canaryRuns self.nextToken = output.nextToken @@ -2890,9 +2881,8 @@ public enum GetGroupOutputError: Swift.Error, Swift.Equatable { extension GetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -3083,9 +3073,8 @@ extension SyntheticsClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3099,7 +3088,7 @@ extension InternalFailureException { } /// An internal failure occurred. Try the operation again. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3135,9 +3124,8 @@ extension InternalFailureExceptionBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3151,7 +3139,7 @@ extension InternalServerException { } /// An unknown internal error occurred. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3280,9 +3268,8 @@ public enum ListAssociatedGroupsOutputError: Swift.Error, Swift.Equatable { extension ListAssociatedGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssociatedGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.nextToken = output.nextToken @@ -3435,9 +3422,8 @@ public enum ListGroupResourcesOutputError: Swift.Error, Swift.Equatable { extension ListGroupResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resources = output.resources @@ -3578,9 +3564,8 @@ public enum ListGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.nextToken = output.nextToken @@ -3699,9 +3684,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3749,9 +3733,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3765,7 +3748,7 @@ extension NotFoundException { } /// The specified resource was not found. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3801,9 +3784,8 @@ extension NotFoundExceptionBody: Swift.Decodable { extension RequestEntityTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestEntityTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3817,7 +3799,7 @@ extension RequestEntityTooLargeException { } /// One of the input resources is larger than is allowed. -public struct RequestEntityTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestEntityTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3853,9 +3835,8 @@ extension RequestEntityTooLargeExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3869,7 +3850,7 @@ extension ResourceNotFoundException { } /// One of the specified resources was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4015,9 +3996,8 @@ extension SyntheticsClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4031,7 +4011,7 @@ extension ServiceQuotaExceededException { } /// The request exceeded a service quota value. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4313,9 +4293,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4329,7 +4308,7 @@ extension TooManyRequestsException { } /// There were too many simultaneous requests. Try the operation again. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4687,9 +4666,8 @@ public struct UpdateCanaryOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4703,7 +4681,7 @@ extension ValidationException { } /// A parameter could not be validated. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSTextract/TextractClient.swift b/Sources/Services/AWSTextract/TextractClient.swift index 0d6805004bb..bbe48719373 100644 --- a/Sources/Services/AWSTextract/TextractClient.swift +++ b/Sources/Services/AWSTextract/TextractClient.swift @@ -223,6 +223,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "analyzeDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -239,7 +240,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -263,6 +264,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "analyzeExpense") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -279,7 +281,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -299,6 +301,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "analyzeID") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -315,7 +318,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -335,6 +338,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "detectDocumentText") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -351,7 +355,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -384,6 +388,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocumentAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -400,7 +405,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -420,6 +425,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocumentTextDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -436,7 +442,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -456,6 +462,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getExpenseAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -472,7 +479,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -492,6 +499,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLendingAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -508,7 +516,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -528,6 +536,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLendingAnalysisSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -544,7 +553,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -564,6 +573,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDocumentAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -580,7 +590,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -600,6 +610,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startDocumentTextDetection") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -616,7 +627,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -636,6 +647,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startExpenseAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -652,7 +664,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -678,6 +690,7 @@ extension TextractClient: TextractClientProtocol { .withRegion(value: config.region) .withSigningName(value: "textract") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startLendingAnalysis") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -694,7 +707,7 @@ extension TextractClient: TextractClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSTextract/models/Models.swift b/Sources/Services/AWSTextract/models/Models.swift index 15ed64c79bc..73eb31578fd 100644 --- a/Sources/Services/AWSTextract/models/Models.swift +++ b/Sources/Services/AWSTextract/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -22,7 +21,7 @@ extension AccessDeniedException { } /// You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) of an authorized user or IAM role to perform the operation. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -202,9 +201,8 @@ public enum AnalyzeDocumentOutputError: Swift.Error, Swift.Equatable { extension AnalyzeDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AnalyzeDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzeDocumentModelVersion = output.analyzeDocumentModelVersion self.blocks = output.blocks @@ -368,9 +366,8 @@ public enum AnalyzeExpenseOutputError: Swift.Error, Swift.Equatable { extension AnalyzeExpenseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AnalyzeExpenseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentMetadata = output.documentMetadata self.expenseDocuments = output.expenseDocuments @@ -582,9 +579,8 @@ public enum AnalyzeIDOutputError: Swift.Error, Swift.Equatable { extension AnalyzeIDOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AnalyzeIDOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzeIDModelVersion = output.analyzeIDModelVersion self.documentMetadata = output.documentMetadata @@ -652,9 +648,8 @@ extension AnalyzeIDOutputResponseBody: Swift.Decodable { extension BadDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadDocumentExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -670,7 +665,7 @@ extension BadDocumentException { } /// Amazon Textract isn't able to read the document. For more information on the document limits in Amazon Textract, see [limits]. -public struct BadDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1222,9 +1217,8 @@ public enum DetectDocumentTextOutputError: Swift.Error, Swift.Equatable { extension DetectDocumentTextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectDocumentTextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blocks = output.blocks self.detectDocumentTextModelVersion = output.detectDocumentTextModelVersion @@ -1543,9 +1537,8 @@ extension TextractClientTypes { extension DocumentTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DocumentTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -1561,7 +1554,7 @@ extension DocumentTooLargeException { } /// The document can't be processed because it's too large. The maximum document size for synchronous operations 10 MB. The maximum document size for asynchronous operations is 500 MB for PDF files. -public struct DocumentTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DocumentTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2339,9 +2332,8 @@ public enum GetDocumentAnalysisOutputError: Swift.Error, Swift.Equatable { extension GetDocumentAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzeDocumentModelVersion = output.analyzeDocumentModelVersion self.blocks = output.blocks @@ -2566,9 +2558,8 @@ public enum GetDocumentTextDetectionOutputError: Swift.Error, Swift.Equatable { extension GetDocumentTextDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentTextDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.blocks = output.blocks self.detectDocumentTextModelVersion = output.detectDocumentTextModelVersion @@ -2793,9 +2784,8 @@ public enum GetExpenseAnalysisOutputError: Swift.Error, Swift.Equatable { extension GetExpenseAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetExpenseAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzeExpenseModelVersion = output.analyzeExpenseModelVersion self.documentMetadata = output.documentMetadata @@ -3020,9 +3010,8 @@ public enum GetLendingAnalysisOutputError: Swift.Error, Swift.Equatable { extension GetLendingAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLendingAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzeLendingModelVersion = output.analyzeLendingModelVersion self.documentMetadata = output.documentMetadata @@ -3223,9 +3212,8 @@ public enum GetLendingAnalysisSummaryOutputError: Swift.Error, Swift.Equatable { extension GetLendingAnalysisSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLendingAnalysisSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.analyzeLendingModelVersion = output.analyzeLendingModelVersion self.documentMetadata = output.documentMetadata @@ -3494,9 +3482,8 @@ extension TextractClientTypes { extension HumanLoopQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: HumanLoopQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3518,7 +3505,7 @@ extension HumanLoopQuotaExceededException { } /// Indicates you have exceeded the maximum number of active human in the loop workflows available -public struct HumanLoopQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct HumanLoopQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3585,9 +3572,8 @@ extension HumanLoopQuotaExceededExceptionBody: Swift.Decodable { extension IdempotentParameterMismatchException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IdempotentParameterMismatchExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3603,7 +3589,7 @@ extension IdempotentParameterMismatchException { } /// A ClientRequestToken input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation. -public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IdempotentParameterMismatchException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3770,9 +3756,8 @@ extension TextractClientTypes { extension InternalServerError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3788,7 +3773,7 @@ extension InternalServerError { } /// Amazon Textract experienced a service issue. Try your call again. -public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3831,9 +3816,8 @@ extension InternalServerErrorBody: Swift.Decodable { extension InvalidJobIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidJobIdExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3849,7 +3833,7 @@ extension InvalidJobIdException { } /// An invalid job identifier was passed to an asynchronous analysis operation. -public struct InvalidJobIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidJobIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3892,9 +3876,8 @@ extension InvalidJobIdExceptionBody: Swift.Decodable { extension InvalidKMSKeyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidKMSKeyExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3910,7 +3893,7 @@ extension InvalidKMSKeyException { } /// Indicates you do not have decrypt permissions with the KMS key entered, or the KMS key was entered incorrectly. -public struct InvalidKMSKeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidKMSKeyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3953,9 +3936,8 @@ extension InvalidKMSKeyExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -3971,7 +3953,7 @@ extension InvalidParameterException { } /// An input parameter violated a constraint. For example, in synchronous operations, an InvalidParameterException exception occurs when neither of the S3Object or Bytes values are supplied in the Document request parameter. Validate your parameter before calling the API operation again. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4014,9 +3996,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidS3ObjectException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidS3ObjectExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4032,7 +4013,7 @@ extension InvalidS3ObjectException { } /// Amazon Textract is unable to access the S3 object that's specified in the request. for more information, [Configure Access to Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) For troubleshooting information, see [Troubleshooting Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) -public struct InvalidS3ObjectException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidS3ObjectException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4450,9 +4431,8 @@ extension TextractClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4468,7 +4448,7 @@ extension LimitExceededException { } /// An Amazon Textract service limit was exceeded. For example, if you start too many asynchronous jobs concurrently, calls to start operations (StartDocumentTextDetection, for example) raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Textract service limit. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4914,9 +4894,8 @@ extension TextractClientTypes { extension ProvisionedThroughputExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProvisionedThroughputExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -4932,7 +4911,7 @@ extension ProvisionedThroughputExceededException { } /// The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract. -public struct ProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProvisionedThroughputExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5603,9 +5582,8 @@ public enum StartDocumentAnalysisOutputError: Swift.Error, Swift.Equatable { extension StartDocumentAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDocumentAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -5796,9 +5774,8 @@ public enum StartDocumentTextDetectionOutputError: Swift.Error, Swift.Equatable extension StartDocumentTextDetectionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartDocumentTextDetectionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -5989,9 +5966,8 @@ public enum StartExpenseAnalysisOutputError: Swift.Error, Swift.Equatable { extension StartExpenseAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartExpenseAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6182,9 +6158,8 @@ public enum StartLendingAnalysisOutputError: Swift.Error, Swift.Equatable { extension StartLendingAnalysisOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartLendingAnalysisOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -6255,9 +6230,8 @@ extension TextractClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -6273,7 +6247,7 @@ extension ThrottlingException { } /// Amazon Textract is temporarily unable to process the request. Try your call again. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6351,9 +6325,8 @@ extension TextractClientTypes { extension UnsupportedDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedDocumentExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -6369,7 +6342,7 @@ extension UnsupportedDocumentException { } /// The format of the input document isn't supported. Documents for operations can be in PNG, JPEG, PDF, or TIFF format. -public struct UnsupportedDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSTimestreamQuery/TimestreamQueryClient.swift b/Sources/Services/AWSTimestreamQuery/TimestreamQueryClient.swift index e7ecdb99cc7..7ba84003194 100644 --- a/Sources/Services/AWSTimestreamQuery/TimestreamQueryClient.swift +++ b/Sources/Services/AWSTimestreamQuery/TimestreamQueryClient.swift @@ -208,6 +208,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createScheduledQuery") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -268,7 +270,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteScheduledQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -333,6 +336,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -349,7 +353,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -369,6 +373,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeScheduledQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -385,7 +390,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -405,6 +410,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "executeScheduledQuery") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -429,7 +435,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -449,6 +455,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listScheduledQueries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +472,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +492,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -501,7 +509,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -521,6 +529,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "prepareQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -537,7 +546,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -565,6 +574,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "query") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -589,7 +599,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -609,6 +619,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -625,7 +636,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -645,6 +656,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -661,7 +673,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -681,6 +693,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateScheduledQuery") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -697,7 +710,7 @@ extension TimestreamQueryClient: TimestreamQueryClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSTimestreamQuery/models/Models.swift b/Sources/Services/AWSTimestreamQuery/models/Models.swift index b8ae86a63c1..aad3012892f 100644 --- a/Sources/Services/AWSTimestreamQuery/models/Models.swift +++ b/Sources/Services/AWSTimestreamQuery/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You are not authorized to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -134,9 +133,8 @@ public enum CancelQueryOutputError: Swift.Error, Swift.Equatable { extension CancelQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CancelQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.cancellationMessage = output.cancellationMessage } else { @@ -221,9 +219,8 @@ extension TimestreamQueryClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -237,7 +234,7 @@ extension ConflictException { } /// Unable to poll results for a cancelled query. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -489,9 +486,8 @@ public enum CreateScheduledQueryOutputError: Swift.Error, Swift.Equatable { extension CreateScheduledQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateScheduledQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn } else { @@ -774,9 +770,8 @@ public enum DescribeEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints } else { @@ -905,9 +900,8 @@ public enum DescribeScheduledQueryOutputError: Swift.Error, Swift.Equatable { extension DescribeScheduledQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeScheduledQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.scheduledQuery = output.scheduledQuery } else { @@ -1336,9 +1330,8 @@ extension TimestreamQueryClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1352,7 +1345,7 @@ extension InternalServerException { } /// Timestream was unable to fully process this request because of an internal server error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1388,9 +1381,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidEndpointException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEndpointExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1404,7 +1396,7 @@ extension InvalidEndpointException { } /// The requested endpoint was not valid. -public struct InvalidEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1529,9 +1521,8 @@ public enum ListScheduledQueriesOutputError: Swift.Error, Swift.Equatable { extension ListScheduledQueriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListScheduledQueriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.scheduledQueries = output.scheduledQueries @@ -1690,9 +1681,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -2227,9 +2217,8 @@ extension PrepareQueryOutputResponse: Swift.CustomDebugStringConvertible { extension PrepareQueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PrepareQueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columns = output.columns self.parameters = output.parameters @@ -2309,9 +2298,8 @@ extension PrepareQueryOutputResponseBody: Swift.Decodable { extension QueryExecutionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryExecutionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2325,7 +2313,7 @@ extension QueryExecutionException { } /// Timestream was unable to run the query successfully. -public struct QueryExecutionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct QueryExecutionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2511,9 +2499,8 @@ public enum QueryOutputError: Swift.Error, Swift.Equatable { extension QueryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.columnInfo = output.columnInfo self.nextToken = output.nextToken @@ -2668,9 +2655,8 @@ extension TimestreamQueryClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.scheduledQueryArn = output.scheduledQueryArn @@ -2686,7 +2672,7 @@ extension ResourceNotFoundException { } /// The requested resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3593,9 +3579,8 @@ extension TimestreamQueryClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3609,7 +3594,7 @@ extension ServiceQuotaExceededException { } /// You have exceeded the service quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3912,9 +3897,8 @@ extension TimestreamQueryClientTypes { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3928,7 +3912,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4421,9 +4405,8 @@ public struct UpdateScheduledQueryOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4437,7 +4420,7 @@ extension ValidationException { } /// Invalid or malformed request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSTimestreamWrite/TimestreamWriteClient.swift b/Sources/Services/AWSTimestreamWrite/TimestreamWriteClient.swift index 470a88c88a9..9fa42e2b9ce 100644 --- a/Sources/Services/AWSTimestreamWrite/TimestreamWriteClient.swift +++ b/Sources/Services/AWSTimestreamWrite/TimestreamWriteClient.swift @@ -208,6 +208,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBatchLoadTask") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeBatchLoadTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +438,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -477,6 +484,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEndpoints") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -493,7 +501,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -513,6 +521,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -529,7 +538,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -549,6 +558,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBatchLoadTasks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -565,7 +575,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -585,6 +595,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDatabases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -601,7 +612,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -621,6 +632,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTables") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -637,7 +649,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +669,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -673,7 +686,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -693,6 +706,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resumeBatchLoadTask") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -709,7 +723,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -729,6 +743,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -745,7 +760,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -765,6 +780,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -781,7 +797,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -801,6 +817,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDatabase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -817,7 +834,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -837,6 +854,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTable") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -853,7 +871,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -873,6 +891,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { .withRegion(value: config.region) .withSigningName(value: "timestream") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "writeRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -889,7 +908,7 @@ extension TimestreamWriteClient: TimestreamWriteClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSTimestreamWrite/models/Models.swift b/Sources/Services/AWSTimestreamWrite/models/Models.swift index 60412dc4a8e..562c71072a3 100644 --- a/Sources/Services/AWSTimestreamWrite/models/Models.swift +++ b/Sources/Services/AWSTimestreamWrite/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You are not authorized to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -465,9 +464,8 @@ extension TimestreamWriteClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -481,7 +479,7 @@ extension ConflictException { } /// Timestream was unable to process this request because it contains resource that already exists. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -682,9 +680,8 @@ public enum CreateBatchLoadTaskOutputError: Swift.Error, Swift.Equatable { extension CreateBatchLoadTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBatchLoadTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.taskId = output.taskId } else { @@ -842,9 +839,8 @@ public enum CreateDatabaseOutputError: Swift.Error, Swift.Equatable { extension CreateDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.database = output.database } else { @@ -1028,9 +1024,8 @@ public enum CreateTableOutputError: Swift.Error, Swift.Equatable { extension CreateTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.table = output.table } else { @@ -1803,9 +1798,8 @@ public enum DescribeBatchLoadTaskOutputError: Swift.Error, Swift.Equatable { extension DescribeBatchLoadTaskOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeBatchLoadTaskOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchLoadTaskDescription = output.batchLoadTaskDescription } else { @@ -1925,9 +1919,8 @@ public enum DescribeDatabaseOutputError: Swift.Error, Swift.Equatable { extension DescribeDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.database = output.database } else { @@ -2020,9 +2013,8 @@ public enum DescribeEndpointsOutputError: Swift.Error, Swift.Equatable { extension DescribeEndpointsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEndpointsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endpoints = output.endpoints } else { @@ -2164,9 +2156,8 @@ public enum DescribeTableOutputError: Swift.Error, Swift.Equatable { extension DescribeTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.table = output.table } else { @@ -2383,9 +2374,8 @@ extension TimestreamWriteClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2399,7 +2389,7 @@ extension InternalServerException { } /// Timestream was unable to fully process this request because of an internal server error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2436,9 +2426,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidEndpointException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidEndpointExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2452,7 +2441,7 @@ extension InvalidEndpointException { } /// The requested endpoint was not valid. -public struct InvalidEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidEndpointException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2589,9 +2578,8 @@ public enum ListBatchLoadTasksOutputError: Swift.Error, Swift.Equatable { extension ListBatchLoadTasksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBatchLoadTasksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.batchLoadTasks = output.batchLoadTasks self.nextToken = output.nextToken @@ -2738,9 +2726,8 @@ public enum ListDatabasesOutputError: Swift.Error, Swift.Equatable { extension ListDatabasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDatabasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.databases = output.databases self.nextToken = output.nextToken @@ -2901,9 +2888,8 @@ public enum ListTablesOutputError: Swift.Error, Swift.Equatable { extension ListTablesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTablesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tables = output.tables @@ -3037,9 +3023,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3727,9 +3712,8 @@ extension TimestreamWriteClientTypes { extension RejectedRecordsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RejectedRecordsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.rejectedRecords = output.rejectedRecords @@ -3761,7 +3745,7 @@ extension RejectedRecordsException { /// /// /// For more information, see [Quotas](https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) in the Amazon Timestream Developer Guide. -public struct RejectedRecordsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RejectedRecordsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3915,9 +3899,8 @@ extension TimestreamWriteClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3931,7 +3914,7 @@ extension ResourceNotFoundException { } /// The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4242,9 +4225,8 @@ extension TimestreamWriteClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4258,7 +4240,7 @@ extension ServiceQuotaExceededException { } /// The instance quota of resource exceeded for this account. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4598,9 +4580,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4614,7 +4595,7 @@ extension ThrottlingException { } /// Too many requests were made by a user and they exceeded the service quotas. The request was throttled. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4905,9 +4886,8 @@ public enum UpdateDatabaseOutputError: Swift.Error, Swift.Equatable { extension UpdateDatabaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDatabaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.database = output.database } else { @@ -5063,9 +5043,8 @@ public enum UpdateTableOutputError: Swift.Error, Swift.Equatable { extension UpdateTableOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTableOutputResponseBody = try responseDecoder.decode(responseBody: data) self.table = output.table } else { @@ -5104,9 +5083,8 @@ extension UpdateTableOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5120,7 +5098,7 @@ extension ValidationException { } /// An invalid or malformed request. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5289,9 +5267,8 @@ public enum WriteRecordsOutputError: Swift.Error, Swift.Equatable { extension WriteRecordsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WriteRecordsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recordsIngested = output.recordsIngested } else { diff --git a/Sources/Services/AWSTnb/TnbClient.swift b/Sources/Services/AWSTnb/TnbClient.swift index 469ae4c67ba..fbe12fff850 100644 --- a/Sources/Services/AWSTnb/TnbClient.swift +++ b/Sources/Services/AWSTnb/TnbClient.swift @@ -208,6 +208,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelSolNetworkOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSolFunctionPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -275,6 +277,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSolNetworkInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSolNetworkPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -325,7 +329,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +349,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSolFunctionPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -357,7 +362,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -377,6 +382,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSolNetworkInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -389,7 +395,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -409,6 +415,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSolNetworkPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -421,7 +428,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -441,6 +448,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolFunctionInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -453,7 +461,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -473,6 +481,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolFunctionPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -485,7 +494,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -505,6 +514,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolFunctionPackageContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -518,7 +528,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -538,6 +548,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolFunctionPackageDescriptor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -551,7 +562,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -571,6 +582,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolNetworkInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -583,7 +595,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -603,6 +615,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolNetworkOperation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -615,7 +628,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -635,6 +648,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolNetworkPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -647,7 +661,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -667,6 +681,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolNetworkPackageContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -680,7 +695,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -700,6 +715,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSolNetworkPackageDescriptor") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -712,7 +728,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -732,6 +748,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "instantiateSolNetworkInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -748,7 +765,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -768,6 +785,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSolFunctionInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -781,7 +799,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -801,6 +819,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSolFunctionPackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +833,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +853,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSolNetworkInstances") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -847,7 +867,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -867,6 +887,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSolNetworkOperations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +901,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +921,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSolNetworkPackages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -913,7 +935,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -933,6 +955,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -945,7 +968,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -965,6 +988,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSolFunctionPackageContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -981,7 +1005,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1001,6 +1025,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putSolNetworkPackageContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1017,7 +1042,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1037,6 +1062,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1078,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1098,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateSolNetworkInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1087,7 +1114,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1107,6 +1134,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1120,7 +1148,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1140,6 +1168,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSolFunctionPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1155,7 +1184,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1175,6 +1204,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSolNetworkInstance") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1190,7 +1220,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1210,6 +1240,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSolNetworkPackage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1225,7 +1256,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1245,6 +1276,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateSolFunctionPackageContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1261,7 +1293,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1281,6 +1313,7 @@ extension TnbClient: TnbClientProtocol { .withRegion(value: config.region) .withSigningName(value: "tnb") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "validateSolNetworkPackageContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1297,7 +1330,7 @@ extension TnbClient: TnbClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSTnb/models/Models.swift b/Sources/Services/AWSTnb/models/Models.swift index 8bcff85161c..8d9527e49fe 100644 --- a/Sources/Services/AWSTnb/models/Models.swift +++ b/Sources/Services/AWSTnb/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Insufficient permissions to make request. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -227,9 +226,8 @@ extension CreateSolFunctionPackageOutputResponse: Swift.CustomDebugStringConvert extension CreateSolFunctionPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSolFunctionPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -471,9 +469,8 @@ extension CreateSolNetworkInstanceOutputResponse: Swift.CustomDebugStringConvert extension CreateSolNetworkInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSolNetworkInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -664,9 +661,8 @@ extension CreateSolNetworkPackageOutputResponse: Swift.CustomDebugStringConverti extension CreateSolNetworkPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSolNetworkPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -1216,9 +1212,8 @@ extension GetSolFunctionInstanceOutputResponse: Swift.CustomDebugStringConvertib extension GetSolFunctionInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSolFunctionInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -1464,9 +1459,12 @@ extension GetSolFunctionPackageContentOutputResponse: ClientRuntime.HttpResponse } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.packageContent = data - } else { + case .stream(let stream): + self.packageContent = try stream.readToEnd() + case .none: self.packageContent = nil } } @@ -1587,9 +1585,12 @@ extension GetSolFunctionPackageDescriptorOutputResponse: ClientRuntime.HttpRespo } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.vnfd = data - } else { + case .stream(let stream): + self.vnfd = try stream.readToEnd() + case .none: self.vnfd = nil } } @@ -1752,9 +1753,8 @@ extension GetSolFunctionPackageOutputResponse: Swift.CustomDebugStringConvertibl extension GetSolFunctionPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSolFunctionPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -2055,9 +2055,8 @@ extension GetSolNetworkInstanceOutputResponse: Swift.CustomDebugStringConvertibl extension GetSolNetworkInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSolNetworkInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -2315,9 +2314,8 @@ extension GetSolNetworkOperationOutputResponse: Swift.CustomDebugStringConvertib extension GetSolNetworkOperationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSolNetworkOperationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.error = output.error @@ -2633,9 +2631,12 @@ extension GetSolNetworkPackageContentOutputResponse: ClientRuntime.HttpResponseB } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.nsdContent = data - } else { + case .stream(let stream): + self.nsdContent = try stream.readToEnd() + case .none: self.nsdContent = nil } } @@ -2741,9 +2742,12 @@ extension GetSolNetworkPackageDescriptorOutputResponse: ClientRuntime.HttpRespon } else { self.contentType = nil } - if let data = httpResponse.body.toBytes()?.getData() { + switch httpResponse.body { + case .data(let data): self.nsd = data - } else { + case .stream(let stream): + self.nsd = try stream.readToEnd() + case .none: self.nsd = nil } } @@ -2906,9 +2910,8 @@ extension GetSolNetworkPackageOutputResponse: Swift.CustomDebugStringConvertible extension GetSolNetworkPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSolNetworkPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3360,9 +3363,8 @@ extension InstantiateSolNetworkInstanceOutputResponse: Swift.CustomDebugStringCo extension InstantiateSolNetworkInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InstantiateSolNetworkInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nsLcmOpOccId = output.nsLcmOpOccId self.tags = output.tags @@ -3421,9 +3423,8 @@ extension InstantiateSolNetworkInstanceOutputResponseBody: Swift.Decodable { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3437,7 +3438,7 @@ extension InternalServerException { } /// Unexpected error occurred. Problem on the server. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3779,9 +3780,8 @@ public enum ListSolFunctionInstancesOutputError: Swift.Error, Swift.Equatable { extension ListSolFunctionInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSolFunctionInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionInstances = output.functionInstances self.nextToken = output.nextToken @@ -4092,9 +4092,8 @@ public enum ListSolFunctionPackagesOutputError: Swift.Error, Swift.Equatable { extension ListSolFunctionPackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSolFunctionPackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.functionPackages = output.functionPackages self.nextToken = output.nextToken @@ -4389,9 +4388,8 @@ public enum ListSolNetworkInstancesOutputError: Swift.Error, Swift.Equatable { extension ListSolNetworkInstancesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSolNetworkInstancesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkInstances = output.networkInstances self.nextToken = output.nextToken @@ -4672,9 +4670,8 @@ public enum ListSolNetworkOperationsOutputError: Swift.Error, Swift.Equatable { extension ListSolNetworkOperationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSolNetworkOperationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkOperations = output.networkOperations self.nextToken = output.nextToken @@ -5018,9 +5015,8 @@ public enum ListSolNetworkPackagesOutputError: Swift.Error, Swift.Equatable { extension ListSolNetworkPackagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSolNetworkPackagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkPackages = output.networkPackages self.nextToken = output.nextToken @@ -5145,9 +5141,8 @@ extension ListTagsForResourceOutputResponse: Swift.CustomDebugStringConvertible extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5587,9 +5582,9 @@ public struct PutSolFunctionPackageContentInputBodyMiddleware: ClientRuntime.Mid Self.Context == H.Context { if let file = input.operationInput.file { - let filedata = file - let filebody = ClientRuntime.HttpBody.data(filedata) - input.builder.withBody(filebody) + let fileData = file + let fileBody = ClientRuntime.HttpBody.data(fileData) + input.builder.withBody(fileBody) } return try await next.handle(context: context, input: input) } @@ -5736,9 +5731,8 @@ public enum PutSolFunctionPackageContentOutputError: Swift.Error, Swift.Equatabl extension PutSolFunctionPackageContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSolFunctionPackageContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.metadata = output.metadata @@ -5845,9 +5839,9 @@ public struct PutSolNetworkPackageContentInputBodyMiddleware: ClientRuntime.Midd Self.Context == H.Context { if let file = input.operationInput.file { - let filedata = file - let filebody = ClientRuntime.HttpBody.data(filedata) - input.builder.withBody(filebody) + let fileData = file + let fileBody = ClientRuntime.HttpBody.data(fileData) + input.builder.withBody(fileBody) } return try await next.handle(context: context, input: input) } @@ -5994,9 +5988,8 @@ public enum PutSolNetworkPackageContentOutputError: Swift.Error, Swift.Equatable extension PutSolNetworkPackageContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutSolNetworkPackageContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -6111,9 +6104,8 @@ extension PutSolNetworkPackageContentOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6127,7 +6119,7 @@ extension ResourceNotFoundException { } /// Request references a resource that doesn't exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6164,9 +6156,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6180,7 +6171,7 @@ extension ServiceQuotaExceededException { } /// Service quotas have been exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6486,9 +6477,8 @@ extension TerminateSolNetworkInstanceOutputResponse: Swift.CustomDebugStringConv extension TerminateSolNetworkInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateSolNetworkInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nsLcmOpOccId = output.nsLcmOpOccId self.tags = output.tags @@ -6546,9 +6536,8 @@ extension TerminateSolNetworkInstanceOutputResponseBody: Swift.Decodable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6562,7 +6551,7 @@ extension ThrottlingException { } /// Exception caused by throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6823,9 +6812,8 @@ public enum UpdateSolFunctionPackageOutputError: Swift.Error, Swift.Equatable { extension UpdateSolFunctionPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSolFunctionPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.operationalState = output.operationalState } else { @@ -6999,9 +6987,8 @@ extension UpdateSolNetworkInstanceOutputResponse: Swift.CustomDebugStringConvert extension UpdateSolNetworkInstanceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSolNetworkInstanceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nsLcmOpOccId = output.nsLcmOpOccId self.tags = output.tags @@ -7192,9 +7179,8 @@ public enum UpdateSolNetworkPackageOutputError: Swift.Error, Swift.Equatable { extension UpdateSolNetworkPackageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSolNetworkPackageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nsdOperationalState = output.nsdOperationalState } else { @@ -7307,9 +7293,9 @@ public struct ValidateSolFunctionPackageContentInputBodyMiddleware: ClientRuntim Self.Context == H.Context { if let file = input.operationInput.file { - let filedata = file - let filebody = ClientRuntime.HttpBody.data(filedata) - input.builder.withBody(filebody) + let fileData = file + let fileBody = ClientRuntime.HttpBody.data(fileData) + input.builder.withBody(fileBody) } return try await next.handle(context: context, input: input) } @@ -7456,9 +7442,8 @@ public enum ValidateSolFunctionPackageContentOutputError: Swift.Error, Swift.Equ extension ValidateSolFunctionPackageContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateSolFunctionPackageContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.id = output.id self.metadata = output.metadata @@ -7565,9 +7550,9 @@ public struct ValidateSolNetworkPackageContentInputBodyMiddleware: ClientRuntime Self.Context == H.Context { if let file = input.operationInput.file { - let filedata = file - let filebody = ClientRuntime.HttpBody.data(filedata) - input.builder.withBody(filebody) + let fileData = file + let fileBody = ClientRuntime.HttpBody.data(fileData) + input.builder.withBody(fileBody) } return try await next.handle(context: context, input: input) } @@ -7714,9 +7699,8 @@ public enum ValidateSolNetworkPackageContentOutputError: Swift.Error, Swift.Equa extension ValidateSolNetworkPackageContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidateSolNetworkPackageContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -7831,9 +7815,8 @@ extension ValidateSolNetworkPackageContentOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7847,7 +7830,7 @@ extension ValidationException { } /// Unable to process the request because the client provided input failed to satisfy request constraints. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSTranscribe/TranscribeClient.swift b/Sources/Services/AWSTranscribe/TranscribeClient.swift index bec578f7ec9..7d393b54784 100644 --- a/Sources/Services/AWSTranscribe/TranscribeClient.swift +++ b/Sources/Services/AWSTranscribe/TranscribeClient.swift @@ -208,6 +208,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCallAnalyticsCategory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLanguageModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMedicalVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createVocabularyFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCallAnalyticsCategory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +438,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCallAnalyticsJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLanguageModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMedicalTranscriptionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMedicalVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +566,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTranscriptionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -592,7 +603,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -612,6 +623,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +640,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteVocabularyFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -664,7 +677,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -684,6 +697,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeLanguageModel") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -700,7 +714,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -720,6 +734,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCallAnalyticsCategory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +751,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +771,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCallAnalyticsJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -772,7 +788,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -792,6 +808,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMedicalTranscriptionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -808,7 +825,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -828,6 +845,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMedicalVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -844,7 +862,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -864,6 +882,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTranscriptionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -880,7 +899,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -900,6 +919,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -916,7 +936,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -936,6 +956,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getVocabularyFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -952,7 +973,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -972,6 +993,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCallAnalyticsCategories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -989,7 +1011,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1009,6 +1031,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCallAnalyticsJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1026,7 +1049,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1046,6 +1069,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLanguageModels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1063,7 +1087,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1083,6 +1107,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMedicalTranscriptionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1100,7 +1125,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1120,6 +1145,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMedicalVocabularies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1163,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1183,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1173,7 +1200,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1193,6 +1220,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTranscriptionJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1210,7 +1238,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1230,6 +1258,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVocabularies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1247,7 +1276,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1267,6 +1296,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listVocabularyFilters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1284,7 +1314,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1315,6 +1345,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startCallAnalyticsJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1331,7 +1362,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1365,6 +1396,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMedicalTranscriptionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1381,7 +1413,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1409,6 +1441,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTranscriptionJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1425,7 +1458,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1445,6 +1478,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1461,7 +1495,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1481,6 +1515,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1497,7 +1532,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1517,6 +1552,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCallAnalyticsCategory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1533,7 +1569,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1553,6 +1589,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMedicalVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1569,7 +1606,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1589,6 +1626,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVocabulary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1605,7 +1643,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1625,6 +1663,7 @@ extension TranscribeClient: TranscribeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateVocabularyFilter") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1641,7 +1680,7 @@ extension TranscribeClient: TranscribeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSTranscribe/models/Models.swift b/Sources/Services/AWSTranscribe/models/Models.swift index dd784ed0b94..4fcb174681d 100644 --- a/Sources/Services/AWSTranscribe/models/Models.swift +++ b/Sources/Services/AWSTranscribe/models/Models.swift @@ -69,9 +69,8 @@ extension TranscribeClientTypes { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -85,7 +84,7 @@ extension BadRequestException { } /// Your request didn't pass one or more validation tests. This can occur when the entity you're trying to delete doesn't exist or if it's in a non-terminal state (such as IN PROGRESS). See the exception message field for more information. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -783,9 +782,8 @@ extension TranscribeClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -799,7 +797,7 @@ extension ConflictException { } /// A resource already exists with this name. Resource names must be unique within an Amazon Web Services account. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1009,9 +1007,8 @@ public enum CreateCallAnalyticsCategoryOutputError: Swift.Error, Swift.Equatable extension CreateCallAnalyticsCategoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCallAnalyticsCategoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.categoryProperties = output.categoryProperties } else { @@ -1181,9 +1178,8 @@ public enum CreateLanguageModelOutputError: Swift.Error, Swift.Equatable { extension CreateLanguageModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLanguageModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseModelName = output.baseModelName self.inputDataConfig = output.inputDataConfig @@ -1380,9 +1376,8 @@ public enum CreateMedicalVocabularyOutputError: Swift.Error, Swift.Equatable { extension CreateMedicalVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMedicalVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failureReason = output.failureReason self.languageCode = output.languageCode @@ -1614,9 +1609,8 @@ public enum CreateVocabularyFilterOutputError: Swift.Error, Swift.Equatable { extension CreateVocabularyFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVocabularyFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.languageCode = output.languageCode self.lastModifiedTime = output.lastModifiedTime @@ -1828,9 +1822,8 @@ public enum CreateVocabularyOutputError: Swift.Error, Swift.Equatable { extension CreateVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failureReason = output.failureReason self.languageCode = output.languageCode @@ -2557,9 +2550,8 @@ public enum DescribeLanguageModelOutputError: Swift.Error, Swift.Equatable { extension DescribeLanguageModelOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeLanguageModelOutputResponseBody = try responseDecoder.decode(responseBody: data) self.languageModel = output.languageModel } else { @@ -2662,9 +2654,8 @@ public enum GetCallAnalyticsCategoryOutputError: Swift.Error, Swift.Equatable { extension GetCallAnalyticsCategoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCallAnalyticsCategoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.categoryProperties = output.categoryProperties } else { @@ -2767,9 +2758,8 @@ public enum GetCallAnalyticsJobOutputError: Swift.Error, Swift.Equatable { extension GetCallAnalyticsJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCallAnalyticsJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.callAnalyticsJob = output.callAnalyticsJob } else { @@ -2872,9 +2862,8 @@ public enum GetMedicalTranscriptionJobOutputError: Swift.Error, Swift.Equatable extension GetMedicalTranscriptionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMedicalTranscriptionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.medicalTranscriptionJob = output.medicalTranscriptionJob } else { @@ -2977,9 +2966,8 @@ public enum GetMedicalVocabularyOutputError: Swift.Error, Swift.Equatable { extension GetMedicalVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMedicalVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.downloadUri = output.downloadUri self.failureReason = output.failureReason @@ -3132,9 +3120,8 @@ public enum GetTranscriptionJobOutputError: Swift.Error, Swift.Equatable { extension GetTranscriptionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTranscriptionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transcriptionJob = output.transcriptionJob } else { @@ -3237,9 +3224,8 @@ public enum GetVocabularyFilterOutputError: Swift.Error, Swift.Equatable { extension GetVocabularyFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVocabularyFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.downloadUri = output.downloadUri self.languageCode = output.languageCode @@ -3372,9 +3358,8 @@ public enum GetVocabularyOutputError: Swift.Error, Swift.Equatable { extension GetVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.downloadUri = output.downloadUri self.failureReason = output.failureReason @@ -3552,9 +3537,8 @@ extension TranscribeClientTypes { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3568,7 +3552,7 @@ extension InternalFailureException { } /// There was an internal error. Check the error message, correct the issue, and try your request again. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4109,9 +4093,8 @@ extension TranscribeClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4125,7 +4108,7 @@ extension LimitExceededException { } /// You've either sent too many requests or your input file is too long. Wait before retrying your request, or use a smaller file and try your request again. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4235,9 +4218,8 @@ public enum ListCallAnalyticsCategoriesOutputError: Swift.Error, Swift.Equatable extension ListCallAnalyticsCategoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCallAnalyticsCategoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.categories = output.categories self.nextToken = output.nextToken @@ -4377,9 +4359,8 @@ public enum ListCallAnalyticsJobsOutputError: Swift.Error, Swift.Equatable { extension ListCallAnalyticsJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCallAnalyticsJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.callAnalyticsJobSummaries = output.callAnalyticsJobSummaries self.nextToken = output.nextToken @@ -4529,9 +4510,8 @@ public enum ListLanguageModelsOutputError: Swift.Error, Swift.Equatable { extension ListLanguageModelsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLanguageModelsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.models = output.models self.nextToken = output.nextToken @@ -4671,9 +4651,8 @@ public enum ListMedicalTranscriptionJobsOutputError: Swift.Error, Swift.Equatabl extension ListMedicalTranscriptionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMedicalTranscriptionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.medicalTranscriptionJobSummaries = output.medicalTranscriptionJobSummaries self.nextToken = output.nextToken @@ -4823,9 +4802,8 @@ public enum ListMedicalVocabulariesOutputError: Swift.Error, Swift.Equatable { extension ListMedicalVocabulariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMedicalVocabulariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.status = output.status @@ -4957,9 +4935,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArn = output.resourceArn self.tags = output.tags @@ -5099,9 +5076,8 @@ public enum ListTranscriptionJobsOutputError: Swift.Error, Swift.Equatable { extension ListTranscriptionJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTranscriptionJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.status = output.status @@ -5251,9 +5227,8 @@ public enum ListVocabulariesOutputError: Swift.Error, Swift.Equatable { extension ListVocabulariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVocabulariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.status = output.status @@ -5399,9 +5374,8 @@ public enum ListVocabularyFiltersOutputError: Swift.Error, Swift.Equatable { extension ListVocabularyFiltersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListVocabularyFiltersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.vocabularyFilters = output.vocabularyFilters @@ -6200,9 +6174,8 @@ extension TranscribeClientTypes { extension NotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6216,7 +6189,7 @@ extension NotFoundException { } /// We can't find the requested resource. Check that the specified name is correct and try your request again. -public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7022,9 +6995,8 @@ public enum StartCallAnalyticsJobOutputError: Swift.Error, Swift.Equatable { extension StartCallAnalyticsJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartCallAnalyticsJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.callAnalyticsJob = output.callAnalyticsJob } else { @@ -7345,9 +7317,8 @@ public enum StartMedicalTranscriptionJobOutputError: Swift.Error, Swift.Equatabl extension StartMedicalTranscriptionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMedicalTranscriptionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.medicalTranscriptionJob = output.medicalTranscriptionJob } else { @@ -7748,9 +7719,8 @@ public enum StartTranscriptionJobOutputError: Swift.Error, Swift.Equatable { extension StartTranscriptionJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTranscriptionJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transcriptionJob = output.transcriptionJob } else { @@ -9065,9 +9035,8 @@ public enum UpdateCallAnalyticsCategoryOutputError: Swift.Error, Swift.Equatable extension UpdateCallAnalyticsCategoryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCallAnalyticsCategoryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.categoryProperties = output.categoryProperties } else { @@ -9202,9 +9171,8 @@ public enum UpdateMedicalVocabularyOutputError: Swift.Error, Swift.Equatable { extension UpdateMedicalVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateMedicalVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.languageCode = output.languageCode self.lastModifiedTime = output.lastModifiedTime @@ -9389,9 +9357,8 @@ public enum UpdateVocabularyFilterOutputError: Swift.Error, Swift.Equatable { extension UpdateVocabularyFilterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVocabularyFilterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.languageCode = output.languageCode self.lastModifiedTime = output.lastModifiedTime @@ -9581,9 +9548,8 @@ public enum UpdateVocabularyOutputError: Swift.Error, Swift.Equatable { extension UpdateVocabularyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateVocabularyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.languageCode = output.languageCode self.lastModifiedTime = output.lastModifiedTime diff --git a/Sources/Services/AWSTranscribeStreaming/TranscribeStreamingClient.swift b/Sources/Services/AWSTranscribeStreaming/TranscribeStreamingClient.swift index 2b8887fc4d3..ccd3fdbe3e5 100644 --- a/Sources/Services/AWSTranscribeStreaming/TranscribeStreamingClient.swift +++ b/Sources/Services/AWSTranscribeStreaming/TranscribeStreamingClient.swift @@ -217,6 +217,8 @@ extension TranscribeStreamingClient: TranscribeStreamingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() + try context.setupBidirectionalStreaming() var operation = ClientRuntime.OperationStack(id: "startCallAnalyticsStreamTranscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -233,7 +235,7 @@ extension TranscribeStreamingClient: TranscribeStreamingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -262,6 +264,8 @@ extension TranscribeStreamingClient: TranscribeStreamingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() + try context.setupBidirectionalStreaming() var operation = ClientRuntime.OperationStack(id: "startMedicalStreamTranscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -278,7 +282,7 @@ extension TranscribeStreamingClient: TranscribeStreamingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +311,8 @@ extension TranscribeStreamingClient: TranscribeStreamingClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transcribe") .withSigningRegion(value: config.signingRegion) + .build() + try context.setupBidirectionalStreaming() var operation = ClientRuntime.OperationStack(id: "startStreamTranscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -323,7 +329,7 @@ extension TranscribeStreamingClient: TranscribeStreamingClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSTranscribeStreaming/models/Models.swift b/Sources/Services/AWSTranscribeStreaming/models/Models.swift index 00aef004a20..bd7afad052d 100644 --- a/Sources/Services/AWSTranscribeStreaming/models/Models.swift +++ b/Sources/Services/AWSTranscribeStreaming/models/Models.swift @@ -116,38 +116,23 @@ extension TranscribeStreamingClientTypes { } -extension TranscribeStreamingClientTypes.AudioStream: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case audioevent = "AudioEvent" - case configurationevent = "ConfigurationEvent" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) +extension TranscribeStreamingClientTypes.AudioStream: ClientRuntime.MessageMarshallable { + public func marshall(encoder: ClientRuntime.RequestEncoder) throws -> ClientRuntime.EventStream.Message { + var headers: [ClientRuntime.EventStream.Header] = [.init(name: ":message-type", value: .string("event"))] + var payload: ClientRuntime.Data? = nil switch self { - case let .audioevent(audioevent): - try container.encode(audioevent, forKey: .audioevent) - case let .configurationevent(configurationevent): - try container.encode(configurationevent, forKey: .configurationevent) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: .sdkUnknown) - } - } - - public init (from decoder: Swift.Decoder) throws { - let values = try decoder.container(keyedBy: CodingKeys.self) - let audioeventDecoded = try values.decodeIfPresent(TranscribeStreamingClientTypes.AudioEvent.self, forKey: .audioevent) - if let audioevent = audioeventDecoded { - self = .audioevent(audioevent) - return - } - let configurationeventDecoded = try values.decodeIfPresent(TranscribeStreamingClientTypes.ConfigurationEvent.self, forKey: .configurationevent) - if let configurationevent = configurationeventDecoded { - self = .configurationevent(configurationevent) - return + case .audioevent(let value): + headers.append(.init(name: ":event-type", value: .string("AudioEvent"))) + headers.append(.init(name: ":content-type", value: .string("application/octet-stream"))) + payload = value.audioChunk + case .configurationevent(let value): + headers.append(.init(name: ":event-type", value: .string("ConfigurationEvent"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .sdkUnknown(_): + throw ClientRuntime.ClientError.serializationFailed("cannot serialize the unknown event type!") } - self = .sdkUnknown("") + return ClientRuntime.EventStream.Message(headers: headers, payload: payload ?? .init()) } } @@ -184,9 +169,8 @@ extension BadRequestException: Swift.Codable { extension BadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -200,7 +184,7 @@ extension BadRequestException { } /// One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription operation was not valid. For example, MediaEncoding or LanguageCode used not valid values. Check the specified parameters and try your request again. -public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct BadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -467,79 +451,45 @@ extension TranscribeStreamingClientTypes { } } -extension TranscribeStreamingClientTypes.CallAnalyticsTranscriptResultStream: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case badrequestexception = "BadRequestException" - case categoryevent = "CategoryEvent" - case conflictexception = "ConflictException" - case internalfailureexception = "InternalFailureException" - case limitexceededexception = "LimitExceededException" - case serviceunavailableexception = "ServiceUnavailableException" - case utteranceevent = "UtteranceEvent" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - switch self { - case let .badrequestexception(badrequestexception): - try container.encode(badrequestexception, forKey: .badrequestexception) - case let .categoryevent(categoryevent): - try container.encode(categoryevent, forKey: .categoryevent) - case let .conflictexception(conflictexception): - try container.encode(conflictexception, forKey: .conflictexception) - case let .internalfailureexception(internalfailureexception): - try container.encode(internalfailureexception, forKey: .internalfailureexception) - case let .limitexceededexception(limitexceededexception): - try container.encode(limitexceededexception, forKey: .limitexceededexception) - case let .serviceunavailableexception(serviceunavailableexception): - try container.encode(serviceunavailableexception, forKey: .serviceunavailableexception) - case let .utteranceevent(utteranceevent): - try container.encode(utteranceevent, forKey: .utteranceevent) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: .sdkUnknown) +extension TranscribeStreamingClientTypes.CallAnalyticsTranscriptResultStream: ClientRuntime.MessageUnmarshallable { + public init(message: ClientRuntime.EventStream.Message, decoder: ClientRuntime.ResponseDecoder) throws { + switch try message.type() { + case .event(let params): + switch params.eventType { + case "UtteranceEvent": + self = .utteranceevent(try decoder.decode(responseBody: message.payload)) + case "CategoryEvent": + self = .categoryevent(try decoder.decode(responseBody: message.payload)) + default: + self = .sdkUnknown("error processing event stream, unrecognized event: \(params.eventType)") + } + case .exception(let params): + let makeError: (ClientRuntime.EventStream.Message, ClientRuntime.EventStream.MessageType.ExceptionParams) throws -> Swift.Error = { message, params in + switch params.exceptionType { + case "BadRequestException": + return try decoder.decode(responseBody: message.payload) as BadRequestException + case "LimitExceededException": + return try decoder.decode(responseBody: message.payload) as LimitExceededException + case "InternalFailureException": + return try decoder.decode(responseBody: message.payload) as InternalFailureException + case "ConflictException": + return try decoder.decode(responseBody: message.payload) as ConflictException + case "ServiceUnavailableException": + return try decoder.decode(responseBody: message.payload) as ServiceUnavailableException + default: + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + return AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':exceptionType': \(params.exceptionType); contentType: \(params.contentType ?? "nil")") + } + } + let error = try makeError(message, params) + throw error + case .error(let params): + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + throw AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':errorType': \(params.errorCode); message: \(params.message ?? "nil")") + case .unknown(messageType: let messageType): + throw ClientRuntime.ClientError.unknownError("unrecognized event stream message ':message-type': \(messageType)") } } - - public init (from decoder: Swift.Decoder) throws { - let values = try decoder.container(keyedBy: CodingKeys.self) - let utteranceeventDecoded = try values.decodeIfPresent(TranscribeStreamingClientTypes.UtteranceEvent.self, forKey: .utteranceevent) - if let utteranceevent = utteranceeventDecoded { - self = .utteranceevent(utteranceevent) - return - } - let categoryeventDecoded = try values.decodeIfPresent(TranscribeStreamingClientTypes.CategoryEvent.self, forKey: .categoryevent) - if let categoryevent = categoryeventDecoded { - self = .categoryevent(categoryevent) - return - } - let badrequestexceptionDecoded = try values.decodeIfPresent(BadRequestException.self, forKey: .badrequestexception) - if let badrequestexception = badrequestexceptionDecoded { - self = .badrequestexception(badrequestexception) - return - } - let limitexceededexceptionDecoded = try values.decodeIfPresent(LimitExceededException.self, forKey: .limitexceededexception) - if let limitexceededexception = limitexceededexceptionDecoded { - self = .limitexceededexception(limitexceededexception) - return - } - let internalfailureexceptionDecoded = try values.decodeIfPresent(InternalFailureException.self, forKey: .internalfailureexception) - if let internalfailureexception = internalfailureexceptionDecoded { - self = .internalfailureexception(internalfailureexception) - return - } - let conflictexceptionDecoded = try values.decodeIfPresent(ConflictException.self, forKey: .conflictexception) - if let conflictexception = conflictexceptionDecoded { - self = .conflictexception(conflictexception) - return - } - let serviceunavailableexceptionDecoded = try values.decodeIfPresent(ServiceUnavailableException.self, forKey: .serviceunavailableexception) - if let serviceunavailableexception = serviceunavailableexceptionDecoded { - self = .serviceunavailableexception(serviceunavailableexception) - return - } - self = .sdkUnknown("") - } } extension TranscribeStreamingClientTypes { @@ -549,16 +499,6 @@ extension TranscribeStreamingClientTypes { case utteranceevent(TranscribeStreamingClientTypes.UtteranceEvent) /// Provides information on matched categories that were used to generate real-time supervisor alerts. case categoryevent(TranscribeStreamingClientTypes.CategoryEvent) - /// One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription operation was not valid. For example, MediaEncoding or LanguageCode used not valid values. Check the specified parameters and try your request again. - case badrequestexception(BadRequestException) - /// Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length limit. Break your audio stream into smaller chunks and try your request again. - case limitexceededexception(LimitExceededException) - /// A problem occurred while processing the audio. Amazon Transcribe terminated processing. - case internalfailureexception(InternalFailureException) - /// A new stream started with the same session ID. The current stream has been terminated. - case conflictexception(ConflictException) - /// The service is currently unavailable. Try your request later. - case serviceunavailableexception(ServiceUnavailableException) case sdkUnknown(Swift.String) } @@ -803,9 +743,8 @@ extension ConflictException: Swift.Codable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -819,7 +758,7 @@ extension ConflictException { } /// A new stream started with the same session ID. The current stream has been terminated. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1049,9 +988,8 @@ extension InternalFailureException: Swift.Codable { extension InternalFailureException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalFailureExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1065,7 +1003,7 @@ extension InternalFailureException { } /// A problem occurred while processing the audio. Amazon Transcribe terminated processing. -public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalFailureException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1405,9 +1343,8 @@ extension LimitExceededException: Swift.Codable { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1421,7 +1358,7 @@ extension LimitExceededException { } /// Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length limit. Break your audio stream into smaller chunks and try your request again. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1937,71 +1874,43 @@ extension TranscribeStreamingClientTypes { } -extension TranscribeStreamingClientTypes.MedicalTranscriptResultStream: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case badrequestexception = "BadRequestException" - case conflictexception = "ConflictException" - case internalfailureexception = "InternalFailureException" - case limitexceededexception = "LimitExceededException" - case serviceunavailableexception = "ServiceUnavailableException" - case transcriptevent = "TranscriptEvent" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - switch self { - case let .badrequestexception(badrequestexception): - try container.encode(badrequestexception, forKey: .badrequestexception) - case let .conflictexception(conflictexception): - try container.encode(conflictexception, forKey: .conflictexception) - case let .internalfailureexception(internalfailureexception): - try container.encode(internalfailureexception, forKey: .internalfailureexception) - case let .limitexceededexception(limitexceededexception): - try container.encode(limitexceededexception, forKey: .limitexceededexception) - case let .serviceunavailableexception(serviceunavailableexception): - try container.encode(serviceunavailableexception, forKey: .serviceunavailableexception) - case let .transcriptevent(transcriptevent): - try container.encode(transcriptevent, forKey: .transcriptevent) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: .sdkUnknown) +extension TranscribeStreamingClientTypes.MedicalTranscriptResultStream: ClientRuntime.MessageUnmarshallable { + public init(message: ClientRuntime.EventStream.Message, decoder: ClientRuntime.ResponseDecoder) throws { + switch try message.type() { + case .event(let params): + switch params.eventType { + case "TranscriptEvent": + self = .transcriptevent(try decoder.decode(responseBody: message.payload)) + default: + self = .sdkUnknown("error processing event stream, unrecognized event: \(params.eventType)") + } + case .exception(let params): + let makeError: (ClientRuntime.EventStream.Message, ClientRuntime.EventStream.MessageType.ExceptionParams) throws -> Swift.Error = { message, params in + switch params.exceptionType { + case "BadRequestException": + return try decoder.decode(responseBody: message.payload) as BadRequestException + case "LimitExceededException": + return try decoder.decode(responseBody: message.payload) as LimitExceededException + case "InternalFailureException": + return try decoder.decode(responseBody: message.payload) as InternalFailureException + case "ConflictException": + return try decoder.decode(responseBody: message.payload) as ConflictException + case "ServiceUnavailableException": + return try decoder.decode(responseBody: message.payload) as ServiceUnavailableException + default: + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + return AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':exceptionType': \(params.exceptionType); contentType: \(params.contentType ?? "nil")") + } + } + let error = try makeError(message, params) + throw error + case .error(let params): + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + throw AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':errorType': \(params.errorCode); message: \(params.message ?? "nil")") + case .unknown(messageType: let messageType): + throw ClientRuntime.ClientError.unknownError("unrecognized event stream message ':message-type': \(messageType)") } } - - public init (from decoder: Swift.Decoder) throws { - let values = try decoder.container(keyedBy: CodingKeys.self) - let transcripteventDecoded = try values.decodeIfPresent(TranscribeStreamingClientTypes.MedicalTranscriptEvent.self, forKey: .transcriptevent) - if let transcriptevent = transcripteventDecoded { - self = .transcriptevent(transcriptevent) - return - } - let badrequestexceptionDecoded = try values.decodeIfPresent(BadRequestException.self, forKey: .badrequestexception) - if let badrequestexception = badrequestexceptionDecoded { - self = .badrequestexception(badrequestexception) - return - } - let limitexceededexceptionDecoded = try values.decodeIfPresent(LimitExceededException.self, forKey: .limitexceededexception) - if let limitexceededexception = limitexceededexceptionDecoded { - self = .limitexceededexception(limitexceededexception) - return - } - let internalfailureexceptionDecoded = try values.decodeIfPresent(InternalFailureException.self, forKey: .internalfailureexception) - if let internalfailureexception = internalfailureexceptionDecoded { - self = .internalfailureexception(internalfailureexception) - return - } - let conflictexceptionDecoded = try values.decodeIfPresent(ConflictException.self, forKey: .conflictexception) - if let conflictexception = conflictexceptionDecoded { - self = .conflictexception(conflictexception) - return - } - let serviceunavailableexceptionDecoded = try values.decodeIfPresent(ServiceUnavailableException.self, forKey: .serviceunavailableexception) - if let serviceunavailableexception = serviceunavailableexceptionDecoded { - self = .serviceunavailableexception(serviceunavailableexception) - return - } - self = .sdkUnknown("") - } } extension TranscribeStreamingClientTypes { @@ -2009,16 +1918,6 @@ extension TranscribeStreamingClientTypes { public enum MedicalTranscriptResultStream: Swift.Equatable { /// The MedicalTranscriptEvent associated with a MedicalTranscriptResultStream. Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data. case transcriptevent(TranscribeStreamingClientTypes.MedicalTranscriptEvent) - /// One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription operation was not valid. For example, MediaEncoding or LanguageCode used not valid values. Check the specified parameters and try your request again. - case badrequestexception(BadRequestException) - /// Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length limit. Break your audio stream into smaller chunks and try your request again. - case limitexceededexception(LimitExceededException) - /// A problem occurred while processing the audio. Amazon Transcribe terminated processing. - case internalfailureexception(InternalFailureException) - /// A new stream started with the same session ID. The current stream has been terminated. - case conflictexception(ConflictException) - /// The service is currently unavailable. Try your request later. - case serviceunavailableexception(ServiceUnavailableException) case sdkUnknown(Swift.String) } @@ -2417,9 +2316,8 @@ extension ServiceUnavailableException: Swift.Codable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2433,7 +2331,7 @@ extension ServiceUnavailableException { } /// The service is currently unavailable. Try your request later. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2527,15 +2425,20 @@ public struct StartCallAnalyticsStreamTranscriptionInputBodyMiddleware: ClientRu do { let encoder = context.getEncoder() if let audioStream = input.operationInput.audioStream { - let audioStreamdata = try encoder.encode(audioStream) - let audioStreambody = ClientRuntime.HttpBody.data(audioStreamdata) - input.builder.withBody(audioStreambody) + guard let messageEncoder = context.getMessageEncoder() else { + fatalError("Message encoder is required for streaming payload") + } + guard let messageSigner = context.getMessageSigner() else { + fatalError("Message signer is required for streaming payload") + } + let encoderStream = ClientRuntime.EventStream.DefaultMessageEncoderStream(stream: audioStream, messageEncoder: messageEncoder, requestEncoder: encoder, messageSinger: messageSigner) + input.builder.withBody(.stream(encoderStream)) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let audioStreamdata = "{}".data(using: .utf8)! - let audioStreambody = ClientRuntime.HttpBody.data(audioStreamdata) - input.builder.withBody(audioStreambody) + let audioStreamData = "{}".data(using: .utf8)! + let audioStreamBody = ClientRuntime.HttpBody.data(audioStreamData) + input.builder.withBody(audioStreamBody) } } } catch let err { @@ -2549,19 +2452,6 @@ public struct StartCallAnalyticsStreamTranscriptionInputBodyMiddleware: ClientRu public typealias Context = ClientRuntime.HttpContext } -extension StartCallAnalyticsStreamTranscriptionInput: Swift.Encodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case audioStream = "AudioStream" - } - - public func encode(to encoder: Swift.Encoder) throws { - var encodeContainer = encoder.container(keyedBy: CodingKeys.self) - if let audioStream = self.audioStream { - try encodeContainer.encode(audioStream, forKey: .audioStream) - } - } -} - extension StartCallAnalyticsStreamTranscriptionInput: ClientRuntime.HeaderProvider { public var headers: ClientRuntime.Headers { var items = ClientRuntime.Headers() @@ -2617,7 +2507,7 @@ extension StartCallAnalyticsStreamTranscriptionInput: ClientRuntime.URLPathProvi public struct StartCallAnalyticsStreamTranscriptionInput: Swift.Equatable { /// An encoded stream of audio blobs. Audio streams are encoded as either HTTP/2 or WebSocket data frames. For more information, see [Transcribing streaming audio](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html). /// This member is required. - public var audioStream: TranscribeStreamingClientTypes.AudioStream? + public var audioStream: AsyncThrowingStream? /// Labels all personally identifiable information (PII) identified in your transcript. Content identification is performed at the segment level; PII specified in PiiEntityTypes is flagged upon complete transcription of an audio segment. You can’t set ContentIdentificationType and ContentRedactionType in the same request. If you set both, your request returns a BadRequestException. For more information, see [Redacting or identifying personally identifiable information](https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). public var contentIdentificationType: TranscribeStreamingClientTypes.ContentIdentificationType? /// Redacts all personally identifiable information (PII) identified in your transcript. Content redaction is performed at the segment level; PII specified in PiiEntityTypes is redacted upon complete transcription of an audio segment. You can’t set ContentRedactionType and ContentIdentificationType in the same request. If you set both, your request returns a BadRequestException. For more information, see [Redacting or identifying personally identifiable information](https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). @@ -2658,7 +2548,7 @@ public struct StartCallAnalyticsStreamTranscriptionInput: Swift.Equatable { public var vocabularyName: Swift.String? public init ( - audioStream: TranscribeStreamingClientTypes.AudioStream? = nil, + audioStream: AsyncThrowingStream? = nil, contentIdentificationType: TranscribeStreamingClientTypes.ContentIdentificationType? = nil, contentRedactionType: TranscribeStreamingClientTypes.ContentRedactionType? = nil, enablePartialResultsStabilization: Swift.Bool = false, @@ -2691,22 +2581,6 @@ public struct StartCallAnalyticsStreamTranscriptionInput: Swift.Equatable { } } -struct StartCallAnalyticsStreamTranscriptionInputBody: Swift.Equatable { - let audioStream: TranscribeStreamingClientTypes.AudioStream? -} - -extension StartCallAnalyticsStreamTranscriptionInputBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case audioStream = "AudioStream" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let audioStreamDecoded = try containerValues.decodeIfPresent(TranscribeStreamingClientTypes.AudioStream.self, forKey: .audioStream) - audioStream = audioStreamDecoded - } -} - extension StartCallAnalyticsStreamTranscriptionOutputError: ClientRuntime.HttpResponseBinding { public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { let errorDetails = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse) @@ -2809,13 +2683,10 @@ extension StartCallAnalyticsStreamTranscriptionOutputResponse: ClientRuntime.Htt } else { self.vocabularyName = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: TranscribeStreamingClientTypes.CallAnalyticsTranscriptResultStream = try responseDecoder.decode(responseBody: data) - self.callAnalyticsTranscriptResultStream = output - } else { - self.callAnalyticsTranscriptResultStream = nil - } + if case let .stream(stream) = httpResponse.body, let responseDecoder = decoder { + let messageDecoder = AWSClientRuntime.AWSEventStream.AWSMessageDecoder() + let decoderStream = ClientRuntime.EventStream.DefaultMessageDecoderStream(stream: stream, messageDecoder: messageDecoder, responseDecoder: responseDecoder) + self.callAnalyticsTranscriptResultStream = decoderStream.toAsyncStream() } else { self.callAnalyticsTranscriptResultStream = nil } @@ -2824,7 +2695,7 @@ extension StartCallAnalyticsStreamTranscriptionOutputResponse: ClientRuntime.Htt public struct StartCallAnalyticsStreamTranscriptionOutputResponse: Swift.Equatable { /// Provides detailed information about your Call Analytics streaming session. - public var callAnalyticsTranscriptResultStream: TranscribeStreamingClientTypes.CallAnalyticsTranscriptResultStream? + public var callAnalyticsTranscriptResultStream: AsyncThrowingStream? /// Shows whether content identification was enabled for your Call Analytics transcription. public var contentIdentificationType: TranscribeStreamingClientTypes.ContentIdentificationType? /// Shows whether content redaction was enabled for your Call Analytics transcription. @@ -2855,7 +2726,7 @@ public struct StartCallAnalyticsStreamTranscriptionOutputResponse: Swift.Equatab public var vocabularyName: Swift.String? public init ( - callAnalyticsTranscriptResultStream: TranscribeStreamingClientTypes.CallAnalyticsTranscriptResultStream? = nil, + callAnalyticsTranscriptResultStream: AsyncThrowingStream? = nil, contentIdentificationType: TranscribeStreamingClientTypes.ContentIdentificationType? = nil, contentRedactionType: TranscribeStreamingClientTypes.ContentRedactionType? = nil, enablePartialResultsStabilization: Swift.Bool = false, @@ -2890,22 +2761,6 @@ public struct StartCallAnalyticsStreamTranscriptionOutputResponse: Swift.Equatab } } -struct StartCallAnalyticsStreamTranscriptionOutputResponseBody: Swift.Equatable { - let callAnalyticsTranscriptResultStream: TranscribeStreamingClientTypes.CallAnalyticsTranscriptResultStream? -} - -extension StartCallAnalyticsStreamTranscriptionOutputResponseBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case callAnalyticsTranscriptResultStream = "CallAnalyticsTranscriptResultStream" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let callAnalyticsTranscriptResultStreamDecoded = try containerValues.decodeIfPresent(TranscribeStreamingClientTypes.CallAnalyticsTranscriptResultStream.self, forKey: .callAnalyticsTranscriptResultStream) - callAnalyticsTranscriptResultStream = callAnalyticsTranscriptResultStreamDecoded - } -} - public struct StartMedicalStreamTranscriptionInputBodyMiddleware: ClientRuntime.Middleware { public let id: Swift.String = "StartMedicalStreamTranscriptionInputBodyMiddleware" @@ -2922,15 +2777,20 @@ public struct StartMedicalStreamTranscriptionInputBodyMiddleware: ClientRuntime. do { let encoder = context.getEncoder() if let audioStream = input.operationInput.audioStream { - let audioStreamdata = try encoder.encode(audioStream) - let audioStreambody = ClientRuntime.HttpBody.data(audioStreamdata) - input.builder.withBody(audioStreambody) + guard let messageEncoder = context.getMessageEncoder() else { + fatalError("Message encoder is required for streaming payload") + } + guard let messageSigner = context.getMessageSigner() else { + fatalError("Message signer is required for streaming payload") + } + let encoderStream = ClientRuntime.EventStream.DefaultMessageEncoderStream(stream: audioStream, messageEncoder: messageEncoder, requestEncoder: encoder, messageSinger: messageSigner) + input.builder.withBody(.stream(encoderStream)) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let audioStreamdata = "{}".data(using: .utf8)! - let audioStreambody = ClientRuntime.HttpBody.data(audioStreamdata) - input.builder.withBody(audioStreambody) + let audioStreamData = "{}".data(using: .utf8)! + let audioStreamBody = ClientRuntime.HttpBody.data(audioStreamData) + input.builder.withBody(audioStreamBody) } } } catch let err { @@ -2944,19 +2804,6 @@ public struct StartMedicalStreamTranscriptionInputBodyMiddleware: ClientRuntime. public typealias Context = ClientRuntime.HttpContext } -extension StartMedicalStreamTranscriptionInput: Swift.Encodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case audioStream = "AudioStream" - } - - public func encode(to encoder: Swift.Encoder) throws { - var encodeContainer = encoder.container(keyedBy: CodingKeys.self) - if let audioStream = self.audioStream { - try encodeContainer.encode(audioStream, forKey: .audioStream) - } - } -} - extension StartMedicalStreamTranscriptionInput: ClientRuntime.HeaderProvider { public var headers: ClientRuntime.Headers { var items = ClientRuntime.Headers() @@ -3006,7 +2853,7 @@ extension StartMedicalStreamTranscriptionInput: ClientRuntime.URLPathProvider { public struct StartMedicalStreamTranscriptionInput: Swift.Equatable { /// An encoded stream of audio blobs. Audio streams are encoded as either HTTP/2 or WebSocket data frames. For more information, see [Transcribing streaming audio](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html). /// This member is required. - public var audioStream: TranscribeStreamingClientTypes.AudioStream? + public var audioStream: AsyncThrowingStream? /// Labels all personal health information (PHI) identified in your transcript. Content identification is performed at the segment level; PHI is flagged upon complete transcription of an audio segment. For more information, see [Identifying personal health information (PHI) in a transcription](https://docs.aws.amazon.com/transcribe/latest/dg/phi-id.html). public var contentIdentificationType: TranscribeStreamingClientTypes.MedicalContentIdentificationType? /// Enables channel identification in multi-channel audio. Channel identification transcribes the audio on each channel independently, then appends the output for each channel into one transcript. If you have multi-channel audio and do not enable channel identification, your audio is transcribed in a continuous manner and your transcript is not separated by channel. For more information, see [Transcribing multi-channel audio](https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html). @@ -3045,7 +2892,7 @@ public struct StartMedicalStreamTranscriptionInput: Swift.Equatable { public var vocabularyName: Swift.String? public init ( - audioStream: TranscribeStreamingClientTypes.AudioStream? = nil, + audioStream: AsyncThrowingStream? = nil, contentIdentificationType: TranscribeStreamingClientTypes.MedicalContentIdentificationType? = nil, enableChannelIdentification: Swift.Bool = false, languageCode: TranscribeStreamingClientTypes.LanguageCode? = nil, @@ -3074,22 +2921,6 @@ public struct StartMedicalStreamTranscriptionInput: Swift.Equatable { } } -struct StartMedicalStreamTranscriptionInputBody: Swift.Equatable { - let audioStream: TranscribeStreamingClientTypes.AudioStream? -} - -extension StartMedicalStreamTranscriptionInputBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case audioStream = "AudioStream" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let audioStreamDecoded = try containerValues.decodeIfPresent(TranscribeStreamingClientTypes.AudioStream.self, forKey: .audioStream) - audioStream = audioStreamDecoded - } -} - extension StartMedicalStreamTranscriptionOutputError: ClientRuntime.HttpResponseBinding { public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { let errorDetails = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse) @@ -3182,13 +3013,10 @@ extension StartMedicalStreamTranscriptionOutputResponse: ClientRuntime.HttpRespo } else { self.vocabularyName = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: TranscribeStreamingClientTypes.MedicalTranscriptResultStream = try responseDecoder.decode(responseBody: data) - self.transcriptResultStream = output - } else { - self.transcriptResultStream = nil - } + if case let .stream(stream) = httpResponse.body, let responseDecoder = decoder { + let messageDecoder = AWSClientRuntime.AWSEventStream.AWSMessageDecoder() + let decoderStream = ClientRuntime.EventStream.DefaultMessageDecoderStream(stream: stream, messageDecoder: messageDecoder, responseDecoder: responseDecoder) + self.transcriptResultStream = decoderStream.toAsyncStream() } else { self.transcriptResultStream = nil } @@ -3217,7 +3045,7 @@ public struct StartMedicalStreamTranscriptionOutputResponse: Swift.Equatable { /// Provides the medical specialty that you specified in your request. public var specialty: TranscribeStreamingClientTypes.Specialty? /// Provides detailed information about your streaming session. - public var transcriptResultStream: TranscribeStreamingClientTypes.MedicalTranscriptResultStream? + public var transcriptResultStream: AsyncThrowingStream? /// Provides the type of audio you specified in your request. public var type: TranscribeStreamingClientTypes.ModelType? /// Provides the name of the custom vocabulary that you specified in your request. @@ -3234,7 +3062,7 @@ public struct StartMedicalStreamTranscriptionOutputResponse: Swift.Equatable { sessionId: Swift.String? = nil, showSpeakerLabel: Swift.Bool = false, specialty: TranscribeStreamingClientTypes.Specialty? = nil, - transcriptResultStream: TranscribeStreamingClientTypes.MedicalTranscriptResultStream? = nil, + transcriptResultStream: AsyncThrowingStream? = nil, type: TranscribeStreamingClientTypes.ModelType? = nil, vocabularyName: Swift.String? = nil ) @@ -3255,22 +3083,6 @@ public struct StartMedicalStreamTranscriptionOutputResponse: Swift.Equatable { } } -struct StartMedicalStreamTranscriptionOutputResponseBody: Swift.Equatable { - let transcriptResultStream: TranscribeStreamingClientTypes.MedicalTranscriptResultStream? -} - -extension StartMedicalStreamTranscriptionOutputResponseBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case transcriptResultStream = "TranscriptResultStream" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let transcriptResultStreamDecoded = try containerValues.decodeIfPresent(TranscribeStreamingClientTypes.MedicalTranscriptResultStream.self, forKey: .transcriptResultStream) - transcriptResultStream = transcriptResultStreamDecoded - } -} - public struct StartStreamTranscriptionInputBodyMiddleware: ClientRuntime.Middleware { public let id: Swift.String = "StartStreamTranscriptionInputBodyMiddleware" @@ -3287,15 +3099,20 @@ public struct StartStreamTranscriptionInputBodyMiddleware: ClientRuntime.Middlew do { let encoder = context.getEncoder() if let audioStream = input.operationInput.audioStream { - let audioStreamdata = try encoder.encode(audioStream) - let audioStreambody = ClientRuntime.HttpBody.data(audioStreamdata) - input.builder.withBody(audioStreambody) + guard let messageEncoder = context.getMessageEncoder() else { + fatalError("Message encoder is required for streaming payload") + } + guard let messageSigner = context.getMessageSigner() else { + fatalError("Message signer is required for streaming payload") + } + let encoderStream = ClientRuntime.EventStream.DefaultMessageEncoderStream(stream: audioStream, messageEncoder: messageEncoder, requestEncoder: encoder, messageSinger: messageSigner) + input.builder.withBody(.stream(encoderStream)) } else { if encoder is JSONEncoder { // Encode an empty body as an empty structure in JSON - let audioStreamdata = "{}".data(using: .utf8)! - let audioStreambody = ClientRuntime.HttpBody.data(audioStreamdata) - input.builder.withBody(audioStreambody) + let audioStreamData = "{}".data(using: .utf8)! + let audioStreamBody = ClientRuntime.HttpBody.data(audioStreamData) + input.builder.withBody(audioStreamBody) } } } catch let err { @@ -3309,19 +3126,6 @@ public struct StartStreamTranscriptionInputBodyMiddleware: ClientRuntime.Middlew public typealias Context = ClientRuntime.HttpContext } -extension StartStreamTranscriptionInput: Swift.Encodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case audioStream = "AudioStream" - } - - public func encode(to encoder: Swift.Encoder) throws { - var encodeContainer = encoder.container(keyedBy: CodingKeys.self) - if let audioStream = self.audioStream { - try encodeContainer.encode(audioStream, forKey: .audioStream) - } - } -} - extension StartStreamTranscriptionInput: ClientRuntime.HeaderProvider { public var headers: ClientRuntime.Headers { var items = ClientRuntime.Headers() @@ -3401,7 +3205,7 @@ extension StartStreamTranscriptionInput: ClientRuntime.URLPathProvider { public struct StartStreamTranscriptionInput: Swift.Equatable { /// An encoded stream of audio blobs. Audio streams are encoded as either HTTP/2 or WebSocket data frames. For more information, see [Transcribing streaming audio](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html). /// This member is required. - public var audioStream: TranscribeStreamingClientTypes.AudioStream? + public var audioStream: AsyncThrowingStream? /// Labels all personally identifiable information (PII) identified in your transcript. Content identification is performed at the segment level; PII specified in PiiEntityTypes is flagged upon complete transcription of an audio segment. You can’t set ContentIdentificationType and ContentRedactionType in the same request. If you set both, your request returns a BadRequestException. For more information, see [Redacting or identifying personally identifiable information](https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). public var contentIdentificationType: TranscribeStreamingClientTypes.ContentIdentificationType? /// Redacts all personally identifiable information (PII) identified in your transcript. Content redaction is performed at the segment level; PII specified in PiiEntityTypes is redacted upon complete transcription of an audio segment. You can’t set ContentRedactionType and ContentIdentificationType in the same request. If you set both, your request returns a BadRequestException. For more information, see [Redacting or identifying personally identifiable information](https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). @@ -3457,7 +3261,7 @@ public struct StartStreamTranscriptionInput: Swift.Equatable { public var vocabularyNames: Swift.String? public init ( - audioStream: TranscribeStreamingClientTypes.AudioStream? = nil, + audioStream: AsyncThrowingStream? = nil, contentIdentificationType: TranscribeStreamingClientTypes.ContentIdentificationType? = nil, contentRedactionType: TranscribeStreamingClientTypes.ContentRedactionType? = nil, enableChannelIdentification: Swift.Bool = false, @@ -3506,22 +3310,6 @@ public struct StartStreamTranscriptionInput: Swift.Equatable { } } -struct StartStreamTranscriptionInputBody: Swift.Equatable { - let audioStream: TranscribeStreamingClientTypes.AudioStream? -} - -extension StartStreamTranscriptionInputBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case audioStream = "AudioStream" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let audioStreamDecoded = try containerValues.decodeIfPresent(TranscribeStreamingClientTypes.AudioStream.self, forKey: .audioStream) - audioStream = audioStreamDecoded - } -} - extension StartStreamTranscriptionOutputError: ClientRuntime.HttpResponseBinding { public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { let errorDetails = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse) @@ -3664,13 +3452,10 @@ extension StartStreamTranscriptionOutputResponse: ClientRuntime.HttpResponseBind } else { self.vocabularyNames = nil } - if let data = httpResponse.body.toBytes()?.getData() { - if let responseDecoder = decoder { - let output: TranscribeStreamingClientTypes.TranscriptResultStream = try responseDecoder.decode(responseBody: data) - self.transcriptResultStream = output - } else { - self.transcriptResultStream = nil - } + if case let .stream(stream) = httpResponse.body, let responseDecoder = decoder { + let messageDecoder = AWSClientRuntime.AWSEventStream.AWSMessageDecoder() + let decoderStream = ClientRuntime.EventStream.DefaultMessageDecoderStream(stream: stream, messageDecoder: messageDecoder, responseDecoder: responseDecoder) + self.transcriptResultStream = decoderStream.toAsyncStream() } else { self.transcriptResultStream = nil } @@ -3713,7 +3498,7 @@ public struct StartStreamTranscriptionOutputResponse: Swift.Equatable { /// Shows whether speaker partitioning was enabled for your transcription. public var showSpeakerLabel: Swift.Bool /// Provides detailed information about your streaming session. - public var transcriptResultStream: TranscribeStreamingClientTypes.TranscriptResultStream? + public var transcriptResultStream: AsyncThrowingStream? /// Provides the vocabulary filtering method used in your transcription. public var vocabularyFilterMethod: TranscribeStreamingClientTypes.VocabularyFilterMethod? /// Provides the name of the custom vocabulary filter that you specified in your request. @@ -3743,7 +3528,7 @@ public struct StartStreamTranscriptionOutputResponse: Swift.Equatable { requestId: Swift.String? = nil, sessionId: Swift.String? = nil, showSpeakerLabel: Swift.Bool = false, - transcriptResultStream: TranscribeStreamingClientTypes.TranscriptResultStream? = nil, + transcriptResultStream: AsyncThrowingStream? = nil, vocabularyFilterMethod: TranscribeStreamingClientTypes.VocabularyFilterMethod? = nil, vocabularyFilterName: Swift.String? = nil, vocabularyFilterNames: Swift.String? = nil, @@ -3777,22 +3562,6 @@ public struct StartStreamTranscriptionOutputResponse: Swift.Equatable { } } -struct StartStreamTranscriptionOutputResponseBody: Swift.Equatable { - let transcriptResultStream: TranscribeStreamingClientTypes.TranscriptResultStream? -} - -extension StartStreamTranscriptionOutputResponseBody: Swift.Decodable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case transcriptResultStream = "TranscriptResultStream" - } - - public init (from decoder: Swift.Decoder) throws { - let containerValues = try decoder.container(keyedBy: CodingKeys.self) - let transcriptResultStreamDecoded = try containerValues.decodeIfPresent(TranscribeStreamingClientTypes.TranscriptResultStream.self, forKey: .transcriptResultStream) - transcriptResultStream = transcriptResultStreamDecoded - } -} - extension TranscribeStreamingClientTypes.TimestampRange: Swift.Codable { enum CodingKeys: Swift.String, Swift.CodingKey { case beginOffsetMillis = "BeginOffsetMillis" @@ -3920,71 +3689,43 @@ extension TranscribeStreamingClientTypes { } -extension TranscribeStreamingClientTypes.TranscriptResultStream: Swift.Codable { - enum CodingKeys: Swift.String, Swift.CodingKey { - case badrequestexception = "BadRequestException" - case conflictexception = "ConflictException" - case internalfailureexception = "InternalFailureException" - case limitexceededexception = "LimitExceededException" - case serviceunavailableexception = "ServiceUnavailableException" - case transcriptevent = "TranscriptEvent" - case sdkUnknown - } - - public func encode(to encoder: Swift.Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - switch self { - case let .badrequestexception(badrequestexception): - try container.encode(badrequestexception, forKey: .badrequestexception) - case let .conflictexception(conflictexception): - try container.encode(conflictexception, forKey: .conflictexception) - case let .internalfailureexception(internalfailureexception): - try container.encode(internalfailureexception, forKey: .internalfailureexception) - case let .limitexceededexception(limitexceededexception): - try container.encode(limitexceededexception, forKey: .limitexceededexception) - case let .serviceunavailableexception(serviceunavailableexception): - try container.encode(serviceunavailableexception, forKey: .serviceunavailableexception) - case let .transcriptevent(transcriptevent): - try container.encode(transcriptevent, forKey: .transcriptevent) - case let .sdkUnknown(sdkUnknown): - try container.encode(sdkUnknown, forKey: .sdkUnknown) +extension TranscribeStreamingClientTypes.TranscriptResultStream: ClientRuntime.MessageUnmarshallable { + public init(message: ClientRuntime.EventStream.Message, decoder: ClientRuntime.ResponseDecoder) throws { + switch try message.type() { + case .event(let params): + switch params.eventType { + case "TranscriptEvent": + self = .transcriptevent(try decoder.decode(responseBody: message.payload)) + default: + self = .sdkUnknown("error processing event stream, unrecognized event: \(params.eventType)") + } + case .exception(let params): + let makeError: (ClientRuntime.EventStream.Message, ClientRuntime.EventStream.MessageType.ExceptionParams) throws -> Swift.Error = { message, params in + switch params.exceptionType { + case "BadRequestException": + return try decoder.decode(responseBody: message.payload) as BadRequestException + case "LimitExceededException": + return try decoder.decode(responseBody: message.payload) as LimitExceededException + case "InternalFailureException": + return try decoder.decode(responseBody: message.payload) as InternalFailureException + case "ConflictException": + return try decoder.decode(responseBody: message.payload) as ConflictException + case "ServiceUnavailableException": + return try decoder.decode(responseBody: message.payload) as ServiceUnavailableException + default: + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + return AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':exceptionType': \(params.exceptionType); contentType: \(params.contentType ?? "nil")") + } + } + let error = try makeError(message, params) + throw error + case .error(let params): + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + throw AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':errorType': \(params.errorCode); message: \(params.message ?? "nil")") + case .unknown(messageType: let messageType): + throw ClientRuntime.ClientError.unknownError("unrecognized event stream message ':message-type': \(messageType)") } } - - public init (from decoder: Swift.Decoder) throws { - let values = try decoder.container(keyedBy: CodingKeys.self) - let transcripteventDecoded = try values.decodeIfPresent(TranscribeStreamingClientTypes.TranscriptEvent.self, forKey: .transcriptevent) - if let transcriptevent = transcripteventDecoded { - self = .transcriptevent(transcriptevent) - return - } - let badrequestexceptionDecoded = try values.decodeIfPresent(BadRequestException.self, forKey: .badrequestexception) - if let badrequestexception = badrequestexceptionDecoded { - self = .badrequestexception(badrequestexception) - return - } - let limitexceededexceptionDecoded = try values.decodeIfPresent(LimitExceededException.self, forKey: .limitexceededexception) - if let limitexceededexception = limitexceededexceptionDecoded { - self = .limitexceededexception(limitexceededexception) - return - } - let internalfailureexceptionDecoded = try values.decodeIfPresent(InternalFailureException.self, forKey: .internalfailureexception) - if let internalfailureexception = internalfailureexceptionDecoded { - self = .internalfailureexception(internalfailureexception) - return - } - let conflictexceptionDecoded = try values.decodeIfPresent(ConflictException.self, forKey: .conflictexception) - if let conflictexception = conflictexceptionDecoded { - self = .conflictexception(conflictexception) - return - } - let serviceunavailableexceptionDecoded = try values.decodeIfPresent(ServiceUnavailableException.self, forKey: .serviceunavailableexception) - if let serviceunavailableexception = serviceunavailableexceptionDecoded { - self = .serviceunavailableexception(serviceunavailableexception) - return - } - self = .sdkUnknown("") - } } extension TranscribeStreamingClientTypes { @@ -3992,16 +3733,6 @@ extension TranscribeStreamingClientTypes { public enum TranscriptResultStream: Swift.Equatable { /// Contains Transcript, which contains Results. The object contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. case transcriptevent(TranscribeStreamingClientTypes.TranscriptEvent) - /// A client error occurred when the stream was created. Check the parameters of the request and try your request again. - case badrequestexception(BadRequestException) - /// Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length limit. Break your audio stream into smaller chunks and try your request again. - case limitexceededexception(LimitExceededException) - /// A problem occurred while processing the audio. Amazon Transcribe terminated processing. - case internalfailureexception(InternalFailureException) - /// A new stream started with the same session ID. The current stream has been terminated. - case conflictexception(ConflictException) - /// The service is currently unavailable. Try your request later. - case serviceunavailableexception(ServiceUnavailableException) case sdkUnknown(Swift.String) } diff --git a/Sources/Services/AWSTransfer/TransferClient.swift b/Sources/Services/AWSTransfer/TransferClient.swift index 556f803647c..dc02e3c1bc3 100644 --- a/Sources/Services/AWSTransfer/TransferClient.swift +++ b/Sources/Services/AWSTransfer/TransferClient.swift @@ -208,6 +208,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAgreement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAgreement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteHostKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -640,6 +652,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -676,6 +689,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -712,6 +726,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSshPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -748,6 +763,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -820,6 +837,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -856,6 +874,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAgreement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +911,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -908,7 +928,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -928,6 +948,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -944,7 +965,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -964,6 +985,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeExecution") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -980,7 +1002,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1000,6 +1022,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeHostKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1016,7 +1039,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1036,6 +1059,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1052,7 +1076,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1072,6 +1096,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSecurityPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1088,7 +1113,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1108,6 +1133,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1124,7 +1150,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1144,6 +1170,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1160,7 +1187,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1180,6 +1207,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkflow") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1196,7 +1224,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1216,6 +1244,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1232,7 +1261,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1252,6 +1281,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importHostKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1268,7 +1298,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1288,6 +1318,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importSshPublicKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1304,7 +1335,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1324,6 +1355,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccesses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1340,7 +1372,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1360,6 +1392,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAgreements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1376,7 +1409,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1396,6 +1429,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1412,7 +1446,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1432,6 +1466,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listConnectors") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listExecutions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1484,7 +1520,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1504,6 +1540,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listHostKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1520,7 +1557,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1540,6 +1577,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listProfiles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1556,7 +1594,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1576,6 +1614,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSecurityPolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1592,7 +1631,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1612,6 +1651,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1628,7 +1668,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1648,6 +1688,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1664,7 +1705,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1684,6 +1725,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1700,7 +1742,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1720,6 +1762,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkflows") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1736,7 +1779,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1756,6 +1799,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "sendWorkflowStepState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1772,7 +1816,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1792,6 +1836,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFileTransfer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1808,7 +1853,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1828,6 +1873,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1844,7 +1890,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1864,6 +1910,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1880,7 +1927,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1900,6 +1947,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1916,7 +1964,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1942,6 +1990,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1958,7 +2007,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1978,6 +2027,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1994,7 +2044,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2014,6 +2064,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2030,7 +2081,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2050,6 +2101,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAgreement") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2066,7 +2118,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2086,6 +2138,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2102,7 +2155,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2122,6 +2175,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnector") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2138,7 +2192,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2158,6 +2212,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateHostKey") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2174,7 +2229,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2194,6 +2249,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateProfile") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2210,7 +2266,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2230,6 +2286,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2246,7 +2303,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2266,6 +2323,7 @@ extension TransferClient: TransferClientProtocol { .withRegion(value: config.region) .withSigningName(value: "transfer") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2282,7 +2340,7 @@ extension TransferClient: TransferClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSTransfer/models/Models.swift b/Sources/Services/AWSTransfer/models/Models.swift index dbdfbac0679..5b3eab49458 100644 --- a/Sources/Services/AWSTransfer/models/Models.swift +++ b/Sources/Services/AWSTransfer/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -357,9 +356,8 @@ extension TransferClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -373,7 +371,7 @@ extension ConflictException { } /// This exception is thrown when the UpdateServer is called for a file transfer protocol-enabled server that has VPC as the endpoint type and the server's VpcEndpointID is not in the available state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -659,9 +657,8 @@ public enum CreateAccessOutputError: Swift.Error, Swift.Equatable { extension CreateAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.externalId = output.externalId self.serverId = output.serverId @@ -892,9 +889,8 @@ public enum CreateAgreementOutputError: Swift.Error, Swift.Equatable { extension CreateAgreementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAgreementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agreementId = output.agreementId } else { @@ -1076,9 +1072,8 @@ public enum CreateConnectorOutputError: Swift.Error, Swift.Equatable { extension CreateConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorId = output.connectorId } else { @@ -1261,9 +1256,8 @@ public enum CreateProfileOutputError: Swift.Error, Swift.Equatable { extension CreateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profileId = output.profileId } else { @@ -1623,9 +1617,8 @@ public enum CreateServerOutputError: Swift.Error, Swift.Equatable { extension CreateServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverId = output.serverId } else { @@ -1883,9 +1876,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverId = output.serverId self.userName = output.userName @@ -2101,9 +2093,8 @@ public enum CreateWorkflowOutputError: Swift.Error, Swift.Equatable { extension CreateWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workflowId = output.workflowId } else { @@ -3409,9 +3400,8 @@ public enum DescribeAccessOutputError: Swift.Error, Swift.Equatable { extension DescribeAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.access = output.access self.serverId = output.serverId @@ -3551,9 +3541,8 @@ public enum DescribeAgreementOutputError: Swift.Error, Swift.Equatable { extension DescribeAgreementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAgreementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agreement = output.agreement } else { @@ -3669,9 +3658,8 @@ public enum DescribeCertificateOutputError: Swift.Error, Swift.Equatable { extension DescribeCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate } else { @@ -3787,9 +3775,8 @@ public enum DescribeConnectorOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connector = output.connector } else { @@ -3918,9 +3905,8 @@ public enum DescribeExecutionOutputError: Swift.Error, Swift.Equatable { extension DescribeExecutionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeExecutionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.execution = output.execution self.workflowId = output.workflowId @@ -4060,9 +4046,8 @@ public enum DescribeHostKeyOutputError: Swift.Error, Swift.Equatable { extension DescribeHostKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeHostKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostKey = output.hostKey } else { @@ -4178,9 +4163,8 @@ public enum DescribeProfileOutputError: Swift.Error, Swift.Equatable { extension DescribeProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profile = output.profile } else { @@ -4296,9 +4280,8 @@ public enum DescribeSecurityPolicyOutputError: Swift.Error, Swift.Equatable { extension DescribeSecurityPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSecurityPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityPolicy = output.securityPolicy } else { @@ -4414,9 +4397,8 @@ public enum DescribeServerOutputError: Swift.Error, Swift.Equatable { extension DescribeServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.server = output.server } else { @@ -4545,9 +4527,8 @@ public enum DescribeUserOutputError: Swift.Error, Swift.Equatable { extension DescribeUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverId = output.serverId self.user = output.user @@ -4674,9 +4655,8 @@ public enum DescribeWorkflowOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkflowOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkflowOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workflow = output.workflow } else { @@ -7257,9 +7237,8 @@ public enum ImportCertificateOutputError: Swift.Error, Swift.Equatable { extension ImportCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateId = output.certificateId } else { @@ -7433,9 +7412,8 @@ public enum ImportHostKeyOutputError: Swift.Error, Swift.Equatable { extension ImportHostKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportHostKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostKeyId = output.hostKeyId self.serverId = output.serverId @@ -7592,9 +7570,8 @@ public enum ImportSshPublicKeyOutputError: Swift.Error, Swift.Equatable { extension ImportSshPublicKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportSshPublicKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverId = output.serverId self.sshPublicKeyId = output.sshPublicKeyId @@ -7702,9 +7679,8 @@ extension TransferClientTypes { extension InternalServiceError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServiceErrorBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7718,7 +7694,7 @@ extension InternalServiceError { } /// This exception is thrown when an error occurs in the Amazon Web ServicesTransfer Family service. -public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServiceError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7755,9 +7731,8 @@ extension InternalServiceErrorBody: Swift.Decodable { extension InvalidNextTokenException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidNextTokenExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7771,7 +7746,7 @@ extension InvalidNextTokenException { } /// The NextToken parameter that was passed is invalid. -public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidNextTokenException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7808,9 +7783,8 @@ extension InvalidNextTokenExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7824,7 +7798,7 @@ extension InvalidRequestException { } /// This exception is thrown when the client submits a malformed request. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7963,9 +7937,8 @@ public enum ListAccessesOutputError: Swift.Error, Swift.Equatable { extension ListAccessesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accesses = output.accesses self.nextToken = output.nextToken @@ -8137,9 +8110,8 @@ public enum ListAgreementsOutputError: Swift.Error, Swift.Equatable { extension ListAgreementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAgreementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agreements = output.agreements self.nextToken = output.nextToken @@ -8287,9 +8259,8 @@ public enum ListCertificatesOutputError: Swift.Error, Swift.Equatable { extension ListCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificates = output.certificates self.nextToken = output.nextToken @@ -8437,9 +8408,8 @@ public enum ListConnectorsOutputError: Swift.Error, Swift.Equatable { extension ListConnectorsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListConnectorsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectors = output.connectors self.nextToken = output.nextToken @@ -8600,9 +8570,8 @@ public enum ListExecutionsOutputError: Swift.Error, Swift.Equatable { extension ListExecutionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListExecutionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.executions = output.executions self.nextToken = output.nextToken @@ -8782,9 +8751,8 @@ public enum ListHostKeysOutputError: Swift.Error, Swift.Equatable { extension ListHostKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListHostKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostKeys = output.hostKeys self.nextToken = output.nextToken @@ -8955,9 +8923,8 @@ public enum ListProfilesOutputError: Swift.Error, Swift.Equatable { extension ListProfilesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListProfilesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.profiles = output.profiles @@ -9103,9 +9070,8 @@ public enum ListSecurityPoliciesOutputError: Swift.Error, Swift.Equatable { extension ListSecurityPoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSecurityPoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.securityPolicyNames = output.securityPolicyNames @@ -9251,9 +9217,8 @@ public enum ListServersOutputError: Swift.Error, Swift.Equatable { extension ListServersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.servers = output.servers @@ -9412,9 +9377,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.nextToken = output.nextToken @@ -9584,9 +9548,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.serverId = output.serverId @@ -9743,9 +9706,8 @@ public enum ListWorkflowsOutputError: Swift.Error, Swift.Equatable { extension ListWorkflowsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkflowsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workflows = output.workflows @@ -10972,9 +10934,8 @@ extension TransferClientTypes { extension ResourceExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resource = output.resource @@ -10992,7 +10953,7 @@ extension ResourceExistsException { } /// The requested resource does not exist. -public struct ResourceExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11045,9 +11006,8 @@ extension ResourceExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resource = output.resource @@ -11065,7 +11025,7 @@ extension ResourceNotFoundException { } /// This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11440,9 +11400,8 @@ extension TransferClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11456,7 +11415,7 @@ extension ServiceUnavailableException { } /// The request has failed because the Amazon Web ServicesTransfer Family service is not available. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11726,9 +11685,8 @@ public enum StartFileTransferOutputError: Swift.Error, Swift.Equatable { extension StartFileTransferOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFileTransferOutputResponseBody = try responseDecoder.decode(responseBody: data) self.transferId = output.transferId } else { @@ -12354,9 +12312,8 @@ public enum TestIdentityProviderOutputError: Swift.Error, Swift.Equatable { extension TestIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.response = output.response @@ -12440,7 +12397,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -12783,9 +12740,8 @@ public enum UpdateAccessOutputError: Swift.Error, Swift.Equatable { extension UpdateAccessOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccessOutputResponseBody = try responseDecoder.decode(responseBody: data) self.externalId = output.externalId self.serverId = output.serverId @@ -13001,9 +12957,8 @@ public enum UpdateAgreementOutputError: Swift.Error, Swift.Equatable { extension UpdateAgreementOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAgreementOutputResponseBody = try responseDecoder.decode(responseBody: data) self.agreementId = output.agreementId } else { @@ -13157,9 +13112,8 @@ public enum UpdateCertificateOutputError: Swift.Error, Swift.Equatable { extension UpdateCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateId = output.certificateId } else { @@ -13327,9 +13281,8 @@ public enum UpdateConnectorOutputError: Swift.Error, Swift.Equatable { extension UpdateConnectorOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateConnectorOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectorId = output.connectorId } else { @@ -13473,9 +13426,8 @@ public enum UpdateHostKeyOutputError: Swift.Error, Swift.Equatable { extension UpdateHostKeyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateHostKeyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.hostKeyId = output.hostKeyId self.serverId = output.serverId @@ -13628,9 +13580,8 @@ public enum UpdateProfileOutputError: Swift.Error, Swift.Equatable { extension UpdateProfileOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateProfileOutputResponseBody = try responseDecoder.decode(responseBody: data) self.profileId = output.profileId } else { @@ -13957,9 +13908,8 @@ public enum UpdateServerOutputError: Swift.Error, Swift.Equatable { extension UpdateServerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverId = output.serverId } else { @@ -14174,9 +14124,8 @@ public enum UpdateUserOutputError: Swift.Error, Swift.Equatable { extension UpdateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.serverId = output.serverId self.userName = output.userName diff --git a/Sources/Services/AWSTranslate/TranslateClient.swift b/Sources/Services/AWSTranslate/TranslateClient.swift index 25439d4c078..45985ff167f 100644 --- a/Sources/Services/AWSTranslate/TranslateClient.swift +++ b/Sources/Services/AWSTranslate/TranslateClient.swift @@ -208,6 +208,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createParallelData") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -232,7 +233,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -252,6 +253,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteParallelData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -268,7 +270,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTerminology") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -304,7 +307,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -324,6 +327,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTextTranslationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -340,7 +344,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getParallelData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTerminology") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -412,7 +418,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -432,6 +438,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importTerminology") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -448,7 +455,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -468,6 +475,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLanguages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -484,7 +492,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -504,6 +512,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listParallelData") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -520,7 +529,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +549,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -556,7 +566,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -576,6 +586,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTerminologies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -592,7 +603,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -612,6 +623,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTextTranslationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -628,7 +640,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -648,6 +660,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startTextTranslationJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -672,7 +685,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +705,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopTextTranslationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +722,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +742,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +759,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +779,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "translateText") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +796,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +816,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +833,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +853,7 @@ extension TranslateClient: TranslateClientProtocol { .withRegion(value: config.region) .withSigningName(value: "translate") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateParallelData") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -860,7 +878,7 @@ extension TranslateClient: TranslateClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSTranslate/models/Models.swift b/Sources/Services/AWSTranslate/models/Models.swift index 8cd1e2786d3..2af5ce7deee 100644 --- a/Sources/Services/AWSTranslate/models/Models.swift +++ b/Sources/Services/AWSTranslate/models/Models.swift @@ -61,9 +61,8 @@ extension TranslateClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -77,7 +76,7 @@ extension ConcurrentModificationException { } /// Another modification is being made. That modification must complete before you can make your change. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -113,9 +112,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -129,7 +127,7 @@ extension ConflictException { } /// There was a conflict processing the request. Try your request again. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -323,9 +321,8 @@ public enum CreateParallelDataOutputError: Swift.Error, Swift.Equatable { extension CreateParallelDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateParallelDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name self.status = output.status @@ -450,9 +447,8 @@ public enum DeleteParallelDataOutputError: Swift.Error, Swift.Equatable { extension DeleteParallelDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteParallelDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.name = output.name self.status = output.status @@ -661,9 +657,8 @@ public enum DescribeTextTranslationJobOutputError: Swift.Error, Swift.Equatable extension DescribeTextTranslationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTextTranslationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.textTranslationJobProperties = output.textTranslationJobProperties } else { @@ -702,9 +697,8 @@ extension DescribeTextTranslationJobOutputResponseBody: Swift.Decodable { extension DetectedLanguageLowConfidenceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DetectedLanguageLowConfidenceExceptionBody = try responseDecoder.decode(responseBody: data) self.detectedLanguageCode = output.detectedLanguageCode self.message = output.message @@ -720,7 +714,7 @@ extension DetectedLanguageLowConfidenceException { } /// The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the [DetectDominantLanguage](https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html) operation in the Amazon Comprehend Developer Guide. -public struct DetectedLanguageLowConfidenceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DetectedLanguageLowConfidenceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1036,9 +1030,8 @@ public enum GetParallelDataOutputError: Swift.Error, Swift.Equatable { extension GetParallelDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetParallelDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auxiliaryDataLocation = output.auxiliaryDataLocation self.dataLocation = output.dataLocation @@ -1195,9 +1188,8 @@ public enum GetTerminologyOutputError: Swift.Error, Swift.Equatable { extension GetTerminologyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTerminologyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auxiliaryDataLocation = output.auxiliaryDataLocation self.terminologyDataLocation = output.terminologyDataLocation @@ -1410,9 +1402,8 @@ public enum ImportTerminologyOutputError: Swift.Error, Swift.Equatable { extension ImportTerminologyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportTerminologyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auxiliaryDataLocation = output.auxiliaryDataLocation self.terminologyProperties = output.terminologyProperties @@ -1523,9 +1514,8 @@ extension TranslateClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1539,7 +1529,7 @@ extension InternalServerException { } /// An internal server error occurred. Retry your request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1575,9 +1565,8 @@ extension InternalServerExceptionBody: Swift.Decodable { extension InvalidFilterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidFilterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1591,7 +1580,7 @@ extension InvalidFilterException { } /// The filter specified for the operation is not valid. Specify a different filter. -public struct InvalidFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidFilterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1627,9 +1616,8 @@ extension InvalidFilterExceptionBody: Swift.Decodable { extension InvalidParameterValueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1643,7 +1631,7 @@ extension InvalidParameterValueException { } /// The value of the parameter is not valid. Review the value of the parameter you are using to correct it, and then retry your operation. -public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1679,9 +1667,8 @@ extension InvalidParameterValueExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1695,7 +1682,7 @@ extension InvalidRequestException { } /// The request that you made is not valid. Check your request to determine why it's not valid and then retry the request. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1880,9 +1867,8 @@ extension TranslateClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1896,7 +1882,7 @@ extension LimitExceededException { } /// The specified limit has been exceeded. Review your request and retry it with a quantity below the stated limit. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2031,9 +2017,8 @@ public enum ListLanguagesOutputError: Swift.Error, Swift.Equatable { extension ListLanguagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLanguagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.displayLanguageCode = output.displayLanguageCode self.languages = output.languages @@ -2186,9 +2171,8 @@ public enum ListParallelDataOutputError: Swift.Error, Swift.Equatable { extension ListParallelDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListParallelDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.parallelDataPropertiesList = output.parallelDataPropertiesList @@ -2320,9 +2304,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -2455,9 +2438,8 @@ public enum ListTerminologiesOutputError: Swift.Error, Swift.Equatable { extension ListTerminologiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTerminologiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.terminologyPropertiesList = output.terminologyPropertiesList @@ -2614,9 +2596,8 @@ public enum ListTextTranslationJobsOutputError: Swift.Error, Swift.Equatable { extension ListTextTranslationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTextTranslationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.textTranslationJobPropertiesList = output.textTranslationJobPropertiesList @@ -3155,9 +3136,8 @@ extension TranslateClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3171,7 +3151,7 @@ extension ResourceNotFoundException { } /// The resource you are looking for has not been found. Review the resource you're looking for and see if a different resource will accomplish your needs before retrying the revised request. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3207,9 +3187,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3223,7 +3202,7 @@ extension ServiceUnavailableException { } /// The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your request. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3488,9 +3467,8 @@ public enum StartTextTranslationJobOutputError: Swift.Error, Swift.Equatable { extension StartTextTranslationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartTextTranslationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -3627,9 +3605,8 @@ public enum StopTextTranslationJobOutputError: Swift.Error, Swift.Equatable { extension StopTextTranslationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopTextTranslationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId self.jobStatus = output.jobStatus @@ -4204,9 +4181,8 @@ extension TranslateClientTypes { extension TextSizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TextSizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4220,7 +4196,7 @@ extension TextSizeLimitExceededException { } /// The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller document and then retry your request. -public struct TextSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TextSizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4532,9 +4508,8 @@ extension TranslateClientTypes { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4548,7 +4523,7 @@ extension TooManyRequestsException { } /// You have made too many requests within a short period of time. Wait for a short time and then try your request again. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4584,9 +4559,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceArn = output.resourceArn @@ -4602,7 +4576,7 @@ extension TooManyTagsException { } /// You have added too many tags to this resource. The maximum is 50 tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4791,9 +4765,8 @@ public enum TranslateTextOutputError: Swift.Error, Swift.Equatable { extension TranslateTextOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TranslateTextOutputResponseBody = try responseDecoder.decode(responseBody: data) self.appliedSettings = output.appliedSettings self.appliedTerminologies = output.appliedTerminologies @@ -4929,9 +4902,8 @@ extension TranslateClientTypes { extension UnsupportedDisplayLanguageCodeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedDisplayLanguageCodeExceptionBody = try responseDecoder.decode(responseBody: data) self.displayLanguageCode = output.displayLanguageCode self.message = output.message @@ -4947,7 +4919,7 @@ extension UnsupportedDisplayLanguageCodeException { } /// Requested display language code is not supported. -public struct UnsupportedDisplayLanguageCodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedDisplayLanguageCodeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4991,9 +4963,8 @@ extension UnsupportedDisplayLanguageCodeExceptionBody: Swift.Decodable { extension UnsupportedLanguagePairException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedLanguagePairExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.sourceLanguageCode = output.sourceLanguageCode @@ -5011,7 +4982,7 @@ extension UnsupportedLanguagePairException { } /// Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see [Error messages](https://docs.aws.amazon.com/translate/latest/dg/how-to-error-msg.html). -public struct UnsupportedLanguagePairException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedLanguagePairException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5296,9 +5267,8 @@ public enum UpdateParallelDataOutputError: Swift.Error, Swift.Equatable { extension UpdateParallelDataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateParallelDataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.latestUpdateAttemptAt = output.latestUpdateAttemptAt self.latestUpdateAttemptStatus = output.latestUpdateAttemptStatus diff --git a/Sources/Services/AWSVPCLattice/VPCLatticeClient.swift b/Sources/Services/AWSVPCLattice/VPCLatticeClient.swift index 3ea8d9d66e9..c2bba6b186a 100644 --- a/Sources/Services/AWSVPCLattice/VPCLatticeClient.swift +++ b/Sources/Services/AWSVPCLattice/VPCLatticeClient.swift @@ -208,6 +208,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchUpdateRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAccessLogSubscription") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -266,7 +268,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createListener") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -309,7 +312,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -329,6 +332,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -352,7 +356,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +376,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createService") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -395,7 +400,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +420,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceNetwork") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -438,7 +444,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -458,6 +464,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceNetworkServiceAssociation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -481,7 +488,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -501,6 +508,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createServiceNetworkVpcAssociation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -524,7 +532,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -544,6 +552,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTargetGroup") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -567,7 +576,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -587,6 +596,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessLogSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -599,7 +609,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -619,6 +629,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAuthPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -631,7 +642,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -651,6 +662,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -663,7 +675,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -683,6 +695,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -695,7 +708,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -715,6 +728,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -727,7 +741,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -747,6 +761,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -759,7 +774,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -779,6 +794,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -791,7 +807,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -811,6 +827,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceNetworkServiceAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -823,7 +840,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -843,6 +860,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteServiceNetworkVpcAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -855,7 +873,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -875,6 +893,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTargetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -887,7 +906,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -907,6 +926,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -922,7 +942,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -942,6 +962,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessLogSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -954,7 +975,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -974,6 +995,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAuthPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -986,7 +1008,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1006,6 +1028,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1018,7 +1041,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1038,6 +1061,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1050,7 +1074,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1070,6 +1094,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1082,7 +1107,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1102,6 +1127,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1114,7 +1140,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1134,6 +1160,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1146,7 +1173,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1166,6 +1193,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceNetworkServiceAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1178,7 +1206,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1198,6 +1226,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceNetworkVpcAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1210,7 +1239,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1230,6 +1259,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTargetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1242,7 +1272,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1262,6 +1292,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessLogSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1306,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1295,6 +1326,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listListeners") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1308,7 +1340,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1328,6 +1360,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1341,7 +1374,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1361,6 +1394,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceNetworkServiceAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1374,7 +1408,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1394,6 +1428,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceNetworkVpcAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1407,7 +1442,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1427,6 +1462,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServiceNetworks") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1440,7 +1476,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1460,6 +1496,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listServices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1473,7 +1510,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1493,6 +1530,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1505,7 +1543,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1525,6 +1563,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargetGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1538,7 +1577,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1558,6 +1597,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1574,7 +1614,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1594,6 +1634,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAuthPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1609,7 +1650,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1629,6 +1670,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1644,7 +1686,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1664,6 +1706,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1679,7 +1722,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1699,6 +1742,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1714,7 +1758,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1734,6 +1778,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1747,7 +1792,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1767,6 +1812,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAccessLogSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1782,7 +1828,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1802,6 +1848,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateListener") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1817,7 +1864,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1837,6 +1884,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1852,7 +1900,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1872,6 +1920,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateService") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1887,7 +1936,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1907,6 +1956,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceNetwork") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1922,7 +1972,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1942,6 +1992,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateServiceNetworkVpcAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1957,7 +2008,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1977,6 +2028,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { .withRegion(value: config.region) .withSigningName(value: "vpc-lattice") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTargetGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1992,7 +2044,7 @@ extension VPCLatticeClient: VPCLatticeClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSVPCLattice/models/Models.swift b/Sources/Services/AWSVPCLattice/models/Models.swift index c5348189e58..2e9fa5271bd 100644 --- a/Sources/Services/AWSVPCLattice/models/Models.swift +++ b/Sources/Services/AWSVPCLattice/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The user does not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -331,9 +330,8 @@ public enum BatchUpdateRuleOutputError: Swift.Error, Swift.Equatable { extension BatchUpdateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchUpdateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successful = output.successful self.unsuccessful = output.unsuccessful @@ -400,9 +398,8 @@ extension BatchUpdateRuleOutputResponseBody: Swift.Decodable { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -420,7 +417,7 @@ extension ConflictException { } /// The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -604,9 +601,8 @@ public enum CreateAccessLogSubscriptionOutputError: Swift.Error, Swift.Equatable extension CreateAccessLogSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAccessLogSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.destinationArn = output.destinationArn @@ -854,9 +850,8 @@ public enum CreateListenerOutputError: Swift.Error, Swift.Equatable { extension CreateListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`protocol` = output.`protocol` self.arn = output.arn @@ -1138,9 +1133,8 @@ public enum CreateRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.arn = output.arn @@ -1487,9 +1481,8 @@ public enum CreateServiceNetworkOutputError: Swift.Error, Swift.Equatable { extension CreateServiceNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authType = output.authType @@ -1687,9 +1680,8 @@ public enum CreateServiceNetworkServiceAssociationOutputError: Swift.Error, Swif extension CreateServiceNetworkServiceAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceNetworkServiceAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdBy = output.createdBy @@ -1933,9 +1925,8 @@ public enum CreateServiceNetworkVpcAssociationOutputError: Swift.Error, Swift.Eq extension CreateServiceNetworkVpcAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceNetworkVpcAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdBy = output.createdBy @@ -2057,9 +2048,8 @@ public enum CreateServiceOutputError: Swift.Error, Swift.Equatable { extension CreateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authType = output.authType @@ -2311,9 +2301,8 @@ public enum CreateTargetGroupOutputError: Swift.Error, Swift.Equatable { extension CreateTargetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTargetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.config = output.config @@ -2952,9 +2941,8 @@ public enum DeleteServiceNetworkServiceAssociationOutputError: Swift.Error, Swif extension DeleteServiceNetworkServiceAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceNetworkServiceAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3076,9 +3064,8 @@ public enum DeleteServiceNetworkVpcAssociationOutputError: Swift.Error, Swift.Eq extension DeleteServiceNetworkVpcAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceNetworkVpcAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3169,9 +3156,8 @@ public enum DeleteServiceOutputError: Swift.Error, Swift.Equatable { extension DeleteServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3301,9 +3287,8 @@ public enum DeleteTargetGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteTargetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteTargetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.id = output.id @@ -3462,9 +3447,8 @@ public enum DeregisterTargetsOutputError: Swift.Error, Swift.Equatable { extension DeregisterTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeregisterTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successful = output.successful self.unsuccessful = output.unsuccessful @@ -3721,9 +3705,8 @@ public enum GetAccessLogSubscriptionOutputError: Swift.Error, Swift.Equatable { extension GetAccessLogSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessLogSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -3890,9 +3873,8 @@ public enum GetAuthPolicyOutputError: Swift.Error, Swift.Equatable { extension GetAuthPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAuthPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.createdAt = output.createdAt self.lastUpdatedAt = output.lastUpdatedAt @@ -4030,9 +4012,8 @@ public enum GetListenerOutputError: Swift.Error, Swift.Equatable { extension GetListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`protocol` = output.`protocol` self.arn = output.arn @@ -4222,9 +4203,8 @@ public enum GetResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension GetResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -4340,9 +4320,8 @@ public enum GetRuleOutputError: Swift.Error, Swift.Equatable { extension GetRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.arn = output.arn @@ -4553,9 +4532,8 @@ public enum GetServiceNetworkOutputError: Swift.Error, Swift.Equatable { extension GetServiceNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authType = output.authType @@ -4725,9 +4703,8 @@ public enum GetServiceNetworkServiceAssociationOutputError: Swift.Error, Swift.E extension GetServiceNetworkServiceAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceNetworkServiceAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -4967,9 +4944,8 @@ public enum GetServiceNetworkVpcAssociationOutputError: Swift.Error, Swift.Equat extension GetServiceNetworkVpcAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceNetworkVpcAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdAt = output.createdAt @@ -5167,9 +5143,8 @@ public enum GetServiceOutputError: Swift.Error, Swift.Equatable { extension GetServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authType = output.authType @@ -5377,9 +5352,8 @@ public enum GetTargetGroupOutputError: Swift.Error, Swift.Equatable { extension GetTargetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTargetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.config = output.config @@ -5872,9 +5846,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5888,7 +5861,7 @@ extension InternalServerException { } /// An unexpected error occurred while processing the request. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6048,9 +6021,8 @@ public enum ListAccessLogSubscriptionsOutputError: Swift.Error, Swift.Equatable extension ListAccessLogSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessLogSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6195,9 +6167,8 @@ public enum ListListenersOutputError: Swift.Error, Swift.Equatable { extension ListListenersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListListenersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6350,9 +6321,8 @@ public enum ListRulesOutputError: Swift.Error, Swift.Equatable { extension ListRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6503,9 +6473,8 @@ public enum ListServiceNetworkServiceAssociationsOutputError: Swift.Error, Swift extension ListServiceNetworkServiceAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceNetworkServiceAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6656,9 +6625,8 @@ public enum ListServiceNetworkVpcAssociationsOutputError: Swift.Error, Swift.Equ extension ListServiceNetworkVpcAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceNetworkVpcAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6793,9 +6761,8 @@ public enum ListServiceNetworksOutputError: Swift.Error, Swift.Equatable { extension ListServiceNetworksOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServiceNetworksOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -6930,9 +6897,8 @@ public enum ListServicesOutputError: Swift.Error, Swift.Equatable { extension ListServicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListServicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7047,9 +7013,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7189,9 +7154,8 @@ public enum ListTargetGroupsOutputError: Swift.Error, Swift.Equatable { extension ListTargetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7371,9 +7335,8 @@ public enum ListTargetsOutputError: Swift.Error, Swift.Equatable { extension ListTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.nextToken = output.nextToken @@ -7777,9 +7740,8 @@ public enum PutAuthPolicyOutputError: Swift.Error, Swift.Equatable { extension PutAuthPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutAuthPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy self.state = output.state @@ -8026,9 +7988,8 @@ public enum RegisterTargetsOutputError: Swift.Error, Swift.Equatable { extension RegisterTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RegisterTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.successful = output.successful self.unsuccessful = output.unsuccessful @@ -8095,9 +8056,8 @@ extension RegisterTargetsOutputResponseBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -8115,7 +8075,7 @@ extension ResourceNotFoundException { } /// The request references a resource that does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9040,9 +9000,8 @@ extension VPCLatticeClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -9064,7 +9023,7 @@ extension ServiceQuotaExceededException { } /// The request would cause a service quota to be exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10043,9 +10002,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = nil } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -10063,7 +10021,7 @@ extension ThrottlingException { } /// The limit on the number of requests per second was exceeded. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10297,9 +10255,8 @@ public enum UpdateAccessLogSubscriptionOutputError: Swift.Error, Swift.Equatable extension UpdateAccessLogSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAccessLogSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.destinationArn = output.destinationArn @@ -10479,9 +10436,8 @@ public enum UpdateListenerOutputError: Swift.Error, Swift.Equatable { extension UpdateListenerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateListenerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.`protocol` = output.`protocol` self.arn = output.arn @@ -10717,9 +10673,8 @@ public enum UpdateRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.action = output.action self.arn = output.arn @@ -10981,9 +10936,8 @@ public enum UpdateServiceNetworkOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceNetworkOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceNetworkOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authType = output.authType @@ -11152,9 +11106,8 @@ public enum UpdateServiceNetworkVpcAssociationOutputError: Swift.Error, Swift.Eq extension UpdateServiceNetworkVpcAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceNetworkVpcAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.createdBy = output.createdBy @@ -11274,9 +11227,8 @@ public enum UpdateServiceOutputError: Swift.Error, Swift.Equatable { extension UpdateServiceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateServiceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.authType = output.authType @@ -11451,9 +11403,8 @@ public enum UpdateTargetGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateTargetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTargetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.arn = output.arn self.config = output.config @@ -11542,9 +11493,8 @@ extension UpdateTargetGroupOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -11562,7 +11512,7 @@ extension ValidationException { } /// The input does not satisfy the constraints specified by an Amazon Web Services service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSVoiceID/VoiceIDClient.swift b/Sources/Services/AWSVoiceID/VoiceIDClient.swift index 0f14f3f02f2..b9e315bc29c 100644 --- a/Sources/Services/AWSVoiceID/VoiceIDClient.swift +++ b/Sources/Services/AWSVoiceID/VoiceIDClient.swift @@ -208,6 +208,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateFraudster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createDomain") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -268,7 +270,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -288,6 +290,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWatchlist") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -312,7 +315,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -332,6 +335,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -348,7 +352,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -368,6 +372,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFraudster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -384,7 +389,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -404,6 +409,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSpeaker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -420,7 +426,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +446,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWatchlist") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +463,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +483,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -492,7 +500,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -512,6 +520,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFraudster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -528,7 +537,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -548,6 +557,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFraudsterRegistrationJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -564,7 +574,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -584,6 +594,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpeaker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -600,7 +611,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -620,6 +631,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeSpeakerEnrollmentJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -636,7 +648,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -656,6 +668,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWatchlist") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -672,7 +685,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -692,6 +705,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateFraudster") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -708,7 +722,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -728,6 +742,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "evaluateSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -744,7 +759,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -764,6 +779,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +796,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +816,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFraudsterRegistrationJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -816,7 +833,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -836,6 +853,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFraudsters") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -852,7 +870,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -872,6 +890,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSpeakerEnrollmentJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -888,7 +907,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -908,6 +927,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSpeakers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -924,7 +944,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -944,6 +964,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -960,7 +981,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -980,6 +1001,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWatchlists") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -996,7 +1018,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1016,6 +1038,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "optOutSpeaker") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1032,7 +1055,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1052,6 +1075,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startFraudsterRegistrationJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1076,7 +1100,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1096,6 +1120,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startSpeakerEnrollmentJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1120,7 +1145,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1140,6 +1165,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1156,7 +1182,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1176,6 +1202,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1192,7 +1219,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1212,6 +1239,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1228,7 +1256,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1248,6 +1276,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { .withRegion(value: config.region) .withSigningName(value: "voiceid") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWatchlist") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1264,7 +1293,7 @@ extension VoiceIDClient: VoiceIDClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSVoiceID/models/Models.swift b/Sources/Services/AWSVoiceID/models/Models.swift index 6346f280663..7267f18ea43 100644 --- a/Sources/Services/AWSVoiceID/models/Models.swift +++ b/Sources/Services/AWSVoiceID/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient permissions to perform this action. Check the error message and try again. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -169,9 +168,8 @@ public enum AssociateFraudsterOutputError: Swift.Error, Swift.Equatable { extension AssociateFraudsterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateFraudsterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fraudster = output.fraudster } else { @@ -403,9 +401,8 @@ extension VoiceIDClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.conflictType = output.conflictType self.message = output.message @@ -421,7 +418,7 @@ extension ConflictException { } /// The request failed due to a conflict. Check the ConflictType and error message for more details. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -681,9 +678,8 @@ public enum CreateDomainOutputError: Swift.Error, Swift.Equatable { extension CreateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domain = output.domain } else { @@ -846,9 +842,8 @@ public enum CreateWatchlistOutputError: Swift.Error, Swift.Equatable { extension CreateWatchlistOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWatchlistOutputResponseBody = try responseDecoder.decode(responseBody: data) self.watchlist = output.watchlist } else { @@ -1374,9 +1369,8 @@ public enum DescribeDomainOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domain = output.domain } else { @@ -1511,9 +1505,8 @@ public enum DescribeFraudsterOutputError: Swift.Error, Swift.Equatable { extension DescribeFraudsterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFraudsterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fraudster = output.fraudster } else { @@ -1643,9 +1636,8 @@ public enum DescribeFraudsterRegistrationJobOutputError: Swift.Error, Swift.Equa extension DescribeFraudsterRegistrationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFraudsterRegistrationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -1775,9 +1767,8 @@ public enum DescribeSpeakerEnrollmentJobOutputError: Swift.Error, Swift.Equatabl extension DescribeSpeakerEnrollmentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpeakerEnrollmentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -1912,9 +1903,8 @@ public enum DescribeSpeakerOutputError: Swift.Error, Swift.Equatable { extension DescribeSpeakerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeSpeakerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.speaker = output.speaker } else { @@ -2044,9 +2034,8 @@ public enum DescribeWatchlistOutputError: Swift.Error, Swift.Equatable { extension DescribeWatchlistOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWatchlistOutputResponseBody = try responseDecoder.decode(responseBody: data) self.watchlist = output.watchlist } else { @@ -2196,9 +2185,8 @@ public enum DisassociateFraudsterOutputError: Swift.Error, Swift.Equatable { extension DisassociateFraudsterOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DisassociateFraudsterOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fraudster = output.fraudster } else { @@ -2769,9 +2757,8 @@ public enum EvaluateSessionOutputError: Swift.Error, Swift.Equatable { extension EvaluateSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EvaluateSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authenticationResult = output.authenticationResult self.domainId = output.domainId @@ -3726,9 +3713,8 @@ extension VoiceIDClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3742,7 +3728,7 @@ extension InternalServerException { } /// The request failed due to an unknown error on the server side. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3946,9 +3932,8 @@ public enum ListDomainsOutputError: Swift.Error, Swift.Equatable { extension ListDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domainSummaries = output.domainSummaries self.nextToken = output.nextToken @@ -4120,9 +4105,8 @@ public enum ListFraudsterRegistrationJobsOutputError: Swift.Error, Swift.Equatab extension ListFraudsterRegistrationJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFraudsterRegistrationJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummaries = output.jobSummaries self.nextToken = output.nextToken @@ -4294,9 +4278,8 @@ public enum ListFraudstersOutputError: Swift.Error, Swift.Equatable { extension ListFraudstersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFraudstersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fraudsterSummaries = output.fraudsterSummaries self.nextToken = output.nextToken @@ -4468,9 +4451,8 @@ public enum ListSpeakerEnrollmentJobsOutputError: Swift.Error, Swift.Equatable { extension ListSpeakerEnrollmentJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSpeakerEnrollmentJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobSummaries = output.jobSummaries self.nextToken = output.nextToken @@ -4630,9 +4612,8 @@ public enum ListSpeakersOutputError: Swift.Error, Swift.Equatable { extension ListSpeakersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSpeakersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.speakerSummaries = output.speakerSummaries @@ -4768,9 +4749,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4920,9 +4900,8 @@ public enum ListWatchlistsOutputError: Swift.Error, Swift.Equatable { extension ListWatchlistsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWatchlistsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.watchlistSummaries = output.watchlistSummaries @@ -5080,9 +5059,8 @@ public enum OptOutSpeakerOutputError: Swift.Error, Swift.Equatable { extension OptOutSpeakerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OptOutSpeakerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.speaker = output.speaker } else { @@ -5234,9 +5212,8 @@ extension VoiceIDClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceType = output.resourceType @@ -5252,7 +5229,7 @@ extension ResourceNotFoundException { } /// The specified resource cannot be found. Check the ResourceType and error message for more details. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5469,9 +5446,8 @@ extension VoiceIDClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5485,7 +5461,7 @@ extension ServiceQuotaExceededException { } /// The request exceeded the service quota. Refer to [Voice ID Service Quotas](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#voiceid-quotas) and try your request again. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6222,9 +6198,8 @@ public enum StartFraudsterRegistrationJobOutputError: Swift.Error, Swift.Equatab extension StartFraudsterRegistrationJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartFraudsterRegistrationJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -6425,9 +6400,8 @@ public enum StartSpeakerEnrollmentJobOutputError: Swift.Error, Swift.Equatable { extension StartSpeakerEnrollmentJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartSpeakerEnrollmentJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.job = output.job } else { @@ -6668,9 +6642,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6684,7 +6657,7 @@ extension ThrottlingException { } /// The request was denied due to request throttling. Please slow down your request rate. Refer to [ Amazon Connect Voice ID Service API throttling quotas ](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas) and try your request again. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6958,9 +6931,8 @@ public enum UpdateDomainOutputError: Swift.Error, Swift.Equatable { extension UpdateDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domain = output.domain } else { @@ -7121,9 +7093,8 @@ public enum UpdateWatchlistOutputError: Swift.Error, Swift.Equatable { extension UpdateWatchlistOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWatchlistOutputResponseBody = try responseDecoder.decode(responseBody: data) self.watchlist = output.watchlist } else { @@ -7162,9 +7133,8 @@ extension UpdateWatchlistOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7178,7 +7148,7 @@ extension ValidationException { } /// The request failed one or more validations; check the error message for more details. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWAF/WAFClient.swift b/Sources/Services/AWSWAF/WAFClient.swift index 1f865194f6b..4577746609e 100644 --- a/Sources/Services/AWSWAF/WAFClient.swift +++ b/Sources/Services/AWSWAF/WAFClient.swift @@ -219,6 +219,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createByteMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -235,7 +236,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -266,6 +267,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGeoMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -282,7 +284,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +315,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -329,7 +332,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -380,6 +383,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRateBasedRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -396,7 +400,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -427,6 +431,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRegexMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -443,7 +448,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -474,6 +479,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -490,7 +496,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +538,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +555,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -577,6 +584,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -593,7 +601,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -624,6 +632,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSizeConstraintSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -640,7 +649,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -671,6 +680,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSqlInjectionMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -687,7 +697,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -722,6 +732,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -738,7 +749,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -758,6 +769,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWebACLMigrationStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -774,7 +786,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -805,6 +817,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createXssMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -821,7 +834,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -847,6 +860,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteByteMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -863,7 +877,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -889,6 +903,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGeoMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -905,7 +920,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -931,6 +946,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -947,7 +963,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +983,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -983,7 +1000,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1003,6 +1020,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1019,7 +1037,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1063,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRateBasedRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1061,7 +1080,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1106,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegexMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1103,7 +1123,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1123,6 +1143,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1139,7 +1160,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1165,6 +1186,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1181,7 +1203,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1207,6 +1229,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1223,7 +1246,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1249,6 +1272,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSizeConstraintSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1265,7 +1289,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1291,6 +1315,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSqlInjectionMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1307,7 +1332,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1333,6 +1358,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1349,7 +1375,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1375,6 +1401,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteXssMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1391,7 +1418,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1411,6 +1438,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getByteMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1427,7 +1455,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1447,6 +1475,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChangeToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1463,7 +1492,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1489,6 +1518,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChangeTokenStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1505,7 +1535,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1525,6 +1555,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGeoMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1541,7 +1572,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1561,6 +1592,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1577,7 +1609,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1597,6 +1629,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1613,7 +1646,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1633,6 +1666,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1649,7 +1683,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1669,6 +1703,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRateBasedRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1685,7 +1720,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1705,6 +1740,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRateBasedRuleManagedKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1721,7 +1757,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1741,6 +1777,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegexMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1757,7 +1794,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1777,6 +1814,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1793,7 +1831,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1813,6 +1851,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1829,7 +1868,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1849,6 +1888,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1865,7 +1905,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1885,6 +1925,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSampledRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1901,7 +1942,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1921,6 +1962,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSizeConstraintSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1937,7 +1979,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1957,6 +1999,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSqlInjectionMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1973,7 +2016,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1993,6 +2036,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2009,7 +2053,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2029,6 +2073,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getXssMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2045,7 +2090,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2065,6 +2110,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActivatedRulesInRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2081,7 +2127,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2101,6 +2147,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listByteMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2117,7 +2164,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2137,6 +2184,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGeoMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2153,7 +2201,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2173,6 +2221,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIPSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2189,7 +2238,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2209,6 +2258,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLoggingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2225,7 +2275,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2245,6 +2295,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRateBasedRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2261,7 +2312,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2281,6 +2332,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegexMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2297,7 +2349,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2317,6 +2369,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegexPatternSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2333,7 +2386,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2353,6 +2406,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2369,7 +2423,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2389,6 +2443,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2405,7 +2460,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2425,6 +2480,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSizeConstraintSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2441,7 +2497,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2461,6 +2517,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSqlInjectionMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2477,7 +2534,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2497,6 +2554,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubscribedRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2513,7 +2571,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2533,6 +2591,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2549,7 +2608,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2569,6 +2628,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWebACLs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2585,7 +2645,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2605,6 +2665,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listXssMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2621,7 +2682,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2648,6 +2709,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2664,7 +2726,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2706,6 +2768,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2722,7 +2785,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2742,6 +2805,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2758,7 +2822,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2778,6 +2842,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2794,7 +2859,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2836,6 +2901,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateByteMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2852,7 +2918,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2890,6 +2956,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGeoMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2906,7 +2973,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2955,6 +3022,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2971,7 +3039,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3007,6 +3075,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRateBasedRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3023,7 +3092,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3063,6 +3132,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRegexMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3079,7 +3149,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3126,6 +3196,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3142,7 +3213,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3182,6 +3253,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3198,7 +3270,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3229,6 +3301,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3245,7 +3318,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3287,6 +3360,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSizeConstraintSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3303,7 +3377,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3341,6 +3415,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSqlInjectionMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3357,7 +3432,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3401,6 +3476,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3417,7 +3493,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3455,6 +3531,7 @@ extension WAFClient: WAFClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateXssMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3471,7 +3548,7 @@ extension WAFClient: WAFClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWAF/models/Models.swift b/Sources/Services/AWSWAF/models/Models.swift index 20295bc0c87..033144e05bd 100644 --- a/Sources/Services/AWSWAF/models/Models.swift +++ b/Sources/Services/AWSWAF/models/Models.swift @@ -627,9 +627,8 @@ public enum CreateByteMatchSetOutputError: Swift.Error, Swift.Equatable { extension CreateByteMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateByteMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byteMatchSet = output.byteMatchSet self.changeToken = output.changeToken @@ -771,9 +770,8 @@ public enum CreateGeoMatchSetOutputError: Swift.Error, Swift.Equatable { extension CreateGeoMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGeoMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.geoMatchSet = output.geoMatchSet @@ -915,9 +913,8 @@ public enum CreateIPSetOutputError: Swift.Error, Swift.Equatable { extension CreateIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.ipSet = output.ipSet @@ -1126,9 +1123,8 @@ public enum CreateRateBasedRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRateBasedRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRateBasedRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.rule = output.rule @@ -1266,9 +1262,8 @@ public enum CreateRegexMatchSetOutputError: Swift.Error, Swift.Equatable { extension CreateRegexMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRegexMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.regexMatchSet = output.regexMatchSet @@ -1406,9 +1401,8 @@ public enum CreateRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension CreateRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.regexPatternSet = output.regexPatternSet @@ -1589,9 +1583,8 @@ public enum CreateRuleGroupOutputError: Swift.Error, Swift.Equatable { extension CreateRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.ruleGroup = output.ruleGroup @@ -1774,9 +1767,8 @@ public enum CreateRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.rule = output.rule @@ -1918,9 +1910,8 @@ public enum CreateSizeConstraintSetOutputError: Swift.Error, Swift.Equatable { extension CreateSizeConstraintSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSizeConstraintSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.sizeConstraintSet = output.sizeConstraintSet @@ -2063,9 +2054,8 @@ public enum CreateSqlInjectionMatchSetOutputError: Swift.Error, Swift.Equatable extension CreateSqlInjectionMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSqlInjectionMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.sqlInjectionMatchSet = output.sqlInjectionMatchSet @@ -2336,9 +2326,8 @@ public enum CreateWebACLMigrationStackOutputError: Swift.Error, Swift.Equatable extension CreateWebACLMigrationStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWebACLMigrationStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3ObjectUrl = output.s3ObjectUrl } else { @@ -2416,9 +2405,8 @@ public enum CreateWebACLOutputError: Swift.Error, Swift.Equatable { extension CreateWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.webACL = output.webACL @@ -2561,9 +2549,8 @@ public enum CreateXssMatchSetOutputError: Swift.Error, Swift.Equatable { extension CreateXssMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateXssMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.xssMatchSet = output.xssMatchSet @@ -2706,9 +2693,8 @@ public enum DeleteByteMatchSetOutputError: Swift.Error, Swift.Equatable { extension DeleteByteMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteByteMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -2840,9 +2826,8 @@ public enum DeleteGeoMatchSetOutputError: Swift.Error, Swift.Equatable { extension DeleteGeoMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGeoMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -2974,9 +2959,8 @@ public enum DeleteIPSetOutputError: Swift.Error, Swift.Equatable { extension DeleteIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3280,9 +3264,8 @@ public enum DeleteRateBasedRuleOutputError: Swift.Error, Swift.Equatable { extension DeleteRateBasedRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRateBasedRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3414,9 +3397,8 @@ public enum DeleteRegexMatchSetOutputError: Swift.Error, Swift.Equatable { extension DeleteRegexMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRegexMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3548,9 +3530,8 @@ public enum DeleteRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension DeleteRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3686,9 +3667,8 @@ public enum DeleteRuleGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3824,9 +3804,8 @@ public enum DeleteRuleOutputError: Swift.Error, Swift.Equatable { extension DeleteRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3958,9 +3937,8 @@ public enum DeleteSizeConstraintSetOutputError: Swift.Error, Swift.Equatable { extension DeleteSizeConstraintSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSizeConstraintSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -4093,9 +4071,8 @@ public enum DeleteSqlInjectionMatchSetOutputError: Swift.Error, Swift.Equatable extension DeleteSqlInjectionMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSqlInjectionMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -4232,9 +4209,8 @@ public enum DeleteWebACLOutputError: Swift.Error, Swift.Equatable { extension DeleteWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -4367,9 +4343,8 @@ public enum DeleteXssMatchSetOutputError: Swift.Error, Swift.Equatable { extension DeleteXssMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteXssMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -5591,9 +5566,8 @@ public enum GetByteMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetByteMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetByteMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byteMatchSet = output.byteMatchSet } else { @@ -5688,9 +5662,8 @@ public enum GetChangeTokenOutputError: Swift.Error, Swift.Equatable { extension GetChangeTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChangeTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -5801,9 +5774,8 @@ public enum GetChangeTokenStatusOutputError: Swift.Error, Swift.Equatable { extension GetChangeTokenStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChangeTokenStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeTokenStatus = output.changeTokenStatus } else { @@ -5916,9 +5888,8 @@ public enum GetGeoMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetGeoMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGeoMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.geoMatchSet = output.geoMatchSet } else { @@ -6031,9 +6002,8 @@ public enum GetIPSetOutputError: Swift.Error, Swift.Equatable { extension GetIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipSet = output.ipSet } else { @@ -6148,9 +6118,8 @@ public enum GetLoggingConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -6261,9 +6230,8 @@ public enum GetPermissionPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPermissionPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPermissionPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -6438,9 +6406,8 @@ public enum GetRateBasedRuleManagedKeysOutputError: Swift.Error, Swift.Equatable extension GetRateBasedRuleManagedKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRateBasedRuleManagedKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedKeys = output.managedKeys self.nextMarker = output.nextMarker @@ -6524,9 +6491,8 @@ public enum GetRateBasedRuleOutputError: Swift.Error, Swift.Equatable { extension GetRateBasedRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRateBasedRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule } else { @@ -6639,9 +6605,8 @@ public enum GetRegexMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetRegexMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegexMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.regexMatchSet = output.regexMatchSet } else { @@ -6754,9 +6719,8 @@ public enum GetRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension GetRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.regexPatternSet = output.regexPatternSet } else { @@ -6867,9 +6831,8 @@ public enum GetRuleGroupOutputError: Swift.Error, Swift.Equatable { extension GetRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleGroup = output.ruleGroup } else { @@ -6982,9 +6945,8 @@ public enum GetRuleOutputError: Swift.Error, Swift.Equatable { extension GetRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule } else { @@ -7142,9 +7104,8 @@ public enum GetSampledRequestsOutputError: Swift.Error, Swift.Equatable { extension GetSampledRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSampledRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.populationSize = output.populationSize self.sampledRequests = output.sampledRequests @@ -7286,9 +7247,8 @@ public enum GetSizeConstraintSetOutputError: Swift.Error, Swift.Equatable { extension GetSizeConstraintSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSizeConstraintSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sizeConstraintSet = output.sizeConstraintSet } else { @@ -7408,9 +7368,8 @@ public enum GetSqlInjectionMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetSqlInjectionMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSqlInjectionMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sqlInjectionMatchSet = output.sqlInjectionMatchSet } else { @@ -7530,9 +7489,8 @@ public enum GetWebACLOutputError: Swift.Error, Swift.Equatable { extension GetWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webACL = output.webACL } else { @@ -7654,9 +7612,8 @@ public enum GetXssMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetXssMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetXssMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.xssMatchSet = output.xssMatchSet } else { @@ -8198,9 +8155,8 @@ public enum ListActivatedRulesInRuleGroupOutputError: Swift.Error, Swift.Equatab extension ListActivatedRulesInRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActivatedRulesInRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activatedRules = output.activatedRules self.nextMarker = output.nextMarker @@ -8341,9 +8297,8 @@ public enum ListByteMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListByteMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListByteMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byteMatchSets = output.byteMatchSets self.nextMarker = output.nextMarker @@ -8484,9 +8439,8 @@ public enum ListGeoMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListGeoMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGeoMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.geoMatchSets = output.geoMatchSets self.nextMarker = output.nextMarker @@ -8627,9 +8581,8 @@ public enum ListIPSetsOutputError: Swift.Error, Swift.Equatable { extension ListIPSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIPSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipSets = output.ipSets self.nextMarker = output.nextMarker @@ -8772,9 +8725,8 @@ public enum ListLoggingConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListLoggingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLoggingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfigurations = output.loggingConfigurations self.nextMarker = output.nextMarker @@ -8915,9 +8867,8 @@ public enum ListRateBasedRulesOutputError: Swift.Error, Swift.Equatable { extension ListRateBasedRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRateBasedRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.rules = output.rules @@ -9058,9 +9009,8 @@ public enum ListRegexMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListRegexMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegexMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.regexMatchSets = output.regexMatchSets @@ -9201,9 +9151,8 @@ public enum ListRegexPatternSetsOutputError: Swift.Error, Swift.Equatable { extension ListRegexPatternSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegexPatternSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.regexPatternSets = output.regexPatternSets @@ -9342,9 +9291,8 @@ public enum ListRuleGroupsOutputError: Swift.Error, Swift.Equatable { extension ListRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.ruleGroups = output.ruleGroups @@ -9485,9 +9433,8 @@ public enum ListRulesOutputError: Swift.Error, Swift.Equatable { extension ListRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.rules = output.rules @@ -9628,9 +9575,8 @@ public enum ListSizeConstraintSetsOutputError: Swift.Error, Swift.Equatable { extension ListSizeConstraintSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSizeConstraintSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.sizeConstraintSets = output.sizeConstraintSets @@ -9772,9 +9718,8 @@ public enum ListSqlInjectionMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListSqlInjectionMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSqlInjectionMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.sqlInjectionMatchSets = output.sqlInjectionMatchSets @@ -9916,9 +9861,8 @@ public enum ListSubscribedRuleGroupsOutputError: Swift.Error, Swift.Equatable { extension ListSubscribedRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubscribedRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.ruleGroups = output.ruleGroups @@ -10080,9 +10024,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.tagInfoForResource = output.tagInfoForResource @@ -10214,9 +10157,8 @@ public enum ListWebACLsOutputError: Swift.Error, Swift.Equatable { extension ListWebACLsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWebACLsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.webACLs = output.webACLs @@ -10358,9 +10300,8 @@ public enum ListXssMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListXssMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListXssMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.xssMatchSets = output.xssMatchSets @@ -10934,9 +10875,8 @@ public enum PutLoggingConfigurationOutputError: Swift.Error, Swift.Equatable { extension PutLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -13202,9 +13142,8 @@ public enum UpdateByteMatchSetOutputError: Swift.Error, Swift.Equatable { extension UpdateByteMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateByteMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -13371,9 +13310,8 @@ public enum UpdateGeoMatchSetOutputError: Swift.Error, Swift.Equatable { extension UpdateGeoMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGeoMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -13543,9 +13481,8 @@ public enum UpdateIPSetOutputError: Swift.Error, Swift.Equatable { extension UpdateIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -13721,9 +13658,8 @@ public enum UpdateRateBasedRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateRateBasedRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRateBasedRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -13884,9 +13820,8 @@ public enum UpdateRegexMatchSetOutputError: Swift.Error, Swift.Equatable { extension UpdateRegexMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRegexMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14047,9 +13982,8 @@ public enum UpdateRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension UpdateRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14208,9 +14142,8 @@ public enum UpdateRuleGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14379,9 +14312,8 @@ public enum UpdateRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14550,9 +14482,8 @@ public enum UpdateSizeConstraintSetOutputError: Swift.Error, Swift.Equatable { extension UpdateSizeConstraintSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSizeConstraintSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14720,9 +14651,8 @@ public enum UpdateSqlInjectionMatchSetOutputError: Swift.Error, Swift.Equatable extension UpdateSqlInjectionMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSqlInjectionMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14905,9 +14835,8 @@ public enum UpdateWebACLOutputError: Swift.Error, Swift.Equatable { extension UpdateWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -15075,9 +15004,8 @@ public enum UpdateXssMatchSetOutputError: Swift.Error, Swift.Equatable { extension UpdateXssMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateXssMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -15117,9 +15045,8 @@ extension UpdateXssMatchSetOutputResponseBody: Swift.Decodable { extension WAFBadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFBadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15133,7 +15060,7 @@ extension WAFBadRequestException { } /// -public struct WAFBadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFBadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15169,9 +15096,8 @@ extension WAFBadRequestExceptionBody: Swift.Decodable { extension WAFDisallowedNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFDisallowedNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15185,7 +15111,7 @@ extension WAFDisallowedNameException { } /// The name specified is invalid. -public struct WAFDisallowedNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFDisallowedNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15221,9 +15147,8 @@ extension WAFDisallowedNameExceptionBody: Swift.Decodable { extension WAFEntityMigrationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFEntityMigrationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.migrationErrorReason = output.migrationErrorReason @@ -15255,7 +15180,7 @@ extension WAFEntityMigrationException { /// * S3_BUCKET_INVALID_REGION - The S3 bucket is not in the same Region as the web ACL. /// /// * S3_INTERNAL_ERROR - AWS WAF failed to create the template in the S3 bucket for another reason. -public struct WAFEntityMigrationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFEntityMigrationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15305,9 +15230,8 @@ extension WAFEntityMigrationExceptionBody: Swift.Decodable { extension WAFInternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15321,7 +15245,7 @@ extension WAFInternalErrorException { } /// The operation failed because of a system problem, even though the request was valid. Retry your request. -public struct WAFInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15365,7 +15289,7 @@ extension WAFInvalidAccountException { } /// The operation failed because you tried to create, update, or delete an object by using an invalid account identifier. -public struct WAFInvalidAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15379,9 +15303,8 @@ public struct WAFInvalidAccountException: AWSClientRuntime.AWSHttpServiceError, extension WAFInvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15405,7 +15328,7 @@ extension WAFInvalidOperationException { /// * You tried to add a Rule to a WebACL, but the Rule already exists in the specified WebACL. /// /// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple already exists in the specified WebACL. -public struct WAFInvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15441,9 +15364,8 @@ extension WAFInvalidOperationExceptionBody: Swift.Decodable { extension WAFInvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.field = output.field self.parameter = output.parameter @@ -15479,7 +15401,7 @@ extension WAFInvalidParameterException { /// * You tried to update a ByteMatchSet with a Field of HEADER but no value for Data. /// /// * Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated. -public struct WAFInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15529,9 +15451,8 @@ extension WAFInvalidParameterExceptionBody: Swift.Decodable { extension WAFInvalidPermissionPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidPermissionPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15561,7 +15482,7 @@ extension WAFInvalidPermissionPolicyException { /// * The user making the request must be the owner of the RuleGroup. /// /// * Your policy must be composed using IAM Policy version 2012-10-17. -public struct WAFInvalidPermissionPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidPermissionPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15597,9 +15518,8 @@ extension WAFInvalidPermissionPolicyExceptionBody: Swift.Decodable { extension WAFInvalidRegexPatternException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidRegexPatternExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15613,7 +15533,7 @@ extension WAFInvalidRegexPatternException { } /// The regular expression (regex) you specified in RegexPatternString is invalid. -public struct WAFInvalidRegexPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidRegexPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15649,9 +15569,8 @@ extension WAFInvalidRegexPatternExceptionBody: Swift.Decodable { extension WAFLimitsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFLimitsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15665,7 +15584,7 @@ extension WAFLimitsExceededException { } /// The operation exceeds a resource limit, for example, the maximum number of WebACL objects that you can create for an AWS account. For more information, see [Limits](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the AWS WAF Developer Guide. -public struct WAFLimitsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFLimitsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15701,9 +15620,8 @@ extension WAFLimitsExceededExceptionBody: Swift.Decodable { extension WAFNonEmptyEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFNonEmptyEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15725,7 +15643,7 @@ extension WAFNonEmptyEntityException { /// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple objects. /// /// * You tried to delete an IPSet that references one or more IP addresses. -public struct WAFNonEmptyEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFNonEmptyEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15761,9 +15679,8 @@ extension WAFNonEmptyEntityExceptionBody: Swift.Decodable { extension WAFNonexistentContainerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFNonexistentContainerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15785,7 +15702,7 @@ extension WAFNonexistentContainerException { /// * You tried to add an IP address to or delete an IP address from an IPSet that doesn't exist. /// /// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a ByteMatchSet that doesn't exist. -public struct WAFNonexistentContainerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFNonexistentContainerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15821,9 +15738,8 @@ extension WAFNonexistentContainerExceptionBody: Swift.Decodable { extension WAFNonexistentItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFNonexistentItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15837,7 +15753,7 @@ extension WAFNonexistentItemException { } /// The operation failed because the referenced object doesn't exist. -public struct WAFNonexistentItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFNonexistentItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15873,9 +15789,8 @@ extension WAFNonexistentItemExceptionBody: Swift.Decodable { extension WAFReferencedItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFReferencedItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15893,7 +15808,7 @@ extension WAFReferencedItemException { /// * You tried to delete a ByteMatchSet that is still referenced by a Rule. /// /// * You tried to delete a Rule that is still referenced by a WebACL. -public struct WAFReferencedItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFReferencedItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15929,9 +15844,8 @@ extension WAFReferencedItemExceptionBody: Swift.Decodable { extension WAFServiceLinkedRoleErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFServiceLinkedRoleErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15945,7 +15859,7 @@ extension WAFServiceLinkedRoleErrorException { } /// AWS WAF is not able to access the service linked role. This can be caused by a previous PutLoggingConfiguration request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous DeleteServiceLinkedRole request, which can lock the role for 15 minutes or more. If you recently made a DeleteServiceLinkedRole, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked. -public struct WAFServiceLinkedRoleErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFServiceLinkedRoleErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15981,9 +15895,8 @@ extension WAFServiceLinkedRoleErrorExceptionBody: Swift.Decodable { extension WAFStaleDataException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFStaleDataExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15997,7 +15910,7 @@ extension WAFStaleDataException { } /// The operation failed because you tried to create, update, or delete an object by using a change token that has already been used. -public struct WAFStaleDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFStaleDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16033,9 +15946,8 @@ extension WAFStaleDataExceptionBody: Swift.Decodable { extension WAFSubscriptionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFSubscriptionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16049,7 +15961,7 @@ extension WAFSubscriptionNotFoundException { } /// The specified subscription does not exist. -public struct WAFSubscriptionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFSubscriptionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16085,9 +15997,8 @@ extension WAFSubscriptionNotFoundExceptionBody: Swift.Decodable { extension WAFTagOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFTagOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16101,7 +16012,7 @@ extension WAFTagOperationException { } /// -public struct WAFTagOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFTagOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16137,9 +16048,8 @@ extension WAFTagOperationExceptionBody: Swift.Decodable { extension WAFTagOperationInternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFTagOperationInternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16153,7 +16063,7 @@ extension WAFTagOperationInternalErrorException { } /// -public struct WAFTagOperationInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFTagOperationInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWAFRegional/WAFRegionalClient.swift b/Sources/Services/AWSWAFRegional/WAFRegionalClient.swift index 44eaddaa3fd..fa283a52a9c 100644 --- a/Sources/Services/AWSWAFRegional/WAFRegionalClient.swift +++ b/Sources/Services/AWSWAFRegional/WAFRegionalClient.swift @@ -208,6 +208,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -255,6 +256,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createByteMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -271,7 +273,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -302,6 +304,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGeoMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -318,7 +321,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -349,6 +352,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -365,7 +369,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -416,6 +420,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRateBasedRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -432,7 +437,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -463,6 +468,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRegexMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -479,7 +485,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -510,6 +516,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -526,7 +533,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +575,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +592,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -613,6 +621,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -629,7 +638,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -660,6 +669,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSizeConstraintSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -676,7 +686,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -707,6 +717,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSqlInjectionMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -723,7 +734,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -758,6 +769,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -774,7 +786,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -794,6 +806,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWebACLMigrationStack") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -810,7 +823,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -841,6 +854,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createXssMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -857,7 +871,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -883,6 +897,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteByteMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -899,7 +914,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -925,6 +940,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGeoMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -941,7 +957,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -967,6 +983,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -983,7 +1000,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1003,6 +1020,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1019,7 +1037,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1039,6 +1057,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1055,7 +1074,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1081,6 +1100,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRateBasedRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1097,7 +1117,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1123,6 +1143,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegexMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1139,7 +1160,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1159,6 +1180,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1175,7 +1197,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1201,6 +1223,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1217,7 +1240,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1243,6 +1266,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1259,7 +1283,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1285,6 +1309,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSizeConstraintSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1301,7 +1326,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1327,6 +1352,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSqlInjectionMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1343,7 +1369,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1369,6 +1395,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1385,7 +1412,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1411,6 +1438,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteXssMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1427,7 +1455,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1447,6 +1475,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1463,7 +1492,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1483,6 +1512,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getByteMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1499,7 +1529,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1519,6 +1549,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChangeToken") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1535,7 +1566,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1561,6 +1592,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getChangeTokenStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1577,7 +1609,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1597,6 +1629,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGeoMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1613,7 +1646,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1633,6 +1666,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1649,7 +1683,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1669,6 +1703,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1685,7 +1720,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1705,6 +1740,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1721,7 +1757,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1741,6 +1777,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRateBasedRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1757,7 +1794,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1777,6 +1814,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRateBasedRuleManagedKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1793,7 +1831,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1813,6 +1851,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegexMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1829,7 +1868,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1849,6 +1888,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1865,7 +1905,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1885,6 +1925,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1901,7 +1942,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1921,6 +1962,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1937,7 +1979,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1957,6 +1999,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSampledRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1973,7 +2016,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1993,6 +2036,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSizeConstraintSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2009,7 +2053,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2029,6 +2073,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSqlInjectionMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2045,7 +2090,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2065,6 +2110,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2081,7 +2127,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2101,6 +2147,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWebACLForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2117,7 +2164,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2137,6 +2184,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getXssMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2153,7 +2201,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2173,6 +2221,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listActivatedRulesInRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2189,7 +2238,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2209,6 +2258,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listByteMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2225,7 +2275,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2245,6 +2295,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGeoMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2261,7 +2312,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2281,6 +2332,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIPSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2297,7 +2349,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2317,6 +2369,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLoggingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2333,7 +2386,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2353,6 +2406,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRateBasedRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2369,7 +2423,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2389,6 +2443,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegexMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2405,7 +2460,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2425,6 +2480,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegexPatternSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2441,7 +2497,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2461,6 +2517,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourcesForWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2477,7 +2534,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2497,6 +2554,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2513,7 +2571,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2533,6 +2591,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2549,7 +2608,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2569,6 +2628,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSizeConstraintSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2585,7 +2645,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2605,6 +2665,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSqlInjectionMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2621,7 +2682,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2641,6 +2702,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listSubscribedRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2657,7 +2719,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2677,6 +2739,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2693,7 +2756,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2713,6 +2776,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWebACLs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2729,7 +2793,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2749,6 +2813,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listXssMatchSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2765,7 +2830,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2792,6 +2857,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2808,7 +2874,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2850,6 +2916,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2866,7 +2933,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2886,6 +2953,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2902,7 +2970,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2922,6 +2990,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2938,7 +3007,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2980,6 +3049,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateByteMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2996,7 +3066,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3034,6 +3104,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGeoMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3050,7 +3121,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3099,6 +3170,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3115,7 +3187,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3151,6 +3223,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRateBasedRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3167,7 +3240,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3207,6 +3280,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRegexMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3223,7 +3297,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3270,6 +3344,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3286,7 +3361,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3326,6 +3401,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3342,7 +3418,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3373,6 +3449,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3389,7 +3466,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3431,6 +3508,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSizeConstraintSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3447,7 +3525,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3485,6 +3563,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSqlInjectionMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3501,7 +3580,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3545,6 +3624,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3561,7 +3641,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3599,6 +3679,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { .withRegion(value: config.region) .withSigningName(value: "waf-regional") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateXssMatchSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3615,7 +3696,7 @@ extension WAFRegionalClient: WAFRegionalClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWAFRegional/models/Models.swift b/Sources/Services/AWSWAFRegional/models/Models.swift index 76b61d8cbbf..a6463a88b0d 100644 --- a/Sources/Services/AWSWAFRegional/models/Models.swift +++ b/Sources/Services/AWSWAFRegional/models/Models.swift @@ -732,9 +732,8 @@ public enum CreateByteMatchSetOutputError: Swift.Error, Swift.Equatable { extension CreateByteMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateByteMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byteMatchSet = output.byteMatchSet self.changeToken = output.changeToken @@ -876,9 +875,8 @@ public enum CreateGeoMatchSetOutputError: Swift.Error, Swift.Equatable { extension CreateGeoMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGeoMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.geoMatchSet = output.geoMatchSet @@ -1020,9 +1018,8 @@ public enum CreateIPSetOutputError: Swift.Error, Swift.Equatable { extension CreateIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.ipSet = output.ipSet @@ -1231,9 +1228,8 @@ public enum CreateRateBasedRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRateBasedRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRateBasedRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.rule = output.rule @@ -1371,9 +1367,8 @@ public enum CreateRegexMatchSetOutputError: Swift.Error, Swift.Equatable { extension CreateRegexMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRegexMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.regexMatchSet = output.regexMatchSet @@ -1511,9 +1506,8 @@ public enum CreateRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension CreateRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.regexPatternSet = output.regexPatternSet @@ -1694,9 +1688,8 @@ public enum CreateRuleGroupOutputError: Swift.Error, Swift.Equatable { extension CreateRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.ruleGroup = output.ruleGroup @@ -1879,9 +1872,8 @@ public enum CreateRuleOutputError: Swift.Error, Swift.Equatable { extension CreateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.rule = output.rule @@ -2023,9 +2015,8 @@ public enum CreateSizeConstraintSetOutputError: Swift.Error, Swift.Equatable { extension CreateSizeConstraintSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSizeConstraintSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.sizeConstraintSet = output.sizeConstraintSet @@ -2168,9 +2159,8 @@ public enum CreateSqlInjectionMatchSetOutputError: Swift.Error, Swift.Equatable extension CreateSqlInjectionMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSqlInjectionMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.sqlInjectionMatchSet = output.sqlInjectionMatchSet @@ -2441,9 +2431,8 @@ public enum CreateWebACLMigrationStackOutputError: Swift.Error, Swift.Equatable extension CreateWebACLMigrationStackOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWebACLMigrationStackOutputResponseBody = try responseDecoder.decode(responseBody: data) self.s3ObjectUrl = output.s3ObjectUrl } else { @@ -2521,9 +2510,8 @@ public enum CreateWebACLOutputError: Swift.Error, Swift.Equatable { extension CreateWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.webACL = output.webACL @@ -2666,9 +2654,8 @@ public enum CreateXssMatchSetOutputError: Swift.Error, Swift.Equatable { extension CreateXssMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateXssMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken self.xssMatchSet = output.xssMatchSet @@ -2811,9 +2798,8 @@ public enum DeleteByteMatchSetOutputError: Swift.Error, Swift.Equatable { extension DeleteByteMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteByteMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -2945,9 +2931,8 @@ public enum DeleteGeoMatchSetOutputError: Swift.Error, Swift.Equatable { extension DeleteGeoMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteGeoMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3079,9 +3064,8 @@ public enum DeleteIPSetOutputError: Swift.Error, Swift.Equatable { extension DeleteIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3385,9 +3369,8 @@ public enum DeleteRateBasedRuleOutputError: Swift.Error, Swift.Equatable { extension DeleteRateBasedRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRateBasedRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3519,9 +3502,8 @@ public enum DeleteRegexMatchSetOutputError: Swift.Error, Swift.Equatable { extension DeleteRegexMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRegexMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3653,9 +3635,8 @@ public enum DeleteRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension DeleteRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3791,9 +3772,8 @@ public enum DeleteRuleGroupOutputError: Swift.Error, Swift.Equatable { extension DeleteRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -3929,9 +3909,8 @@ public enum DeleteRuleOutputError: Swift.Error, Swift.Equatable { extension DeleteRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -4063,9 +4042,8 @@ public enum DeleteSizeConstraintSetOutputError: Swift.Error, Swift.Equatable { extension DeleteSizeConstraintSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSizeConstraintSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -4198,9 +4176,8 @@ public enum DeleteSqlInjectionMatchSetOutputError: Swift.Error, Swift.Equatable extension DeleteSqlInjectionMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSqlInjectionMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -4337,9 +4314,8 @@ public enum DeleteWebACLOutputError: Swift.Error, Swift.Equatable { extension DeleteWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -4472,9 +4448,8 @@ public enum DeleteXssMatchSetOutputError: Swift.Error, Swift.Equatable { extension DeleteXssMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteXssMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -5786,9 +5761,8 @@ public enum GetByteMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetByteMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetByteMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byteMatchSet = output.byteMatchSet } else { @@ -5883,9 +5857,8 @@ public enum GetChangeTokenOutputError: Swift.Error, Swift.Equatable { extension GetChangeTokenOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChangeTokenOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -5996,9 +5969,8 @@ public enum GetChangeTokenStatusOutputError: Swift.Error, Swift.Equatable { extension GetChangeTokenStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetChangeTokenStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeTokenStatus = output.changeTokenStatus } else { @@ -6111,9 +6083,8 @@ public enum GetGeoMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetGeoMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGeoMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.geoMatchSet = output.geoMatchSet } else { @@ -6226,9 +6197,8 @@ public enum GetIPSetOutputError: Swift.Error, Swift.Equatable { extension GetIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipSet = output.ipSet } else { @@ -6343,9 +6313,8 @@ public enum GetLoggingConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -6456,9 +6425,8 @@ public enum GetPermissionPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPermissionPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPermissionPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -6633,9 +6601,8 @@ public enum GetRateBasedRuleManagedKeysOutputError: Swift.Error, Swift.Equatable extension GetRateBasedRuleManagedKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRateBasedRuleManagedKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedKeys = output.managedKeys self.nextMarker = output.nextMarker @@ -6719,9 +6686,8 @@ public enum GetRateBasedRuleOutputError: Swift.Error, Swift.Equatable { extension GetRateBasedRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRateBasedRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule } else { @@ -6834,9 +6800,8 @@ public enum GetRegexMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetRegexMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegexMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.regexMatchSet = output.regexMatchSet } else { @@ -6949,9 +6914,8 @@ public enum GetRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension GetRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.regexPatternSet = output.regexPatternSet } else { @@ -7062,9 +7026,8 @@ public enum GetRuleGroupOutputError: Swift.Error, Swift.Equatable { extension GetRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ruleGroup = output.ruleGroup } else { @@ -7177,9 +7140,8 @@ public enum GetRuleOutputError: Swift.Error, Swift.Equatable { extension GetRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rule = output.rule } else { @@ -7337,9 +7299,8 @@ public enum GetSampledRequestsOutputError: Swift.Error, Swift.Equatable { extension GetSampledRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSampledRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.populationSize = output.populationSize self.sampledRequests = output.sampledRequests @@ -7481,9 +7442,8 @@ public enum GetSizeConstraintSetOutputError: Swift.Error, Swift.Equatable { extension GetSizeConstraintSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSizeConstraintSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sizeConstraintSet = output.sizeConstraintSet } else { @@ -7603,9 +7563,8 @@ public enum GetSqlInjectionMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetSqlInjectionMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSqlInjectionMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sqlInjectionMatchSet = output.sqlInjectionMatchSet } else { @@ -7733,9 +7692,8 @@ public enum GetWebACLForResourceOutputError: Swift.Error, Swift.Equatable { extension GetWebACLForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWebACLForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webACLSummary = output.webACLSummary } else { @@ -7848,9 +7806,8 @@ public enum GetWebACLOutputError: Swift.Error, Swift.Equatable { extension GetWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webACL = output.webACL } else { @@ -7972,9 +7929,8 @@ public enum GetXssMatchSetOutputError: Swift.Error, Swift.Equatable { extension GetXssMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetXssMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.xssMatchSet = output.xssMatchSet } else { @@ -8516,9 +8472,8 @@ public enum ListActivatedRulesInRuleGroupOutputError: Swift.Error, Swift.Equatab extension ListActivatedRulesInRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListActivatedRulesInRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.activatedRules = output.activatedRules self.nextMarker = output.nextMarker @@ -8659,9 +8614,8 @@ public enum ListByteMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListByteMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListByteMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.byteMatchSets = output.byteMatchSets self.nextMarker = output.nextMarker @@ -8802,9 +8756,8 @@ public enum ListGeoMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListGeoMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGeoMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.geoMatchSets = output.geoMatchSets self.nextMarker = output.nextMarker @@ -8945,9 +8898,8 @@ public enum ListIPSetsOutputError: Swift.Error, Swift.Equatable { extension ListIPSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIPSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipSets = output.ipSets self.nextMarker = output.nextMarker @@ -9090,9 +9042,8 @@ public enum ListLoggingConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListLoggingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLoggingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfigurations = output.loggingConfigurations self.nextMarker = output.nextMarker @@ -9233,9 +9184,8 @@ public enum ListRateBasedRulesOutputError: Swift.Error, Swift.Equatable { extension ListRateBasedRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRateBasedRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.rules = output.rules @@ -9376,9 +9326,8 @@ public enum ListRegexMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListRegexMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegexMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.regexMatchSets = output.regexMatchSets @@ -9519,9 +9468,8 @@ public enum ListRegexPatternSetsOutputError: Swift.Error, Swift.Equatable { extension ListRegexPatternSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegexPatternSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.regexPatternSets = output.regexPatternSets @@ -9667,9 +9615,8 @@ public enum ListResourcesForWebACLOutputError: Swift.Error, Swift.Equatable { extension ListResourcesForWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesForWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArns = output.resourceArns } else { @@ -9798,9 +9745,8 @@ public enum ListRuleGroupsOutputError: Swift.Error, Swift.Equatable { extension ListRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.ruleGroups = output.ruleGroups @@ -9941,9 +9887,8 @@ public enum ListRulesOutputError: Swift.Error, Swift.Equatable { extension ListRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.rules = output.rules @@ -10084,9 +10029,8 @@ public enum ListSizeConstraintSetsOutputError: Swift.Error, Swift.Equatable { extension ListSizeConstraintSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSizeConstraintSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.sizeConstraintSets = output.sizeConstraintSets @@ -10228,9 +10172,8 @@ public enum ListSqlInjectionMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListSqlInjectionMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSqlInjectionMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.sqlInjectionMatchSets = output.sqlInjectionMatchSets @@ -10372,9 +10315,8 @@ public enum ListSubscribedRuleGroupsOutputError: Swift.Error, Swift.Equatable { extension ListSubscribedRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListSubscribedRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.ruleGroups = output.ruleGroups @@ -10536,9 +10478,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.tagInfoForResource = output.tagInfoForResource @@ -10670,9 +10611,8 @@ public enum ListWebACLsOutputError: Swift.Error, Swift.Equatable { extension ListWebACLsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWebACLsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.webACLs = output.webACLs @@ -10814,9 +10754,8 @@ public enum ListXssMatchSetsOutputError: Swift.Error, Swift.Equatable { extension ListXssMatchSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListXssMatchSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.xssMatchSets = output.xssMatchSets @@ -11390,9 +11329,8 @@ public enum PutLoggingConfigurationOutputError: Swift.Error, Swift.Equatable { extension PutLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -13690,9 +13628,8 @@ public enum UpdateByteMatchSetOutputError: Swift.Error, Swift.Equatable { extension UpdateByteMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateByteMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -13859,9 +13796,8 @@ public enum UpdateGeoMatchSetOutputError: Swift.Error, Swift.Equatable { extension UpdateGeoMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGeoMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14031,9 +13967,8 @@ public enum UpdateIPSetOutputError: Swift.Error, Swift.Equatable { extension UpdateIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14209,9 +14144,8 @@ public enum UpdateRateBasedRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateRateBasedRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRateBasedRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14372,9 +14306,8 @@ public enum UpdateRegexMatchSetOutputError: Swift.Error, Swift.Equatable { extension UpdateRegexMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRegexMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14535,9 +14468,8 @@ public enum UpdateRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension UpdateRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14696,9 +14628,8 @@ public enum UpdateRuleGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -14867,9 +14798,8 @@ public enum UpdateRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -15038,9 +14968,8 @@ public enum UpdateSizeConstraintSetOutputError: Swift.Error, Swift.Equatable { extension UpdateSizeConstraintSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSizeConstraintSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -15208,9 +15137,8 @@ public enum UpdateSqlInjectionMatchSetOutputError: Swift.Error, Swift.Equatable extension UpdateSqlInjectionMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSqlInjectionMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -15393,9 +15321,8 @@ public enum UpdateWebACLOutputError: Swift.Error, Swift.Equatable { extension UpdateWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -15563,9 +15490,8 @@ public enum UpdateXssMatchSetOutputError: Swift.Error, Swift.Equatable { extension UpdateXssMatchSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateXssMatchSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.changeToken = output.changeToken } else { @@ -15605,9 +15531,8 @@ extension UpdateXssMatchSetOutputResponseBody: Swift.Decodable { extension WAFBadRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFBadRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15621,7 +15546,7 @@ extension WAFBadRequestException { } /// -public struct WAFBadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFBadRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15657,9 +15582,8 @@ extension WAFBadRequestExceptionBody: Swift.Decodable { extension WAFDisallowedNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFDisallowedNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15673,7 +15597,7 @@ extension WAFDisallowedNameException { } /// The name specified is invalid. -public struct WAFDisallowedNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFDisallowedNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15709,9 +15633,8 @@ extension WAFDisallowedNameExceptionBody: Swift.Decodable { extension WAFEntityMigrationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFEntityMigrationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.migrationErrorReason = output.migrationErrorReason @@ -15743,7 +15666,7 @@ extension WAFEntityMigrationException { /// * S3_BUCKET_INVALID_REGION - The S3 bucket is not in the same Region as the web ACL. /// /// * S3_INTERNAL_ERROR - AWS WAF failed to create the template in the S3 bucket for another reason. -public struct WAFEntityMigrationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFEntityMigrationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15793,9 +15716,8 @@ extension WAFEntityMigrationExceptionBody: Swift.Decodable { extension WAFInternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15809,7 +15731,7 @@ extension WAFInternalErrorException { } /// The operation failed because of a system problem, even though the request was valid. Retry your request. -public struct WAFInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15853,7 +15775,7 @@ extension WAFInvalidAccountException { } /// The operation failed because you tried to create, update, or delete an object by using an invalid account identifier. -public struct WAFInvalidAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidAccountException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15867,9 +15789,8 @@ public struct WAFInvalidAccountException: AWSClientRuntime.AWSHttpServiceError, extension WAFInvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -15893,7 +15814,7 @@ extension WAFInvalidOperationException { /// * You tried to add a Rule to a WebACL, but the Rule already exists in the specified WebACL. /// /// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple already exists in the specified WebACL. -public struct WAFInvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -15929,9 +15850,8 @@ extension WAFInvalidOperationExceptionBody: Swift.Decodable { extension WAFInvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.field = output.field self.parameter = output.parameter @@ -15967,7 +15887,7 @@ extension WAFInvalidParameterException { /// * You tried to update a ByteMatchSet with a Field of HEADER but no value for Data. /// /// * Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated. -public struct WAFInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16017,9 +15937,8 @@ extension WAFInvalidParameterExceptionBody: Swift.Decodable { extension WAFInvalidPermissionPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidPermissionPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16049,7 +15968,7 @@ extension WAFInvalidPermissionPolicyException { /// * The user making the request must be the owner of the RuleGroup. /// /// * Your policy must be composed using IAM Policy version 2012-10-17. -public struct WAFInvalidPermissionPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidPermissionPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16085,9 +16004,8 @@ extension WAFInvalidPermissionPolicyExceptionBody: Swift.Decodable { extension WAFInvalidRegexPatternException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidRegexPatternExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16101,7 +16019,7 @@ extension WAFInvalidRegexPatternException { } /// The regular expression (regex) you specified in RegexPatternString is invalid. -public struct WAFInvalidRegexPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidRegexPatternException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16137,9 +16055,8 @@ extension WAFInvalidRegexPatternExceptionBody: Swift.Decodable { extension WAFLimitsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFLimitsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16153,7 +16070,7 @@ extension WAFLimitsExceededException { } /// The operation exceeds a resource limit, for example, the maximum number of WebACL objects that you can create for an AWS account. For more information, see [Limits](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the AWS WAF Developer Guide. -public struct WAFLimitsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFLimitsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16189,9 +16106,8 @@ extension WAFLimitsExceededExceptionBody: Swift.Decodable { extension WAFNonEmptyEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFNonEmptyEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16213,7 +16129,7 @@ extension WAFNonEmptyEntityException { /// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple objects. /// /// * You tried to delete an IPSet that references one or more IP addresses. -public struct WAFNonEmptyEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFNonEmptyEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16249,9 +16165,8 @@ extension WAFNonEmptyEntityExceptionBody: Swift.Decodable { extension WAFNonexistentContainerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFNonexistentContainerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16273,7 +16188,7 @@ extension WAFNonexistentContainerException { /// * You tried to add an IP address to or delete an IP address from an IPSet that doesn't exist. /// /// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a ByteMatchSet that doesn't exist. -public struct WAFNonexistentContainerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFNonexistentContainerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16309,9 +16224,8 @@ extension WAFNonexistentContainerExceptionBody: Swift.Decodable { extension WAFNonexistentItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFNonexistentItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16325,7 +16239,7 @@ extension WAFNonexistentItemException { } /// The operation failed because the referenced object doesn't exist. -public struct WAFNonexistentItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFNonexistentItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16361,9 +16275,8 @@ extension WAFNonexistentItemExceptionBody: Swift.Decodable { extension WAFReferencedItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFReferencedItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16381,7 +16294,7 @@ extension WAFReferencedItemException { /// * You tried to delete a ByteMatchSet that is still referenced by a Rule. /// /// * You tried to delete a Rule that is still referenced by a WebACL. -public struct WAFReferencedItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFReferencedItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16417,9 +16330,8 @@ extension WAFReferencedItemExceptionBody: Swift.Decodable { extension WAFServiceLinkedRoleErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFServiceLinkedRoleErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16433,7 +16345,7 @@ extension WAFServiceLinkedRoleErrorException { } /// AWS WAF is not able to access the service linked role. This can be caused by a previous PutLoggingConfiguration request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous DeleteServiceLinkedRole request, which can lock the role for 15 minutes or more. If you recently made a DeleteServiceLinkedRole, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked. -public struct WAFServiceLinkedRoleErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFServiceLinkedRoleErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16469,9 +16381,8 @@ extension WAFServiceLinkedRoleErrorExceptionBody: Swift.Decodable { extension WAFStaleDataException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFStaleDataExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16485,7 +16396,7 @@ extension WAFStaleDataException { } /// The operation failed because you tried to create, update, or delete an object by using a change token that has already been used. -public struct WAFStaleDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFStaleDataException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16521,9 +16432,8 @@ extension WAFStaleDataExceptionBody: Swift.Decodable { extension WAFSubscriptionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFSubscriptionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16537,7 +16447,7 @@ extension WAFSubscriptionNotFoundException { } /// The specified subscription does not exist. -public struct WAFSubscriptionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFSubscriptionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16573,9 +16483,8 @@ extension WAFSubscriptionNotFoundExceptionBody: Swift.Decodable { extension WAFTagOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFTagOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16589,7 +16498,7 @@ extension WAFTagOperationException { } /// -public struct WAFTagOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFTagOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16625,9 +16534,8 @@ extension WAFTagOperationExceptionBody: Swift.Decodable { extension WAFTagOperationInternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFTagOperationInternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16641,7 +16549,7 @@ extension WAFTagOperationInternalErrorException { } /// -public struct WAFTagOperationInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFTagOperationInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16677,9 +16585,8 @@ extension WAFTagOperationInternalErrorExceptionBody: Swift.Decodable { extension WAFUnavailableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFUnavailableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16693,7 +16600,7 @@ extension WAFUnavailableEntityException { } /// The operation failed because the entity referenced is temporarily unavailable. Retry your request. -public struct WAFUnavailableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFUnavailableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWAFV2/WAFV2Client.swift b/Sources/Services/AWSWAFV2/WAFV2Client.swift index 4dd639c150c..4354a223b86 100644 --- a/Sources/Services/AWSWAFV2/WAFV2Client.swift +++ b/Sources/Services/AWSWAFV2/WAFV2Client.swift @@ -208,6 +208,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "checkCapacity") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFirewallManagerRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -532,6 +541,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -568,6 +578,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -604,6 +615,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -655,6 +667,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -671,7 +684,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -691,6 +704,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeManagedRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -707,7 +721,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -727,6 +741,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -743,7 +758,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -763,6 +778,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "generateMobileSdkReleaseUrl") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -779,7 +795,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -799,6 +815,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -815,7 +832,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -835,6 +852,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -851,7 +869,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -871,6 +889,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getManagedRuleSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -887,7 +906,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -907,6 +926,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMobileSdkRelease") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -923,7 +943,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -943,6 +963,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -959,7 +980,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -979,6 +1000,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRateBasedStatementManagedKeys") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -995,7 +1017,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1015,6 +1037,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1031,7 +1054,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1051,6 +1074,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1067,7 +1091,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1087,6 +1111,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSampledRequests") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1103,7 +1128,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1123,6 +1148,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1139,7 +1165,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1159,6 +1185,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWebACLForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1175,7 +1202,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1195,6 +1222,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailableManagedRuleGroupVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1211,7 +1239,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1231,6 +1259,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailableManagedRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1247,7 +1276,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1267,6 +1296,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIPSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1283,7 +1313,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1303,6 +1333,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLoggingConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1319,7 +1350,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1339,6 +1370,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listManagedRuleSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1355,7 +1387,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1375,6 +1407,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMobileSdkReleases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1391,7 +1424,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1411,6 +1444,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRegexPatternSets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1427,7 +1461,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1447,6 +1481,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourcesForWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1463,7 +1498,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1483,6 +1518,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listRuleGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1499,7 +1535,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1519,6 +1555,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1535,7 +1572,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1555,6 +1592,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWebACLs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1571,7 +1609,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1607,6 +1645,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putLoggingConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1623,7 +1662,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1643,6 +1682,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putManagedRuleSetVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1659,7 +1699,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1685,6 +1725,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putPermissionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1701,7 +1742,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1721,6 +1762,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1737,7 +1779,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1757,6 +1799,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1773,7 +1816,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1802,6 +1845,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIPSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1818,7 +1862,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1838,6 +1882,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateManagedRuleSetVersionExpiryDate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1854,7 +1899,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1883,6 +1928,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRegexPatternSet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1899,7 +1945,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1928,6 +1974,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRuleGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1944,7 +1991,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1973,6 +2020,7 @@ extension WAFV2Client: WAFV2ClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wafv2") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWebACL") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1989,7 +2037,7 @@ extension WAFV2Client: WAFV2ClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWAFV2/models/Models.swift b/Sources/Services/AWSWAFV2/models/Models.swift index a82329f8018..f0ba1e3ff91 100644 --- a/Sources/Services/AWSWAFV2/models/Models.swift +++ b/Sources/Services/AWSWAFV2/models/Models.swift @@ -1092,9 +1092,8 @@ public enum CheckCapacityOutputError: Swift.Error, Swift.Equatable { extension CheckCapacityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CheckCapacityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.capacity = output.capacity } else { @@ -2370,9 +2369,8 @@ public enum CreateIPSetOutputError: Swift.Error, Swift.Equatable { extension CreateIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -2573,9 +2571,8 @@ public enum CreateRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension CreateRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -2831,9 +2828,8 @@ public enum CreateRuleGroupOutputError: Swift.Error, Swift.Equatable { extension CreateRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -3155,9 +3151,8 @@ public enum CreateWebACLOutputError: Swift.Error, Swift.Equatable { extension CreateWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.summary = output.summary } else { @@ -3542,9 +3537,8 @@ public enum DeleteFirewallManagerRuleGroupsOutputError: Swift.Error, Swift.Equat extension DeleteFirewallManagerRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteFirewallManagerRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextWebACLLockToken = output.nextWebACLLockToken } else { @@ -4425,9 +4419,8 @@ public enum DescribeManagedRuleGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeManagedRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeManagedRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availableLabels = output.availableLabels self.capacity = output.capacity @@ -5318,9 +5311,8 @@ public enum GenerateMobileSdkReleaseUrlOutputError: Swift.Error, Swift.Equatable extension GenerateMobileSdkReleaseUrlOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GenerateMobileSdkReleaseUrlOutputResponseBody = try responseDecoder.decode(responseBody: data) self.url = output.url } else { @@ -5529,9 +5521,8 @@ public enum GetIPSetOutputError: Swift.Error, Swift.Equatable { extension GetIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipSet = output.ipSet self.lockToken = output.lockToken @@ -5656,9 +5647,8 @@ public enum GetLoggingConfigurationOutputError: Swift.Error, Swift.Equatable { extension GetLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -5803,9 +5793,8 @@ public enum GetManagedRuleSetOutputError: Swift.Error, Swift.Equatable { extension GetManagedRuleSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetManagedRuleSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lockToken = output.lockToken self.managedRuleSet = output.managedRuleSet @@ -5943,9 +5932,8 @@ public enum GetMobileSdkReleaseOutputError: Swift.Error, Swift.Equatable { extension GetMobileSdkReleaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMobileSdkReleaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mobileSdkRelease = output.mobileSdkRelease } else { @@ -6058,9 +6046,8 @@ public enum GetPermissionPolicyOutputError: Swift.Error, Swift.Equatable { extension GetPermissionPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPermissionPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.policy = output.policy } else { @@ -6230,9 +6217,8 @@ public enum GetRateBasedStatementManagedKeysOutputError: Swift.Error, Swift.Equa extension GetRateBasedStatementManagedKeysOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRateBasedStatementManagedKeysOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedKeysIPV4 = output.managedKeysIPV4 self.managedKeysIPV6 = output.managedKeysIPV6 @@ -6387,9 +6373,8 @@ public enum GetRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension GetRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lockToken = output.lockToken self.regexPatternSet = output.regexPatternSet @@ -6553,9 +6538,8 @@ public enum GetRuleGroupOutputError: Swift.Error, Swift.Equatable { extension GetRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lockToken = output.lockToken self.ruleGroup = output.ruleGroup @@ -6734,9 +6718,8 @@ public enum GetSampledRequestsOutputError: Swift.Error, Swift.Equatable { extension GetSampledRequestsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSampledRequestsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.populationSize = output.populationSize self.sampledRequests = output.sampledRequests @@ -6892,9 +6875,8 @@ public enum GetWebACLForResourceOutputError: Swift.Error, Swift.Equatable { extension GetWebACLForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWebACLForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.webACL = output.webACL } else { @@ -7039,9 +7021,8 @@ public enum GetWebACLOutputError: Swift.Error, Swift.Equatable { extension GetWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.applicationIntegrationURL = output.applicationIntegrationURL self.lockToken = output.lockToken @@ -8309,9 +8290,8 @@ public enum ListAvailableManagedRuleGroupVersionsOutputError: Swift.Error, Swift extension ListAvailableManagedRuleGroupVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailableManagedRuleGroupVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.currentDefaultVersion = output.currentDefaultVersion self.nextMarker = output.nextMarker @@ -8481,9 +8461,8 @@ public enum ListAvailableManagedRuleGroupsOutputError: Swift.Error, Swift.Equata extension ListAvailableManagedRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailableManagedRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedRuleGroups = output.managedRuleGroups self.nextMarker = output.nextMarker @@ -8643,9 +8622,8 @@ public enum ListIPSetsOutputError: Swift.Error, Swift.Equatable { extension ListIPSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIPSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.ipSets = output.ipSets self.nextMarker = output.nextMarker @@ -8805,9 +8783,8 @@ public enum ListLoggingConfigurationsOutputError: Swift.Error, Swift.Equatable { extension ListLoggingConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLoggingConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfigurations = output.loggingConfigurations self.nextMarker = output.nextMarker @@ -8967,9 +8944,8 @@ public enum ListManagedRuleSetsOutputError: Swift.Error, Swift.Equatable { extension ListManagedRuleSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListManagedRuleSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managedRuleSets = output.managedRuleSets self.nextMarker = output.nextMarker @@ -9125,9 +9101,8 @@ public enum ListMobileSdkReleasesOutputError: Swift.Error, Swift.Equatable { extension ListMobileSdkReleasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMobileSdkReleasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.releaseSummaries = output.releaseSummaries @@ -9287,9 +9262,8 @@ public enum ListRegexPatternSetsOutputError: Swift.Error, Swift.Equatable { extension ListRegexPatternSetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRegexPatternSetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.regexPatternSets = output.regexPatternSets @@ -9435,9 +9409,8 @@ public enum ListResourcesForWebACLOutputError: Swift.Error, Swift.Equatable { extension ListResourcesForWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesForWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceArns = output.resourceArns } else { @@ -9587,9 +9560,8 @@ public enum ListRuleGroupsOutputError: Swift.Error, Swift.Equatable { extension ListRuleGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListRuleGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.ruleGroups = output.ruleGroups @@ -9751,9 +9723,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.tagInfoForResource = output.tagInfoForResource @@ -9904,9 +9875,8 @@ public enum ListWebACLsOutputError: Swift.Error, Swift.Equatable { extension ListWebACLsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWebACLsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextMarker = output.nextMarker self.webACLs = output.webACLs @@ -11519,9 +11489,8 @@ public enum PutLoggingConfigurationOutputError: Swift.Error, Swift.Equatable { extension PutLoggingConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutLoggingConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.loggingConfiguration = output.loggingConfiguration } else { @@ -11717,9 +11686,8 @@ public enum PutManagedRuleSetVersionsOutputError: Swift.Error, Swift.Equatable { extension PutManagedRuleSetVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutManagedRuleSetVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextLockToken = output.nextLockToken } else { @@ -15068,9 +15036,8 @@ public enum UpdateIPSetOutputError: Swift.Error, Swift.Equatable { extension UpdateIPSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIPSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextLockToken = output.nextLockToken } else { @@ -15256,9 +15223,8 @@ public enum UpdateManagedRuleSetVersionExpiryDateOutputError: Swift.Error, Swift extension UpdateManagedRuleSetVersionExpiryDateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateManagedRuleSetVersionExpiryDateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expiringVersion = output.expiringVersion self.expiryTimestamp = output.expiryTimestamp @@ -15479,9 +15445,8 @@ public enum UpdateRegexPatternSetOutputError: Swift.Error, Swift.Equatable { extension UpdateRegexPatternSetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRegexPatternSetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextLockToken = output.nextLockToken } else { @@ -15724,9 +15689,8 @@ public enum UpdateRuleGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateRuleGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateRuleGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextLockToken = output.nextLockToken } else { @@ -16046,9 +16010,8 @@ public enum UpdateWebACLOutputError: Swift.Error, Swift.Equatable { extension UpdateWebACLOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWebACLOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextLockToken = output.nextLockToken } else { @@ -16246,9 +16209,8 @@ extension WAFV2ClientTypes { extension WAFAssociatedItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFAssociatedItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16262,7 +16224,7 @@ extension WAFAssociatedItemException { } /// WAF couldn’t perform the operation because your resource is being used by another resource or it’s associated with another resource. -public struct WAFAssociatedItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFAssociatedItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16298,9 +16260,8 @@ extension WAFAssociatedItemExceptionBody: Swift.Decodable { extension WAFConfigurationWarningException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFConfigurationWarningExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16314,7 +16275,7 @@ extension WAFConfigurationWarningException { } /// The operation failed because you are inspecting the web request body, headers, or cookies without specifying how to handle oversize components. Rules that inspect the body must either provide an OversizeHandling configuration or they must be preceded by a SizeConstraintStatement that blocks the body content from being too large. Rules that inspect the headers or cookies must provide an OversizeHandling configuration. Provide the handling configuration and retry your operation. Alternately, you can suppress this warning by adding the following tag to the resource that you provide to this operation: Tag (key:WAF:OversizeFieldsHandlingConstraintOptOut, value:true). -public struct WAFConfigurationWarningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFConfigurationWarningException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16350,9 +16311,8 @@ extension WAFConfigurationWarningExceptionBody: Swift.Decodable { extension WAFDuplicateItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFDuplicateItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16366,7 +16326,7 @@ extension WAFDuplicateItemException { } /// WAF couldn’t perform the operation because the resource that you tried to save is a duplicate of an existing one. -public struct WAFDuplicateItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFDuplicateItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16402,9 +16362,8 @@ extension WAFDuplicateItemExceptionBody: Swift.Decodable { extension WAFExpiredManagedRuleGroupVersionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFExpiredManagedRuleGroupVersionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16418,7 +16377,7 @@ extension WAFExpiredManagedRuleGroupVersionException { } /// The operation failed because the specified version for the managed rule group has expired. You can retrieve the available versions for the managed rule group by calling [ListAvailableManagedRuleGroupVersions]. -public struct WAFExpiredManagedRuleGroupVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFExpiredManagedRuleGroupVersionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16454,9 +16413,8 @@ extension WAFExpiredManagedRuleGroupVersionExceptionBody: Swift.Decodable { extension WAFInternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16470,7 +16428,7 @@ extension WAFInternalErrorException { } /// Your request is valid, but WAF couldn’t perform the operation because of a system problem. Retry your request. -public struct WAFInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16506,9 +16464,8 @@ extension WAFInternalErrorExceptionBody: Swift.Decodable { extension WAFInvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16522,7 +16479,7 @@ extension WAFInvalidOperationException { } /// The operation isn't valid. -public struct WAFInvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16558,9 +16515,8 @@ extension WAFInvalidOperationExceptionBody: Swift.Decodable { extension WAFInvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.field = output.field self.message = output.message @@ -16588,7 +16544,7 @@ extension WAFInvalidParameterException { /// * You tried to update a WebACL with a DefaultAction that isn't among the types available at [DefaultAction]. /// /// * Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can't be associated. -public struct WAFInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16648,9 +16604,8 @@ extension WAFInvalidParameterExceptionBody: Swift.Decodable { extension WAFInvalidPermissionPolicyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidPermissionPolicyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16677,7 +16632,7 @@ extension WAFInvalidPermissionPolicyException { /// /// /// For more information, see [IAM Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html). -public struct WAFInvalidPermissionPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidPermissionPolicyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16713,9 +16668,8 @@ extension WAFInvalidPermissionPolicyExceptionBody: Swift.Decodable { extension WAFInvalidResourceException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFInvalidResourceExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16729,7 +16683,7 @@ extension WAFInvalidResourceException { } /// WAF couldn’t perform the operation because the resource that you requested isn’t valid. Check the resource, and try again. -public struct WAFInvalidResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFInvalidResourceException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16765,9 +16719,8 @@ extension WAFInvalidResourceExceptionBody: Swift.Decodable { extension WAFLimitsExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFLimitsExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16781,7 +16734,7 @@ extension WAFLimitsExceededException { } /// WAF couldn’t perform the operation because you exceeded your resource limit. For example, the maximum number of WebACL objects that you can create for an Amazon Web Services account. For more information, see [WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the WAF Developer Guide. -public struct WAFLimitsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFLimitsExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16817,9 +16770,8 @@ extension WAFLimitsExceededExceptionBody: Swift.Decodable { extension WAFLogDestinationPermissionIssueException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFLogDestinationPermissionIssueExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16833,7 +16785,7 @@ extension WAFLogDestinationPermissionIssueException { } /// The operation failed because you don't have the permissions that your logging configuration requires. For information, see [Logging web ACL traffic information](https://docs.aws.amazon.com/waf/latest/developerguide/logging.html) in the WAF Developer Guide. -public struct WAFLogDestinationPermissionIssueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFLogDestinationPermissionIssueException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16869,9 +16821,8 @@ extension WAFLogDestinationPermissionIssueExceptionBody: Swift.Decodable { extension WAFNonexistentItemException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFNonexistentItemExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16885,7 +16836,7 @@ extension WAFNonexistentItemException { } /// WAF couldn’t perform the operation because your resource doesn't exist. If you've just created a resource that you're using in this operation, you might just need to wait a few minutes. It can take from a few seconds to a number of minutes for changes to propagate. -public struct WAFNonexistentItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFNonexistentItemException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16921,9 +16872,8 @@ extension WAFNonexistentItemExceptionBody: Swift.Decodable { extension WAFOptimisticLockException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFOptimisticLockExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16937,7 +16887,7 @@ extension WAFOptimisticLockException { } /// WAF couldn’t save your changes because you tried to update or delete a resource that has changed since you last retrieved it. Get the resource again, make any changes you need to make to the new copy, and retry your operation. -public struct WAFOptimisticLockException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFOptimisticLockException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -16973,9 +16923,8 @@ extension WAFOptimisticLockExceptionBody: Swift.Decodable { extension WAFServiceLinkedRoleErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFServiceLinkedRoleErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -16989,7 +16938,7 @@ extension WAFServiceLinkedRoleErrorException { } /// WAF is not able to access the service linked role. This can be caused by a previous PutLoggingConfiguration request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous DeleteServiceLinkedRole request, which can lock the role for 15 minutes or more. If you recently made a call to DeleteServiceLinkedRole, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked. -public struct WAFServiceLinkedRoleErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFServiceLinkedRoleErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17025,9 +16974,8 @@ extension WAFServiceLinkedRoleErrorExceptionBody: Swift.Decodable { extension WAFSubscriptionNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFSubscriptionNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17041,7 +16989,7 @@ extension WAFSubscriptionNotFoundException { } /// You tried to use a managed rule group that's available by subscription, but you aren't subscribed to it yet. -public struct WAFSubscriptionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFSubscriptionNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17077,9 +17025,8 @@ extension WAFSubscriptionNotFoundExceptionBody: Swift.Decodable { extension WAFTagOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFTagOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17093,7 +17040,7 @@ extension WAFTagOperationException { } /// An error occurred during the tagging operation. Retry your request. -public struct WAFTagOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFTagOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17129,9 +17076,8 @@ extension WAFTagOperationExceptionBody: Swift.Decodable { extension WAFTagOperationInternalErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFTagOperationInternalErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17145,7 +17091,7 @@ extension WAFTagOperationInternalErrorException { } /// WAF couldn’t perform your tagging operation because of an internal error. Retry your request. -public struct WAFTagOperationInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFTagOperationInternalErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -17181,9 +17127,8 @@ extension WAFTagOperationInternalErrorExceptionBody: Swift.Decodable { extension WAFUnavailableEntityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WAFUnavailableEntityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -17197,7 +17142,7 @@ extension WAFUnavailableEntityException { } /// WAF couldn’t retrieve a resource that you specified for this operation. If you've just created a resource that you're using in this operation, you might just need to wait a few minutes. It can take from a few seconds to a number of minutes for changes to propagate. Verify the resources that you are specifying in your request parameters and then retry the operation. -public struct WAFUnavailableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WAFUnavailableEntityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWellArchitected/WellArchitectedClient.swift b/Sources/Services/AWSWellArchitected/WellArchitectedClient.swift index 8d2dc0b839a..dd9c2b5646c 100644 --- a/Sources/Services/AWSWellArchitected/WellArchitectedClient.swift +++ b/Sources/Services/AWSWellArchitected/WellArchitectedClient.swift @@ -208,6 +208,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateLenses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLensShare") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -266,7 +268,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -286,6 +288,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLensVersion") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -309,7 +312,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -329,6 +332,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMilestone") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -352,7 +356,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -372,6 +376,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkload") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -395,7 +400,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -415,6 +420,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkloadShare") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -438,7 +444,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -458,6 +464,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLens") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -479,7 +486,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -499,6 +506,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLensShare") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -520,7 +528,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -540,6 +548,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkload") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -561,7 +570,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -581,6 +590,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkloadShare") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -602,7 +612,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -622,6 +632,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateLenses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -637,7 +648,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -657,6 +668,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "exportLens") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -670,7 +682,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -690,6 +702,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAnswer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -703,7 +716,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -723,6 +736,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getConsolidatedReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -736,7 +750,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -756,6 +770,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLens") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -769,7 +784,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -789,6 +804,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLensReview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -802,7 +818,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -822,6 +838,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLensReviewReport") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -835,7 +852,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -855,6 +872,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getLensVersionDifference") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -868,7 +886,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -888,6 +906,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMilestone") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -900,7 +919,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -920,6 +939,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getWorkload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -932,7 +952,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -952,6 +972,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importLens") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -975,7 +996,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -995,6 +1016,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAnswers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1008,7 +1030,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1028,6 +1050,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCheckDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1043,7 +1066,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1063,6 +1086,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listCheckSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1078,7 +1102,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1098,6 +1122,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLensReviewImprovements") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1111,7 +1136,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1131,6 +1156,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLensReviews") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1144,7 +1170,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1164,6 +1190,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLensShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1177,7 +1204,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1197,6 +1224,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listLenses") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1210,7 +1238,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1230,6 +1258,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMilestones") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1245,7 +1274,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1265,6 +1294,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNotifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1310,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1330,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listShareInvitations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1313,7 +1344,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1333,6 +1364,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1345,7 +1377,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1365,6 +1397,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkloadShares") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1378,7 +1411,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1398,6 +1431,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWorkloads") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1413,7 +1447,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1433,6 +1467,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1448,7 +1483,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1468,6 +1503,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1481,7 +1517,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1501,6 +1537,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAnswer") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1516,7 +1553,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1536,6 +1573,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGlobalSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1551,7 +1589,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1571,6 +1609,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateLensReview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1586,7 +1625,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1606,6 +1645,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateShareInvitation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1621,7 +1661,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1641,6 +1681,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1656,7 +1697,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1676,6 +1717,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkloadShare") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1691,7 +1733,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1711,6 +1753,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wellarchitected") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "upgradeLensReview") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1726,7 +1769,7 @@ extension WellArchitectedClient: WellArchitectedClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWellArchitected/models/Models.swift b/Sources/Services/AWSWellArchitected/models/Models.swift index 3e94f8b6d6d..89c7825d8d4 100644 --- a/Sources/Services/AWSWellArchitected/models/Models.swift +++ b/Sources/Services/AWSWellArchitected/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// User does not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1555,9 +1554,8 @@ extension WellArchitectedClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1575,7 +1573,7 @@ extension ConflictException { } /// The resource has already been processed, was deleted, or is too large. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1863,9 +1861,8 @@ public enum CreateLensShareOutputError: Swift.Error, Swift.Equatable { extension CreateLensShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLensShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.shareId = output.shareId } else { @@ -2019,9 +2016,8 @@ public enum CreateLensVersionOutputError: Swift.Error, Swift.Equatable { extension CreateLensVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateLensVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensArn = output.lensArn self.lensVersion = output.lensVersion @@ -2174,9 +2170,8 @@ public enum CreateMilestoneOutputError: Swift.Error, Swift.Equatable { extension CreateMilestoneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMilestoneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.milestoneNumber = output.milestoneNumber self.workloadId = output.workloadId @@ -2643,9 +2638,8 @@ public enum CreateWorkloadOutputError: Swift.Error, Swift.Equatable { extension CreateWorkloadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkloadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workloadArn = output.workloadArn self.workloadId = output.workloadId @@ -2812,9 +2806,8 @@ public enum CreateWorkloadShareOutputError: Swift.Error, Swift.Equatable { extension CreateWorkloadShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkloadShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.shareId = output.shareId self.workloadId = output.workloadId @@ -3489,9 +3482,8 @@ public enum ExportLensOutputError: Swift.Error, Swift.Equatable { extension ExportLensOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ExportLensOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensJSON = output.lensJSON } else { @@ -3625,9 +3617,8 @@ public enum GetAnswerOutputError: Swift.Error, Swift.Equatable { extension GetAnswerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAnswerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.answer = output.answer self.lensAlias = output.lensAlias @@ -3804,9 +3795,8 @@ public enum GetConsolidatedReportOutputError: Swift.Error, Swift.Equatable { extension GetConsolidatedReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetConsolidatedReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.base64String = output.base64String self.metrics = output.metrics @@ -3952,9 +3942,8 @@ public enum GetLensOutputError: Swift.Error, Swift.Equatable { extension GetLensOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLensOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lens = output.lens } else { @@ -4080,9 +4069,8 @@ public enum GetLensReviewOutputError: Swift.Error, Swift.Equatable { extension GetLensReviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLensReviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensReview = output.lensReview self.milestoneNumber = output.milestoneNumber @@ -4229,9 +4217,8 @@ public enum GetLensReviewReportOutputError: Swift.Error, Swift.Equatable { extension GetLensReviewReportOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLensReviewReportOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensReviewReport = output.lensReviewReport self.milestoneNumber = output.milestoneNumber @@ -4377,9 +4364,8 @@ public enum GetLensVersionDifferenceOutputError: Swift.Error, Swift.Equatable { extension GetLensVersionDifferenceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetLensVersionDifferenceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.baseLensVersion = output.baseLensVersion self.latestLensVersion = output.latestLensVersion @@ -4538,9 +4524,8 @@ public enum GetMilestoneOutputError: Swift.Error, Swift.Equatable { extension GetMilestoneOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMilestoneOutputResponseBody = try responseDecoder.decode(responseBody: data) self.milestone = output.milestone self.workloadId = output.workloadId @@ -4652,9 +4637,8 @@ public enum GetWorkloadOutputError: Swift.Error, Swift.Equatable { extension GetWorkloadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetWorkloadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workload = output.workload } else { @@ -4825,9 +4809,8 @@ public enum ImportLensOutputError: Swift.Error, Swift.Equatable { extension ImportLensOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportLensOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensArn = output.lensArn self.status = output.status @@ -5008,9 +4991,8 @@ extension WellArchitectedClientTypes { extension InternalServerException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5024,7 +5006,7 @@ extension InternalServerException { } /// There is a problem with the Well-Architected Tool API service. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6056,9 +6038,8 @@ public enum ListAnswersOutputError: Swift.Error, Swift.Equatable { extension ListAnswersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAnswersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.answerSummaries = output.answerSummaries self.lensAlias = output.lensAlias @@ -6306,9 +6287,8 @@ public enum ListCheckDetailsOutputError: Swift.Error, Swift.Equatable { extension ListCheckDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCheckDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checkDetails = output.checkDetails self.nextToken = output.nextToken @@ -6515,9 +6495,8 @@ public enum ListCheckSummariesOutputError: Swift.Error, Swift.Equatable { extension ListCheckSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListCheckSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.checkSummaries = output.checkSummaries self.nextToken = output.nextToken @@ -6686,9 +6665,8 @@ public enum ListLensReviewImprovementsOutputError: Swift.Error, Swift.Equatable extension ListLensReviewImprovementsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLensReviewImprovementsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.improvementSummaries = output.improvementSummaries self.lensAlias = output.lensAlias @@ -6882,9 +6860,8 @@ public enum ListLensReviewsOutputError: Swift.Error, Swift.Equatable { extension ListLensReviewsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLensReviewsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensReviewSummaries = output.lensReviewSummaries self.milestoneNumber = output.milestoneNumber @@ -7065,9 +7042,8 @@ public enum ListLensSharesOutputError: Swift.Error, Swift.Equatable { extension ListLensSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLensSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensShareSummaries = output.lensShareSummaries self.nextToken = output.nextToken @@ -7226,9 +7202,8 @@ public enum ListLensesOutputError: Swift.Error, Swift.Equatable { extension ListLensesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListLensesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensSummaries = output.lensSummaries self.nextToken = output.nextToken @@ -7385,9 +7360,8 @@ public enum ListMilestonesOutputError: Swift.Error, Swift.Equatable { extension ListMilestonesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMilestonesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.milestoneSummaries = output.milestoneSummaries self.nextToken = output.nextToken @@ -7555,9 +7529,8 @@ public enum ListNotificationsOutputError: Swift.Error, Swift.Equatable { extension ListNotificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNotificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.notificationSummaries = output.notificationSummaries @@ -7716,9 +7689,8 @@ public enum ListShareInvitationsOutputError: Swift.Error, Swift.Equatable { extension ListShareInvitationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListShareInvitationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.shareInvitationSummaries = output.shareInvitationSummaries @@ -7832,9 +7804,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -7985,9 +7956,8 @@ public enum ListWorkloadSharesOutputError: Swift.Error, Swift.Equatable { extension ListWorkloadSharesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkloadSharesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workloadId = output.workloadId @@ -8156,9 +8126,8 @@ public enum ListWorkloadsOutputError: Swift.Error, Swift.Equatable { extension ListWorkloadsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWorkloadsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workloadSummaries = output.workloadSummaries @@ -8905,9 +8874,8 @@ extension WellArchitectedClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -8925,7 +8893,7 @@ extension ResourceNotFoundException { } /// The requested resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9023,9 +8991,8 @@ extension WellArchitectedClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -9047,7 +9014,7 @@ extension ServiceQuotaExceededException { } /// The user has reached their resource quota. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9527,9 +9494,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension ThrottlingException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -9547,7 +9513,7 @@ extension ThrottlingException { } /// Request was denied due to request throttling. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9896,9 +9862,8 @@ public enum UpdateAnswerOutputError: Swift.Error, Swift.Equatable { extension UpdateAnswerOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateAnswerOutputResponseBody = try responseDecoder.decode(responseBody: data) self.answer = output.answer self.lensAlias = output.lensAlias @@ -10175,9 +10140,8 @@ public enum UpdateLensReviewOutputError: Swift.Error, Swift.Equatable { extension UpdateLensReviewOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateLensReviewOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lensReview = output.lensReview self.workloadId = output.workloadId @@ -10316,9 +10280,8 @@ public enum UpdateShareInvitationOutputError: Swift.Error, Swift.Equatable { extension UpdateShareInvitationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateShareInvitationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.shareInvitation = output.shareInvitation } else { @@ -10739,9 +10702,8 @@ public enum UpdateWorkloadOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkloadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkloadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workload = output.workload } else { @@ -10878,9 +10840,8 @@ public enum UpdateWorkloadShareOutputError: Swift.Error, Swift.Equatable { extension UpdateWorkloadShareOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateWorkloadShareOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workloadId = output.workloadId self.workloadShare = output.workloadShare @@ -11048,9 +11009,8 @@ public struct UpgradeLensReviewOutputResponse: Swift.Equatable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fields = output.fields self.message = output.message @@ -11068,7 +11028,7 @@ extension ValidationException { } /// The user input is not valid. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWisdom/WisdomClient.swift b/Sources/Services/AWSWisdom/WisdomClient.swift index d97471ff9c3..31750fd2e13 100644 --- a/Sources/Services/AWSWisdom/WisdomClient.swift +++ b/Sources/Services/AWSWisdom/WisdomClient.swift @@ -208,6 +208,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssistant") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -231,7 +232,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -251,6 +252,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAssistantAssociation") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -274,7 +276,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -294,6 +296,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createContent") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -317,7 +320,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -345,6 +348,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createKnowledgeBase") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -368,7 +372,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +392,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSession") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -411,7 +416,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -431,6 +436,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssistant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -443,7 +449,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -463,6 +469,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAssistantAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -475,7 +482,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -495,6 +502,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -507,7 +515,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -527,6 +535,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteKnowledgeBase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -539,7 +548,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -559,6 +568,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssistant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -571,7 +581,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -591,6 +601,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAssistantAssociation") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -603,7 +614,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -623,6 +634,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -635,7 +647,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -655,6 +667,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getContentSummary") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -667,7 +680,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -687,6 +700,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getKnowledgeBase") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -699,7 +713,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -719,6 +733,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRecommendations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -732,7 +747,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -752,6 +767,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSession") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -784,6 +800,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssistantAssociations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -797,7 +814,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -817,6 +834,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAssistants") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -830,7 +848,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -850,6 +868,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listContents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -863,7 +882,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -883,6 +902,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listKnowledgeBases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -896,7 +916,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -916,6 +936,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -928,7 +949,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -948,6 +969,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "notifyRecommendationsReceived") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -963,7 +985,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -983,6 +1005,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "queryAssistant") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -998,7 +1021,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1018,6 +1041,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeKnowledgeBaseTemplateUri") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1030,7 +1054,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1050,6 +1074,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1066,7 +1091,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1086,6 +1111,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchSessions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1102,7 +1128,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1148,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startContentUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1137,7 +1164,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1157,6 +1184,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1172,7 +1200,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1192,6 +1220,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1205,7 +1234,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1225,6 +1254,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1240,7 +1270,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1260,6 +1290,7 @@ extension WisdomClient: WisdomClientProtocol { .withRegion(value: config.region) .withSigningName(value: "wisdom") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateKnowledgeBaseTemplateUri") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1275,7 +1306,7 @@ extension WisdomClient: WisdomClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWisdom/models/Models.swift b/Sources/Services/AWSWisdom/models/Models.swift index 525f592bb29..30b2b0b6941 100644 --- a/Sources/Services/AWSWisdom/models/Models.swift +++ b/Sources/Services/AWSWisdom/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// You do not have sufficient access to perform this action. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -777,9 +776,8 @@ extension WisdomClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -793,7 +791,7 @@ extension ConflictException { } /// The request could not be processed because of conflict in the current state of the resource. For example, if you're using a Create API (such as CreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1451,9 +1449,8 @@ public enum CreateAssistantAssociationOutputError: Swift.Error, Swift.Equatable extension CreateAssistantAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssistantAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assistantAssociation = output.assistantAssociation } else { @@ -1641,9 +1638,8 @@ public enum CreateAssistantOutputError: Swift.Error, Swift.Equatable { extension CreateAssistantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateAssistantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assistant = output.assistant } else { @@ -1865,9 +1861,8 @@ public enum CreateContentOutputError: Swift.Error, Swift.Equatable { extension CreateContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content } else { @@ -2079,9 +2074,8 @@ public enum CreateKnowledgeBaseOutputError: Swift.Error, Swift.Equatable { extension CreateKnowledgeBaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateKnowledgeBaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.knowledgeBase = output.knowledgeBase } else { @@ -2250,9 +2244,8 @@ public enum CreateSessionOutputError: Swift.Error, Swift.Equatable { extension CreateSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -2876,9 +2869,8 @@ public enum GetAssistantAssociationOutputError: Swift.Error, Swift.Equatable { extension GetAssistantAssociationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssistantAssociationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assistantAssociation = output.assistantAssociation } else { @@ -2974,9 +2966,8 @@ public enum GetAssistantOutputError: Swift.Error, Swift.Equatable { extension GetAssistantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAssistantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assistant = output.assistant } else { @@ -3080,9 +3071,8 @@ public enum GetContentOutputError: Swift.Error, Swift.Equatable { extension GetContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content } else { @@ -3186,9 +3176,8 @@ public enum GetContentSummaryOutputError: Swift.Error, Swift.Equatable { extension GetContentSummaryOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetContentSummaryOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentSummary = output.contentSummary } else { @@ -3284,9 +3273,8 @@ public enum GetKnowledgeBaseOutputError: Swift.Error, Swift.Equatable { extension GetKnowledgeBaseOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetKnowledgeBaseOutputResponseBody = try responseDecoder.decode(responseBody: data) self.knowledgeBase = output.knowledgeBase } else { @@ -3415,9 +3403,8 @@ public enum GetRecommendationsOutputError: Swift.Error, Swift.Equatable { extension GetRecommendationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetRecommendationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.recommendations = output.recommendations self.triggers = output.triggers @@ -3550,9 +3537,8 @@ public enum GetSessionOutputError: Swift.Error, Swift.Equatable { extension GetSessionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSessionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.session = output.session } else { @@ -4133,9 +4119,8 @@ public enum ListAssistantAssociationsOutputError: Swift.Error, Swift.Equatable { extension ListAssistantAssociationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssistantAssociationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assistantAssociationSummaries = output.assistantAssociationSummaries self.nextToken = output.nextToken @@ -4266,9 +4251,8 @@ public enum ListAssistantsOutputError: Swift.Error, Swift.Equatable { extension ListAssistantsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAssistantsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.assistantSummaries = output.assistantSummaries self.nextToken = output.nextToken @@ -4409,9 +4393,8 @@ public enum ListContentsOutputError: Swift.Error, Swift.Equatable { extension ListContentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListContentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentSummaries = output.contentSummaries self.nextToken = output.nextToken @@ -4542,9 +4525,8 @@ public enum ListKnowledgeBasesOutputError: Swift.Error, Swift.Equatable { extension ListKnowledgeBasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListKnowledgeBasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.knowledgeBaseSummaries = output.knowledgeBaseSummaries self.nextToken = output.nextToken @@ -4656,9 +4638,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -4853,9 +4834,8 @@ public enum NotifyRecommendationsReceivedOutputError: Swift.Error, Swift.Equatab extension NotifyRecommendationsReceivedOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NotifyRecommendationsReceivedOutputResponseBody = try responseDecoder.decode(responseBody: data) self.errors = output.errors self.recommendationIds = output.recommendationIds @@ -4922,9 +4902,8 @@ extension NotifyRecommendationsReceivedOutputResponseBody: Swift.Decodable { extension PreconditionFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PreconditionFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4938,7 +4917,7 @@ extension PreconditionFailedException { } /// The provided revisionId does not match, indicating the content has been modified since it was last read. -public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PreconditionFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5085,9 +5064,8 @@ public enum QueryAssistantOutputError: Swift.Error, Swift.Equatable { extension QueryAssistantOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: QueryAssistantOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.results = output.results @@ -5635,9 +5613,8 @@ extension WisdomClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -5653,7 +5630,7 @@ extension ResourceNotFoundException { } /// The specified resource does not exist. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5861,9 +5838,8 @@ public enum SearchContentOutputError: Swift.Error, Swift.Equatable { extension SearchContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.contentSummaries = output.contentSummaries self.nextToken = output.nextToken @@ -6077,9 +6053,8 @@ public enum SearchSessionsOutputError: Swift.Error, Swift.Equatable { extension SearchSessionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchSessionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.sessionSummaries = output.sessionSummaries @@ -6173,9 +6148,8 @@ extension WisdomClientTypes { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6189,7 +6163,7 @@ extension ServiceQuotaExceededException { } /// You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6508,9 +6482,8 @@ extension StartContentUploadOutputResponse: Swift.CustomDebugStringConvertible { extension StartContentUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartContentUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.headersToInclude = output.headersToInclude self.uploadId = output.uploadId @@ -6694,9 +6667,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -6712,7 +6684,7 @@ extension TooManyTagsException { } /// Amazon Connect Wisdom throws this exception if you have too many tags in your tag set. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7004,9 +6976,8 @@ public enum UpdateContentOutputError: Swift.Error, Swift.Equatable { extension UpdateContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateContentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.content = output.content } else { @@ -7127,9 +7098,8 @@ public enum UpdateKnowledgeBaseTemplateUriOutputError: Swift.Error, Swift.Equata extension UpdateKnowledgeBaseTemplateUriOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateKnowledgeBaseTemplateUriOutputResponseBody = try responseDecoder.decode(responseBody: data) self.knowledgeBase = output.knowledgeBase } else { @@ -7168,9 +7138,8 @@ extension UpdateKnowledgeBaseTemplateUriOutputResponseBody: Swift.Decodable { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7184,7 +7153,7 @@ extension ValidationException { } /// The input fails to satisfy the constraints specified by a service. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWorkDocs/WorkDocsClient.swift b/Sources/Services/AWSWorkDocs/WorkDocsClient.swift index e6edec57e4c..05d2001c509 100644 --- a/Sources/Services/AWSWorkDocs/WorkDocsClient.swift +++ b/Sources/Services/AWSWorkDocs/WorkDocsClient.swift @@ -208,6 +208,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "abortDocumentVersionUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "activateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "addResourcePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -290,7 +293,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -310,6 +313,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createComment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -326,7 +330,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -346,6 +350,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createCustomMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -399,7 +405,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -419,6 +425,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -435,7 +442,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -455,6 +462,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNotificationSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -470,7 +478,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -490,6 +498,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -506,7 +515,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -526,6 +535,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deactivateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -539,7 +549,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -559,6 +569,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteComment") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -572,7 +583,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -592,6 +603,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteCustomMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -606,7 +618,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -626,6 +638,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -639,7 +652,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -659,6 +672,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteDocumentVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -673,7 +687,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -693,6 +707,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -706,7 +721,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -726,6 +741,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFolderContents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -739,7 +755,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -759,6 +775,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteLabels") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -773,7 +790,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -793,6 +810,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNotificationSubscription") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -805,7 +823,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -825,6 +843,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -838,7 +857,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -858,6 +877,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeActivities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +892,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -892,6 +912,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeComments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -906,7 +927,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -926,6 +947,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDocumentVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -940,7 +962,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -960,6 +982,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFolderContents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -974,7 +997,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -994,6 +1017,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1008,7 +1032,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1028,6 +1052,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeNotificationSubscriptions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1041,7 +1066,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1061,6 +1086,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResourcePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1075,7 +1101,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1095,6 +1121,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeRootFolders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1109,7 +1136,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1129,6 +1156,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1143,7 +1171,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1163,6 +1191,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getCurrentUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1176,7 +1205,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1196,6 +1225,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1210,7 +1240,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1230,6 +1260,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocumentPath") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1244,7 +1275,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1264,6 +1295,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDocumentVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1278,7 +1310,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1298,6 +1330,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1312,7 +1345,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1332,6 +1365,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFolderPath") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1346,7 +1380,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1366,6 +1400,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1380,7 +1415,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1400,6 +1435,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "initiateDocumentVersionUpload") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1416,7 +1452,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1436,6 +1472,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeAllResourcePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1449,7 +1486,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1469,6 +1506,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "removeResourcePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1483,7 +1521,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1503,6 +1541,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDocumentVersions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1516,7 +1555,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1536,6 +1575,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "searchResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1552,7 +1592,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1572,6 +1612,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDocument") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1588,7 +1629,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1608,6 +1649,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDocumentVersion") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1624,7 +1666,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1644,6 +1686,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFolder") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1660,7 +1703,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1680,6 +1723,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workdocs") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1696,7 +1740,7 @@ extension WorkDocsClient: WorkDocsClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWorkDocs/models/Models.swift b/Sources/Services/AWSWorkDocs/models/Models.swift index 458710398bd..20abf757605 100644 --- a/Sources/Services/AWSWorkDocs/models/Models.swift +++ b/Sources/Services/AWSWorkDocs/models/Models.swift @@ -186,9 +186,8 @@ public enum ActivateUserOutputError: Swift.Error, Swift.Equatable { extension ActivateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ActivateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -596,9 +595,8 @@ public enum AddResourcePermissionsOutputError: Swift.Error, Swift.Equatable { extension AddResourcePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AddResourcePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.shareResults = output.shareResults } else { @@ -980,9 +978,8 @@ extension WorkDocsClientTypes { extension ConcurrentModificationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConcurrentModificationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -996,7 +993,7 @@ extension ConcurrentModificationException { } /// The resource hierarchy is changing. -public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConcurrentModificationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1032,9 +1029,8 @@ extension ConcurrentModificationExceptionBody: Swift.Decodable { extension ConflictingOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictingOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -1048,7 +1044,7 @@ extension ConflictingOperationException { } /// Another operation is in progress on the resource that conflicts with the current operation. -public struct ConflictingOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictingOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1304,9 +1300,8 @@ public enum CreateCommentOutputError: Swift.Error, Swift.Equatable { extension CreateCommentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateCommentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comment = output.comment } else { @@ -1612,9 +1607,8 @@ public enum CreateFolderOutputError: Swift.Error, Swift.Equatable { extension CreateFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata } else { @@ -1892,9 +1886,8 @@ public enum CreateNotificationSubscriptionOutputError: Swift.Error, Swift.Equata extension CreateNotificationSubscriptionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNotificationSubscriptionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.subscription = output.subscription } else { @@ -2117,9 +2110,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -2158,9 +2150,8 @@ extension CreateUserOutputResponseBody: Swift.Decodable { extension CustomMetadataLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CustomMetadataLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2174,7 +2165,7 @@ extension CustomMetadataLimitExceededException { } /// The limit has been reached on the number of custom properties for the specified resource. -public struct CustomMetadataLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct CustomMetadataLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2345,9 +2336,8 @@ public struct DeactivateUserOutputResponse: Swift.Equatable { extension DeactivatingLastSystemUserException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeactivatingLastSystemUserExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -2363,7 +2353,7 @@ extension DeactivatingLastSystemUserException { } /// The last user in the organization is being deactivated. -public struct DeactivatingLastSystemUserException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DeactivatingLastSystemUserException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3496,9 +3486,8 @@ public enum DescribeActivitiesOutputError: Swift.Error, Swift.Equatable { extension DescribeActivitiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeActivitiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.userActivities = output.userActivities @@ -3671,9 +3660,8 @@ public enum DescribeCommentsOutputError: Swift.Error, Swift.Equatable { extension DescribeCommentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCommentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.comments = output.comments self.marker = output.marker @@ -3858,9 +3846,8 @@ public enum DescribeDocumentVersionsOutputError: Swift.Error, Swift.Equatable { extension DescribeDocumentVersionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDocumentVersionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documentVersions = output.documentVersions self.marker = output.marker @@ -4057,9 +4044,8 @@ public enum DescribeFolderContentsOutputError: Swift.Error, Swift.Equatable { extension DescribeFolderContentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFolderContentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documents = output.documents self.folders = output.folders @@ -4250,9 +4236,8 @@ public enum DescribeGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.marker = output.marker @@ -4392,9 +4377,8 @@ public enum DescribeNotificationSubscriptionsOutputError: Swift.Error, Swift.Equ extension DescribeNotificationSubscriptionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeNotificationSubscriptionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.subscriptions = output.subscriptions @@ -4565,9 +4549,8 @@ public enum DescribeResourcePermissionsOutputError: Swift.Error, Swift.Equatable extension DescribeResourcePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourcePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.principals = output.principals @@ -4723,9 +4706,8 @@ public enum DescribeRootFoldersOutputError: Swift.Error, Swift.Equatable { extension DescribeRootFoldersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeRootFoldersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.folders = output.folders self.marker = output.marker @@ -4948,9 +4930,8 @@ public enum DescribeUsersOutputError: Swift.Error, Swift.Equatable { extension DescribeUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.marker = output.marker self.totalNumberOfUsers = output.totalNumberOfUsers @@ -5019,9 +5000,8 @@ extension DescribeUsersOutputResponseBody: Swift.Decodable { extension DocumentLockedForCommentsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DocumentLockedForCommentsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5035,7 +5015,7 @@ extension DocumentLockedForCommentsException { } /// This exception is thrown when the document is locked for comments and user tries to create or delete a comment on that document. -public struct DocumentLockedForCommentsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DocumentLockedForCommentsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5500,9 +5480,8 @@ extension WorkDocsClientTypes { extension DraftUploadOutOfSyncException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DraftUploadOutOfSyncExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5516,7 +5495,7 @@ extension DraftUploadOutOfSyncException { } /// This exception is thrown when a valid checkout ID is not presented on document version upload calls for a document that has been checked out from Web client. -public struct DraftUploadOutOfSyncException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DraftUploadOutOfSyncException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5552,9 +5531,8 @@ extension DraftUploadOutOfSyncExceptionBody: Swift.Decodable { extension EntityAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5568,7 +5546,7 @@ extension EntityAlreadyExistsException { } /// The resource already exists. -public struct EntityAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5604,9 +5582,8 @@ extension EntityAlreadyExistsExceptionBody: Swift.Decodable { extension EntityNotExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityNotExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.entityIds = output.entityIds self.message = output.message @@ -5622,7 +5599,7 @@ extension EntityNotExistsException { } /// The resource does not exist. -public struct EntityNotExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityNotExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5675,9 +5652,8 @@ extension EntityNotExistsExceptionBody: Swift.Decodable { extension FailedDependencyException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: FailedDependencyExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5691,7 +5667,7 @@ extension FailedDependencyException { } /// The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory. -public struct FailedDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct FailedDependencyException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6196,9 +6172,8 @@ public enum GetCurrentUserOutputError: Swift.Error, Swift.Equatable { extension GetCurrentUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetCurrentUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { @@ -6338,9 +6313,8 @@ public enum GetDocumentOutputError: Swift.Error, Swift.Equatable { extension GetDocumentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customMetadata = output.customMetadata self.metadata = output.metadata @@ -6511,9 +6485,8 @@ public enum GetDocumentPathOutputError: Swift.Error, Swift.Equatable { extension GetDocumentPathOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentPathOutputResponseBody = try responseDecoder.decode(responseBody: data) self.path = output.path } else { @@ -6669,9 +6642,8 @@ public enum GetDocumentVersionOutputError: Swift.Error, Swift.Equatable { extension GetDocumentVersionOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDocumentVersionOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customMetadata = output.customMetadata self.metadata = output.metadata @@ -6830,9 +6802,8 @@ public enum GetFolderOutputError: Swift.Error, Swift.Equatable { extension GetFolderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFolderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.customMetadata = output.customMetadata self.metadata = output.metadata @@ -7003,9 +6974,8 @@ public enum GetFolderPathOutputError: Swift.Error, Swift.Equatable { extension GetFolderPathOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetFolderPathOutputResponseBody = try responseDecoder.decode(responseBody: data) self.path = output.path } else { @@ -7157,9 +7127,8 @@ public enum GetResourcesOutputError: Swift.Error, Swift.Equatable { extension GetResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.documents = output.documents self.folders = output.folders @@ -7281,9 +7250,8 @@ extension WorkDocsClientTypes { extension IllegalUserStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: IllegalUserStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7297,7 +7265,7 @@ extension IllegalUserStateException { } /// The user is undergoing transfer of ownership. -public struct IllegalUserStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct IllegalUserStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7519,9 +7487,8 @@ public enum InitiateDocumentVersionUploadOutputError: Swift.Error, Swift.Equatab extension InitiateDocumentVersionUploadOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InitiateDocumentVersionUploadOutputResponseBody = try responseDecoder.decode(responseBody: data) self.metadata = output.metadata self.uploadMetadata = output.uploadMetadata @@ -7570,9 +7537,8 @@ extension InitiateDocumentVersionUploadOutputResponseBody: Swift.Decodable { extension InvalidArgumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidArgumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7586,7 +7552,7 @@ extension InvalidArgumentException { } /// The pagination marker or limit fields are not valid. -public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidArgumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7622,9 +7588,8 @@ extension InvalidArgumentExceptionBody: Swift.Decodable { extension InvalidCommentOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCommentOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7638,7 +7603,7 @@ extension InvalidCommentOperationException { } /// The requested operation is not allowed on the specified comment object. -public struct InvalidCommentOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCommentOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7674,9 +7639,8 @@ extension InvalidCommentOperationExceptionBody: Swift.Decodable { extension InvalidOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7690,7 +7654,7 @@ extension InvalidOperationException { } /// The operation is invalid. -public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7726,9 +7690,8 @@ extension InvalidOperationExceptionBody: Swift.Decodable { extension InvalidPasswordException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPasswordExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7742,7 +7705,7 @@ extension InvalidPasswordException { } /// The password is invalid. -public struct InvalidPasswordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPasswordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7897,9 +7860,8 @@ extension WorkDocsClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7913,7 +7875,7 @@ extension LimitExceededException { } /// The maximum of 100,000 files and folders under the parent folder has been exceeded. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8436,9 +8398,8 @@ extension WorkDocsClientTypes { extension ProhibitedStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ProhibitedStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8452,7 +8413,7 @@ extension ProhibitedStateException { } /// The specified document version is not in the INITIALIZED state. -public struct ProhibitedStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ProhibitedStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8689,9 +8650,8 @@ public struct RemoveResourcePermissionOutputResponse: Swift.Equatable { extension RequestedEntityTooLargeException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RequestedEntityTooLargeExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8705,7 +8665,7 @@ extension RequestedEntityTooLargeException { } /// The response is too large to return. The request must include a filter to reduce the size of the response. -public struct RequestedEntityTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RequestedEntityTooLargeException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8741,9 +8701,8 @@ extension RequestedEntityTooLargeExceptionBody: Swift.Decodable { extension ResourceAlreadyCheckedOutException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyCheckedOutExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8757,7 +8716,7 @@ extension ResourceAlreadyCheckedOutException { } /// The resource is already checked out. -public struct ResourceAlreadyCheckedOutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyCheckedOutException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9789,9 +9748,8 @@ public enum SearchResourcesOutputError: Swift.Error, Swift.Equatable { extension SearchResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: SearchResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.items = output.items self.marker = output.marker @@ -9894,9 +9852,8 @@ extension WorkDocsClientTypes { extension ServiceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9910,7 +9867,7 @@ extension ServiceUnavailableException { } /// One or more of the dependencies is unavailable. -public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10158,9 +10115,8 @@ extension WorkDocsClientTypes { extension StorageLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StorageLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10174,7 +10130,7 @@ extension StorageLimitExceededException { } /// The storage limit has been exceeded. -public struct StorageLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10210,9 +10166,8 @@ extension StorageLimitExceededExceptionBody: Swift.Decodable { extension StorageLimitWillExceedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StorageLimitWillExceedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10226,7 +10181,7 @@ extension StorageLimitWillExceedException { } /// The storage limit will be exceeded. -public struct StorageLimitWillExceedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct StorageLimitWillExceedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10455,9 +10410,8 @@ extension WorkDocsClientTypes { extension TooManyLabelsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyLabelsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10471,7 +10425,7 @@ extension TooManyLabelsException { } /// The limit has been reached on the number of labels for the specified resource. -public struct TooManyLabelsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyLabelsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10507,9 +10461,8 @@ extension TooManyLabelsExceptionBody: Swift.Decodable { extension TooManySubscriptionsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManySubscriptionsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10523,7 +10476,7 @@ extension TooManySubscriptionsException { } /// You've reached the limit on the number of subscriptions for the WorkDocs instance. -public struct TooManySubscriptionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManySubscriptionsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10559,9 +10512,8 @@ extension TooManySubscriptionsExceptionBody: Swift.Decodable { extension UnauthorizedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.code = output.code self.message = output.message @@ -10577,7 +10529,7 @@ extension UnauthorizedOperationException { } /// The operation is not permitted. -public struct UnauthorizedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10620,9 +10572,8 @@ extension UnauthorizedOperationExceptionBody: Swift.Decodable { extension UnauthorizedResourceAccessException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedResourceAccessExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10636,7 +10587,7 @@ extension UnauthorizedResourceAccessException { } /// The caller does not have access to perform the action on the resource. -public struct UnauthorizedResourceAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedResourceAccessException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11280,9 +11231,8 @@ public enum UpdateUserOutputError: Swift.Error, Swift.Equatable { extension UpdateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.user = output.user } else { diff --git a/Sources/Services/AWSWorkLink/WorkLinkClient.swift b/Sources/Services/AWSWorkLink/WorkLinkClient.swift index 85343dcb4fd..2019b9ba7c0 100644 --- a/Sources/Services/AWSWorkLink/WorkLinkClient.swift +++ b/Sources/Services/AWSWorkLink/WorkLinkClient.swift @@ -209,6 +209,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -245,6 +246,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWebsiteAuthorizationProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -281,6 +283,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateWebsiteCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -317,6 +320,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -353,6 +357,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteFleet") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -389,6 +394,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAuditStreamConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -425,6 +431,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeCompanyNetworkConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -461,6 +468,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDevice") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -497,6 +505,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDevicePolicyConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -533,6 +542,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -548,7 +558,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -569,6 +579,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeFleetMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -584,7 +595,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -605,6 +616,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIdentityProviderConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -620,7 +632,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -641,6 +653,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWebsiteCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -656,7 +669,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -677,6 +690,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -692,7 +706,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -713,6 +727,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWebsiteAuthorizationProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -728,7 +743,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -749,6 +764,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateWebsiteCertificateAuthority") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -764,7 +780,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -785,6 +801,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDevices") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -800,7 +817,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -821,6 +838,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -836,7 +854,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -857,6 +875,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listFleets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -872,7 +891,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -893,6 +912,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -905,7 +925,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -926,6 +946,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWebsiteAuthorizationProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -941,7 +962,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -962,6 +983,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listWebsiteCertificateAuthorities") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -977,7 +999,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -998,6 +1020,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreDomainAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1013,7 +1036,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1034,6 +1057,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeDomainAccess") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1049,7 +1073,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1070,6 +1094,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "signOutUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1085,7 +1110,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1106,6 +1131,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1121,7 +1147,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1142,6 +1168,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1155,7 +1182,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1176,6 +1203,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAuditStreamConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1191,7 +1219,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1212,6 +1240,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateCompanyNetworkConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1227,7 +1256,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1248,6 +1277,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDevicePolicyConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1263,7 +1293,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1284,6 +1314,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDomainMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1299,7 +1330,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1320,6 +1351,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateFleetMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1335,7 +1367,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1356,6 +1388,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { .withRegion(value: config.region) .withSigningName(value: "worklink") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIdentityProviderConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1371,7 +1404,7 @@ extension WorkLinkClient: WorkLinkClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWorkLink/models/Models.swift b/Sources/Services/AWSWorkLink/models/Models.swift index 39b5f639061..78b5bfa6b27 100644 --- a/Sources/Services/AWSWorkLink/models/Models.swift +++ b/Sources/Services/AWSWorkLink/models/Models.swift @@ -237,9 +237,8 @@ public enum AssociateWebsiteAuthorizationProviderOutputError: Swift.Error, Swift extension AssociateWebsiteAuthorizationProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateWebsiteAuthorizationProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.authorizationProviderId = output.authorizationProviderId } else { @@ -383,9 +382,8 @@ public enum AssociateWebsiteCertificateAuthorityOutputError: Swift.Error, Swift. extension AssociateWebsiteCertificateAuthorityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateWebsiteCertificateAuthorityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.websiteCaId = output.websiteCaId } else { @@ -581,9 +579,8 @@ public enum CreateFleetOutputError: Swift.Error, Swift.Equatable { extension CreateFleetOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateFleetOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetArn = output.fleetArn } else { @@ -788,9 +785,8 @@ public enum DescribeAuditStreamConfigurationOutputError: Swift.Error, Swift.Equa extension DescribeAuditStreamConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAuditStreamConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.auditStreamArn = output.auditStreamArn } else { @@ -907,9 +903,8 @@ public enum DescribeCompanyNetworkConfigurationOutputError: Swift.Error, Swift.E extension DescribeCompanyNetworkConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeCompanyNetworkConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.securityGroupIds = output.securityGroupIds self.subnetIds = output.subnetIds @@ -1077,9 +1072,8 @@ public enum DescribeDeviceOutputError: Swift.Error, Swift.Equatable { extension DescribeDeviceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDeviceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.firstAccessedTime = output.firstAccessedTime self.lastAccessedTime = output.lastAccessedTime @@ -1276,9 +1270,8 @@ public enum DescribeDevicePolicyConfigurationOutputError: Swift.Error, Swift.Equ extension DescribeDevicePolicyConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDevicePolicyConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceCaCertificate = output.deviceCaCertificate } else { @@ -1408,9 +1401,8 @@ public enum DescribeDomainOutputError: Swift.Error, Swift.Equatable { extension DescribeDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.acmCertificateArn = output.acmCertificateArn self.createdTime = output.createdTime @@ -1567,9 +1559,8 @@ public enum DescribeFleetMetadataOutputError: Swift.Error, Swift.Equatable { extension DescribeFleetMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeFleetMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.companyCode = output.companyCode self.createdTime = output.createdTime @@ -1765,9 +1756,8 @@ public enum DescribeIdentityProviderConfigurationOutputError: Swift.Error, Swift extension DescribeIdentityProviderConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIdentityProviderConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviderSamlMetadata = output.identityProviderSamlMetadata self.identityProviderType = output.identityProviderType @@ -1917,9 +1907,8 @@ public enum DescribeWebsiteCertificateAuthorityOutputError: Swift.Error, Swift.E extension DescribeWebsiteCertificateAuthorityOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWebsiteCertificateAuthorityOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate self.createdTime = output.createdTime @@ -2668,9 +2657,8 @@ extension WorkLinkClientTypes { extension InternalServerErrorException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerErrorExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2684,7 +2672,7 @@ extension InternalServerErrorException { } /// The service is temporarily unavailable. -public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerErrorException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2720,9 +2708,8 @@ extension InternalServerErrorExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -2736,7 +2723,7 @@ extension InvalidRequestException { } /// The request is not valid. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -2874,9 +2861,8 @@ public enum ListDevicesOutputError: Swift.Error, Swift.Equatable { extension ListDevicesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDevicesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.devices = output.devices self.nextToken = output.nextToken @@ -3036,9 +3022,8 @@ public enum ListDomainsOutputError: Swift.Error, Swift.Equatable { extension ListDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.domains = output.domains self.nextToken = output.nextToken @@ -3183,9 +3168,8 @@ public enum ListFleetsOutputError: Swift.Error, Swift.Equatable { extension ListFleetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListFleetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.fleetSummaryList = output.fleetSummaryList self.nextToken = output.nextToken @@ -3296,9 +3280,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -3448,9 +3431,8 @@ public enum ListWebsiteAuthorizationProvidersOutputError: Swift.Error, Swift.Equ extension ListWebsiteAuthorizationProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWebsiteAuthorizationProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.websiteAuthorizationProviders = output.websiteAuthorizationProviders @@ -3608,9 +3590,8 @@ public enum ListWebsiteCertificateAuthoritiesOutputError: Swift.Error, Swift.Equ extension ListWebsiteCertificateAuthoritiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListWebsiteCertificateAuthoritiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.websiteCertificateAuthorities = output.websiteCertificateAuthorities @@ -3668,9 +3649,8 @@ extension ListWebsiteCertificateAuthoritiesOutputResponseBody: Swift.Decodable { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3684,7 +3664,7 @@ extension ResourceAlreadyExistsException { } /// The resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -3720,9 +3700,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -3736,7 +3715,7 @@ extension ResourceNotFoundException { } /// The requested resource was not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4175,9 +4154,8 @@ public struct TagResourceOutputResponse: Swift.Equatable { extension TooManyRequestsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyRequestsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4191,7 +4169,7 @@ extension TooManyRequestsException { } /// The number of requests exceeds the limit. -public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyRequestsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4227,9 +4205,8 @@ extension TooManyRequestsExceptionBody: Swift.Decodable { extension UnauthorizedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnauthorizedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4243,7 +4220,7 @@ extension UnauthorizedException { } /// You are not authorized to perform this action. -public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnauthorizedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWorkMail/WorkMailClient.swift b/Sources/Services/AWSWorkMail/WorkMailClient.swift index 0833dabc76c..05316a06e7d 100644 --- a/Sources/Services/AWSWorkMail/WorkMailClient.swift +++ b/Sources/Services/AWSWorkMail/WorkMailClient.swift @@ -208,6 +208,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateDelegateToResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateMemberToGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "assumeImpersonationRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "cancelMailboxExportJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -340,7 +344,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -360,6 +364,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -376,7 +381,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -396,6 +401,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createAvailabilityConfiguration") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -420,7 +426,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -440,6 +446,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -456,7 +463,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -476,6 +483,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createImpersonationRole") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -500,7 +508,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +528,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createMobileDeviceAccessRule") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -544,7 +553,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -564,6 +573,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createOrganization") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -588,7 +598,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -608,6 +618,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -624,7 +635,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -644,6 +655,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -660,7 +672,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -680,6 +692,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAccessControlRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -696,7 +709,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -716,6 +729,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -732,7 +746,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -752,6 +766,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteAvailabilityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -768,7 +783,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -788,6 +803,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteEmailMonitoringConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -804,7 +820,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -824,6 +840,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -840,7 +857,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -860,6 +877,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteImpersonationRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -876,7 +894,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -896,6 +914,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMailboxPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -912,7 +931,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -932,6 +951,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMobileDeviceAccessOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -948,7 +968,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -968,6 +988,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteMobileDeviceAccessRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -984,7 +1005,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1004,6 +1025,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteOrganization") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1028,7 +1050,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1048,6 +1070,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1064,7 +1087,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1084,6 +1107,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteRetentionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1100,7 +1124,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1120,6 +1144,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1136,7 +1161,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1156,6 +1181,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterFromWorkMail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1172,7 +1198,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1192,6 +1218,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterMailDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1208,7 +1235,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1228,6 +1255,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeEmailMonitoringConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1244,7 +1272,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1264,6 +1292,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1280,7 +1309,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1300,6 +1329,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeInboundDmarcSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1316,7 +1346,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1336,6 +1366,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeMailboxExportJob") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1352,7 +1383,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1372,6 +1403,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeOrganization") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1388,7 +1420,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1408,6 +1440,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1424,7 +1457,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1444,6 +1477,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeUser") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1460,7 +1494,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1480,6 +1514,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateDelegateFromResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1496,7 +1531,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1516,6 +1551,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateMemberFromGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1532,7 +1568,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1552,6 +1588,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getAccessControlEffect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1568,7 +1605,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1588,6 +1625,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getDefaultRetentionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1604,7 +1642,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1624,6 +1662,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImpersonationRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1640,7 +1679,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1660,6 +1699,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getImpersonationRoleEffect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1676,7 +1716,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1696,6 +1736,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMailDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1712,7 +1753,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1732,6 +1773,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMailboxDetails") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1748,7 +1790,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1768,6 +1810,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMobileDeviceAccessEffect") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1784,7 +1827,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1804,6 +1847,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getMobileDeviceAccessOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1820,7 +1864,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1840,6 +1884,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAccessControlRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1856,7 +1901,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1876,6 +1921,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1892,7 +1938,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1912,6 +1958,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailabilityConfigurations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1928,7 +1975,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1948,6 +1995,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroupMembers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1964,7 +2012,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1984,6 +2032,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2000,7 +2049,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2020,6 +2069,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listImpersonationRoles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2036,7 +2086,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2056,6 +2106,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMailDomains") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2072,7 +2123,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2092,6 +2143,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMailboxExportJobs") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2108,7 +2160,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2128,6 +2180,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMailboxPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2144,7 +2197,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2164,6 +2217,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMobileDeviceAccessOverrides") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2180,7 +2234,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2200,6 +2254,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listMobileDeviceAccessRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2216,7 +2271,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2236,6 +2291,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listOrganizations") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2252,7 +2308,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2272,6 +2328,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourceDelegates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2288,7 +2345,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2308,6 +2365,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResources") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2324,7 +2382,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2344,6 +2402,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2360,7 +2419,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2380,6 +2439,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUsers") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2396,7 +2456,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2416,6 +2476,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putAccessControlRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2432,7 +2493,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2452,6 +2513,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEmailMonitoringConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2468,7 +2530,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2488,6 +2550,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putInboundDmarcSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2504,7 +2567,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2524,6 +2587,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMailboxPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2540,7 +2604,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2560,6 +2624,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putMobileDeviceAccessOverride") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2576,7 +2641,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2596,6 +2661,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRetentionPolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2612,7 +2678,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2632,6 +2698,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerMailDomain") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2656,7 +2723,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2676,6 +2743,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerToWorkMail") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2692,7 +2760,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2712,6 +2780,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "resetPassword") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2728,7 +2797,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2748,6 +2817,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startMailboxExportJob") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -2772,7 +2842,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2792,6 +2862,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2808,7 +2879,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2828,6 +2899,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "testAvailabilityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2844,7 +2916,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2864,6 +2936,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2880,7 +2953,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2900,6 +2973,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateAvailabilityConfiguration") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2916,7 +2990,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2936,6 +3010,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateDefaultMailDomain") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2952,7 +3027,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2972,6 +3047,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateImpersonationRole") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2988,7 +3064,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3008,6 +3084,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMailboxQuota") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3024,7 +3101,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3044,6 +3121,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateMobileDeviceAccessRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3060,7 +3138,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3080,6 +3158,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePrimaryEmailAddress") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3096,7 +3175,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -3116,6 +3195,7 @@ extension WorkMailClient: WorkMailClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmail") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -3132,7 +3212,7 @@ extension WorkMailClient: WorkMailClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWorkMail/models/Models.swift b/Sources/Services/AWSWorkMail/models/Models.swift index 393888964b4..131f41bc6ae 100644 --- a/Sources/Services/AWSWorkMail/models/Models.swift +++ b/Sources/Services/AWSWorkMail/models/Models.swift @@ -642,9 +642,8 @@ public enum AssumeImpersonationRoleOutputError: Swift.Error, Swift.Equatable { extension AssumeImpersonationRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssumeImpersonationRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.expiresIn = output.expiresIn self.token = output.token @@ -1333,9 +1332,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupId = output.groupId } else { @@ -1529,9 +1527,8 @@ public enum CreateImpersonationRoleOutputError: Swift.Error, Swift.Equatable { extension CreateImpersonationRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateImpersonationRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.impersonationRoleId = output.impersonationRoleId } else { @@ -1888,9 +1885,8 @@ public enum CreateMobileDeviceAccessRuleOutputError: Swift.Error, Swift.Equatabl extension CreateMobileDeviceAccessRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateMobileDeviceAccessRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mobileDeviceAccessRuleId = output.mobileDeviceAccessRuleId } else { @@ -2079,9 +2075,8 @@ public enum CreateOrganizationOutputError: Swift.Error, Swift.Equatable { extension CreateOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationId = output.organizationId } else { @@ -2228,9 +2223,8 @@ public enum CreateResourceOutputError: Swift.Error, Swift.Equatable { extension CreateResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourceId = output.resourceId } else { @@ -2399,9 +2393,8 @@ public enum CreateUserOutputError: Swift.Error, Swift.Equatable { extension CreateUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userId = output.userId } else { @@ -3505,9 +3498,8 @@ public enum DeleteOrganizationOutputError: Swift.Error, Swift.Equatable { extension DeleteOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.organizationId = output.organizationId self.state = output.state @@ -4135,9 +4127,8 @@ public enum DescribeEmailMonitoringConfigurationOutputError: Swift.Error, Swift. extension DescribeEmailMonitoringConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeEmailMonitoringConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.logGroupArn = output.logGroupArn self.roleArn = output.roleArn @@ -4275,9 +4266,8 @@ public enum DescribeGroupOutputError: Swift.Error, Swift.Equatable { extension DescribeGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disabledDate = output.disabledDate self.email = output.email @@ -4438,9 +4428,8 @@ public enum DescribeInboundDmarcSettingsOutputError: Swift.Error, Swift.Equatabl extension DescribeInboundDmarcSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeInboundDmarcSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.enforced = output.enforced } else { @@ -4568,9 +4557,8 @@ public enum DescribeMailboxExportJobOutputError: Swift.Error, Swift.Equatable { extension DescribeMailboxExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeMailboxExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.endTime = output.endTime @@ -4791,9 +4779,8 @@ public enum DescribeOrganizationOutputError: Swift.Error, Swift.Equatable { extension DescribeOrganizationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeOrganizationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.alias = output.alias self.arn = output.arn @@ -5001,9 +4988,8 @@ public enum DescribeResourceOutputError: Swift.Error, Swift.Equatable { extension DescribeResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bookingOptions = output.bookingOptions self.disabledDate = output.disabledDate @@ -5201,9 +5187,8 @@ public enum DescribeUserOutputError: Swift.Error, Swift.Equatable { extension DescribeUserOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeUserOutputResponseBody = try responseDecoder.decode(responseBody: data) self.disabledDate = output.disabledDate self.displayName = output.displayName @@ -5312,9 +5297,8 @@ extension DescribeUserOutputResponseBody: Swift.Decodable { extension DirectoryInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5328,7 +5312,7 @@ extension DirectoryInUseException { } /// The directory is already in use by another WorkMail organization in the same account and Region. -public struct DirectoryInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5364,9 +5348,8 @@ extension DirectoryInUseExceptionBody: Swift.Decodable { extension DirectoryServiceAuthenticationFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryServiceAuthenticationFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5380,7 +5363,7 @@ extension DirectoryServiceAuthenticationFailedException { } /// The directory service doesn't recognize the credentials supplied by WorkMail. -public struct DirectoryServiceAuthenticationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryServiceAuthenticationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5416,9 +5399,8 @@ extension DirectoryServiceAuthenticationFailedExceptionBody: Swift.Decodable { extension DirectoryUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DirectoryUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5432,7 +5414,7 @@ extension DirectoryUnavailableException { } /// The directory is unavailable. It might be located in another Region or deleted. -public struct DirectoryUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct DirectoryUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5837,9 +5819,8 @@ extension WorkMailClientTypes { extension EmailAddressInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EmailAddressInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5853,7 +5834,7 @@ extension EmailAddressInUseException { } /// The email address that you're trying to assign is already created for a different user, group, or resource. -public struct EmailAddressInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EmailAddressInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5889,9 +5870,8 @@ extension EmailAddressInUseExceptionBody: Swift.Decodable { extension EntityAlreadyRegisteredException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityAlreadyRegisteredExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5905,7 +5885,7 @@ extension EntityAlreadyRegisteredException { } /// The user, group, or resource that you're trying to register is already registered. -public struct EntityAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityAlreadyRegisteredException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5941,9 +5921,8 @@ extension EntityAlreadyRegisteredExceptionBody: Swift.Decodable { extension EntityNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5957,7 +5936,7 @@ extension EntityNotFoundException { } /// The identifier supplied for the user, group, or resource does not exist in your organization. -public struct EntityNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6028,9 +6007,8 @@ extension WorkMailClientTypes { extension EntityStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: EntityStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6044,7 +6022,7 @@ extension EntityStateException { } /// You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user. -public struct EntityStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct EntityStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6369,9 +6347,8 @@ public enum GetAccessControlEffectOutputError: Swift.Error, Swift.Equatable { extension GetAccessControlEffectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetAccessControlEffectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.effect = output.effect self.matchedRules = output.matchedRules @@ -6505,9 +6482,8 @@ public enum GetDefaultRetentionPolicyOutputError: Swift.Error, Swift.Equatable { extension GetDefaultRetentionPolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetDefaultRetentionPolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.description = output.description self.folderConfigurations = output.folderConfigurations @@ -6697,9 +6673,8 @@ public enum GetImpersonationRoleEffectOutputError: Swift.Error, Swift.Equatable extension GetImpersonationRoleEffectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImpersonationRoleEffectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.effect = output.effect self.matchedRules = output.matchedRules @@ -6856,9 +6831,8 @@ public enum GetImpersonationRoleOutputError: Swift.Error, Swift.Equatable { extension GetImpersonationRoleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetImpersonationRoleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dateCreated = output.dateCreated self.dateModified = output.dateModified @@ -7055,9 +7029,8 @@ public enum GetMailDomainOutputError: Swift.Error, Swift.Equatable { extension GetMailDomainOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMailDomainOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dkimVerificationStatus = output.dkimVerificationStatus self.isDefault = output.isDefault @@ -7232,9 +7205,8 @@ public enum GetMailboxDetailsOutputError: Swift.Error, Swift.Equatable { extension GetMailboxDetailsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMailboxDetailsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mailboxQuota = output.mailboxQuota self.mailboxSize = output.mailboxSize @@ -7405,9 +7377,8 @@ public enum GetMobileDeviceAccessEffectOutputError: Swift.Error, Swift.Equatable extension GetMobileDeviceAccessEffectOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMobileDeviceAccessEffectOutputResponseBody = try responseDecoder.decode(responseBody: data) self.effect = output.effect self.matchedRules = output.matchedRules @@ -7575,9 +7546,8 @@ public enum GetMobileDeviceAccessOverrideOutputError: Swift.Error, Swift.Equatab extension GetMobileDeviceAccessOverrideOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetMobileDeviceAccessOverrideOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dateCreated = output.dateCreated self.dateModified = output.dateModified @@ -8014,9 +7984,8 @@ extension WorkMailClientTypes { extension InvalidConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8030,7 +7999,7 @@ extension InvalidConfigurationException { } /// The configuration for a resource isn't valid. A resource must either be able to auto-respond to requests or have at least one delegate associated that can do so on its behalf. -public struct InvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8066,9 +8035,8 @@ extension InvalidConfigurationExceptionBody: Swift.Decodable { extension InvalidCustomSesConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidCustomSesConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8082,7 +8050,7 @@ extension InvalidCustomSesConfigurationException { } /// You SES configuration has customizations that WorkMail cannot save. The error message lists the invalid setting. For examples of invalid settings, refer to [CreateReceiptRule](https://docs.aws.amazon.com/ses/latest/APIReference/API_CreateReceiptRule.html). -public struct InvalidCustomSesConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidCustomSesConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8118,9 +8086,8 @@ extension InvalidCustomSesConfigurationExceptionBody: Swift.Decodable { extension InvalidParameterException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8134,7 +8101,7 @@ extension InvalidParameterException { } /// One or more of the input parameters don't match the service's restrictions. -public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8170,9 +8137,8 @@ extension InvalidParameterExceptionBody: Swift.Decodable { extension InvalidPasswordException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPasswordExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8186,7 +8152,7 @@ extension InvalidPasswordException { } /// The supplied password doesn't match the minimum security constraints, such as length or use of special characters. -public struct InvalidPasswordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPasswordException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8258,9 +8224,8 @@ extension WorkMailClientTypes { extension LimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8274,7 +8239,7 @@ extension LimitExceededException { } /// The request exceeds the limit of the resource. -public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8382,9 +8347,8 @@ public enum ListAccessControlRulesOutputError: Swift.Error, Swift.Equatable { extension ListAccessControlRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAccessControlRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rules = output.rules } else { @@ -8547,9 +8511,8 @@ public enum ListAliasesOutputError: Swift.Error, Swift.Equatable { extension ListAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliases = output.aliases self.nextToken = output.nextToken @@ -8703,9 +8666,8 @@ public enum ListAvailabilityConfigurationsOutputError: Swift.Error, Swift.Equata extension ListAvailabilityConfigurationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailabilityConfigurationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.availabilityConfigurations = output.availabilityConfigurations self.nextToken = output.nextToken @@ -8878,9 +8840,8 @@ public enum ListGroupMembersOutputError: Swift.Error, Swift.Equatable { extension ListGroupMembersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupMembersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.members = output.members self.nextToken = output.nextToken @@ -9038,9 +8999,8 @@ public enum ListGroupsOutputError: Swift.Error, Swift.Equatable { extension ListGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.nextToken = output.nextToken @@ -9196,9 +9156,8 @@ public enum ListImpersonationRolesOutputError: Swift.Error, Swift.Equatable { extension ListImpersonationRolesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListImpersonationRolesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.roles = output.roles @@ -9354,9 +9313,8 @@ public enum ListMailDomainsOutputError: Swift.Error, Swift.Equatable { extension ListMailDomainsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMailDomainsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.mailDomains = output.mailDomains self.nextToken = output.nextToken @@ -9512,9 +9470,8 @@ public enum ListMailboxExportJobsOutputError: Swift.Error, Swift.Equatable { extension ListMailboxExportJobsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMailboxExportJobsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobs = output.jobs self.nextToken = output.nextToken @@ -9685,9 +9642,8 @@ public enum ListMailboxPermissionsOutputError: Swift.Error, Swift.Equatable { extension ListMailboxPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMailboxPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.permissions = output.permissions @@ -9875,9 +9831,8 @@ public enum ListMobileDeviceAccessOverridesOutputError: Swift.Error, Swift.Equat extension ListMobileDeviceAccessOverridesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMobileDeviceAccessOverridesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.overrides = output.overrides @@ -10009,9 +9964,8 @@ public enum ListMobileDeviceAccessRulesOutputError: Swift.Error, Swift.Equatable extension ListMobileDeviceAccessRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListMobileDeviceAccessRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rules = output.rules } else { @@ -10140,9 +10094,8 @@ public enum ListOrganizationsOutputError: Swift.Error, Swift.Equatable { extension ListOrganizationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListOrganizationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.organizationSummaries = output.organizationSummaries @@ -10315,9 +10268,8 @@ public enum ListResourceDelegatesOutputError: Swift.Error, Swift.Equatable { extension ListResourceDelegatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourceDelegatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.delegates = output.delegates self.nextToken = output.nextToken @@ -10473,9 +10425,8 @@ public enum ListResourcesOutputError: Swift.Error, Swift.Equatable { extension ListResourcesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resources = output.resources @@ -10603,9 +10554,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -10751,9 +10701,8 @@ public enum ListUsersOutputError: Swift.Error, Swift.Equatable { extension ListUsersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUsersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.users = output.users @@ -10811,9 +10760,8 @@ extension ListUsersOutputResponseBody: Swift.Decodable { extension MailDomainInUseException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MailDomainInUseExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10827,7 +10775,7 @@ extension MailDomainInUseException { } /// The domain you're trying to change is in use by another user or organization in your account. See the error message for details. -public struct MailDomainInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MailDomainInUseException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10863,9 +10811,8 @@ extension MailDomainInUseExceptionBody: Swift.Decodable { extension MailDomainNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MailDomainNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10879,7 +10826,7 @@ extension MailDomainNotFoundException { } /// The domain specified is not found in your organization. -public struct MailDomainNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MailDomainNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10915,9 +10862,8 @@ extension MailDomainNotFoundExceptionBody: Swift.Decodable { extension MailDomainStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MailDomainStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10931,7 +10877,7 @@ extension MailDomainStateException { } /// After a domain has been added to the organization, it must be verified. The domain is not yet verified. -public struct MailDomainStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MailDomainStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11705,9 +11651,8 @@ extension WorkMailClientTypes { extension NameAvailabilityException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: NameAvailabilityExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11721,7 +11666,7 @@ extension NameAvailabilityException { } /// The user, group, or resource name isn't unique in WorkMail. -public struct NameAvailabilityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct NameAvailabilityException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11757,9 +11702,8 @@ extension NameAvailabilityExceptionBody: Swift.Decodable { extension OrganizationNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11773,7 +11717,7 @@ extension OrganizationNotFoundException { } /// An operation received a valid organization identifier that either doesn't belong or exist in the system. -public struct OrganizationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11809,9 +11753,8 @@ extension OrganizationNotFoundExceptionBody: Swift.Decodable { extension OrganizationStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OrganizationStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11825,7 +11768,7 @@ extension OrganizationStateException { } /// The organization must have a valid state to perform certain operations on the organization or its members. -public struct OrganizationStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OrganizationStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13290,9 +13233,8 @@ public struct RegisterToWorkMailOutputResponse: Swift.Equatable { extension ReservedNameException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ReservedNameExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13306,7 +13248,7 @@ extension ReservedNameException { } /// This user, group, or resource name is not allowed in WorkMail. -public struct ReservedNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ReservedNameException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13564,9 +13506,8 @@ extension WorkMailClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13580,7 +13521,7 @@ extension ResourceNotFoundException { } /// The resource cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13851,9 +13792,8 @@ public enum StartMailboxExportJobOutputError: Swift.Error, Swift.Equatable { extension StartMailboxExportJobOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartMailboxExportJobOutputResponseBody = try responseDecoder.decode(responseBody: data) self.jobId = output.jobId } else { @@ -14160,9 +14100,8 @@ public enum TestAvailabilityConfigurationOutputError: Swift.Error, Swift.Equatab extension TestAvailabilityConfigurationOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TestAvailabilityConfigurationOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failureReason = output.failureReason self.testPassed = output.testPassed @@ -14211,9 +14150,8 @@ extension TestAvailabilityConfigurationOutputResponseBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14227,7 +14165,7 @@ extension TooManyTagsException { } /// The resource can have up to 50 user-applied tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -14263,9 +14201,8 @@ extension TooManyTagsExceptionBody: Swift.Decodable { extension UnsupportedOperationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedOperationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -14279,7 +14216,7 @@ extension UnsupportedOperationException { } /// You can't perform a write operation against a read-only directory. -public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedOperationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWorkMailMessageFlow/WorkMailMessageFlowClient.swift b/Sources/Services/AWSWorkMailMessageFlow/WorkMailMessageFlowClient.swift index 8e53809a857..0985c9c72ab 100644 --- a/Sources/Services/AWSWorkMailMessageFlow/WorkMailMessageFlowClient.swift +++ b/Sources/Services/AWSWorkMailMessageFlow/WorkMailMessageFlowClient.swift @@ -208,6 +208,7 @@ extension WorkMailMessageFlowClient: WorkMailMessageFlowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmailmessageflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getRawMessageContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -220,7 +221,7 @@ extension WorkMailMessageFlowClient: WorkMailMessageFlowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -240,6 +241,7 @@ extension WorkMailMessageFlowClient: WorkMailMessageFlowClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workmailmessageflow") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putRawMessageContent") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -255,7 +257,7 @@ extension WorkMailMessageFlowClient: WorkMailMessageFlowClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWorkMailMessageFlow/models/Models.swift b/Sources/Services/AWSWorkMailMessageFlow/models/Models.swift index 62c5e98af5c..9f9bacc723b 100644 --- a/Sources/Services/AWSWorkMailMessageFlow/models/Models.swift +++ b/Sources/Services/AWSWorkMailMessageFlow/models/Models.swift @@ -57,9 +57,12 @@ public enum GetRawMessageContentOutputError: Swift.Error, Swift.Equatable { extension GetRawMessageContentOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData() { - self.messageContent = ByteStream.from(data: data) - } else { + switch httpResponse.body { + case .data(let data): + self.messageContent = .data(data) + case .stream(let stream): + self.messageContent = .stream(stream) + case .none: self.messageContent = nil } } @@ -96,9 +99,8 @@ extension GetRawMessageContentOutputResponseBody: Swift.Decodable { extension InvalidContentLocation { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidContentLocationBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -118,7 +120,7 @@ extension InvalidContentLocation { /// * The [S3 bucket owner](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-owner-condition.html) is not the same as the calling AWS account. /// /// * You have an incomplete or missing S3 bucket policy. For more information about policies, see [ Updating message content with AWS Lambda ](https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html) in the WorkMail Administrator Guide. -public struct InvalidContentLocation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidContentLocation: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -154,9 +156,8 @@ extension InvalidContentLocationBody: Swift.Decodable { extension MessageFrozen { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MessageFrozenBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -170,7 +171,7 @@ extension MessageFrozen { } /// The requested email is not eligible for update. This is usually the case for a redirected email. -public struct MessageFrozen: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MessageFrozen: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -206,9 +207,8 @@ extension MessageFrozenBody: Swift.Decodable { extension MessageRejected { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MessageRejectedBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -222,7 +222,7 @@ extension MessageRejected { } /// The requested email could not be updated due to an error in the MIME content. Check the error message for more information about what caused the error. -public struct MessageRejected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MessageRejected: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -402,9 +402,8 @@ extension WorkMailMessageFlowClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -418,7 +417,7 @@ extension ResourceNotFoundException { } /// The requested email message is not found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWorkSpaces/WorkSpacesClient.swift b/Sources/Services/AWSWorkSpaces/WorkSpacesClient.swift index 250c1c84ace..b63013c8630 100644 --- a/Sources/Services/AWSWorkSpaces/WorkSpacesClient.swift +++ b/Sources/Services/AWSWorkSpaces/WorkSpacesClient.swift @@ -208,6 +208,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateConnectionAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -224,7 +225,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -244,6 +245,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateIpGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -260,7 +262,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -280,6 +282,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "authorizeIpRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -296,7 +299,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -316,6 +319,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "copyWorkspaceImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -332,7 +336,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -352,6 +356,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnectClientAddIn") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -368,7 +373,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -388,6 +393,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createConnectionAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -404,7 +410,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -424,6 +430,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIpGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -440,7 +447,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -460,6 +467,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createStandbyWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -476,7 +484,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -496,6 +504,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -512,7 +521,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -538,6 +547,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUpdatedWorkspaceImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -554,7 +564,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -574,6 +584,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkspaceBundle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -590,7 +601,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -610,6 +621,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkspaceImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -626,7 +638,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -646,6 +658,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -662,7 +675,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -682,6 +695,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteClientBranding") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -698,7 +712,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -718,6 +732,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnectClientAddIn") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -734,7 +749,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -754,6 +769,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteConnectionAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -770,7 +786,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -790,6 +806,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIpGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -806,7 +823,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -826,6 +843,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -842,7 +860,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -862,6 +880,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkspaceBundle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -878,7 +897,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -898,6 +917,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteWorkspaceImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -914,7 +934,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -934,6 +954,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deregisterWorkspaceDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -950,7 +971,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -970,6 +991,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -986,7 +1008,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1006,6 +1028,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeAccountModifications") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1022,7 +1045,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1042,6 +1065,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClientBranding") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1058,7 +1082,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1078,6 +1102,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeClientProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1094,7 +1119,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1114,6 +1139,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnectClientAddIns") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1130,7 +1156,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1150,6 +1176,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnectionAliasPermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1166,7 +1193,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1186,6 +1213,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeConnectionAliases") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1202,7 +1230,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1222,6 +1250,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeIpGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1238,7 +1267,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1258,6 +1287,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeTags") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1274,7 +1304,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1294,6 +1324,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspaceBundles") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1310,7 +1341,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1330,6 +1361,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspaceDirectories") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1346,7 +1378,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1366,6 +1398,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspaceImagePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1382,7 +1415,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1402,6 +1435,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspaceImages") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1418,7 +1452,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1438,6 +1472,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspaceSnapshots") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1454,7 +1489,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1474,6 +1509,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1490,7 +1526,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1510,6 +1546,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "describeWorkspacesConnectionStatus") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1526,7 +1563,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1546,6 +1583,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateConnectionAlias") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1562,7 +1600,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1582,6 +1620,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateIpGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1598,7 +1637,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1626,6 +1665,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importClientBranding") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1642,7 +1682,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1662,6 +1702,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "importWorkspaceImage") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1678,7 +1719,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1698,6 +1739,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listAvailableManagementCidrRanges") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1714,7 +1756,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1734,6 +1776,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "migrateWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1750,7 +1793,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1770,6 +1813,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyAccount") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1786,7 +1830,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1806,6 +1850,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyCertificateBasedAuthProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1822,7 +1867,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1842,6 +1887,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyClientProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1858,7 +1904,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1878,6 +1924,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySamlProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1894,7 +1941,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1914,6 +1961,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifySelfservicePermissions") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1930,7 +1978,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1950,6 +1998,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyWorkspaceAccessProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1966,7 +2015,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1986,6 +2035,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyWorkspaceCreationProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2002,7 +2052,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2022,6 +2072,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyWorkspaceProperties") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2038,7 +2089,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2058,6 +2109,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "modifyWorkspaceState") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2074,7 +2126,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2094,6 +2146,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebootWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2110,7 +2163,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2130,6 +2183,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "rebuildWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2146,7 +2200,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2166,6 +2220,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "registerWorkspaceDirectory") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2182,7 +2237,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2202,6 +2257,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "restoreWorkspace") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2218,7 +2274,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2238,6 +2294,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "revokeIpRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2254,7 +2311,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2274,6 +2331,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "startWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2290,7 +2348,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2310,6 +2368,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "stopWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2326,7 +2385,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2346,6 +2405,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "terminateWorkspaces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2362,7 +2422,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2382,6 +2442,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnectClientAddIn") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2398,7 +2459,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2422,6 +2483,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateConnectionAliasPermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2438,7 +2500,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2458,6 +2520,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateRulesOfIpGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2474,7 +2537,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2494,6 +2557,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkspaceBundle") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2510,7 +2574,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -2534,6 +2598,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateWorkspaceImagePermission") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -2550,7 +2615,7 @@ extension WorkSpacesClient: WorkSpacesClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWorkSpaces/models/Models.swift b/Sources/Services/AWSWorkSpaces/models/Models.swift index 15d283e1a47..6c6100d77a1 100644 --- a/Sources/Services/AWSWorkSpaces/models/Models.swift +++ b/Sources/Services/AWSWorkSpaces/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// The user is not authorized to access a resource. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -298,9 +297,8 @@ public enum AssociateConnectionAliasOutputError: Swift.Error, Swift.Equatable { extension AssociateConnectionAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateConnectionAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionIdentifier = output.connectionIdentifier } else { @@ -1417,9 +1415,8 @@ public enum CopyWorkspaceImageOutputError: Swift.Error, Swift.Equatable { extension CopyWorkspaceImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CopyWorkspaceImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId } else { @@ -1562,9 +1559,8 @@ public enum CreateConnectClientAddInOutputError: Swift.Error, Swift.Equatable { extension CreateConnectClientAddInOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectClientAddInOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addInId = output.addInId } else { @@ -1707,9 +1703,8 @@ public enum CreateConnectionAliasOutputError: Swift.Error, Swift.Equatable { extension CreateConnectionAliasOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateConnectionAliasOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliasId = output.aliasId } else { @@ -1886,9 +1881,8 @@ public enum CreateIpGroupOutputError: Swift.Error, Swift.Equatable { extension CreateIpGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIpGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groupId = output.groupId } else { @@ -2030,9 +2024,8 @@ public enum CreateStandbyWorkspacesOutputError: Swift.Error, Swift.Equatable { extension CreateStandbyWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateStandbyWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedStandbyRequests = output.failedStandbyRequests self.pendingStandbyRequests = output.pendingStandbyRequests @@ -2340,9 +2333,8 @@ public enum CreateUpdatedWorkspaceImageOutputError: Swift.Error, Swift.Equatable extension CreateUpdatedWorkspaceImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUpdatedWorkspaceImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId } else { @@ -2549,9 +2541,8 @@ public enum CreateWorkspaceBundleOutputError: Swift.Error, Swift.Equatable { extension CreateWorkspaceBundleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkspaceBundleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.workspaceBundle = output.workspaceBundle } else { @@ -2722,9 +2713,8 @@ public enum CreateWorkspaceImageOutputError: Swift.Error, Swift.Equatable { extension CreateWorkspaceImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkspaceImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.created = output.created self.description = output.description @@ -2917,9 +2907,8 @@ public enum CreateWorkspacesOutputError: Swift.Error, Swift.Equatable { extension CreateWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedRequests = output.failedRequests self.pendingRequests = output.pendingRequests @@ -4261,9 +4250,8 @@ public enum DescribeAccountModificationsOutputError: Swift.Error, Swift.Equatabl extension DescribeAccountModificationsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountModificationsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.accountModifications = output.accountModifications self.nextToken = output.nextToken @@ -4343,9 +4331,8 @@ public enum DescribeAccountOutputError: Swift.Error, Swift.Equatable { extension DescribeAccountOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeAccountOutputResponseBody = try responseDecoder.decode(responseBody: data) self.dedicatedTenancyManagementCidrRange = output.dedicatedTenancyManagementCidrRange self.dedicatedTenancySupport = output.dedicatedTenancySupport @@ -4468,9 +4455,8 @@ public enum DescribeClientBrandingOutputError: Swift.Error, Swift.Equatable { extension DescribeClientBrandingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClientBrandingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceTypeAndroid = output.deviceTypeAndroid self.deviceTypeIos = output.deviceTypeIos @@ -4645,9 +4631,8 @@ public enum DescribeClientPropertiesOutputError: Swift.Error, Swift.Equatable { extension DescribeClientPropertiesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeClientPropertiesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.clientPropertiesList = output.clientPropertiesList } else { @@ -4793,9 +4778,8 @@ public enum DescribeConnectClientAddInsOutputError: Swift.Error, Swift.Equatable extension DescribeConnectClientAddInsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectClientAddInsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.addIns = output.addIns self.nextToken = output.nextToken @@ -4953,9 +4937,8 @@ public enum DescribeConnectionAliasPermissionsOutputError: Swift.Error, Swift.Eq extension DescribeConnectionAliasPermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectionAliasPermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.aliasId = output.aliasId self.connectionAliasPermissions = output.connectionAliasPermissions @@ -5144,9 +5127,8 @@ public enum DescribeConnectionAliasesOutputError: Swift.Error, Swift.Equatable { extension DescribeConnectionAliasesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeConnectionAliasesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.connectionAliases = output.connectionAliases self.nextToken = output.nextToken @@ -5311,9 +5293,8 @@ public enum DescribeIpGroupsOutputError: Swift.Error, Swift.Equatable { extension DescribeIpGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeIpGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.result = output.result @@ -5441,9 +5422,8 @@ public enum DescribeTagsOutputError: Swift.Error, Swift.Equatable { extension DescribeTagsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeTagsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tagList = output.tagList } else { @@ -5596,9 +5576,8 @@ public enum DescribeWorkspaceBundlesOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkspaceBundlesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceBundlesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.bundles = output.bundles self.nextToken = output.nextToken @@ -5761,9 +5740,8 @@ public enum DescribeWorkspaceDirectoriesOutputError: Swift.Error, Swift.Equatabl extension DescribeWorkspaceDirectoriesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceDirectoriesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.directories = output.directories self.nextToken = output.nextToken @@ -5919,9 +5897,8 @@ public enum DescribeWorkspaceImagePermissionsOutputError: Swift.Error, Swift.Equ extension DescribeWorkspaceImagePermissionsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceImagePermissionsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId self.imagePermissions = output.imagePermissions @@ -6106,9 +6083,8 @@ public enum DescribeWorkspaceImagesOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkspaceImagesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceImagesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.images = output.images self.nextToken = output.nextToken @@ -6240,9 +6216,8 @@ public enum DescribeWorkspaceSnapshotsOutputError: Swift.Error, Swift.Equatable extension DescribeWorkspaceSnapshotsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspaceSnapshotsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.rebuildSnapshots = output.rebuildSnapshots self.restoreSnapshots = output.restoreSnapshots @@ -6402,9 +6377,8 @@ public enum DescribeWorkspacesConnectionStatusOutputError: Swift.Error, Swift.Eq extension DescribeWorkspacesConnectionStatusOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspacesConnectionStatusOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workspacesConnectionStatus = output.workspacesConnectionStatus @@ -6605,9 +6579,8 @@ public enum DescribeWorkspacesOutputError: Swift.Error, Swift.Equatable { extension DescribeWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DescribeWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.workspaces = output.workspaces @@ -7244,9 +7217,8 @@ public enum ImportClientBrandingOutputError: Swift.Error, Swift.Equatable { extension ImportClientBrandingOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportClientBrandingOutputResponseBody = try responseDecoder.decode(responseBody: data) self.deviceTypeAndroid = output.deviceTypeAndroid self.deviceTypeIos = output.deviceTypeIos @@ -7502,9 +7474,8 @@ public enum ImportWorkspaceImageOutputError: Swift.Error, Swift.Equatable { extension ImportWorkspaceImageOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ImportWorkspaceImageOutputResponseBody = try responseDecoder.decode(responseBody: data) self.imageId = output.imageId } else { @@ -7543,9 +7514,8 @@ extension ImportWorkspaceImageOutputResponseBody: Swift.Decodable { extension InvalidParameterValuesException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidParameterValuesExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7559,7 +7529,7 @@ extension InvalidParameterValuesException { } /// One or more parameter values are not valid. -public struct InvalidParameterValuesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidParameterValuesException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7596,9 +7566,8 @@ extension InvalidParameterValuesExceptionBody: Swift.Decodable { extension InvalidResourceStateException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidResourceStateExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -7612,7 +7581,7 @@ extension InvalidResourceStateException { } /// The state of the resource is not valid for this operation. -public struct InvalidResourceStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidResourceStateException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8019,9 +7988,8 @@ public enum ListAvailableManagementCidrRangesOutputError: Swift.Error, Swift.Equ extension ListAvailableManagementCidrRangesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListAvailableManagementCidrRangesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.managementCidrRanges = output.managementCidrRanges self.nextToken = output.nextToken @@ -8204,9 +8172,8 @@ public enum MigrateWorkspaceOutputError: Swift.Error, Swift.Equatable { extension MigrateWorkspaceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MigrateWorkspaceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.sourceWorkspaceId = output.sourceWorkspaceId self.targetWorkspaceId = output.targetWorkspaceId @@ -9373,9 +9340,8 @@ extension WorkSpacesClientTypes { extension OperationInProgressException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationInProgressExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -9389,7 +9355,7 @@ extension OperationInProgressException { } /// The properties of this WorkSpace are currently being modified. Try again in a moment. -public struct OperationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationInProgressException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9425,9 +9391,8 @@ extension OperationInProgressExceptionBody: Swift.Decodable { extension OperationNotSupportedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: OperationNotSupportedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.reason = output.reason @@ -9443,7 +9408,7 @@ extension OperationNotSupportedException { } /// This operation is not supported. -public struct OperationNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct OperationNotSupportedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9703,9 +9668,8 @@ public enum RebootWorkspacesOutputError: Swift.Error, Swift.Equatable { extension RebootWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebootWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedRequests = output.failedRequests } else { @@ -9871,9 +9835,8 @@ public enum RebuildWorkspacesOutputError: Swift.Error, Swift.Equatable { extension RebuildWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RebuildWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedRequests = output.failedRequests } else { @@ -10197,9 +10160,8 @@ extension WorkSpacesClientTypes { extension ResourceAlreadyExistsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAlreadyExistsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10213,7 +10175,7 @@ extension ResourceAlreadyExistsException { } /// The specified resource already exists. -public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAlreadyExistsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10249,9 +10211,8 @@ extension ResourceAlreadyExistsExceptionBody: Swift.Decodable { extension ResourceAssociatedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceAssociatedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10265,7 +10226,7 @@ extension ResourceAssociatedException { } /// The resource is associated with a directory. -public struct ResourceAssociatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceAssociatedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10301,9 +10262,8 @@ extension ResourceAssociatedExceptionBody: Swift.Decodable { extension ResourceCreationFailedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceCreationFailedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10317,7 +10277,7 @@ extension ResourceCreationFailedException { } /// The resource could not be created. -public struct ResourceCreationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceCreationFailedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10353,9 +10313,8 @@ extension ResourceCreationFailedExceptionBody: Swift.Decodable { extension ResourceLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -10369,7 +10328,7 @@ extension ResourceLimitExceededException { } /// Your resource limits have been exceeded. -public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10406,9 +10365,8 @@ extension ResourceLimitExceededExceptionBody: Swift.Decodable { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -10424,7 +10382,7 @@ extension ResourceNotFoundException { } /// The resource could not be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -10469,9 +10427,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ResourceUnavailableException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceUnavailableExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -10487,7 +10444,7 @@ extension ResourceUnavailableException { } /// The specified resource is not available. -public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceUnavailableException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11231,9 +11188,8 @@ public enum StartWorkspacesOutputError: Swift.Error, Swift.Equatable { extension StartWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StartWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedRequests = output.failedRequests } else { @@ -11396,9 +11352,8 @@ public enum StopWorkspacesOutputError: Swift.Error, Swift.Equatable { extension StopWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: StopWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedRequests = output.failedRequests } else { @@ -11672,9 +11627,8 @@ public enum TerminateWorkspacesOutputError: Swift.Error, Swift.Equatable { extension TerminateWorkspacesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TerminateWorkspacesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.failedRequests = output.failedRequests } else { @@ -11722,9 +11676,8 @@ extension TerminateWorkspacesOutputResponseBody: Swift.Decodable { extension UnsupportedNetworkConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedNetworkConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11738,7 +11691,7 @@ extension UnsupportedNetworkConfigurationException { } /// The configuration of this network is not supported for this operation, or your network configuration conflicts with the Amazon WorkSpaces management network IP range. For more information, see [ Configure a VPC for Amazon WorkSpaces](https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html). -public struct UnsupportedNetworkConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedNetworkConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -11774,9 +11727,8 @@ extension UnsupportedNetworkConfigurationExceptionBody: Swift.Decodable { extension UnsupportedWorkspaceConfigurationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UnsupportedWorkspaceConfigurationExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -11790,7 +11742,7 @@ extension UnsupportedWorkspaceConfigurationException { } /// The configuration of this WorkSpace is not supported for this operation. For more information, see [Required Configuration and Service Components for WorkSpaces ](https://docs.aws.amazon.com/workspaces/latest/adminguide/required-service-components.html). -public struct UnsupportedWorkspaceConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct UnsupportedWorkspaceConfigurationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -13969,9 +13921,8 @@ extension WorkSpacesClientTypes { extension WorkspacesDefaultRoleNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: WorkspacesDefaultRoleNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -13985,7 +13936,7 @@ extension WorkspacesDefaultRoleNotFoundException { } /// The workspaces_DefaultRole role could not be found. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see [Creating the workspaces_DefaultRole Role](https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-access-control.html#create-default-role). -public struct WorkspacesDefaultRoleNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct WorkspacesDefaultRoleNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSWorkSpacesWeb/WorkSpacesWebClient.swift b/Sources/Services/AWSWorkSpacesWeb/WorkSpacesWebClient.swift index e54daea83ea..ccaaf9633ca 100644 --- a/Sources/Services/AWSWorkSpacesWeb/WorkSpacesWebClient.swift +++ b/Sources/Services/AWSWorkSpacesWeb/WorkSpacesWebClient.swift @@ -208,6 +208,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateBrowserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -221,7 +222,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -241,6 +242,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateNetworkSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -254,7 +256,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -274,6 +276,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateTrustStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -287,7 +290,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -307,6 +310,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateUserAccessLoggingSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -320,7 +324,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -340,6 +344,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "associateUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -353,7 +358,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -373,6 +378,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createBrowserSettings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -396,7 +402,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -416,6 +422,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createIdentityProvider") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -439,7 +446,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -459,6 +466,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createNetworkSettings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -482,7 +490,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -502,6 +510,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createPortal") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -525,7 +534,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -545,6 +554,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createTrustStore") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -568,7 +578,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -588,6 +598,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserAccessLoggingSettings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -611,7 +622,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -631,6 +642,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createUserSettings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -654,7 +666,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -674,6 +686,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteBrowserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -686,7 +699,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -706,6 +719,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -718,7 +732,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -738,6 +752,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteNetworkSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -750,7 +765,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -770,6 +785,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deletePortal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -782,7 +798,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -802,6 +818,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteTrustStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -814,7 +831,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -834,6 +851,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserAccessLoggingSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -846,7 +864,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -866,6 +884,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -878,7 +897,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -898,6 +917,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateBrowserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -910,7 +930,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -930,6 +950,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateNetworkSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -942,7 +963,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -962,6 +983,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateTrustStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -974,7 +996,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -994,6 +1016,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateUserAccessLoggingSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1006,7 +1029,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1026,6 +1049,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "disassociateUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1038,7 +1062,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1058,6 +1082,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getBrowserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1070,7 +1095,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1090,6 +1115,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getIdentityProvider") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1102,7 +1128,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1122,6 +1148,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getNetworkSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1134,7 +1161,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1154,6 +1181,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPortal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1166,7 +1194,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1186,6 +1214,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getPortalServiceProviderMetadata") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1198,7 +1227,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1218,6 +1247,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrustStore") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1230,7 +1260,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1250,6 +1280,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTrustStoreCertificate") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1263,7 +1294,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1283,6 +1314,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserAccessLoggingSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1295,7 +1327,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1315,6 +1347,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1327,7 +1360,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1347,6 +1380,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listBrowserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1360,7 +1394,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1380,6 +1414,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listIdentityProviders") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1393,7 +1428,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1413,6 +1448,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listNetworkSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1426,7 +1462,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1446,6 +1482,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listPortals") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1459,7 +1496,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1479,6 +1516,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1491,7 +1529,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1511,6 +1549,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrustStoreCertificates") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1524,7 +1563,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1544,6 +1583,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTrustStores") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1557,7 +1597,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1577,6 +1617,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserAccessLoggingSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1590,7 +1631,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1610,6 +1651,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listUserSettings") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1623,7 +1665,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1643,6 +1685,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1666,7 +1709,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1686,6 +1729,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1699,7 +1743,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1719,6 +1763,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateBrowserSettings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1742,7 +1787,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1762,6 +1807,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateIdentityProvider") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1785,7 +1831,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1805,6 +1851,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateNetworkSettings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1828,7 +1875,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1848,6 +1895,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updatePortal") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1863,7 +1911,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1883,6 +1931,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateTrustStore") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1906,7 +1955,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1926,6 +1975,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserAccessLoggingSettings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1949,7 +1999,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1969,6 +2019,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { .withRegion(value: config.region) .withSigningName(value: "workspaces-web") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateUserSettings") operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput in let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator() @@ -1992,7 +2043,7 @@ extension WorkSpacesWebClient: WorkSpacesWebClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSWorkSpacesWeb/models/Models.swift b/Sources/Services/AWSWorkSpacesWeb/models/Models.swift index 0f7d6df93d1..26dbedcda37 100644 --- a/Sources/Services/AWSWorkSpacesWeb/models/Models.swift +++ b/Sources/Services/AWSWorkSpacesWeb/models/Models.swift @@ -4,9 +4,8 @@ import ClientRuntime extension AccessDeniedException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AccessDeniedExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -20,7 +19,7 @@ extension AccessDeniedException { } /// Access is denied. -public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct AccessDeniedException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -139,9 +138,8 @@ public enum AssociateBrowserSettingsOutputError: Swift.Error, Swift.Equatable { extension AssociateBrowserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateBrowserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.browserSettingsArn = output.browserSettingsArn self.portalArn = output.portalArn @@ -275,9 +273,8 @@ public enum AssociateNetworkSettingsOutputError: Swift.Error, Swift.Equatable { extension AssociateNetworkSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateNetworkSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSettingsArn = output.networkSettingsArn self.portalArn = output.portalArn @@ -409,9 +406,8 @@ public enum AssociateTrustStoreOutputError: Swift.Error, Swift.Equatable { extension AssociateTrustStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateTrustStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalArn = output.portalArn self.trustStoreArn = output.trustStoreArn @@ -545,9 +541,8 @@ public enum AssociateUserAccessLoggingSettingsOutputError: Swift.Error, Swift.Eq extension AssociateUserAccessLoggingSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateUserAccessLoggingSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalArn = output.portalArn self.userAccessLoggingSettingsArn = output.userAccessLoggingSettingsArn @@ -681,9 +676,8 @@ public enum AssociateUserSettingsOutputError: Swift.Error, Swift.Equatable { extension AssociateUserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: AssociateUserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalArn = output.portalArn self.userSettingsArn = output.userSettingsArn @@ -1063,9 +1057,8 @@ extension WorkSpacesWebClientTypes { extension ConflictException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ConflictExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -1083,7 +1076,7 @@ extension ConflictException { } /// There is a conflict. -public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ConflictException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -1294,9 +1287,8 @@ public enum CreateBrowserSettingsOutputError: Swift.Error, Swift.Equatable { extension CreateBrowserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateBrowserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.browserSettingsArn = output.browserSettingsArn } else { @@ -1554,9 +1546,8 @@ public enum CreateIdentityProviderOutputError: Swift.Error, Swift.Equatable { extension CreateIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviderArn = output.identityProviderArn } else { @@ -1762,9 +1753,8 @@ public enum CreateNetworkSettingsOutputError: Swift.Error, Swift.Equatable { extension CreateNetworkSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateNetworkSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSettingsArn = output.networkSettingsArn } else { @@ -1974,9 +1964,8 @@ public enum CreatePortalOutputError: Swift.Error, Swift.Equatable { extension CreatePortalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreatePortalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalArn = output.portalArn self.portalEndpoint = output.portalEndpoint @@ -2155,9 +2144,8 @@ public enum CreateTrustStoreOutputError: Swift.Error, Swift.Equatable { extension CreateTrustStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateTrustStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustStoreArn = output.trustStoreArn } else { @@ -2313,9 +2301,8 @@ public enum CreateUserAccessLoggingSettingsOutputError: Swift.Error, Swift.Equat extension CreateUserAccessLoggingSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserAccessLoggingSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userAccessLoggingSettingsArn = output.userAccessLoggingSettingsArn } else { @@ -2547,9 +2534,8 @@ public enum CreateUserSettingsOutputError: Swift.Error, Swift.Equatable { extension CreateUserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateUserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userSettingsArn = output.userSettingsArn } else { @@ -3534,9 +3520,8 @@ public enum GetBrowserSettingsOutputError: Swift.Error, Swift.Equatable { extension GetBrowserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetBrowserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.browserSettings = output.browserSettings } else { @@ -3636,9 +3621,8 @@ public enum GetIdentityProviderOutputError: Swift.Error, Swift.Equatable { extension GetIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProvider = output.identityProvider } else { @@ -3738,9 +3722,8 @@ public enum GetNetworkSettingsOutputError: Swift.Error, Swift.Equatable { extension GetNetworkSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetNetworkSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSettings = output.networkSettings } else { @@ -3840,9 +3823,8 @@ public enum GetPortalOutputError: Swift.Error, Swift.Equatable { extension GetPortalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPortalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portal = output.portal } else { @@ -3942,9 +3924,8 @@ public enum GetPortalServiceProviderMetadataOutputError: Swift.Error, Swift.Equa extension GetPortalServiceProviderMetadataOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetPortalServiceProviderMetadataOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portalArn = output.portalArn self.serviceProviderSamlMetadata = output.serviceProviderSamlMetadata @@ -4075,9 +4056,8 @@ public enum GetTrustStoreCertificateOutputError: Swift.Error, Swift.Equatable { extension GetTrustStoreCertificateOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrustStoreCertificateOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificate = output.certificate self.trustStoreArn = output.trustStoreArn @@ -4187,9 +4167,8 @@ public enum GetTrustStoreOutputError: Swift.Error, Swift.Equatable { extension GetTrustStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTrustStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustStore = output.trustStore } else { @@ -4289,9 +4268,8 @@ public enum GetUserAccessLoggingSettingsOutputError: Swift.Error, Swift.Equatabl extension GetUserAccessLoggingSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserAccessLoggingSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userAccessLoggingSettings = output.userAccessLoggingSettings } else { @@ -4391,9 +4369,8 @@ public enum GetUserSettingsOutputError: Swift.Error, Swift.Equatable { extension GetUserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetUserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userSettings = output.userSettings } else { @@ -4692,9 +4669,8 @@ extension InternalServerException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InternalServerExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -4708,7 +4684,7 @@ extension InternalServerException { } /// There is an internal server error. -public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InternalServerException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -4824,9 +4800,8 @@ public enum ListBrowserSettingsOutputError: Swift.Error, Swift.Equatable { extension ListBrowserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListBrowserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.browserSettings = output.browserSettings self.nextToken = output.nextToken @@ -4968,9 +4943,8 @@ public enum ListIdentityProvidersOutputError: Swift.Error, Swift.Equatable { extension ListIdentityProvidersOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListIdentityProvidersOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProviders = output.identityProviders self.nextToken = output.nextToken @@ -5104,9 +5078,8 @@ public enum ListNetworkSettingsOutputError: Swift.Error, Swift.Equatable { extension ListNetworkSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListNetworkSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSettings = output.networkSettings self.nextToken = output.nextToken @@ -5240,9 +5213,8 @@ public enum ListPortalsOutputError: Swift.Error, Swift.Equatable { extension ListPortalsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListPortalsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.portals = output.portals @@ -5361,9 +5333,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.tags = output.tags } else { @@ -5497,9 +5468,8 @@ public enum ListTrustStoreCertificatesOutputError: Swift.Error, Swift.Equatable extension ListTrustStoreCertificatesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrustStoreCertificatesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.certificateList = output.certificateList self.nextToken = output.nextToken @@ -5643,9 +5613,8 @@ public enum ListTrustStoresOutputError: Swift.Error, Swift.Equatable { extension ListTrustStoresOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTrustStoresOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.trustStores = output.trustStores @@ -5779,9 +5748,8 @@ public enum ListUserAccessLoggingSettingsOutputError: Swift.Error, Swift.Equatab extension ListUserAccessLoggingSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserAccessLoggingSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userAccessLoggingSettings = output.userAccessLoggingSettings @@ -5915,9 +5883,8 @@ public enum ListUserSettingsOutputError: Swift.Error, Swift.Equatable { extension ListUserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListUserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.userSettings = output.userSettings @@ -6526,9 +6493,8 @@ extension WorkSpacesWebClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceId = output.resourceId @@ -6546,7 +6512,7 @@ extension ResourceNotFoundException { } /// The resource cannot be found. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6598,9 +6564,8 @@ extension ResourceNotFoundExceptionBody: Swift.Decodable { extension ServiceQuotaExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ServiceQuotaExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -6622,7 +6587,7 @@ extension ServiceQuotaExceededException { } /// The service quota has been exceeded. -public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ServiceQuotaExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6870,9 +6835,8 @@ extension ThrottlingException { } else { self.retryAfterSeconds = 0 } - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottlingExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.quotaCode = output.quotaCode @@ -6890,7 +6854,7 @@ extension ThrottlingException { } /// There is a throttling error. -public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottlingException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6946,9 +6910,8 @@ extension ThrottlingExceptionBody: Swift.Decodable { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -6964,7 +6927,7 @@ extension TooManyTagsException { } /// There are too many tags. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -7295,9 +7258,8 @@ public enum UpdateBrowserSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateBrowserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateBrowserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.browserSettings = output.browserSettings } else { @@ -7543,9 +7505,8 @@ public enum UpdateIdentityProviderOutputError: Swift.Error, Swift.Equatable { extension UpdateIdentityProviderOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateIdentityProviderOutputResponseBody = try responseDecoder.decode(responseBody: data) self.identityProvider = output.identityProvider } else { @@ -7730,9 +7691,8 @@ public enum UpdateNetworkSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateNetworkSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateNetworkSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.networkSettings = output.networkSettings } else { @@ -7874,9 +7834,8 @@ public enum UpdatePortalOutputError: Swift.Error, Swift.Equatable { extension UpdatePortalOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdatePortalOutputResponseBody = try responseDecoder.decode(responseBody: data) self.portal = output.portal } else { @@ -8050,9 +8009,8 @@ public enum UpdateTrustStoreOutputError: Swift.Error, Swift.Equatable { extension UpdateTrustStoreOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateTrustStoreOutputResponseBody = try responseDecoder.decode(responseBody: data) self.trustStoreArn = output.trustStoreArn } else { @@ -8189,9 +8147,8 @@ public enum UpdateUserAccessLoggingSettingsOutputError: Swift.Error, Swift.Equat extension UpdateUserAccessLoggingSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserAccessLoggingSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userAccessLoggingSettings = output.userAccessLoggingSettings } else { @@ -8400,9 +8357,8 @@ public enum UpdateUserSettingsOutputError: Swift.Error, Swift.Equatable { extension UpdateUserSettingsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateUserSettingsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.userSettings = output.userSettings } else { @@ -8788,9 +8744,8 @@ extension WorkSpacesWebClientTypes { extension ValidationException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ValidationExceptionBody = try responseDecoder.decode(responseBody: data) self.fieldList = output.fieldList self.message = output.message @@ -8808,7 +8763,7 @@ extension ValidationException { } /// There is a validation error. -public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ValidationException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/Sources/Services/AWSXRay/XRayClient.swift b/Sources/Services/AWSXRay/XRayClient.swift index 5e4d7670cc6..155619af446 100644 --- a/Sources/Services/AWSXRay/XRayClient.swift +++ b/Sources/Services/AWSXRay/XRayClient.swift @@ -208,6 +208,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "batchGetTraces") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -223,7 +224,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -243,6 +244,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -258,7 +260,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -278,6 +280,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "createSamplingRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -293,7 +296,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -313,6 +316,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -328,7 +332,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -348,6 +352,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -363,7 +368,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -383,6 +388,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "deleteSamplingRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -398,7 +404,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -418,6 +424,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getEncryptionConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -430,7 +437,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -450,6 +457,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -465,7 +473,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -485,6 +493,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getGroups") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -500,7 +509,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -520,6 +529,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsight") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -535,7 +545,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -555,6 +565,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsightEvents") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -570,7 +581,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -590,6 +601,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsightImpactGraph") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -605,7 +617,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -625,6 +637,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getInsightSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -640,7 +653,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -660,6 +673,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSamplingRules") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -675,7 +689,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -695,6 +709,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSamplingStatisticSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -710,7 +725,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -730,6 +745,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getSamplingTargets") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -745,7 +761,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -765,6 +781,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getServiceGraph") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -780,7 +797,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -800,6 +817,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTimeSeriesServiceStatistics") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -815,7 +833,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -835,6 +853,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTraceGraph") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -850,7 +869,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -870,6 +889,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getTraceSummaries") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -885,7 +905,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -905,6 +925,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listResourcePolicies") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -920,7 +941,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -940,6 +961,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "listTagsForResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -955,7 +977,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -975,6 +997,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putEncryptionConfig") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -990,7 +1013,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1010,6 +1033,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putResourcePolicy") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1025,7 +1049,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1045,6 +1069,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putTelemetryRecords") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1060,7 +1085,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1101,6 +1126,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putTraceSegments") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1116,7 +1142,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1136,6 +1162,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "tagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1151,7 +1178,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1171,6 +1198,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "untagResource") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1186,7 +1214,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1206,6 +1234,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateGroup") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1221,7 +1250,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } @@ -1241,6 +1270,7 @@ extension XRayClient: XRayClientProtocol { .withRegion(value: config.region) .withSigningName(value: "xray") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "updateSamplingRule") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -1256,7 +1286,7 @@ extension XRayClient: XRayClientProtocol { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result } diff --git a/Sources/Services/AWSXRay/models/Models.swift b/Sources/Services/AWSXRay/models/Models.swift index 459aafa5ff7..1cf5c08e026 100644 --- a/Sources/Services/AWSXRay/models/Models.swift +++ b/Sources/Services/AWSXRay/models/Models.swift @@ -379,9 +379,8 @@ public enum BatchGetTracesOutputError: Swift.Error, Swift.Equatable { extension BatchGetTracesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: BatchGetTracesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.traces = output.traces @@ -594,9 +593,8 @@ public enum CreateGroupOutputError: Swift.Error, Swift.Equatable { extension CreateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -745,9 +743,8 @@ public enum CreateSamplingRuleOutputError: Swift.Error, Swift.Equatable { extension CreateSamplingRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: CreateSamplingRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.samplingRuleRecord = output.samplingRuleRecord } else { @@ -1058,9 +1055,8 @@ public enum DeleteSamplingRuleOutputError: Swift.Error, Swift.Equatable { extension DeleteSamplingRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: DeleteSamplingRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.samplingRuleRecord = output.samplingRuleRecord } else { @@ -2089,9 +2085,8 @@ public enum GetEncryptionConfigOutputError: Swift.Error, Swift.Equatable { extension GetEncryptionConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetEncryptionConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.encryptionConfig = output.encryptionConfig } else { @@ -2213,9 +2208,8 @@ public enum GetGroupOutputError: Swift.Error, Swift.Equatable { extension GetGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -2325,9 +2319,8 @@ public enum GetGroupsOutputError: Swift.Error, Swift.Equatable { extension GetGroupsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetGroupsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.groups = output.groups self.nextToken = output.nextToken @@ -2481,9 +2474,8 @@ public enum GetInsightEventsOutputError: Swift.Error, Swift.Equatable { extension GetInsightEventsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightEventsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightEvents = output.insightEvents self.nextToken = output.nextToken @@ -2651,9 +2643,8 @@ public enum GetInsightImpactGraphOutputError: Swift.Error, Swift.Equatable { extension GetInsightImpactGraphOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightImpactGraphOutputResponseBody = try responseDecoder.decode(responseBody: data) self.endTime = output.endTime self.insightId = output.insightId @@ -2833,9 +2824,8 @@ public enum GetInsightOutputError: Swift.Error, Swift.Equatable { extension GetInsightOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insight = output.insight } else { @@ -3031,9 +3021,8 @@ public enum GetInsightSummariesOutputError: Swift.Error, Swift.Equatable { extension GetInsightSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetInsightSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.insightSummaries = output.insightSummaries self.nextToken = output.nextToken @@ -3162,9 +3151,8 @@ public enum GetSamplingRulesOutputError: Swift.Error, Swift.Equatable { extension GetSamplingRulesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSamplingRulesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.samplingRuleRecords = output.samplingRuleRecords @@ -3293,9 +3281,8 @@ public enum GetSamplingStatisticSummariesOutputError: Swift.Error, Swift.Equatab extension GetSamplingStatisticSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSamplingStatisticSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.samplingStatisticSummaries = output.samplingStatisticSummaries @@ -3437,9 +3424,8 @@ public enum GetSamplingTargetsOutputError: Swift.Error, Swift.Equatable { extension GetSamplingTargetsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetSamplingTargetsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.lastRuleModification = output.lastRuleModification self.samplingTargetDocuments = output.samplingTargetDocuments @@ -3637,9 +3623,8 @@ public enum GetServiceGraphOutputError: Swift.Error, Swift.Equatable { extension GetServiceGraphOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetServiceGraphOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containsOldGroupVersions = output.containsOldGroupVersions self.endTime = output.endTime @@ -3884,9 +3869,8 @@ public enum GetTimeSeriesServiceStatisticsOutputError: Swift.Error, Swift.Equata extension GetTimeSeriesServiceStatisticsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTimeSeriesServiceStatisticsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.containsOldGroupVersions = output.containsOldGroupVersions self.nextToken = output.nextToken @@ -4050,9 +4034,8 @@ public enum GetTraceGraphOutputError: Swift.Error, Swift.Equatable { extension GetTraceGraphOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTraceGraphOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.services = output.services @@ -4255,9 +4238,8 @@ public enum GetTraceSummariesOutputError: Swift.Error, Swift.Equatable { extension GetTraceSummariesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: GetTraceSummariesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.approximateTime = output.approximateTime self.nextToken = output.nextToken @@ -5321,9 +5303,8 @@ extension XRayClientTypes { extension InvalidPolicyRevisionIdException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidPolicyRevisionIdExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5337,7 +5318,7 @@ extension InvalidPolicyRevisionIdException { } /// A policy revision id was provided which does not match the latest policy revision. This exception is also if a policy revision id of 0 is provided via PutResourcePolicy and a policy with the same name already exists. -public struct InvalidPolicyRevisionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidPolicyRevisionIdException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5373,9 +5354,8 @@ extension InvalidPolicyRevisionIdExceptionBody: Swift.Decodable { extension InvalidRequestException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: InvalidRequestExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5389,7 +5369,7 @@ extension InvalidRequestException { } /// The request is missing required parameters or has invalid parameters. -public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct InvalidRequestException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5496,9 +5476,8 @@ public enum ListResourcePoliciesOutputError: Swift.Error, Swift.Equatable { extension ListResourcePoliciesOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListResourcePoliciesOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.resourcePolicies = output.resourcePolicies @@ -5642,9 +5621,8 @@ public enum ListTagsForResourceOutputError: Swift.Error, Swift.Equatable { extension ListTagsForResourceOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ListTagsForResourceOutputResponseBody = try responseDecoder.decode(responseBody: data) self.nextToken = output.nextToken self.tags = output.tags @@ -5702,9 +5680,8 @@ extension ListTagsForResourceOutputResponseBody: Swift.Decodable { extension LockoutPreventionException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: LockoutPreventionExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5718,7 +5695,7 @@ extension LockoutPreventionException { } /// The provided resource policy would prevent the caller of this request from calling PutResourcePolicy in the future. -public struct LockoutPreventionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct LockoutPreventionException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5754,9 +5731,8 @@ extension LockoutPreventionExceptionBody: Swift.Decodable { extension MalformedPolicyDocumentException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: MalformedPolicyDocumentExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5770,7 +5746,7 @@ extension MalformedPolicyDocumentException { } /// Invalid policy document provided in request. -public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct MalformedPolicyDocumentException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5806,9 +5782,8 @@ extension MalformedPolicyDocumentExceptionBody: Swift.Decodable { extension PolicyCountLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicyCountLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5822,7 +5797,7 @@ extension PolicyCountLimitExceededException { } /// Exceeded the maximum number of resource policies for a target Amazon Web Services account. -public struct PolicyCountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicyCountLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -5858,9 +5833,8 @@ extension PolicyCountLimitExceededExceptionBody: Swift.Decodable { extension PolicySizeLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PolicySizeLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -5874,7 +5848,7 @@ extension PolicySizeLimitExceededException { } /// Exceeded the maximum size for a resource policy. -public struct PolicySizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct PolicySizeLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6003,9 +5977,8 @@ public enum PutEncryptionConfigOutputError: Swift.Error, Swift.Equatable { extension PutEncryptionConfigOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutEncryptionConfigOutputResponseBody = try responseDecoder.decode(responseBody: data) self.encryptionConfig = output.encryptionConfig } else { @@ -6161,9 +6134,8 @@ public enum PutResourcePolicyOutputError: Swift.Error, Swift.Equatable { extension PutResourcePolicyOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutResourcePolicyOutputResponseBody = try responseDecoder.decode(responseBody: data) self.resourcePolicy = output.resourcePolicy } else { @@ -6416,9 +6388,8 @@ public enum PutTraceSegmentsOutputError: Swift.Error, Swift.Equatable { extension PutTraceSegmentsOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: PutTraceSegmentsOutputResponseBody = try responseDecoder.decode(responseBody: data) self.unprocessedTraceSegments = output.unprocessedTraceSegments } else { @@ -6556,9 +6527,8 @@ extension XRayClientTypes { extension ResourceNotFoundException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ResourceNotFoundExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -6574,7 +6544,7 @@ extension ResourceNotFoundException { } /// The resource was not found. Verify that the name or Amazon Resource Name (ARN) of the resource is correct. -public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ResourceNotFoundException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -6948,9 +6918,8 @@ extension XRayClientTypes { extension RuleLimitExceededException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: RuleLimitExceededExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -6964,7 +6933,7 @@ extension RuleLimitExceededException { } /// You have reached the maximum number of sampling rules. -public struct RuleLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct RuleLimitExceededException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8376,9 +8345,8 @@ extension XRayClientTypes { extension ThrottledException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: ThrottledExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { @@ -8392,7 +8360,7 @@ extension ThrottledException { } /// The request exceeds the maximum number of requests per second. -public struct ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct ThrottledException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -8547,9 +8515,8 @@ extension XRayClientTypes { extension TooManyTagsException { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: TooManyTagsExceptionBody = try responseDecoder.decode(responseBody: data) self.message = output.message self.resourceName = output.resourceName @@ -8565,7 +8532,7 @@ extension TooManyTagsException { } /// You have exceeded the maximum number of tags you can apply to this resource. -public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { +public struct TooManyTagsException: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -9415,9 +9382,8 @@ public enum UpdateGroupOutputError: Swift.Error, Swift.Equatable { extension UpdateGroupOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateGroupOutputResponseBody = try responseDecoder.decode(responseBody: data) self.group = output.group } else { @@ -9528,9 +9494,8 @@ public enum UpdateSamplingRuleOutputError: Swift.Error, Swift.Equatable { extension UpdateSamplingRuleOutputResponse: ClientRuntime.HttpResponseBinding { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil) throws { - if case .stream(let reader) = httpResponse.body, + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { - let data = reader.toBytes().getData() let output: UpdateSamplingRuleOutputResponseBody = try responseDecoder.decode(responseBody: data) self.samplingRuleRecord = output.samplingRuleRecord } else { diff --git a/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageDecoderStreamTests.swift b/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageDecoderStreamTests.swift new file mode 100644 index 00000000000..27d21d715b2 --- /dev/null +++ b/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageDecoderStreamTests.swift @@ -0,0 +1,31 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import XCTest +import ClientRuntime +@testable import AWSClientRuntime + +final class AWSMessageDecoderStreamTests: XCTestCase { + func testIterator() async throws { + let bufferedStream = BufferedStream(data: validMessageDataWithAllHeaders + validMessageDataEmptyPayload + validMessageDataNoHeaders, + isClosed: true) + let messageDecoder = AWSEventStream.AWSMessageDecoder() + let sut = EventStream.DefaultMessageDecoderStream(stream: bufferedStream, + messageDecoder: messageDecoder, + responseDecoder: JSONDecoder()) + + var events: [TestEvent] = [] + for try await evnt in sut { + events.append(evnt) + } + + XCTAssertEqual(3, events.count) + XCTAssertEqual(TestEvent.allHeaders, events[0]) + XCTAssertEqual(TestEvent.emptyPayload, events[1]) + XCTAssertEqual(TestEvent.noHeaders, events[2]) + } +} diff --git a/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageDecoderTests.swift b/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageDecoderTests.swift new file mode 100644 index 00000000000..3c66d8ed665 --- /dev/null +++ b/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageDecoderTests.swift @@ -0,0 +1,43 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import XCTest +@testable import AWSClientRuntime + +final class AWSMessageDecoderTests: XCTestCase { + + let sut = AWSEventStream.AWSMessageDecoder() + + func testDecode_MessageWithAllHeaders() { + try! sut.feed(data: validMessageDataWithAllHeaders) + let decodedMessage = try! sut.message() + XCTAssertEqual(validMessageWithAllHeaders, decodedMessage) + } + + func testDecode_MessageWithEmptyPayload() { + try! sut.feed(data: validMessageDataEmptyPayload) + let decodedMessage = try! sut.message() + XCTAssertEqual(validMessageEmptyPayload, decodedMessage) + } + + func testDecode_MessageWithNoHeaders() { + try! sut.feed(data: validMessageDataNoHeaders) + let decodedMessage = try! sut.message() + XCTAssertEqual(validMessageNoHeaders, decodedMessage) + } + + func testEndOfStream_StreamClosed() { + try! sut.feed(data: validMessageDataNoHeaders[0.. { continuation in + Task { + continuation.yield(.allHeaders) + continuation.yield(.emptyPayload) + continuation.yield(.noHeaders) + continuation.finish() + } + } + let region = "us-east-2" + let requestSignature = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + let serviceName = "test" + let credentials = AWSCredentials(accessKey: "fake access key", secret: "fake secret key") + let messageEncoder = AWSEventStream.AWSMessageEncoder() + + override class func setUp() { + AwsCommonRuntimeKit.CommonRuntimeKit.initialize() + } + + // MARK: - Tests + + func testIterator_EndMessageSent() async throws { + let context = HttpContextBuilder() + .withSigningRegion(value: region) + .withSigningName(value: serviceName) + .withRequestSignature(value: requestSignature) + .withCredentialsProvider(value: MyCustomCredentialsProvider(credentials: credentials)) + .build() + + let messageSigner = AWSEventStream.AWSMessageSigner(encoder: messageEncoder) { + return try await context.makeEventStreamSigningConfig() + } requestSignature: { + return context.getRequestSignature() + } + + let sut = EventStream.DefaultMessageEncoderStream( + stream: baseStream, + messageEncoder: messageEncoder, + requestEncoder: JSONEncoder(), + messageSinger: messageSigner + ) + + var actual: [Data] = [] + for try await data in sut { + actual.append(data) + } + + XCTAssertEqual(4, actual.count) + } + + func testReadAsync() async throws { + let context = HttpContextBuilder().withSigningRegion(value: region) + .withSigningName(value: serviceName) + .withRequestSignature(value: requestSignature) + .withCredentialsProvider(value: MyCustomCredentialsProvider(credentials: credentials)) + .build() + + let messageSigner = AWSEventStream.AWSMessageSigner(encoder: messageEncoder) { + return try await context.makeEventStreamSigningConfig() + } requestSignature: { + return context.getRequestSignature() + } + + let sut = EventStream.DefaultMessageEncoderStream( + stream: baseStream, + messageEncoder: messageEncoder, + requestEncoder: JSONEncoder(), + messageSinger: messageSigner + ) + + let read1 = try await sut.readAsync(upToCount: 100) + XCTAssertEqual(100, read1!.count) + + let read2 = try await sut.readAsync(upToCount: 200) + XCTAssertEqual(200, read2!.count) + + let read3 = try await sut.readAsync(upToCount: 500) + XCTAssertEqual(249, read3!.count) + + let read4 = try await sut.readAsync(upToCount: 500) + XCTAssertNil(read4) + } +} diff --git a/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageEncoderTests.swift b/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageEncoderTests.swift new file mode 100644 index 00000000000..82287d60852 --- /dev/null +++ b/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageEncoderTests.swift @@ -0,0 +1,29 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import XCTest +@testable import AWSClientRuntime + +final class AWSMessageEncoderTests: XCTestCase { + + let sut = AWSEventStream.AWSMessageEncoder() + + func testEncode_MessageWithAllHeaders() { + let encodedMessage = try! sut.encode(message: validMessageWithAllHeaders) + XCTAssertEqual(validMessageDataWithAllHeaders, encodedMessage) + } + + func testEncode_MessageWithEmptyPayload() { + let encodedMessage = try! sut.encode(message: validMessageEmptyPayload) + XCTAssertEqual(validMessageDataEmptyPayload, encodedMessage) + } + + func testEncode_MessageWithNoHeaders() { + let encodedMessage = try! sut.encode(message: validMessageNoHeaders) + XCTAssertEqual(validMessageDataNoHeaders, encodedMessage) + } +} diff --git a/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageTests.swift b/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageTests.swift new file mode 100644 index 00000000000..f6cde3a57bf --- /dev/null +++ b/Tests/Core/AWSClientRuntimeTests/EventStream/AWSMessageTests.swift @@ -0,0 +1,141 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import XCTest +import ClientRuntime +@testable import AWSClientRuntime + +final class AWSMessageTests: XCTestCase { + func testType_NormalMessage() { + let message = EventStream.Message(headers: [.init(name: ":message-type", value: .string("event")), + .init(name: ":event-type", value: .string("Foo")), + .init(name: ":content-type", value: .string("application/json"))], + payload: "test".data(using: .utf8)!) + + guard case let .event(param) = try! message.type() else { + XCTFail() + return + } + + XCTAssertEqual(param.eventType, "Foo") + XCTAssertEqual(param.contentType, "application/json") + } + + func testType_ExceptionMessage() { + let message = EventStream.Message(headers: [.init(name: ":message-type", value: .string("exception")), + .init(name: ":exception-type", value: .string("BadRequestException")), + .init(name: ":content-type", value: .string("application/json"))], + payload: "test".data(using: .utf8)!) + + guard case let .exception(param) = try! message.type() else { + XCTFail() + return + } + + XCTAssertEqual(param.exceptionType, "BadRequestException") + XCTAssertEqual(param.contentType, "application/json") + } + + func testType_MissingExceptionType() { + let message = EventStream.Message(headers: [.init(name: ":message-type", value: .string("exception")), + .init(name: ":content-type", value: .string("application/json"))], + payload: "test".data(using: .utf8)!) + + XCTAssertThrowsError(try message.type()) { error in + guard case let AWSEventStreamError.invalidMessage(message) = error else { + XCTFail() + return + } + + XCTAssertEqual("Invalid `exception` message: `:exception-type` header is missing", message) + } + } + + func testType_MissingEventType() { + let message = EventStream.Message(headers: [.init(name: ":message-type", value: .string("event")), + .init(name: ":content-type", value: .string("application/json"))], + payload: "test".data(using: .utf8)!) + + XCTAssertThrowsError(try message.type()) { error in + guard case let AWSEventStreamError.invalidMessage(message) = error else { + XCTFail() + return + } + + XCTAssertEqual("Invalid `event` message: `:event-type` header is missing", message) + } + } + + func testType_MissingMessageType() { + let message = EventStream.Message(headers: [.init(name: ":event-type", value: .string("Foo")), + .init(name: ":content-type", value: .string("application/json"))], + payload: "test".data(using: .utf8)!) + + XCTAssertThrowsError(try message.type()) { error in + guard case let AWSEventStreamError.invalidMessage(message) = error else { + XCTFail() + return + } + + XCTAssertEqual("Invalid `event` message: `:message-type` header is missing", message) + } + } + + func testType_MissingContentType() { + let message = EventStream.Message(headers: [.init(name: ":message-type", value: .string("event")), + .init(name: ":event-type", value: .string("Foo"))], + payload: "test".data(using: .utf8)!) + + guard case let .event(param) = try! message.type() else { + XCTFail() + return + } + + XCTAssertEqual(param.eventType, "Foo") + XCTAssertNil(param.contentType) + } + + func testType_ErrorMessage() { + let message = EventStream.Message(headers: [.init(name: ":message-type", value: .string("error")), + .init(name: ":error-code", value: .string("InternalError")), + .init(name: ":error-message", value: .string("An internal server error occurred"))], + payload: "test".data(using: .utf8)!) + + guard case let .error(param) = try! message.type() else { + XCTFail() + return + } + + XCTAssertEqual(param.errorCode, "InternalError") + XCTAssertEqual(param.message, "An internal server error occurred") + } + + func testType_MissingErrorMessage() { + let message = EventStream.Message(headers: [.init(name: ":message-type", value: .string("error")), + .init(name: ":error-code", value: .string("InternalError"))], + payload: "test".data(using: .utf8)!) + + guard case let .error(param) = try! message.type() else { + XCTFail() + return + } + + XCTAssertEqual(param.errorCode, "InternalError") + XCTAssertNil(param.message) + } + + func testType_Unknown() { + let message = EventStream.Message(headers: [.init(name: ":message-type", value: .string("foo"))]) + + guard case let .unknown(messageType) = try! message.type() else { + XCTFail() + return + } + + XCTAssertEqual(messageType, "foo") + } +} diff --git a/Tests/Core/AWSClientRuntimeTests/EventStream/EventStreamTestData.swift b/Tests/Core/AWSClientRuntimeTests/EventStream/EventStreamTestData.swift new file mode 100644 index 00000000000..e119006f4ca --- /dev/null +++ b/Tests/Core/AWSClientRuntimeTests/EventStream/EventStreamTestData.swift @@ -0,0 +1,94 @@ +// +// Copyright Amazon.com Inc. or its affiliates. +// All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +import ClientRuntime +import Foundation + +enum TestEvent: MessageMarshallable, MessageUnmarshallable { + case allHeaders + case emptyPayload + case noHeaders + + init(message: ClientRuntime.EventStream.Message, decoder: ResponseDecoder) { + if message == validMessageWithAllHeaders { + self = .allHeaders + } else if message == validMessageEmptyPayload { + self = .emptyPayload + } else if message == validMessageNoHeaders { + self = .noHeaders + } else { + fatalError("Unknown message") + } + } + + func marshall(encoder: RequestEncoder) -> ClientRuntime.EventStream.Message { + switch self { + case .allHeaders: + return validMessageWithAllHeaders + case .emptyPayload: + return validMessageEmptyPayload + case .noHeaders: + return validMessageNoHeaders + } + } +} + +let validMessageWithAllHeaders = EventStream.Message( + headers: [ + .init(name: "true", value: .bool(true)), + .init(name: "false", value: .bool(false)), + .init(name: "byte", value: .byte(50)), + .init(name: "short", value: .int16(20_000)), + .init(name: "int", value: .int32(500_000)), + .init(name: "long", value: .int64(50_000_000_000)), + .init(name: "bytes", value: .byteArray("some bytes".data(using: .utf8)!)), + .init(name: "str", value: .string("some str")), + .init(name: "time", value: .timestamp(Date(timeIntervalSince1970: 5_000_000))), + .init(name: "uuid", value: .uuid(UUID(uuidString: "b79bc914-de21-4e13-b8b2-bc47e85b7f0b")!)) + ], + payload: "some payload".data(using: .utf8)! +) + +/// This is the encoded version of the above message validMessageWithAllHeaders +/// https://github.com/awslabs/aws-sdk-kotlin/blob/2e22b7bb25c3ec7b192f305e999d1e6f9c40368b/aws-runtime/protocols/aws-event-stream/common/test/aws/sdk/kotlin/runtime/protocol/eventstream/MessageTest.kt#L29 +let validMessageDataWithAllHeaders = Data([ + 0x00, 0x00, 0x00, 0x96, 0x00, 0x00, 0x00, 0x7a, 0x8b, 0xb4, 0x95, 0xfb, 0x04, 0x74, 0x72, 0x75, + 0x65, 0x00, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x01, 0x04, 0x62, 0x79, 0x74, 0x65, 0x02, 0x32, + 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x03, 0x4e, 0x20, 0x03, 0x69, 0x6e, 0x74, 0x04, 0x00, 0x07, + 0xa1, 0x20, 0x04, 0x6c, 0x6f, 0x6e, 0x67, 0x05, 0x00, 0x00, 0x00, 0x0b, 0xa4, 0x3b, 0x74, 0x00, + 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x06, 0x00, 0x0a, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x03, 0x73, 0x74, 0x72, 0x07, 0x00, 0x08, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x73, + 0x74, 0x72, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x08, 0x00, 0x00, 0x00, 0x01, 0x2a, 0x05, 0xf2, 0x00, + 0x04, 0x75, 0x75, 0x69, 0x64, 0x09, 0xb7, 0x9b, 0xc9, 0x14, 0xde, 0x21, 0x4e, 0x13, 0xb8, 0xb2, + 0xbc, 0x47, 0xe8, 0x5b, 0x7f, 0x0b, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x01, 0xa0, 0x58, 0x60, +]) + +let validMessageEmptyPayload = EventStream.Message( + headers: [ + .init(name: "some-header", value: .int16(500)), + ] +) + +/// This is the encoded version of the above message validMessageEmptyPayload +/// https://github.com/awslabs/aws-sdk-kotlin/blob/2e22b7bb25c3ec7b192f305e999d1e6f9c40368b/aws-runtime/protocols/aws-event-stream/common/test/aws/sdk/kotlin/runtime/protocol/eventstream/MessageTest.kt#L42 +let validMessageDataEmptyPayload = Data([ + 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x0f, 0x17, 0x2d, 0xc2, 0xab, 0x0b, 0x73, 0x6f, 0x6d, + 0x65, 0x2d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x03, 0x01, 0xf4, 0x93, 0x3c, 0x5c, 0xad, +]) + +let validMessageNoHeaders = EventStream.Message( + payload: "another test payload".data(using: .utf8)! +) + +/// This is the encoded version of the above message validMessageNoHeaders +/// https://github.com/awslabs/aws-sdk-kotlin/blob/2e22b7bb25c3ec7b192f305e999d1e6f9c40368b/aws-runtime/protocols/aws-event-stream/common/test/aws/sdk/kotlin/runtime/protocol/eventstream/MessageTest.kt#L47 +let validMessageDataNoHeaders = Data([ + 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x51, 0x63, 0x56, 0xad, 0x61, 0x6e, 0x6f, 0x74, + 0x68, 0x65, 0x72, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x8d, 0xf8, 0x0e, 0x65, +]) diff --git a/Tests/Core/AWSClientRuntimeTests/Middlewares/Sha256TreeHashMiddlewareTests.swift b/Tests/Core/AWSClientRuntimeTests/Middlewares/Sha256TreeHashMiddlewareTests.swift index 896c295d1b8..545ce868dca 100644 --- a/Tests/Core/AWSClientRuntimeTests/Middlewares/Sha256TreeHashMiddlewareTests.swift +++ b/Tests/Core/AWSClientRuntimeTests/Middlewares/Sha256TreeHashMiddlewareTests.swift @@ -18,8 +18,8 @@ class Sha256TreeHashMiddlewareTests: XCTestCase { let expectation = XCTestExpectation(description: "closure was run") let bytesIn5_5MB: Int = Int(1024 * 1024 * 5.5) let byteArray: [UInt8] = Array(repeating: 0, count: bytesIn5_5MB) - let byteBuffer = ByteBuffer(bytes: byteArray) - let streamInput = MockStreamInput(body: ByteStream.buffer(byteBuffer)) + let byteStream = ByteStream.stream(BufferedStream(data: .init(byteArray), isClosed: true)) + let streamInput = MockStreamInput(body: byteStream) var stack = OperationStack(id: "TreeHashMiddlewareTestStack") stack.serializeStep.intercept(position: .before, middleware: MockSerializeStreamMiddleware()) let mockHttpResponse = HttpResponse(body: HttpBody.none, statusCode: .accepted) diff --git a/Tests/Core/AWSClientRuntimeTests/Protocols/RestJSON/RestJSONErrorTests.swift b/Tests/Core/AWSClientRuntimeTests/Protocols/RestJSON/RestJSONErrorTests.swift index 1795731bda2..3c2b1609b9d 100644 --- a/Tests/Core/AWSClientRuntimeTests/Protocols/RestJSON/RestJSONErrorTests.swift +++ b/Tests/Core/AWSClientRuntimeTests/Protocols/RestJSON/RestJSONErrorTests.swift @@ -133,7 +133,7 @@ public enum GreetingWithErrorsError { } extension GreetingWithErrorsError: HttpResponseBinding { - public init(httpResponse: HttpResponse, decoder: ResponseDecoder? = nil) throws { + public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder?) throws { let errorDetails = try RestJSONError(httpResponse: httpResponse) let requestID = httpResponse.headers.value(for: X_AMZN_REQUEST_ID_HEADER) try self.init(errorType: errorDetails.errorType, httpResponse: httpResponse, decoder: decoder, message: errorDetails.errorMessage, requestID: requestID) diff --git a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/ComplexXMLError+ResponseInit.swift b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/ComplexXMLError+ResponseInit.swift index 699bd8b48bd..fcc5e8ac093 100644 --- a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/ComplexXMLError+ResponseInit.swift +++ b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/ComplexXMLError+ResponseInit.swift @@ -18,7 +18,7 @@ extension ComplexXMLError: AWSHttpServiceError { self.header = nil } - if let data = httpResponse.body.toBytes()?.getData(), let responseDecoder = decoder { + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.nested = output.error.nested self.topLevel = output.error.topLevel diff --git a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/ComplexXMLErrorNoErrorWrapping+Init.swift b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/ComplexXMLErrorNoErrorWrapping+Init.swift index 9f9413602ef..efdead66358 100644 --- a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/ComplexXMLErrorNoErrorWrapping+Init.swift +++ b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/ComplexXMLErrorNoErrorWrapping+Init.swift @@ -17,7 +17,7 @@ extension ComplexXMLErrorNoErrorWrapping: AWSHttpServiceError { } else { self.header = nil } - if let data = httpResponse.body.toBytes()?.getData(), let responseDecoder = decoder { + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: ComplexXMLErrorNoErrorWrappingBody = try responseDecoder.decode(responseBody: data) self.nested = output.nested self.topLevel = output.topLevel diff --git a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/GreetingWithErrorsNoErrorWrappingOutputError+HttpResponseBinding.swift b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/GreetingWithErrorsNoErrorWrappingOutputError+HttpResponseBinding.swift index ea62d92b432..987631f38ee 100644 --- a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/GreetingWithErrorsNoErrorWrappingOutputError+HttpResponseBinding.swift +++ b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/GreetingWithErrorsNoErrorWrappingOutputError+HttpResponseBinding.swift @@ -11,7 +11,7 @@ import AWSClientRuntime import ClientRuntime extension GreetingWithErrorsNoErrorWrappingOutputError: HttpResponseBinding { - public init(httpResponse: HttpResponse, decoder: ResponseDecoder? = nil) throws { + public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder?) throws { let errorDetails = try RestXMLError(httpResponse: httpResponse) try self.init(errorType: errorDetails.errorCode, httpResponse: httpResponse, decoder: decoder, message: errorDetails.message, requestID: errorDetails.requestId) } diff --git a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/GreetingWithErrorsOutputError+ResponseInit.swift b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/GreetingWithErrorsOutputError+ResponseInit.swift index 0707eac3f24..c734dd02bbf 100644 --- a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/GreetingWithErrorsOutputError+ResponseInit.swift +++ b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/GreetingWithErrorsOutputError+ResponseInit.swift @@ -9,7 +9,7 @@ import AWSClientRuntime import ClientRuntime extension GreetingWithErrorsOutputError: HttpResponseBinding { - public init(httpResponse: HttpResponse, decoder: ResponseDecoder? = nil) throws { + public init(httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder?) throws { let errorDetails = try RestXMLError(httpResponse: httpResponse) try self.init(errorType: errorDetails.errorCode, httpResponse: httpResponse, decoder: decoder, message: errorDetails.message, requestID: errorDetails.requestId) } diff --git a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/InvalidGreeting+ResponseInit.swift b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/InvalidGreeting+ResponseInit.swift index 779ee5c6fe3..bafe6bad42a 100644 --- a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/InvalidGreeting+ResponseInit.swift +++ b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/Models/Errors/InvalidGreeting+ResponseInit.swift @@ -13,7 +13,7 @@ import ClientRuntime extension InvalidGreeting: AWSHttpServiceError { public init (httpResponse: HttpResponse, decoder: ResponseDecoder? = nil, message: String? = nil, requestID: String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), let responseDecoder = decoder { + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: InvalidGreetingBody = try responseDecoder.decode(responseBody: data) self.message = output.message } else { diff --git a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/RestXMLErrorTests.swift b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/RestXMLErrorTests.swift index 5e2570a27c3..0c220a85546 100644 --- a/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/RestXMLErrorTests.swift +++ b/Tests/Core/AWSClientRuntimeTests/Protocols/RestXML/RestXMLErrorTests.swift @@ -21,7 +21,7 @@ class RestXMLErrorTests: HttpResponseTestBase { headers: [ "Content-Type": "application/xml" ], - content: HttpBody.stream(ByteStream.from(data:""" + content: HttpBody(byteStream: ByteStream.from(data:""" Sender @@ -66,7 +66,7 @@ class RestXMLErrorTests: HttpResponseTestBase { "Content-Type": "application/xml", "X-Header": "Header" ], - content: HttpBody.stream(ByteStream.from(data:""" + content: HttpBody(byteStream: ByteStream.from(data:""" Sender @@ -121,7 +121,7 @@ class RestXMLErrorTests: HttpResponseTestBase { "Content-Type": "application/xml", "X-Header": "Header" ], - content: HttpBody.stream(ByteStream.from(data:""" + content: HttpBody(byteStream: ByteStream.from(data:""" Sender ComplexXMLErrorNoErrorWrapping @@ -173,7 +173,7 @@ class RestXMLErrorTests: HttpResponseTestBase { "Content-Type": "application/xml", "X-Header": "Header" ], - content: HttpBody.stream(ByteStream.from(data:""" + content: HttpBody(byteStream: ByteStream.from(data:""" AccessDenied diff --git a/Tests/Core/AWSClientRuntimeTests/Sigv4/SigV4SigningTests.swift b/Tests/Core/AWSClientRuntimeTests/Sigv4/SigV4SigningTests.swift index c9d15825f25..2804b9189ab 100644 --- a/Tests/Core/AWSClientRuntimeTests/Sigv4/SigV4SigningTests.swift +++ b/Tests/Core/AWSClientRuntimeTests/Sigv4/SigV4SigningTests.swift @@ -16,44 +16,116 @@ class Sigv4SigningTests: XCTestCase { CommonRuntimeKit.initialize() } - class MyCustomCredentialsProvider: AWSClientRuntime.CredentialsProviding { - func getCredentials() async throws -> AWSCredentials { - return AWSCredentials( - accessKey: "AKIDEXAMPLE", - secret: "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", - expirationTimeout: .init(timeIntervalSinceNow: 30) - ) - } - } - - func testPresigner() async throws { - let dateString = "2015-08-30T12:36:00Z" - guard let date = TimestampFormatter(format: .dateTime).date(from: dateString) else { - XCTFail("Unable to parse date") - return - } - - - let requestBuilder = SdkHttpRequestBuilder() - .withHost("example.amazonaws.com") - .withPath("") - .withMethod(.get) - .withPort(443) - .withProtocol(.http) - .withHeader(name: "host", value: "example.amazonaws.com") - .withQueryItem(URLQueryItem(name: "%E1%88%B4", value: "bar")) - - guard let url = await AWSSigV4Signer.sigV4SignedURL(requestBuilder: requestBuilder, - credentialsProvider: MyCustomCredentialsProvider(), - signingName: "service", - signingRegion: "us-east-1", - date: date, - expiration: 86400, - signingAlgorithm: .sigv4) else { - XCTFail("Unable to generate URL") - return - } - XCTAssertEqual("http://example.amazonaws.com?%E1%88%B4=bar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIDEXAMPLE%2F20150830%2Fus-east-1%2Fservice%2Faws4_request&X-Amz-Date=20150830T123600Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=32dea9080047b41e56ee852fe3eba49dae1911b9c5e5728cc1691704f168c70f", url.absoluteString) - } + func testPresigner() async throws { + let dateString = "2015-08-30T12:36:00Z" + guard let date = TimestampFormatter(format: .dateTime).date(from: dateString) else { + XCTFail("Unable to parse date") + return + } + + + let requestBuilder = SdkHttpRequestBuilder() + .withHost("example.amazonaws.com") + .withPath("") + .withMethod(.get) + .withPort(443) + .withProtocol(.http) + .withHeader(name: "host", value: "example.amazonaws.com") + .withQueryItem(URLQueryItem(name: "%E1%88%B4", value: "bar")) + + guard let url = await AWSSigV4Signer.sigV4SignedURL(requestBuilder: requestBuilder, + credentialsProvider: MyCustomCredentialsProvider(), + signingName: "service", + signingRegion: "us-east-1", + date: date, + expiration: 86400, + signingAlgorithm: .sigv4) else { + XCTFail("Unable to generate URL") + return + } + XCTAssertEqual("http://example.amazonaws.com?%E1%88%B4=bar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIDEXAMPLE%2F20150830%2Fus-east-1%2Fservice%2Faws4_request&X-Amz-Date=20150830T123600Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=32dea9080047b41e56ee852fe3eba49dae1911b9c5e5728cc1691704f168c70f", url.absoluteString) + } + + func testSignEvent() async { + let credentials = AWSCredentials(accessKey: "fake access key", secret: "fake secret key") + + let encoder = AWSEventStream.AWSMessageEncoder() + + let message = EventStream.Message( + headers: [ + .init(name: "some-header", value: .string("value")), + ], + payload: "test payload".data(using: .utf8)! + ) + + // create Date with fractional seconds + let formatter = ISO8601DateFormatter() + formatter.timeZone = TimeZone(identifier: "UTC") + formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds] + let epoch = formatter.date(from: "1973-11-29T21:33:09.000001234Z")! + + var credentialsProvider = try! StaticCredentialsProvider( + credentials + ) + + let context = HttpContextBuilder() + .withSigningName(value: "testservice") + .withRegion(value: "us-east-1") + .withCredentialsProvider(value: credentialsProvider) + .build() + + let signingConfig = try! await context.makeEventStreamSigningConfig(date: epoch.withoutFractionalSeconds()) + + let prevSignature = try! "last message sts".data(using: .utf8)!.sha256().encodeToHexString() + + let messagePayload = try! encoder.encode(message: message) + + let result = try! await AWSSigV4Signer.signEvent(payload: messagePayload, + previousSignature: prevSignature, + signingConfig: signingConfig) + XCTAssertEqual(":date", result.output.headers[0].name) + + guard case let .timestamp(dateHeaderValue) = result.output.headers[0].value else { + XCTFail() + return + } + + XCTAssertEqual(epoch.timeIntervalSince1970, dateHeaderValue.timeIntervalSince1970) + + XCTAssertEqual(":chunk-signature", result.output.headers[1].name) + print(result.signature) + guard case let .byteArray(actualSignatureBuffer) = result.output.headers[1].value else { + XCTFail() + return + } + let actualSignature = actualSignatureBuffer.encodeToHexString() + XCTAssertEqual(result.signature, actualSignature) + + let expected = "1ea04a4f6becd85ae3e38e379ffaf4bb95042603f209512476cc6416868b31ee" + XCTAssertEqual(expected, actualSignature) + } } +class MyCustomCredentialsProvider: AWSClientRuntime.CredentialsProviding { + let credentials: AWSCredentials + + init(credentials: AWSCredentials) { + self.credentials = credentials + } + + convenience init() { + self.init(credentials: AWSCredentials( + accessKey: "AKIDEXAMPLE", + secret: "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", + expirationTimeout: .init(timeIntervalSinceNow: 30) + )) + } + + func getCredentials() async throws -> AWSClientRuntime.AWSCredentials { + return AWSCredentials( + accessKey: "AKIDEXAMPLE", + secret: "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", + expirationTimeout: .init(timeIntervalSinceNow: 30) + ) + } +} diff --git a/buildSrc/src/main/kotlin/software/amazon/smithy/gradle/tasks/ProtocolTestTask.kt b/buildSrc/src/main/kotlin/software/amazon/smithy/gradle/tasks/ProtocolTestTask.kt index 1eaf0fcccc3..39e45ed4635 100644 --- a/buildSrc/src/main/kotlin/software/amazon/smithy/gradle/tasks/ProtocolTestTask.kt +++ b/buildSrc/src/main/kotlin/software/amazon/smithy/gradle/tasks/ProtocolTestTask.kt @@ -34,10 +34,26 @@ open class ProtocolTestTask : DefaultTask() { args = listOf("Package.swift") } + // build including tests project.exec { workingDir = generatedBuildDir executable = "swift" - args = listOf("test") + args = listOf("build", "--build-tests") + } + + // run tests if test target exists + // test target directory ends with "Tests" + val testTargetDir = generatedBuildDir.listFiles().firstOrNull { it.name.endsWith("Tests") } + if (testTargetDir == null) { + println("[$protocol] no test target found") + return + } + + // test without building + project.exec { + workingDir = generatedBuildDir + executable = "swift" + args = listOf("test", "--skip-build") } } } \ No newline at end of file diff --git a/codegen/protocol-test-codegen-local/build.gradle.kts b/codegen/protocol-test-codegen-local/build.gradle.kts index f57a8086059..ad105a9c15d 100644 --- a/codegen/protocol-test-codegen-local/build.gradle.kts +++ b/codegen/protocol-test-codegen-local/build.gradle.kts @@ -39,6 +39,10 @@ val codegenTests = listOf( CodegenTest( "aws.protocoltests.waiters#Waiters", "Waiters" + ), + CodegenTest( + "aws.protocoltests.restjson#TestService", + "EventStream" ) ) @@ -91,7 +95,7 @@ tasks["clean"].doFirst { fun exposeLocalTestsToMainGradleTestSuite() { - val enabledProtocols = listOf("rest_json_extras", "aws-restjson") + val enabledProtocols = listOf("rest_json_extras", "aws-restjson", "eventstream") enabledProtocols.forEach { tasks.register("testProtocol-${it}") { dependsOn(tasks.build) diff --git a/codegen/protocol-test-codegen-local/model/eventstream.smithy b/codegen/protocol-test-codegen-local/model/eventstream.smithy new file mode 100644 index 00000000000..7f467fe64a2 --- /dev/null +++ b/codegen/protocol-test-codegen-local/model/eventstream.smithy @@ -0,0 +1,83 @@ +namespace aws.protocoltests.restjson + +use aws.protocols#restJson1 +use aws.api#service +use aws.auth#sigv4 + +@restJson1 +@sigv4(name: "event-stream-test") +@service(sdkId: "EventStreamTest") +service TestService { version: "123", operations: [TestStreamOp] } + +@http(method: "POST", uri: "/test") +operation TestStreamOp { + input: TestStreamInputOutput, + output: TestStreamInputOutput, + errors: [SomeError], +} + +structure TestStreamInputOutput { + @httpPayload + @required + value: TestStream +} + +@error("client") +structure SomeError { + Message: String, +} + +union TestUnion { + Foo: String, + Bar: Integer, +} + +structure TestStruct { + someString: String, + someInt: Integer, +} + +structure MessageWithBlob { @eventPayload data: Blob } + +structure MessageWithString { @eventPayload data: String } + +structure MessageWithStruct { @eventPayload someStruct: TestStruct } + +structure MessageWithUnion { @eventPayload someUnion: TestUnion } + +structure MessageWithHeaders { + @eventHeader blob: Blob, + @eventHeader boolean: Boolean, + @eventHeader byte: Byte, + @eventHeader int: Integer, + @eventHeader long: Long, + @eventHeader short: Short, + @eventHeader string: String, + @eventHeader timestamp: Timestamp, +} +structure MessageWithHeaderAndPayload { + @eventHeader header: String, + @eventPayload payload: Blob, +} +structure MessageWithNoHeaderPayloadTraits { + someInt: Integer, + someString: String, +} + +structure MessageWithUnboundPayloadTraits { + @eventHeader header: String, + unboundString: String, +} + +@streaming +union TestStream { + MessageWithBlob: MessageWithBlob, + MessageWithString: MessageWithString, + MessageWithStruct: MessageWithStruct, + MessageWithUnion: MessageWithUnion, + MessageWithHeaders: MessageWithHeaders, + MessageWithHeaderAndPayload: MessageWithHeaderAndPayload, + MessageWithNoHeaderPayloadTraits: MessageWithNoHeaderPayloadTraits, + MessageWithUnboundPayloadTraits: MessageWithUnboundPayloadTraits, + SomeError: SomeError, +} diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSClientRuntimeTypes.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSClientRuntimeTypes.kt index 500781d41e0..5484707045a 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSClientRuntimeTypes.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSClientRuntimeTypes.kt @@ -62,6 +62,13 @@ object AWSClientRuntimeTypes { dependency(AWSSwiftDependency.AWS_COMMON_RUNTIME) } } + + object AWSEventStream { + + val AWSMessageDecoder = runtimeSymbol("AWSEventStream.AWSMessageDecoder") + val AWSMessageSigner = runtimeSymbol("AWSEventStream.AWSMessageSigner") + val AWSMessageEncoder = runtimeSymbol("AWSEventStream.AWSMessageEncoder") + } } private fun runtimeSymbol(name: String): Symbol = buildSymbol { diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpBindingProtocolGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpBindingProtocolGenerator.kt index d6dc3b35c75..73d5742a8ae 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpBindingProtocolGenerator.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpBindingProtocolGenerator.kt @@ -11,6 +11,8 @@ import software.amazon.smithy.codegen.core.Symbol import software.amazon.smithy.model.shapes.MemberShape import software.amazon.smithy.model.shapes.OperationShape import software.amazon.smithy.model.shapes.Shape +import software.amazon.smithy.model.shapes.ShapeId +import software.amazon.smithy.model.shapes.UnionShape import software.amazon.smithy.model.traits.TimestampFormatTrait import software.amazon.smithy.rulesengine.language.EndpointRuleSet import software.amazon.smithy.rulesengine.traits.EndpointRuleSetTrait @@ -26,7 +28,10 @@ import software.amazon.smithy.swift.codegen.integration.ProtocolGenerator import software.amazon.smithy.swift.codegen.integration.serde.json.StructDecodeGenerator import software.amazon.smithy.swift.codegen.integration.serde.json.StructEncodeGenerator import software.amazon.smithy.swift.codegen.model.ShapeMetadata +import software.amazon.smithy.swift.codegen.model.findStreamingMember import software.amazon.smithy.swift.codegen.model.getTrait +import software.amazon.smithy.swift.codegen.model.isInputEventStream +import software.amazon.smithy.swift.codegen.model.isOutputEventStream import software.amazon.smithy.swift.codegen.testModuleName abstract class AWSHttpBindingProtocolGenerator : HttpBindingProtocolGenerator() { @@ -120,4 +125,49 @@ abstract class AWSHttpBindingProtocolGenerator : HttpBindingProtocolGenerator() operationMiddleware.appendMiddleware(operation, UserAgentMiddleware(ctx.settings)) } + + override fun generateMessageMarshallable(ctx: ProtocolGenerator.GenerationContext) { + var streamingShapes = outputStreamingShapes(ctx) + val messageUnmarshallableGenerator = MessageUnmarshallableGenerator(ctx) + streamingShapes.forEach { streamingMember -> + messageUnmarshallableGenerator.renderNotImplemented(streamingMember) + } + } + + override fun generateMessageUnmarshallable(ctx: ProtocolGenerator.GenerationContext) { + val streamingShapes = inputStreamingShapes(ctx) + val messageMarshallableGenerator = MessageMarshallableGenerator(ctx, defaultContentType) + for (streamingShape in streamingShapes) { + messageMarshallableGenerator.renderNotImplemented(streamingShape) + } + } + + fun outputStreamingShapes(ctx: ProtocolGenerator.GenerationContext): MutableSet { + val streamingShapes = mutableMapOf() + val streamingOperations = getHttpBindingOperations(ctx).filter { it.isOutputEventStream(ctx.model) } + streamingOperations.forEach { operation -> + val input = operation.output.get() + val streamingMember = ctx.model.expectShape(input).findStreamingMember(ctx.model) + streamingMember?.let { + val targetType = ctx.model.expectShape(it.target) + streamingShapes[targetType.id] = it + } + } + + return streamingShapes.values.toMutableSet() + } + + fun inputStreamingShapes(ctx: ProtocolGenerator.GenerationContext): MutableSet { + val streamingShapes = mutableSetOf() + val streamingOperations = getHttpBindingOperations(ctx).filter { it.isInputEventStream(ctx.model) } + streamingOperations.forEach { operation -> + val input = operation.input.get() + val streamingMember = ctx.model.expectShape(input).findStreamingMember(ctx.model) + streamingMember?.let { + val targetType = ctx.model.expectShape(it.target) + streamingShapes.add(targetType as UnionShape) + } + } + return streamingShapes + } } diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolClientOperationFactory.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolClientOperationFactory.kt index 943428820c5..a38fe973ff3 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolClientOperationFactory.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolClientOperationFactory.kt @@ -43,4 +43,11 @@ class AWSHttpProtocolNoopCustomizations : DefaultHttpProtocolCustomizations() { op: OperationShape ) { } + + override fun renderEventStreamAttributes( + ctx: ProtocolGenerator.GenerationContext, + writer: SwiftWriter, + op: OperationShape, + ) { + } } diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolCustomizations.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolCustomizations.kt index a259add536e..5ea9267d304 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolCustomizations.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolCustomizations.kt @@ -14,6 +14,8 @@ import software.amazon.smithy.swift.codegen.integration.DefaultHttpProtocolCusto import software.amazon.smithy.swift.codegen.integration.HttpProtocolServiceClient import software.amazon.smithy.swift.codegen.integration.ProtocolGenerator import software.amazon.smithy.swift.codegen.integration.ServiceConfig +import software.amazon.smithy.swift.codegen.model.isInputEventStream +import software.amazon.smithy.swift.codegen.model.isOutputEventStream abstract class AWSHttpProtocolCustomizations : DefaultHttpProtocolCustomizations() { @@ -30,6 +32,16 @@ abstract class AWSHttpProtocolCustomizations : DefaultHttpProtocolCustomizations } } + override fun renderEventStreamAttributes( + ctx: ProtocolGenerator.GenerationContext, + writer: SwiftWriter, + op: OperationShape + ) { + if (op.isInputEventStream(ctx.model) && op.isOutputEventStream(ctx.model)) { + writer.write("try context.setupBidirectionalStreaming()") + } + } + override fun renderInternals(ctx: ProtocolGenerator.GenerationContext) { EndpointResolverGenerator().render(ctx) } diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/MessageMarshallableGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/MessageMarshallableGenerator.kt new file mode 100644 index 00000000000..bb80da8c645 --- /dev/null +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/MessageMarshallableGenerator.kt @@ -0,0 +1,207 @@ +package software.amazon.smithy.aws.swift.codegen + +import software.amazon.smithy.codegen.core.CodegenException +import software.amazon.smithy.codegen.core.Symbol +import software.amazon.smithy.model.shapes.MemberShape +import software.amazon.smithy.model.shapes.ShapeType +import software.amazon.smithy.model.shapes.UnionShape +import software.amazon.smithy.model.traits.EventHeaderTrait +import software.amazon.smithy.model.traits.EventPayloadTrait +import software.amazon.smithy.swift.codegen.ClientRuntimeTypes +import software.amazon.smithy.swift.codegen.SwiftDependency +import software.amazon.smithy.swift.codegen.SwiftWriter +import software.amazon.smithy.swift.codegen.integration.ProtocolGenerator +import software.amazon.smithy.swift.codegen.model.eventStreamEvents +import software.amazon.smithy.swift.codegen.model.hasTrait + +class MessageMarshallableGenerator( + private val ctx: ProtocolGenerator.GenerationContext, + private val payloadContentType: String +) { + internal fun render(streamShape: UnionShape) { + val symbol: Symbol = ctx.symbolProvider.toSymbol(streamShape) + val rootNamespace = ctx.settings.moduleName + val streamMember = Symbol.builder() + .definitionFile("./$rootNamespace/models/${symbol.name}+MessageMarshallable.swift") + .name(symbol.name) + .build() + ctx.delegator.useShapeWriter(streamMember) { writer -> + writer.addImport(SwiftDependency.CLIENT_RUNTIME.target) + writer.openBlock( + "extension ${symbol.fullName}: \$N {", "}", + ClientRuntimeTypes.Serde.MessageMarshallable, + ) { + writer.openBlock( + "public func marshall(encoder: \$N) throws -> \$N {", "}", + ClientRuntimeTypes.Serde.RequestEncoder, + ClientRuntimeTypes.EventStream.Message + ) { + writer.write( + "var headers: [\$N] = [.init(name: \":message-type\", value: .string(\"event\"))]", + ClientRuntimeTypes.EventStream.Header + ) + writer.write("var payload: \$D", ClientRuntimeTypes.Core.Data) + writer.write("switch self {") + streamShape.eventStreamEvents(ctx.model).forEach { member -> + val memberName = ctx.symbolProvider.toMemberName(member) + writer.write("case .\$L(let value):", memberName) + writer.indent() + writer.addStringHeader(":event-type", member.memberName) + val variant = ctx.model.expectShape(member.target) + val eventHeaderBindings = variant.members().filter { + it.hasTrait() + } + val eventPayloadBinding = variant.members().firstOrNull { + it.hasTrait() + } + val unbound = variant.members().filterNot { + it.hasTrait() || it.hasTrait() + } + + eventHeaderBindings.forEach { + renderSerializeEventHeader(ctx, it, writer) + } + + when { + eventPayloadBinding != null -> renderSerializeEventPayload(ctx, eventPayloadBinding, writer) + unbound.isNotEmpty() -> { + writer.addStringHeader(":content-type", payloadContentType) + // get a payload serializer for the given members of the variant + writer.write("payload = try encoder.encode(value)") + } + } + writer.dedent() + } + writer.write("case .sdkUnknown(_):") + writer.indent() + writer.write( + "throw \$N.serializationFailed(\"cannot serialize the unknown event type!\")", + ClientRuntimeTypes.Core.ClientError + ) + writer.dedent() + writer.write("}") + writer.write( + "return \$N(headers: headers, payload: payload ?? .init())", + ClientRuntimeTypes.EventStream.Message + ) + } + } + } + } + + /** + * extension TestServiceClientTypes.TestStream: ClientRuntime.MessageMarshallable { + * public func marshall(encoder: ClientRuntime.RequestEncoder) throws -> ClientRuntime.EventStream.Message { + * fatalError("not implemented") + * } + * } + * + */ + internal fun renderNotImplemented(streamShape: UnionShape) { + val symbol: Symbol = ctx.symbolProvider.toSymbol(streamShape) + val rootNamespace = ctx.settings.moduleName + val streamMember = Symbol.builder() + .definitionFile("./$rootNamespace/models/${symbol.name}+MessageMarshallable.swift") + .name(symbol.name) + .build() + ctx.delegator.useShapeWriter(streamMember) { writer -> + writer.addImport(SwiftDependency.CLIENT_RUNTIME.target) + writer.openBlock( + "extension ${symbol.fullName}: \$N {", "}", + ClientRuntimeTypes.Serde.MessageMarshallable, + ) { + writer.openBlock( + "public func marshall(encoder: \$N) throws -> \$N {", "}", + ClientRuntimeTypes.Serde.RequestEncoder, + ClientRuntimeTypes.EventStream.Message + ) { + writer.write("fatalError(\"not implemented\")") + } + } + } + } + + /** + * headers.append(.init(name: ":event-type", value: .string("MessageWithBlob"))) + */ + private fun SwiftWriter.addStringHeader(name: String, value: String) { + write("headers.append(.init(name: \$S, value: .string(\$S)))", name, value) + } + + private fun renderSerializeEventPayload(ctx: ProtocolGenerator.GenerationContext, member: MemberShape, writer: SwiftWriter) { + val target = ctx.model.expectShape(member.target) + val memberName = ctx.symbolProvider.toMemberName(member) + when (target.type) { + ShapeType.BLOB -> { + writer.addStringHeader(":content-type", "application/octet-stream") + writer.write("payload = value.\$L", memberName) + } + ShapeType.STRING -> { + writer.addStringHeader(":content-type", "text/plain") + writer.write("payload = value.\$L?.data(using: .utf8)", memberName) + } + ShapeType.STRUCTURE, ShapeType.UNION -> { + writer.addStringHeader(":content-type", payloadContentType) + writer.write("payload = try encoder.encode(value)") + } + else -> throw CodegenException("unsupported shape type `${target.type}` for target: $target; expected blob, string, structure, or union for eventPayload member: $member") + } + } + +/** + * + * if let headerValue = value.blob { + * headers.append(.init(name: "blob", value: .byteArray(headerValue))) + * } + * if let headerValue = value.boolean { + * headers.append(.init(name: "boolean", value: .bool(headerValue))) + * } + * if let headerValue = value.byte { + * headers.append(.init(name: "byte", value: .byte(headerValue))) + * } + * if let headerValue = value.int { + * headers.append(.init(name: "int", value: .int32(Int32(headerValue)))) + * } + * if let headerValue = value.long { + * headers.append(.init(name: "long", value: .int64(Int64(headerValue)))) + * } + * if let headerValue = value.short { + * headers.append(.init(name: "short", value: .int16(headerValue))) + * } + * if let headerValue = value.string { + * headers.append(.init(name: "string", value: .string(headerValue))) + * } + * if let headerValue = value.timestamp { + * headers.append(.init(name: "timestamp", value: .timestamp(headerValue))) + * } +*/ + private fun renderSerializeEventHeader(ctx: ProtocolGenerator.GenerationContext, member: MemberShape, writer: SwiftWriter) { + val target = ctx.model.expectShape(member.target) + val headerValue = when (target.type) { + ShapeType.BOOLEAN -> "bool" + ShapeType.BYTE -> "byte" + ShapeType.SHORT -> "int16" + ShapeType.INTEGER -> "int32" + ShapeType.LONG -> "int64" + ShapeType.BLOB -> "byteArray" + ShapeType.STRING -> "string" + ShapeType.TIMESTAMP -> "timestamp" + else -> throw CodegenException("unsupported shape type `${target.type}` for eventHeader member `$member`; target: $target") + } + + val memberName = ctx.symbolProvider.toMemberName(member) + writer.openBlock("if let headerValue = value.\$L {", "}", memberName) { + when (target.type) { + ShapeType.INTEGER -> { + writer.write("headers.append(.init(name: \"${member.memberName}\", value: .\$L(Int32(headerValue))))", headerValue) + } + ShapeType.LONG -> { + writer.write("headers.append(.init(name: \"${member.memberName}\", value: .\$L(Int64(headerValue))))", headerValue) + } + else -> { + writer.write("headers.append(.init(name: \"${member.memberName}\", value: .\$L(headerValue)))", headerValue) + } + } + } + } +} diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/MessageUnmarshallableGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/MessageUnmarshallableGenerator.kt new file mode 100644 index 00000000000..279713d26f1 --- /dev/null +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/MessageUnmarshallableGenerator.kt @@ -0,0 +1,226 @@ +package software.amazon.smithy.aws.swift.codegen + +import software.amazon.smithy.codegen.core.CodegenException +import software.amazon.smithy.codegen.core.Symbol +import software.amazon.smithy.model.shapes.MemberShape +import software.amazon.smithy.model.shapes.ShapeType +import software.amazon.smithy.model.shapes.UnionShape +import software.amazon.smithy.model.traits.EventHeaderTrait +import software.amazon.smithy.model.traits.EventPayloadTrait +import software.amazon.smithy.swift.codegen.ClientRuntimeTypes +import software.amazon.smithy.swift.codegen.SwiftDependency +import software.amazon.smithy.swift.codegen.SwiftTypes +import software.amazon.smithy.swift.codegen.SwiftWriter +import software.amazon.smithy.swift.codegen.integration.ProtocolGenerator +import software.amazon.smithy.swift.codegen.model.eventStreamErrors +import software.amazon.smithy.swift.codegen.model.eventStreamEvents +import software.amazon.smithy.swift.codegen.model.expectShape +import software.amazon.smithy.swift.codegen.model.hasTrait + +class MessageUnmarshallableGenerator(val ctx: ProtocolGenerator.GenerationContext) { + fun render( + streamingMember: MemberShape + ) { + val symbol: Symbol = ctx.symbolProvider.toSymbol(ctx.model.expectShape(streamingMember.target)) + val rootNamespace = ctx.settings.moduleName + val streamMember = Symbol.builder() + .definitionFile("./$rootNamespace/models/${symbol.name}+MessageUnmarshallable.swift") + .name(symbol.name) + .build() + + val streamShape = ctx.model.expectShape(streamingMember.target) + val service = ctx.settings.getService(ctx.model) + val serviceSymbol = ctx.symbolProvider.toSymbol(service) + val streamSymbol = ctx.symbolProvider.toSymbol(streamShape) + + ctx.delegator.useShapeWriter(streamMember) { writer -> + + writer.addImport(SwiftDependency.CLIENT_RUNTIME.target) + writer.addImport(AWSSwiftDependency.AWS_CLIENT_RUNTIME.target) + writer.openBlock( + "extension ${streamSymbol.fullName}: \$N {", "}", + ClientRuntimeTypes.Serde.MessageUnmarshallable + ) { + writer.openBlock( + "public init(message: \$N, decoder: \$N) throws {", "}", + ClientRuntimeTypes.EventStream.Message, + ClientRuntimeTypes.Serde.ResponseDecoder + ) { + writer.write("switch try message.type() {") + writer.write("case .event(let params):") + writer.indent { + writer.write("switch params.eventType {") + streamShape.eventStreamEvents(ctx.model).forEach { member -> + writer.write("case \"${member.memberName}\":") + writer.indent { + renderDeserializeEventVariant(ctx, streamSymbol, member, writer) + } + } + writer.write("default:") + writer.indent { + writer.write("self = .sdkUnknown(\"error processing event stream, unrecognized event: \\(params.eventType)\")") + } + writer.write("}") + } + writer.write("case .exception(let params):") + writer.indent { + writer.write( + "let makeError: (\$N, \$N) throws -> \$N = { message, params in", + ClientRuntimeTypes.EventStream.Message, + ClientRuntimeTypes.EventStream.ExceptionParams, + SwiftTypes.Error + ) + writer.indent { + writer.write("switch params.exceptionType {") + streamShape.eventStreamErrors(ctx.model).forEach { member -> + writer.write("case \"${member.memberName}\":") + writer.indent { + writer.write("return try decoder.decode(responseBody: message.payload) as ${member.memberName}") + } + } + writer.write("default:") + writer.indent { + writer.write("let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok)") + writer.write( + "return \$L(httpResponse: httpResponse, message: \"error processing event stream, unrecognized ':exceptionType': \\(params.exceptionType); contentType: \\(params.contentType ?? \"nil\")\")", + AWSClientRuntimeTypes.Core.UnknownAWSHttpServiceError + ) + } + writer.write("}") + } + writer.write("}") + writer.write("let error = try makeError(message, params)") + writer.write("throw error") + } + writer.write("case .error(let params):") + writer.indent { + // this is a service exception still, just un-modeled + writer.write("let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok)") + writer.write( + "throw \$L(httpResponse: httpResponse, message: \"error processing event stream, unrecognized ':errorType': \\(params.errorCode); message: \\(params.message ?? \"nil\")\")", + AWSClientRuntimeTypes.Core.UnknownAWSHttpServiceError + ) + } + writer.write("case .unknown(messageType: let messageType):") + writer.indent { + // this is a client exception because we failed to parse it + writer.write( + "throw \$L.unknownError(\"unrecognized event stream message ':message-type': \\(messageType)\")", + ClientRuntimeTypes.Core.ClientError + ) + } + writer.write("}") + } + } + } + } + + fun renderNotImplemented( + streamingMember: MemberShape + ) { + val symbol: Symbol = ctx.symbolProvider.toSymbol(ctx.model.expectShape(streamingMember.target)) + val rootNamespace = ctx.settings.moduleName + val streamMember = Symbol.builder() + .definitionFile("./$rootNamespace/models/${symbol.name}+MessageUnmarshallable.swift") + .name(symbol.name) + .build() + + val streamShape = ctx.model.expectShape(streamingMember.target) + val streamSymbol = ctx.symbolProvider.toSymbol(streamShape) + + ctx.delegator.useShapeWriter(streamMember) { writer -> + + writer.addImport(SwiftDependency.CLIENT_RUNTIME.target) + writer.addImport(AWSSwiftDependency.AWS_CLIENT_RUNTIME.target) + writer.openBlock( + "extension ${streamSymbol.fullName}: \$N {", "}", + ClientRuntimeTypes.Serde.MessageUnmarshallable + ) { + writer.openBlock( + "public init(message: \$N, decoder: \$N) throws {", "}", + ClientRuntimeTypes.EventStream.Message, + ClientRuntimeTypes.Serde.ResponseDecoder + ) { + writer.write("fatalError(\"Not implemented\")") + } + } + } + } + + private fun renderDeserializeEventVariant(ctx: ProtocolGenerator.GenerationContext, unionSymbol: Symbol, member: MemberShape, writer: SwiftWriter) { + val variant = ctx.model.expectShape(member.target) + + val eventHeaderBindings = variant.members().filter { it.hasTrait() } + val eventPayloadBinding = variant.members().firstOrNull { it.hasTrait() } + val unbound = variant.members().filterNot { it.hasTrait() || it.hasTrait() } + val memberName = ctx.symbolProvider.toMemberName(member) + + if (eventHeaderBindings.isEmpty() && eventPayloadBinding == null) { + writer.write("self = .\$L(try decoder.decode(responseBody: message.payload))", memberName) + } else { + val variantSymbol = ctx.symbolProvider.toSymbol(variant) + writer.write("var event = \$N()", variantSymbol) + // render members bound to header + eventHeaderBindings.forEach { hdrBinding -> + val target = ctx.model.expectShape(hdrBinding.target) + + val conversionFn = when (target.type) { + ShapeType.BOOLEAN -> "bool" + ShapeType.BYTE -> "byte" + ShapeType.SHORT -> "int16" + ShapeType.INTEGER -> "int32" + ShapeType.LONG -> "int64" + ShapeType.BLOB -> "byteArray" + ShapeType.STRING -> "string" + ShapeType.TIMESTAMP -> "timestamp" + else -> throw CodegenException("unsupported eventHeader shape: member=$hdrBinding; targetShape=$target") + } + + writer.openBlock("if case let .\$L(value) = message.headers.value(name: \$S) {", "}", conversionFn, hdrBinding.memberName) { + val memberName = ctx.symbolProvider.toMemberName(hdrBinding) + when (target.type) { + ShapeType.INTEGER, ShapeType.LONG -> { + writer.write("event.\$L = Int(value)", memberName) + } + else -> { + writer.write("event.\$L = value", memberName) + } + } + } + } + + if (eventPayloadBinding != null) { + renderDeserializeExplicitEventPayloadMember(ctx, eventPayloadBinding, writer) + } else { + if (unbound.isNotEmpty()) { + // all remaining members are bound to payload (but not explicitly bound via @eventPayload) + // generate a payload deserializer specific to the unbound members (note this will be a deserializer + // for the overall event shape but only payload members will be considered for deserialization), + // and then assign each deserialized payload member to the current builder instance + unbound.forEach { + val memberName = ctx.symbolProvider.toMemberName(it) + writer.write("event.\$L = try decoder.decode(responseBody: message.payload)", memberName) + } + } + } + writer.write("self = .\$L(event)", memberName) + } + } + + private fun renderDeserializeExplicitEventPayloadMember( + ctx: ProtocolGenerator.GenerationContext, + member: MemberShape, + writer: SwiftWriter, + ) { + val target = ctx.model.expectShape(member.target) + val memberName = ctx.symbolProvider.toMemberName(member) + when (target.type) { + ShapeType.BLOB -> writer.write("event.\$L = message.payload", memberName) + ShapeType.STRING -> writer.write("event.\$L = String(data: message.payload, encoding: .utf8)", memberName) + ShapeType.STRUCTURE, ShapeType.UNION -> { + writer.write("event.\$L = .init(try decoder.decode(responseBody: message.payload))", memberName) + } + else -> throw CodegenException("unsupported shape type `${target.type}` for target: $target; expected blob, string, structure, or union for eventPayload member: $member") + } + } +} diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/PresignerGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/PresignerGenerator.kt index 97a1ed39eee..e0f960cd535 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/PresignerGenerator.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/PresignerGenerator.kt @@ -96,7 +96,7 @@ class PresignerGenerator : SwiftIntegration { } val requestBuilderName = "presignedRequestBuilder" val builtRequestName = "builtRequest" - writer.write("let $requestBuilderName = try await $operationStackName.presignedRequest(context: context.build(), input: input, next: \$N())", NoopHandler) + writer.write("let $requestBuilderName = try await $operationStackName.presignedRequest(context: context, input: input, next: \$N())", NoopHandler) writer.openBlock("guard let $builtRequestName = $requestBuilderName?.build() else {", "}") { writer.write("return nil") } diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/awsjson/AWSJsonHttpResponseBindingErrorGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/awsjson/AWSJsonHttpResponseBindingErrorGenerator.kt index 051d46ac97b..256a719446b 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/awsjson/AWSJsonHttpResponseBindingErrorGenerator.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/awsjson/AWSJsonHttpResponseBindingErrorGenerator.kt @@ -33,7 +33,11 @@ class AWSJsonHttpResponseBindingErrorGenerator : HttpResponseBindingErrorGenerat writer.addImport(SwiftDependency.CLIENT_RUNTIME.target) writer.openBlock("extension \$L: \$N {", "}", operationErrorName, ClientRuntimeTypes.Http.HttpResponseBinding) { - writer.openBlock("public init(httpResponse: \$N, decoder: \$D) throws {", "}", ClientRuntimeTypes.Http.HttpResponse, ClientRuntimeTypes.Serde.ResponseDecoder) { + writer.openBlock( + "public init(httpResponse: \$N, decoder: \$D) throws {", "}", + ClientRuntimeTypes.Http.HttpResponse, + ClientRuntimeTypes.Serde.ResponseDecoder + ) { writer.write("let errorDetails = try \$N(httpResponse: httpResponse)", AWSClientRuntimeTypes.RestJSON.RestJSONError) writer.write("let requestID = httpResponse.headers.value(for: X_AMZN_REQUEST_ID_HEADER)") writer.write("try self.init(errorType: errorDetails.errorType, httpResponse: httpResponse, decoder: decoder, message: errorDetails.errorMessage, requestID: requestID)") diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/customization/MessageEncoderIntegration.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/customization/MessageEncoderIntegration.kt new file mode 100644 index 00000000000..7257df48f35 --- /dev/null +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/customization/MessageEncoderIntegration.kt @@ -0,0 +1,19 @@ +package software.amazon.smithy.aws.swift.codegen.customization + +import software.amazon.smithy.aws.swift.codegen.AWSClientRuntimeTypes +import software.amazon.smithy.aws.swift.codegen.AWSSwiftDependency +import software.amazon.smithy.swift.codegen.integration.SectionWriter +import software.amazon.smithy.swift.codegen.integration.SectionWriterBinding +import software.amazon.smithy.swift.codegen.integration.SwiftIntegration +import software.amazon.smithy.swift.codegen.integration.httpResponse.bindingTraits.HttpResponseTraitWithHttpPayload + +class MessageEncoderIntegration : SwiftIntegration { + private val messageDecoder: SectionWriter = SectionWriter { writer, _ -> + writer.addImport(AWSSwiftDependency.AWS_CLIENT_RUNTIME.target) + writer.write("let messageDecoder = \$N()", AWSClientRuntimeTypes.AWSEventStream.AWSMessageDecoder) + } + override val sectionWriters: List + get() = listOf( + SectionWriterBinding(HttpResponseTraitWithHttpPayload.MessageDecoderSectionId, messageDecoder) + ) +} diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/customization/presignable/PresignableUrlIntegration.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/customization/presignable/PresignableUrlIntegration.kt index 53baeb96df3..4096dd462f4 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/customization/presignable/PresignableUrlIntegration.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/customization/presignable/PresignableUrlIntegration.kt @@ -126,7 +126,7 @@ class PresignableUrlIntegration(private val presignedOperations: Map CustomInvalidBatchError? {", "}") { - writer.openBlock("guard let data = httpResponse.body.toBytes()?.getData() else {", "}") { + writer.openBlock("guard let data = try httpResponse.body.toData() else {", "}") { writer.write("return nil") } writer.write("return try? XMLDecoder().decode(CustomInvalidBatchError.self, from: data)") diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseBindingErrorGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseBindingErrorGenerator.kt index 2fa8f823b4b..3eb8cdf194e 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseBindingErrorGenerator.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseBindingErrorGenerator.kt @@ -28,7 +28,11 @@ class AWSEc2QueryHttpResponseBindingErrorGenerator : HttpResponseBindingErrorGen writer.addImport(SwiftDependency.CLIENT_RUNTIME.target) writer.openBlock("extension \$L: \$N {", "}", operationErrorName, ClientRuntimeTypes.Http.HttpResponseBinding) { - writer.openBlock("public init(httpResponse: \$N, decoder: \$D) throws {", "}", ClientRuntimeTypes.Http.HttpResponse, ClientRuntimeTypes.Serde.ResponseDecoder) { + writer.openBlock( + "public init(httpResponse: \$N, decoder: \$D) throws {", "}", + ClientRuntimeTypes.Http.HttpResponse, + ClientRuntimeTypes.Serde.ResponseDecoder + ) { writer.write("let errorDetails = try Ec2QueryError(httpResponse: httpResponse)") writer.write("try self.init(errorType: errorDetails.errorCode, httpResponse: httpResponse, decoder: decoder, message: errorDetails.message, requestID: errorDetails.requestId)") } diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseTraitWithoutPayload.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseTraitWithoutPayload.kt index b50edf5705e..be05ba564c3 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseTraitWithoutPayload.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseTraitWithoutPayload.kt @@ -36,7 +36,7 @@ class AWSEc2QueryHttpResponseTraitWithoutPayload( .toMutableSet() if (bodyMembersWithoutQueryTrait.isNotEmpty()) { - writer.write("if let data = httpResponse.body.toBytes()?.getData(),") + writer.write("if let data = try httpResponse.body.toData(),") writer.indent() writer.write("let responseDecoder = decoder {") renderWithoutErrorResponseContainer(outputShapeName, bodyMembersWithoutQueryTrait) diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1HttpResponseBindingErrorGeneratable.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1HttpResponseBindingErrorGeneratable.kt index 886f5871b41..15b76ad45b1 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1HttpResponseBindingErrorGeneratable.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1HttpResponseBindingErrorGeneratable.kt @@ -29,7 +29,11 @@ class AWSRestJson1HttpResponseBindingErrorGeneratable : HttpResponseBindingError writer.addImport(SwiftDependency.CLIENT_RUNTIME.target) writer.openBlock("extension \$L: \$N {", "}", operationErrorName, ClientRuntimeTypes.Http.HttpResponseBinding) { - writer.openBlock("public init(httpResponse: \$N, decoder: \$D) throws {", "}", ClientRuntimeTypes.Http.HttpResponse, ClientRuntimeTypes.Serde.ResponseDecoder) { + writer.openBlock( + "public init(httpResponse: \$N, decoder: \$D) throws {", "}", + ClientRuntimeTypes.Http.HttpResponse, + ClientRuntimeTypes.Serde.ResponseDecoder + ) { writer.write("let errorDetails = try \$N(httpResponse: httpResponse)", AWSClientRuntimeTypes.RestJSON.RestJSONError) writer.write("let requestID = httpResponse.headers.value(for: X_AMZN_REQUEST_ID_HEADER)") writer.write("try self.init(errorType: errorDetails.errorType, httpResponse: httpResponse, decoder: decoder, message: errorDetails.errorMessage, requestID: requestID)") diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1ProtocolGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1ProtocolGenerator.kt index bc1a5bc306d..9626e69d1cf 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1ProtocolGenerator.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1ProtocolGenerator.kt @@ -6,9 +6,12 @@ package software.amazon.smithy.aws.swift.codegen.restjson import software.amazon.smithy.aws.swift.codegen.AWSHttpBindingProtocolGenerator import software.amazon.smithy.aws.swift.codegen.AWSHttpProtocolClientCustomizableFactory +import software.amazon.smithy.aws.swift.codegen.MessageMarshallableGenerator +import software.amazon.smithy.aws.swift.codegen.MessageUnmarshallableGenerator import software.amazon.smithy.aws.traits.protocols.RestJson1Trait import software.amazon.smithy.model.shapes.ShapeId import software.amazon.smithy.model.traits.TimestampFormatTrait +import software.amazon.smithy.swift.codegen.integration.ProtocolGenerator import software.amazon.smithy.swift.codegen.integration.codingKeys.CodingKeysCustomizationJsonName import software.amazon.smithy.swift.codegen.integration.codingKeys.DefaultCodingKeysGenerator import software.amazon.smithy.swift.codegen.integration.httpResponse.HttpResponseGenerator @@ -25,4 +28,20 @@ class AWSRestJson1ProtocolGenerator : AWSHttpBindingProtocolGenerator() { AWSRestJson1HttpResponseBindingErrorGeneratable() ) override val serdeContext = serdeContextJSON + + override fun generateMessageMarshallable(ctx: ProtocolGenerator.GenerationContext) { + var streamingShapes = outputStreamingShapes(ctx) + val messageUnmarshallableGenerator = MessageUnmarshallableGenerator(ctx) + streamingShapes.forEach { streamingMember -> + messageUnmarshallableGenerator.render(streamingMember) + } + } + + override fun generateMessageUnmarshallable(ctx: ProtocolGenerator.GenerationContext) { + val streamingShapes = inputStreamingShapes(ctx) + val messageMarshallableGenerator = MessageMarshallableGenerator(ctx, defaultContentType) + for (streamingShape in streamingShapes) { + messageMarshallableGenerator.render(streamingShape) + } + } } diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGenerator.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGenerator.kt index 0f066b8b9d5..c43fa655689 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGenerator.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGenerator.kt @@ -34,8 +34,11 @@ class AWSRestXMLHttpResponseBindingErrorGenerator : HttpResponseBindingErrorGene writer.addImport(SwiftDependency.CLIENT_RUNTIME.target) writer.openBlock("extension \$L: \$N {", "}", operationErrorName, ClientRuntimeTypes.Http.HttpResponseBinding) { - writer.openBlock("public init(httpResponse: \$N, decoder: \$D) throws {", "}", ClientRuntimeTypes.Http.HttpResponse, ClientRuntimeTypes.Serde.ResponseDecoder) { - + writer.openBlock( + "public init(httpResponse: \$N, decoder: \$D) throws {", "}", + ClientRuntimeTypes.Http.HttpResponse, + ClientRuntimeTypes.Serde.ResponseDecoder + ) { writer.declareSection(RestXMLResponseBindingSectionId, mapOf("operationErrorName" to operationErrorName)) { writer.write("let errorDetails = try \$N(httpResponse: httpResponse)", AWSClientRuntimeTypes.RestXML.RestXMLError) writer.write("try self.init(errorType: errorDetails.errorCode, httpResponse: httpResponse, decoder: decoder, message: errorDetails.message, requestID: errorDetails.requestId)") diff --git a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/httpResponse/AWSXMLHttpResponseTraitWithoutPayload.kt b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/httpResponse/AWSXMLHttpResponseTraitWithoutPayload.kt index 6abf4330fb7..ed33afd012f 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/httpResponse/AWSXMLHttpResponseTraitWithoutPayload.kt +++ b/codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/httpResponse/AWSXMLHttpResponseTraitWithoutPayload.kt @@ -38,7 +38,7 @@ class AWSXMLHttpResponseTraitWithoutPayload( .toMutableSet() if (bodyMembersWithoutQueryTrait.isNotEmpty()) { - writer.write("if let data = httpResponse.body.toBytes()?.getData(),") + writer.write("if let data = try httpResponse.body.toData(),") writer.indent() writer.write("let responseDecoder = decoder {") if (serviceDisablesWrappingOfErrorProperties()) { diff --git a/codegen/smithy-aws-swift-codegen/src/main/resources/META-INF/services/software.amazon.smithy.swift.codegen.integration.SwiftIntegration b/codegen/smithy-aws-swift-codegen/src/main/resources/META-INF/services/software.amazon.smithy.swift.codegen.integration.SwiftIntegration index c188fb99c68..51f92ecf63e 100644 --- a/codegen/smithy-aws-swift-codegen/src/main/resources/META-INF/services/software.amazon.smithy.swift.codegen.integration.SwiftIntegration +++ b/codegen/smithy-aws-swift-codegen/src/main/resources/META-INF/services/software.amazon.smithy.swift.codegen.integration.SwiftIntegration @@ -16,4 +16,5 @@ software.amazon.smithy.aws.swift.codegen.PresignerGenerator software.amazon.smithy.aws.swift.codegen.model.AWSClientContextParamsTransformer software.amazon.smithy.aws.swift.codegen.customization.ServiceGeneratorIntegration software.amazon.smithy.aws.swift.codegen.model.AWSHttpTraitTransformer -software.amazon.smithy.aws.swift.codegen.model.AWSEndpointTraitTransformer \ No newline at end of file +software.amazon.smithy.aws.swift.codegen.model.AWSEndpointTraitTransformer +software.amazon.smithy.aws.swift.codegen.customization.MessageEncoderIntegration \ No newline at end of file diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt new file mode 100644 index 00000000000..fca431966eb --- /dev/null +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt @@ -0,0 +1,250 @@ +package software.amazon.smithy.aws.swift.codegen + +import io.kotest.matchers.string.shouldContainOnlyOnce +import org.junit.jupiter.api.Test +import software.amazon.smithy.aws.swift.codegen.TestContextGenerator.Companion.getFileContents +import software.amazon.smithy.aws.swift.codegen.restjson.AWSRestJson1ProtocolGenerator +import software.amazon.smithy.aws.traits.protocols.RestJson1Trait + +class EventStreamTests { + @Test + fun `test MessageMarshallable`() { + val context = setupTests("eventstream.smithy", "aws.protocoltests.restjson#TestService") + val contents = getFileContents(context.manifest, "/Example/models/TestStream+MessageMarshallable.swift") + val expected = """ +// Code generated by smithy-swift-codegen. DO NOT EDIT! + +import ClientRuntime + +extension EventStreamTestClientTypes.TestStream: ClientRuntime.MessageMarshallable { + public func marshall(encoder: ClientRuntime.RequestEncoder) throws -> ClientRuntime.EventStream.Message { + var headers: [ClientRuntime.EventStream.Header] = [.init(name: ":message-type", value: .string("event"))] + var payload: ClientRuntime.Data? = nil + switch self { + case .messagewithblob(let value): + headers.append(.init(name: ":event-type", value: .string("MessageWithBlob"))) + headers.append(.init(name: ":content-type", value: .string("application/octet-stream"))) + payload = value.data + case .messagewithstring(let value): + headers.append(.init(name: ":event-type", value: .string("MessageWithString"))) + headers.append(.init(name: ":content-type", value: .string("text/plain"))) + payload = value.data?.data(using: .utf8) + case .messagewithstruct(let value): + headers.append(.init(name: ":event-type", value: .string("MessageWithStruct"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .messagewithunion(let value): + headers.append(.init(name: ":event-type", value: .string("MessageWithUnion"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .messagewithheaders(let value): + headers.append(.init(name: ":event-type", value: .string("MessageWithHeaders"))) + if let headerValue = value.blob { + headers.append(.init(name: "blob", value: .byteArray(headerValue))) + } + if let headerValue = value.boolean { + headers.append(.init(name: "boolean", value: .bool(headerValue))) + } + if let headerValue = value.byte { + headers.append(.init(name: "byte", value: .byte(headerValue))) + } + if let headerValue = value.int { + headers.append(.init(name: "int", value: .int32(Int32(headerValue)))) + } + if let headerValue = value.long { + headers.append(.init(name: "long", value: .int64(Int64(headerValue)))) + } + if let headerValue = value.short { + headers.append(.init(name: "short", value: .int16(headerValue))) + } + if let headerValue = value.string { + headers.append(.init(name: "string", value: .string(headerValue))) + } + if let headerValue = value.timestamp { + headers.append(.init(name: "timestamp", value: .timestamp(headerValue))) + } + case .messagewithheaderandpayload(let value): + headers.append(.init(name: ":event-type", value: .string("MessageWithHeaderAndPayload"))) + if let headerValue = value.header { + headers.append(.init(name: "header", value: .string(headerValue))) + } + headers.append(.init(name: ":content-type", value: .string("application/octet-stream"))) + payload = value.payload + case .messagewithnoheaderpayloadtraits(let value): + headers.append(.init(name: ":event-type", value: .string("MessageWithNoHeaderPayloadTraits"))) + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .messagewithunboundpayloadtraits(let value): + headers.append(.init(name: ":event-type", value: .string("MessageWithUnboundPayloadTraits"))) + if let headerValue = value.header { + headers.append(.init(name: "header", value: .string(headerValue))) + } + headers.append(.init(name: ":content-type", value: .string("application/json"))) + payload = try encoder.encode(value) + case .sdkUnknown(_): + throw ClientRuntime.ClientError.serializationFailed("cannot serialize the unknown event type!") + } + return ClientRuntime.EventStream.Message(headers: headers, payload: payload ?? .init()) + } +} + """.trimIndent() + contents.shouldContainOnlyOnce(expected) + } + + @Test + fun `test MessageUnmarshallable`() { + val context = setupTests("eventstream.smithy", "aws.protocoltests.restjson#TestService") + val contents = getFileContents(context.manifest, "/Example/models/TestStream+MessageUnmarshallable.swift") + val expected = """ +// Code generated by smithy-swift-codegen. DO NOT EDIT! + +import AWSClientRuntime +import ClientRuntime + +extension EventStreamTestClientTypes.TestStream: ClientRuntime.MessageUnmarshallable { + public init(message: ClientRuntime.EventStream.Message, decoder: ClientRuntime.ResponseDecoder) throws { + switch try message.type() { + case .event(let params): + switch params.eventType { + case "MessageWithBlob": + var event = EventStreamTestClientTypes.MessageWithBlob() + event.data = message.payload + self = .messagewithblob(event) + case "MessageWithString": + var event = EventStreamTestClientTypes.MessageWithString() + event.data = String(data: message.payload, encoding: .utf8) + self = .messagewithstring(event) + case "MessageWithStruct": + var event = EventStreamTestClientTypes.MessageWithStruct() + event.someStruct = .init(try decoder.decode(responseBody: message.payload)) + self = .messagewithstruct(event) + case "MessageWithUnion": + var event = EventStreamTestClientTypes.MessageWithUnion() + event.someUnion = .init(try decoder.decode(responseBody: message.payload)) + self = .messagewithunion(event) + case "MessageWithHeaders": + var event = EventStreamTestClientTypes.MessageWithHeaders() + if case let .byteArray(value) = message.headers.value(name: "blob") { + event.blob = value + } + if case let .bool(value) = message.headers.value(name: "boolean") { + event.boolean = value + } + if case let .byte(value) = message.headers.value(name: "byte") { + event.byte = value + } + if case let .int32(value) = message.headers.value(name: "int") { + event.int = Int(value) + } + if case let .int64(value) = message.headers.value(name: "long") { + event.long = Int(value) + } + if case let .int16(value) = message.headers.value(name: "short") { + event.short = value + } + if case let .string(value) = message.headers.value(name: "string") { + event.string = value + } + if case let .timestamp(value) = message.headers.value(name: "timestamp") { + event.timestamp = value + } + self = .messagewithheaders(event) + case "MessageWithHeaderAndPayload": + var event = EventStreamTestClientTypes.MessageWithHeaderAndPayload() + if case let .string(value) = message.headers.value(name: "header") { + event.header = value + } + event.payload = message.payload + self = .messagewithheaderandpayload(event) + case "MessageWithNoHeaderPayloadTraits": + self = .messagewithnoheaderpayloadtraits(try decoder.decode(responseBody: message.payload)) + case "MessageWithUnboundPayloadTraits": + var event = EventStreamTestClientTypes.MessageWithUnboundPayloadTraits() + if case let .string(value) = message.headers.value(name: "header") { + event.header = value + } + event.unboundString = try decoder.decode(responseBody: message.payload) + self = .messagewithunboundpayloadtraits(event) + default: + self = .sdkUnknown("error processing event stream, unrecognized event: \(params.eventType)") + } + case .exception(let params): + let makeError: (ClientRuntime.EventStream.Message, ClientRuntime.EventStream.MessageType.ExceptionParams) throws -> Swift.Error = { message, params in + switch params.exceptionType { + case "SomeError": + return try decoder.decode(responseBody: message.payload) as SomeError + default: + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + return AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':exceptionType': \(params.exceptionType); contentType: \(params.contentType ?? "nil")") + } + } + let error = try makeError(message, params) + throw error + case .error(let params): + let httpResponse = HttpResponse(body: .data(message.payload), statusCode: .ok) + throw AWSClientRuntime.UnknownAWSHttpServiceError(httpResponse: httpResponse, message: "error processing event stream, unrecognized ':errorType': \(params.errorCode); message: \(params.message ?? "nil")") + case .unknown(messageType: let messageType): + throw ClientRuntime.ClientError.unknownError("unrecognized event stream message ':message-type': \(messageType)") + } + } +} + """.trimIndent() + contents.shouldContainOnlyOnce(expected) + } + + @Test + fun `operation stack`() { + val context = setupTests("eventstream.smithy", "aws.protocoltests.restjson#TestService") + val contents = getFileContents(context.manifest, "/Example/EventStreamTestClient.swift") + var expected = """ +extension EventStreamTestClient: EventStreamTestClientProtocol { + public func testStreamOp(input: TestStreamOpInput) async throws -> TestStreamOpOutputResponse + { + let context = ClientRuntime.HttpContextBuilder() + .withEncoder(value: encoder) + .withDecoder(value: decoder) + .withMethod(value: .post) + .withServiceName(value: serviceName) + .withOperation(value: "testStreamOp") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withCredentialsProvider(value: config.credentialsProvider) + .withRegion(value: config.region) + .withSigningName(value: "event-stream-test") + .withSigningRegion(value: config.signingRegion) + .build() + try context.setupBidirectionalStreaming() + var operation = ClientRuntime.OperationStack(id: "testStreamOp") + operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) + operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) + let endpointParams = EndpointParams() + operation.buildStep.intercept(position: .before, middleware: EndpointResolverMiddleware(endpointResolver: config.endpointResolver, endpointParams: endpointParams)) + let apiMetadata = AWSClientRuntime.APIMetadata(serviceId: serviceName, version: "1.0.0") + operation.buildStep.intercept(position: .before, middleware: AWSClientRuntime.UserAgentMiddleware(metadata: AWSClientRuntime.AWSUserAgentMetadata.fromEnv(apiMetadata: apiMetadata, frameworkMetadata: config.frameworkMetadata))) + operation.serializeStep.intercept(position: .after, middleware: ContentTypeMiddleware(contentType: "application/json")) + operation.serializeStep.intercept(position: .after, middleware: TestStreamOpInputBodyMiddleware()) + operation.finalizeStep.intercept(position: .before, middleware: ClientRuntime.ContentLengthMiddleware()) + operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) + let sigv4Config = AWSClientRuntime.SigV4Config(unsignedBody: false, signingAlgorithm: .sigv4) + operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) + operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) + operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) + return result + } + +} + """.trimIndent() + contents.shouldContainOnlyOnce(expected) + } + + private fun setupTests(smithyFile: String, serviceShapeId: String): TestContext { + val context = TestContextGenerator.initContextFrom(smithyFile, serviceShapeId, RestJson1Trait.ID) + + val generator = AWSRestJson1ProtocolGenerator() + generator.generateProtocolUnitTests(context.ctx) + context.ctx.delegator.flushWriters() + return context + } +} diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/PresignerGeneratorTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/PresignerGeneratorTests.kt index 4494e50eafd..52645440363 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/PresignerGeneratorTests.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/PresignerGeneratorTests.kt @@ -43,6 +43,7 @@ class PresignerGeneratorTests { .withRegion(value: config.region) .withSigningName(value: "example-signing-name") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "getFoo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -55,7 +56,7 @@ class PresignerGeneratorTests { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } @@ -100,6 +101,7 @@ class PresignerGeneratorTests { .withRegion(value: config.region) .withSigningName(value: "example-signing-name") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "postFoo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -115,7 +117,7 @@ class PresignerGeneratorTests { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } @@ -160,6 +162,7 @@ class PresignerGeneratorTests { .withRegion(value: config.region) .withSigningName(value: "example-signing-name") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putFoo") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -175,7 +178,7 @@ class PresignerGeneratorTests { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } @@ -222,6 +225,7 @@ class PresignerGeneratorTests { .withRegion(value: config.region) .withSigningName(value: "s3") .withSigningRegion(value: config.signingRegion) + .build() var operation = ClientRuntime.OperationStack(id: "putObject") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -237,7 +241,7 @@ class PresignerGeneratorTests { operation.finalizeStep.intercept(position: .before, middleware: AWSClientRuntime.SigV4Middleware(config: sigv4Config)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let presignedRequestBuilder = try await operation.presignedRequest(context: context.build(), input: input, next: ClientRuntime.NoopHandler()) + let presignedRequestBuilder = try await operation.presignedRequest(context: context, input: input, next: ClientRuntime.NoopHandler()) guard let builtRequest = presignedRequestBuilder?.build() else { return nil } diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt index dcc8728e1ad..ebff3438f00 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt @@ -34,6 +34,7 @@ class AWSQueryOperationStackTest { .withPartitionID(value: config.partitionID) .withCredentialsProvider(value: config.credentialsProvider) .withRegion(value: config.region) + .build() var operation = ClientRuntime.OperationStack(id: "noInputAndOutput") operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware()) operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware()) @@ -47,7 +48,7 @@ class AWSQueryOperationStackTest { operation.finalizeStep.intercept(position: .after, middleware: ClientRuntime.RetryerMiddleware(retryer: config.retryer)) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.DeserializeMiddleware()) operation.deserializeStep.intercept(position: .after, middleware: ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) - let result = try await operation.handleMiddleware(context: context.build(), input: input, next: client.getHandler()) + let result = try await operation.handleMiddleware(context: context, input: input, next: client.getHandler()) return result }""" contents.shouldContainOnlyOnce(expectedContents) diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/customizations/Route53InvalidBatchErrorIntegrationTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/customizations/Route53InvalidBatchErrorIntegrationTests.kt index ea023757dfa..f27d48cbb9a 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/customizations/Route53InvalidBatchErrorIntegrationTests.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/customizations/Route53InvalidBatchErrorIntegrationTests.kt @@ -36,7 +36,7 @@ class Route53InvalidBatchErrorIntegrationTests { self.messages = messages?.map(\.message) } static func makeFromHttpResponse(_ httpResponse: ClientRuntime.HttpResponse) -> CustomInvalidBatchError? { - guard let data = httpResponse.body.toBytes()?.getData() else { + guard let data = try httpResponse.body.toData() else { return nil } return try? XMLDecoder().decode(CustomInvalidBatchError.self, from: data) diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt index 9a3a9ff2e80..b08eca3d634 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt @@ -66,7 +66,7 @@ class Ec2QueryHttpResponseBindingErrorGeneratorTests { """ extension ComplexError { public init (httpResponse: ClientRuntime.HttpResponse, decoder: ClientRuntime.ResponseDecoder? = nil, message: Swift.String? = nil, requestID: Swift.String? = nil) throws { - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.Ec2NarrowedResponse = try responseDecoder.decode(responseBody: data) self.nested = output.errors.error.nested @@ -92,7 +92,7 @@ class Ec2QueryHttpResponseBindingErrorGeneratorTests { contents.shouldSyntacticSanityCheck() val expectedContents = """ - public struct ComplexError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { + public struct ComplexError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt index 350549affe2..cae1ba4bd10 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt @@ -71,7 +71,7 @@ class AWSRestXMLHttpResponseBindingErrorGeneratorTests { } else { self.header = nil } - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: AWSClientRuntime.ErrorResponseContainer = try responseDecoder.decode(responseBody: data) self.nested = output.error.nested @@ -96,7 +96,7 @@ class AWSRestXMLHttpResponseBindingErrorGeneratorTests { contents.shouldSyntacticSanityCheck() val expectedContents = """ - public struct ComplexXMLError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable { + public struct ComplexXMLError: AWSClientRuntime.AWSHttpServiceError, Swift.Equatable, Swift.Error { public var _headers: ClientRuntime.Headers? public var _statusCode: ClientRuntime.HttpStatusCode? public var _message: Swift.String? @@ -136,7 +136,7 @@ class AWSRestXMLHttpResponseBindingErrorGeneratorTests { } else { self.header = nil } - if let data = httpResponse.body.toBytes()?.getData(), + if let data = try httpResponse.body.toData(), let responseDecoder = decoder { let output: ComplexXMLErrorNoErrorWrappingBody = try responseDecoder.decode(responseBody: data) self.nested = output.nested diff --git a/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/eventstream.smithy b/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/eventstream.smithy new file mode 100644 index 00000000000..7f467fe64a2 --- /dev/null +++ b/codegen/smithy-aws-swift-codegen/src/test/resources/software.amazon.smithy.aws.swift.codegen/eventstream.smithy @@ -0,0 +1,83 @@ +namespace aws.protocoltests.restjson + +use aws.protocols#restJson1 +use aws.api#service +use aws.auth#sigv4 + +@restJson1 +@sigv4(name: "event-stream-test") +@service(sdkId: "EventStreamTest") +service TestService { version: "123", operations: [TestStreamOp] } + +@http(method: "POST", uri: "/test") +operation TestStreamOp { + input: TestStreamInputOutput, + output: TestStreamInputOutput, + errors: [SomeError], +} + +structure TestStreamInputOutput { + @httpPayload + @required + value: TestStream +} + +@error("client") +structure SomeError { + Message: String, +} + +union TestUnion { + Foo: String, + Bar: Integer, +} + +structure TestStruct { + someString: String, + someInt: Integer, +} + +structure MessageWithBlob { @eventPayload data: Blob } + +structure MessageWithString { @eventPayload data: String } + +structure MessageWithStruct { @eventPayload someStruct: TestStruct } + +structure MessageWithUnion { @eventPayload someUnion: TestUnion } + +structure MessageWithHeaders { + @eventHeader blob: Blob, + @eventHeader boolean: Boolean, + @eventHeader byte: Byte, + @eventHeader int: Integer, + @eventHeader long: Long, + @eventHeader short: Short, + @eventHeader string: String, + @eventHeader timestamp: Timestamp, +} +structure MessageWithHeaderAndPayload { + @eventHeader header: String, + @eventPayload payload: Blob, +} +structure MessageWithNoHeaderPayloadTraits { + someInt: Integer, + someString: String, +} + +structure MessageWithUnboundPayloadTraits { + @eventHeader header: String, + unboundString: String, +} + +@streaming +union TestStream { + MessageWithBlob: MessageWithBlob, + MessageWithString: MessageWithString, + MessageWithStruct: MessageWithStruct, + MessageWithUnion: MessageWithUnion, + MessageWithHeaders: MessageWithHeaders, + MessageWithHeaderAndPayload: MessageWithHeaderAndPayload, + MessageWithNoHeaderPayloadTraits: MessageWithNoHeaderPayloadTraits, + MessageWithUnboundPayloadTraits: MessageWithUnboundPayloadTraits, + SomeError: SomeError, +}